<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Volts and Bytes<title>&#187; Atmel</title>
</title>
	<atom:link href="http://voltsandbytes.com/tag/atmel/feed/" rel="self" type="application/rss+xml" />
	<link>http://voltsandbytes.com</link>
	<description>Microcontroller projects, tutorials, and other electronics stuffs...</description>
	<lastBuildDate>Tue, 31 Aug 2010 09:57:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>DIY Digital Thermometer 2</title>
		<link>http://voltsandbytes.com/diy-digital-thermometer-2/</link>
		<comments>http://voltsandbytes.com/diy-digital-thermometer-2/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 08:23:35 +0000</pubDate>
		<dc:creator>jer</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[ADC]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[ATtiny26]]></category>
		<category><![CDATA[ATTiny26L]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[digital]]></category>
		<category><![CDATA[digital thermometer]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[LM35]]></category>
		<category><![CDATA[Sensor]]></category>
		<category><![CDATA[seven segment display]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[thermometer]]></category>

		<guid isPermaLink="false">http://voltsandbytes.com/?p=398</guid>
		<description><![CDATA[Few months ago, I published my first DIY digital thermometer. However, like any simple projects/prototypes,  that project needs some improvements. Previously, I used a voltage regulator that has a 100mA rating. Though it was able to source current to the whole circuit, it gets too hot easily. Another problem with that was that the voltage regulator was very close [...]]]></description>
			<content:encoded><![CDATA[<p>Few months ago, I published my first <a href="http://voltsandbytes.com/diy-digital-thermometer/">DIY digital thermometer</a>. However, like any simple projects/prototypes,  that project needs some improvements. Previously, I used a voltage regulator that has a 100mA rating. Though it was able to source current to the whole circuit, it gets too hot easily. Another problem with that was that the voltage regulator was very close to the sensor. Since the voltage regulator heated up easily, it always affected the temperature reading of the digital thermometer.</p>
<p>To solve those problems, I came up with a second version of digital thermometer.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-404" title="digitalthermometer2-top" src="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer2-top.jpg" alt="" width="588" height="248" /></p>
<p style="text-align: center;"><span id="more-398"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>This version of digital thermomter is basically the same as the previous one. However, this version of digital thermometer solves the problems encountered previously. There is also some improvements in the aesthetics aspect and also in the firmware.</p>
<p>I used a voltage regulator with a higher current rating. This is to avoid the regulator to heat up easily and to dissipate any heat as fast as possible. I also put the voltage regulator as far from the sensor as possible.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-400" title="digitalthermometer2-7805" src="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer2-7805.jpg" alt="" width="588" height="394" /></p>
<p>I also used a smaller and better seven-segment display. This has resulted to a smaller but more beautiful board. It also resulted to easier PCB routing.</p>
<p style="text-align: center;"><img class="size-full wp-image-402 alignnone" title="digitalthermometer2-display" src="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer2-display.jpg" alt="" width="588" height="394" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p style="text-align: left;">However, I kept LM35 as the sensor. I had no reason to change the sensor at all. Besides, this temperature sensor is probably the easiest to use.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-403" title="digitalthermometer2-lm35" src="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer2-lm35.jpg" alt="" width="588" height="394" /></p>
<p>To keep the functionality simple and the same, I did not replace the microcontroller that I used in the first version. I kept ATtiny26 as the brain of the digital thermometer. It is easy to use and just enough to my application.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-401" title="digitalthermometer2-attiny26" src="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer2-attiny26.jpg" alt="" width="588" height="394" /></p>
<p><strong>Build it&#8230;</strong></p>
<p>If you are interested to build this project, here are the source files for you: <a href="http://voltsandbytes.com/wp-content/uploads/2010/08/digitalthermometer.zip">digitalthermometer</a></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://voltsandbytes.com/diy-digital-thermometer-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple 8×8 LED Matrix Board using AVR</title>
		<link>http://voltsandbytes.com/simple-8x8-led-matrix-board-using-avr/</link>
		<comments>http://voltsandbytes.com/simple-8x8-led-matrix-board-using-avr/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 06:28:47 +0000</pubDate>
		<dc:creator>jer</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[8x8]]></category>
		<category><![CDATA[8x8 LED Matrix]]></category>
		<category><![CDATA[8x8 Matrix]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[ATtiny2313]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[Matrix]]></category>

		<guid isPermaLink="false">http://voltsandbytes.com/?p=379</guid>
		<description><![CDATA[I am featuring here a simple project that uses an 8×8 LED matrix and an AVR microcontroller. It is fun to have something like this. Using this, you can make flashing texts, scrolling texts, or any sort of animations that involves texts or graphics. Features The microcontroller used in this project is ATtiny2313. This microcontroller is from the AVR [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I am featuring here a simple project that uses an 8×8 LED matrix and an AVR microcontroller. It is fun to have something like this. Using this, you can make flashing texts, scrolling texts, or any sort of animations that involves texts or graphics.</p>
<p style="text-align: center;"><img class="size-full wp-image-384  aligncenter" title="matrix" src="http://voltsandbytes.com/wp-content/uploads/2010/08/matrix.jpg" alt="" width="588" height="458" /></p>
<h4><span id="more-379"></span></h4>
<h4>Features</h4>
<p>The microcontroller used in this project is <a href="http://www.atmel.com/dyn/Products/Product_card.asp?part_id=3229">ATtiny2313</a>. This microcontroller is from the <a href="http://www.atmel.com/AVR">AVR family</a> of microcontrollers of <a href="http://www.atmel.com/">Atmel</a>. It has 2KB of flash memory for program storage, 128 bytes of RAM, and 128 bytes of EEPROM. It also has enough I/O ports for this project, USART for serial communication, and it has up to 8MHz of internal oscillator.</p>
<p>The TX and RX pins of the microcontroller are brought out to male headers for future use. The pins can be used to communicate with PC or other devices using UART. Therefore, this project can be customized so that its animations would be programmable using a customized PC software.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-387" title="attiny2313" src="http://voltsandbytes.com/wp-content/uploads/2010/08/attiny2313.jpg" alt="" width="588" height="473" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The project is powered by four AA batteries. The battery holder can be mounted on the copper side of the PCB which makes the project more compact.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-380" title="battery-holder" src="http://voltsandbytes.com/wp-content/uploads/2010/08/battery-holder.jpg" alt="" width="588" height="408" /> </p>
<p>The 8×8 matrix can be made detachable. Female header connectors can be used as the LED matrix socket. This makes the LED matrix easily replaceable and reusable.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-381" title="detachable-matrix" src="http://voltsandbytes.com/wp-content/uploads/2010/08/detachable-matrix.jpg" alt="" width="588" height="406" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h4>Buid it…</h4>
<p>If you are interested in building the project, you can download the Eagle schematic and PCB files <a href="http://voltsandbytes.com/wp-content/uploads/2010/08/PCB-and-SCH.zip">here</a>.</p>
<p>While building it, make sure that you solder a jumper wire beneath the microcontroller as shown below:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-383" title="jumper" src="http://voltsandbytes.com/wp-content/uploads/2010/08/jumper.jpg" alt="" width="588" height="454" /></p>
<h4>Sample…</h4>
<p>Here is a demo of the project.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/smmIMsGNfwo" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/smmIMsGNfwo"></embed></object></p>
<p>The source code of the demo is compiled using WinAVR and AVR Studio and it can be downloaded <a href="http://voltsandbytes.com/wp-content/uploads/2010/08/Sample-code.zip">here</a>.</p>
<h3>SOURCE FILES</h3>
<p><a href="http://voltsandbytes.com/wp-content/uploads/2010/08/PCB-and-SCH.zip">PCB and SCH</a></p>
<p><a href="http://voltsandbytes.com/wp-content/uploads/2010/08/Sample-code.zip">Sample code</a></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://voltsandbytes.com/simple-8x8-led-matrix-board-using-avr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIY Digital Thermometer</title>
		<link>http://voltsandbytes.com/diy-digital-thermometer/</link>
		<comments>http://voltsandbytes.com/diy-digital-thermometer/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 06:04:20 +0000</pubDate>
		<dc:creator>jer</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[ADC]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[ATtiny26]]></category>
		<category><![CDATA[ATTiny26L]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[digital]]></category>
		<category><![CDATA[digital thermometer]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[LM35]]></category>
		<category><![CDATA[Sensor]]></category>
		<category><![CDATA[seven segment display]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[thermometer]]></category>

		<guid isPermaLink="false">http://voltsandbytes.com/?p=368</guid>
		<description><![CDATA[This project is a digital thermometer that uses a microcontroller with analog-to-digital capability, an analog temperature sensor, and some seven-segment displays. The circuit is pretty simple and it can be powered by a 9-volt battery which makes it very portable. Please continue to read as I go a bit deeper to the details of what builds this easy project. The Microcontroller This [...]]]></description>
			<content:encoded><![CDATA[<p>This project is a digital thermometer that uses a microcontroller with analog-to-digital capability, an analog temperature sensor, and some seven-segment displays. The circuit is pretty simple and it can be powered by a 9-volt battery which makes it very portable.</p>
<p>Please continue to read as I go a bit deeper to the details of what builds this easy project.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-374" title="prototype" src="http://voltsandbytes.com/wp-content/uploads/2010/08/prototype.jpg" alt="" width="588" height="413" /></p>
<p><span id="more-368"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h4>The Microcontroller</h4>
<p>This project features <a href="http://www.atmel.com/dyn/Products/Product_card.asp?part_id=2967">ATtiny26L</a> microcontroller. This microcontroller is from the AVR family of microcontrollers  manufactured by <a href="http://www.atmel.com/">Atmel</a>. It has 2Kbytes of flash memory and 128 bytes of SRAM which is enough for this project. It also has several 10-bit ADC channels, more than enough for the analog temperature sensor, and it has enough digital I/O pins for the seven-segment displays.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-369" title="attiny26" src="http://voltsandbytes.com/wp-content/uploads/2010/08/attiny26.jpg" alt="" width="588" height="329" /></p>
<p style="text-align: center;"> <script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
 </p>
<h4>The Temperature Display</h4>
<p>To display the temperature, I used four common anode seven-segment displays. The seven-segment displays are driven by PNP transistors and a special technique called “multiplexing” is used to effectively control the displays using only a few digital I/O pins.</p>
<p>Notice how I mounted the fourth seven-segment display by reversing it  to display the <strong>°C</strong> sign.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-375" title="runtime" src="http://voltsandbytes.com/wp-content/uploads/2010/08/runtime.jpg" alt="" width="588" height="248" /></p>
<p style="text-align: center;"> <script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
 </p>
<h4>The Sensor</h4>
<p>The sensor used in this project is <a href="http://www.national.com/mpf/LM/LM35.html">LM35</a>. LM35 is an analog temperature sensor and it has a sensitivity of + 10.0 mV/°C. It is accurate enough and it is suitable for different applications. It is rated for full -55° to +150°C range.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-373" title="LM35" src="http://voltsandbytes.com/wp-content/uploads/2010/08/LM35.jpg" alt="" width="588" height="413" /></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://voltsandbytes.com/diy-digital-thermometer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>8-pin AVR based Mood Lamp</title>
		<link>http://voltsandbytes.com/8-pin-avr-based-mood-lamp/</link>
		<comments>http://voltsandbytes.com/8-pin-avr-based-mood-lamp/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:04:59 +0000</pubDate>
		<dc:creator>jer</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[ATTiny45]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[Mood Lamp]]></category>
		<category><![CDATA[PWM]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[RGB LED]]></category>

		<guid isPermaLink="false">http://voltsandbytes.com/?p=212</guid>
		<description><![CDATA[I got a sample of a RGB LED (Red Green Blue Light Emitting Diode). So, I decided to make something fun out of it. Using an 8-pin AVR microcontroller, ATtiny45, I made a simple prototype to control the RGB LED using PWM or Pulse Width Modulation. Then, I put the prototype inside a translucent candle [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-219" title="mood-lamp" src="http://voltsandbytes.com/wp-content/uploads/2010/07/mood-lamp.png" alt="" width="588" height="248" /></p>
<p>I got a sample of a RGB LED (Red Green Blue Light Emitting Diode). So, I decided to make something fun out of it. Using an 8-pin AVR microcontroller, ATtiny45, I made a simple prototype to control the RGB LED using PWM or Pulse Width Modulation.<span id="more-212"></span></p>
<p style="text-align: center;"><img class="size-full wp-image-217 alignnone" title="RGB" src="http://voltsandbytes.com/wp-content/uploads/2010/07/RGB.jpg" alt="" width="519" height="389" /></p>
<p>Then, I put the prototype inside a translucent candle vase. The vase diffused the light from the RGB very nicely and below is the video of the result.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/AVme_rwakCg" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/AVme_rwakCg"></embed></object></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p style="text-align: left;">I soldered a potentiometer to ATtiny45 to provide an input to its on-chip ADC or analog-to-digital converter. The rate of color transitions of the RGB LED can, then, be controlled by adjusting the potentiometer.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-214" title="mood-potentiometer" src="http://voltsandbytes.com/wp-content/uploads/2010/07/mood-potentiometer.jpg" alt="" width="519" height="389" /></p>
<p>The following are the pictures of the prototype. No printed circuit boards were used to simplify the project. The project is powered by two AA batteries.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-215" title="moodprototype1" src="http://voltsandbytes.com/wp-content/uploads/2010/07/moodprototype1.jpg" alt="" width="519" height="389" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-216" title="prototype2" src="http://voltsandbytes.com/wp-content/uploads/2010/07/prototype2.jpg" alt="" width="519" height="389" /></p>
<p style="text-align: left;">Below is the schematic of the prototype.</p>
<p style="text-align: center;"><img class="aligncenter size-large wp-image-218" title="sch" src="http://voltsandbytes.com/wp-content/uploads/2010/07/sch-600x341.jpg" alt="" width="600" height="341" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The following is the source code for the project. The compiler that I used is WinAVR.</p>
<blockquote><p>#include &lt;avr/io.h&gt;<br />
#define F_CPU 1000000UL<br />
#include &lt;util/delay.h&gt;</p>
<p>int main(void)<br />
{ unsigned char a=0,b=0,c=0,aa=0,bb=0,cc=0,temp;<br />
 DDRB=0xFF;<br />
 PORTB=0xFF;</p>
<p>//initialize ADC<br />
 ADMUX=0b00100011;<br />
 ADCSRA=0b10000100;</p>
<p>//Set OC0A on Compare Match, clear OC0A at BOTTOM<br />
 TCCR0A|=(1&lt;&lt;COM0A1); <br />
 TCCR0A|=(1&lt;&lt;COM0A0); <br />
 //Set OC0B on Compare Match, clear OC0B at BOTTOM<br />
 TCCR0A|=(1&lt;&lt;COM0B1); <br />
 TCCR0A|=(1&lt;&lt;COM0B0);<br />
 //Fast PWM, TOP=0xFF, Update of OCRx at BOTTOM<br />
 TCCR0A|=(1&lt;&lt;WGM01);     <br />
 TCCR0A|=(1&lt;&lt;WGM00);<br />
 //clkI/O/(No prescaling)<br />
 TCCR0B&amp;=~(1&lt;&lt;WGM02); <br />
 TCCR0B&amp;=~(1&lt;&lt;CS02);  <br />
 TCCR0B&amp;=~(1&lt;&lt;CS01);<br />
 TCCR0B|=(1&lt;&lt;CS00);</p>
<p>OCR0A=0&#215;00;<br />
 OCR0B=0&#215;00;</p>
<p>//PWM1B: Pulse Width Modulator B Enable<br />
 GTCCR|=(1&lt;&lt;PWM1B);<br />
 //OC1x Set on compare match. Cleared when TCNT1= $00.<br />
 GTCCR&amp;=~(1&lt;&lt;COM1B1);<br />
 GTCCR|=(1&lt;&lt;COM1B0);<br />
 //clock select bits<br />
 TCCR1&amp;=~(1&lt;&lt;CS13);<br />
 TCCR1|=(1&lt;&lt;CS12);<br />
 TCCR1&amp;=~(1&lt;&lt;CS11);<br />
 TCCR1|=(1&lt;&lt;CS10);</p>
<p>//OCR1B=0xFF;<br />
 //OCR1C=0xFF;</p>
<p>while(1)<br />
 { ADCSRA |= (1&lt;&lt;ADSC);<br />
  while((ADCSRA&amp;0&#215;10)==0&#215;00);<br />
  temp=ADCH;</p>
<p>OCR0A=c;<br />
  OCR0B=b;<br />
  OCR1B=~a;</p>
<p>while(temp&gt;0)<br />
  { temp&#8211;;<br />
   _delay_ms(1);<br />
  }</p>
<p>if(aa==0)<br />
  { a=a+1;<br />
   if(a==0xFF)<br />
   aa=1;<br />
  }</p>
<p>  if(aa==1)<br />
  { a=a-1;<br />
   if(a==0)<br />
   aa=0;<br />
  }</p>
<p>if(bb==0)<br />
  { b=b+3;<br />
   if(b==0xFF)<br />
    bb=1;<br />
  }</p>
<p>  if(bb==1)<br />
  { b=b-3;<br />
   if(b==0)<br />
    bb=0;<br />
  }</p>
<p>if(cc==0)<br />
  { c=c+5;<br />
   if(c==0xFF)<br />
    cc=1;<br />
  }</p>
<p>  if(cc==1)<br />
  { c=c-5;<br />
   if(c==0)<br />
    cc=0;<br />
  }<br />
 }<br />
}</p></blockquote>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://voltsandbytes.com/8-pin-avr-based-mood-lamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All-in-One AVR Development Tool</title>
		<link>http://voltsandbytes.com/all-in-one-avr-development-tool/</link>
		<comments>http://voltsandbytes.com/all-in-one-avr-development-tool/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:35:22 +0000</pubDate>
		<dc:creator>jer</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[ATmega]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[AVR Dragon]]></category>
		<category><![CDATA[Development Board]]></category>
		<category><![CDATA[Development Tool]]></category>

		<guid isPermaLink="false">http://voltsandbytes.com/?p=152</guid>
		<description><![CDATA[If you are an AVR fan, you must be familiar with most of Atmel’s AVR development  tools: STK500, AVR Studio, AVRISP, AVR TJAGICE, AVR JTAGICE mkII, AVRISP mkII, STK600, etc. But there is one Atmel AVR development tool that provides ISP programming, High Voltage Programming, and debugging which comes in small form, beautiful box, and cheap price.  [...]]]></description>
			<content:encoded><![CDATA[<p>If you are an <a href="http://www.atmel.com/products/avr/default.asp?family_id=607">AVR</a> fan, you must be familiar with most of <a href="http://www.atmel.com/dyn/products/tools.asp?family_id=607">Atmel’s AVR development  tools</a>:<strong> STK500</strong>, <strong>AVR Studio</strong>, <strong>AVRISP</strong>, <strong>AVR TJAGICE</strong>, <strong>AVR JTAGICE mkII</strong>, <strong>AVRISP mkII</strong>, <strong>STK600</strong>, etc. But there is one Atmel AVR development tool that provides ISP programming, High Voltage Programming, and debugging which comes in small form, beautiful box, and cheap price. </p>
<p>The development tool that I am talking about is the <strong>AVR Dragon</strong>.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-155" title="dragon" src="http://voltsandbytes.com/wp-content/uploads/2010/07/dragon.jpg" alt="" width="588" height="248" /></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><span id="more-152"></span>AVR Dragon is highlighting <strong>In-System-Programming</strong>, <strong>High Voltage Serial</strong> and <strong>Parallel Programming</strong>,<strong> JTAG</strong>, and <strong>debugWire</strong>. You can almost do all kinds of programming and debugging methods with those features. Aside from that, the PC communication and power is provided by USB. It is fully supported by the free AVR Studio IDE which makes developing AVR projects very fast.</p>
<p>Using the AVR Dragon requires some hardware setup first. Each target AVR MCU must be connected to the proper header pins provided with the board. However, the user must provide and solder the other remaining header pins to fully use it. Also, one major drawback of the AVR dragon is that it does not come with wire connectors and USB cable.</p>
<p>All in all, I am a very satisfied user of AVR Dragon and it saved me from a lot of hassles. For a retail price of USD49, it gives me the comfort that i deserve when it comes to developing projects using my favorite AVR microcontrollers.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-4129695434726741";
google_ad_slot = "5940435964";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://voltsandbytes.com/all-in-one-avr-development-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
