<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8169291790587569450</atom:id><lastBuildDate>Fri, 08 Jul 2011 02:16:31 +0000</lastBuildDate><title>AVR Projects By Dim</title><description>Projects with Atmel's AVR micros</description><link>http://dimavrprojects.blogspot.com/</link><managingEditor>noreply@blogger.com (dim)</managingEditor><generator>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/blogspot/GIdJ" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="blogspot/gidj" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8169291790587569450.post-7961203045501886324</guid><pubDate>Tue, 08 Dec 2009 21:31:00 +0000</pubDate><atom:updated>2009-12-08T23:59:29.069+02:00</atom:updated><title>ATtiny45 Development Board</title><description>&lt;table align="center" border="0" cellpadding="0" cellspacing="0" style="color: black; font-family: arial,helvetica,sans-serif; font-size: 14px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img src="http://dselec.wordpress.com/files/2009/09/dscn1395-attiny45-300.jpg?w=150" alt="DSCN1395-ATTiny45-300" title="DSCN1395-ATTiny45-300" width="150" height="137" class="alignnone size-thumbnail wp-image-802" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;During development of a project with &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/doc2586.pdf" linkindex="141" target="_blank"&gt;ATtiny45&lt;/a&gt; i experienced some difficulties with programming with STK500, so i decide to build this tiny board.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;Nothing Fancy about it but i am sure you find it useful in your experiments with that micro.&lt;br /&gt;
It can also be used with ATtiny25 and ATtiny85 because of the same pin out (read the pdf from Atmel for the differences).&lt;br /&gt;
In header CN1 comes all the available ports of micro except RESET.&lt;br /&gt;
With the JP2 and JP3 headers you can select if the PB3 and PB4 are connected to the external crystal or to the CN1 header so the can be used as ordinary ports. You have to program the appropriate fuses of course.&lt;br /&gt;
The JP1 header is used for programming the micro.&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;b&gt;This is the picture of the schematic:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/attiny45-sch.png" linkindex="141" target="_blank"&gt;&lt;img alt="attiny45-sch" class="alignnone size-medium wp-image-782" height="205" src="http://dselec.wordpress.com/files/2009/09/attiny45-sch.png?w=300" title="attiny45-sch" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;b&gt;This is the picture of PCB and silkscreen:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;br /&gt;
&lt;a href="http://dselec.wordpress.com/files/2009/09/attiny45-brd.png" linkindex="142" target="_blank"&gt;&lt;img alt="attiny45-brd" class="alignnone size-medium wp-image-781" height="254" src="http://dselec.wordpress.com/files/2009/09/attiny45-brd.png?w=300" title="attiny45-brd" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/attiny45-silk.png" linkindex="143" target="_blank"&gt;&lt;img alt="attiny45-silk" class="alignnone size-medium wp-image-783" height="254" src="http://dselec.wordpress.com/files/2009/09/attiny45-silk.png?w=300" title="attiny45-silk" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/attiny45-silk1.png" linkindex="144" target="_blank"&gt;&lt;img alt="attiny45-silk1" class="alignnone size-medium wp-image-784" height="254" src="http://dselec.wordpress.com/files/2009/09/attiny45-silk1.png?w=300" title="attiny45-silk1" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;Click for larger view.&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;b&gt;Here is a pdf file with schematic and PCB with 1:1 print measures:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/09/adobe-pdf_32.png" width="22" /&gt; &lt;a href="http://dselec.wordpress.com/files/2009/09/attiny45-development-board.pdf" linkindex="145" target="_blank"&gt;ATtiny45-development-board.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;b&gt;You can download .sch and .brd files for&lt;/b&gt; &lt;a href="http://www.cadsoft.de/" linkindex="145" target="_blank"&gt;Cadsoft's&lt;/a&gt; &lt;b&gt;Eagle design program from here:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/n24z4ot4m3" linkindex="146" target="_blank"&gt;Attiny45 development board.sch&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/2h0prvbz6s" linkindex="147" target="_blank"&gt;Attiny45 development board.brd&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;For questions e-mail me to: &lt;a href="mailto:dselecdim@gmail.com?subject=Questions%2C%20Comments"&gt;dselecdim at gmail dot com&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8169291790587569450-7961203045501886324?l=dimavrprojects.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/GIdJ?a=4KUabS3koOc:K_NCCiWLBjY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/GIdJ?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/GIdJ/~4/4KUabS3koOc" height="1" width="1"/&gt;</description><link>http://dimavrprojects.blogspot.com/2009/12/attiny45-development-board.html</link><author>noreply@blogger.com (dim)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8169291790587569450.post-4519533232230051123</guid><pubDate>Tue, 08 Dec 2009 21:21:00 +0000</pubDate><atom:updated>2009-12-08T23:21:35.968+02:00</atom:updated><title>Thermometer-Thermostat</title><description>&lt;table align="center" border="0" cellpadding="0" cellspacing="0" style="font-family: arial,helvetica,sans-serif; font-size: 14px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="center" nowrap="nowrap" valign="middle"&gt;&lt;img align="middle" alt="thermostat" height="50%" src="http://dselec.wordpress.com/files/2009/08/thermostat.jpg" title="thermostat" width="50%" /&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;This is a simple thermostat that i designed to use with my central heating system. When is not in use acts like a thermometer.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;The prototype uses the &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/DOC0839.PDF" linkindex="294" target="_blank"&gt;AT90S2313&lt;/a&gt; but it's obsolete now, so i changed it with the pin to pin compatible &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/doc2543.pdf" linkindex="294" target="_blank"&gt;ATtiny2313&lt;/a&gt; (the photo shows my first prototype).&lt;br /&gt;
With the on/off switch &lt;span style="color: red;"&gt;(S1)&lt;/span&gt; you can turn the device on or off. With the up &lt;span style="color: red;"&gt;(S2)&lt;/span&gt; and down &lt;span style="color: red;"&gt;(S3)&lt;/span&gt; you can set the desired temperature between 10 and 40 degrees Celsius.&lt;br /&gt;
When you turn the device on you first see the ON sign, then you see the temperature that the thermostat is set and at last you see the current temperature. If the current temperature is lower than the set temperature, the load is connected and the decimal point of the second digit is blinking. At any time you can set the temperature of the thermostat by pressing the up or down switches.&lt;br /&gt;
When you press any of the up or down switches momentarily you can see the current thermostat temperature. Pressing again the temperature change. To turn off the device just press the on/off switch again.&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The schematic of the thermostat is shown here:&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/thermo-sch.png" linkindex="294" target="_blank"&gt;&lt;img alt="thermo-sch" class="alignnone size-medium wp-image-490" height="204" src="http://dselec.wordpress.com/files/2009/08/thermo-sch.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The PCB:&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/thermo-brd.png" linkindex="295" target="_blank"&gt;&lt;img alt="thermo-brd" class="alignnone size-medium wp-image-492" height="283" src="http://dselec.wordpress.com/files/2009/08/thermo-brd.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The Silkscreen:&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;br /&gt;
&lt;a href="http://dselec.wordpress.com/files/2009/08/thermo-slk.png" linkindex="296" target="_blank"&gt;&lt;img alt="thermo-slk" class="alignnone size-medium wp-image-493" height="283" src="http://dselec.wordpress.com/files/2009/08/thermo-slk.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://dselec.wordpress.com/files/2009/08/thermo-slk1.png" linkindex="297" target="_blank"&gt;&lt;img alt="thermo-slk1" class="alignnone size-medium wp-image-494" height="283" src="http://dselec.wordpress.com/files/2009/08/thermo-slk1.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div align="center"&gt;Click on the images for larger view.&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;hr align="left" size="2" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The schematic and the PCB is also available in &lt;a href="http://www.cadsoft.de/" linkindex="298" target="_blank"&gt;Cadsoft's&lt;/a&gt; Eagle design program format:&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/myzna6gmyp" linkindex="299" target="_blank"&gt;thermometer.sch&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/gzikp4a6f6" linkindex="300" target="_blank"&gt;thermometer.brd&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The program for the micros is written with &lt;a href="http://www.mcselec.com/" linkindex="301" target="_blank"&gt;BASCOM-AVR&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;b&gt;The files for ATtiny2313:&lt;/b&gt;&lt;br /&gt;
&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/239qmepg2g" linkindex="302" target="_blank"&gt;thermotiny.hex&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/bxl15ccoc4" linkindex="303" target="_blank"&gt;thermotiny.bas&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;b&gt;The files for AT90S2313:&lt;/b&gt;&lt;br /&gt;
&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/u8fdrtsu24" linkindex="304" target="_blank"&gt;thermo.hex&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/cigj43xs1i" linkindex="305" target="_blank"&gt;thermo.bas&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;hr align="left" size="2" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;If you are going to use ATtiny2313 you can omit the 4MHZ crystal and the two ceramic capacitors C2 and C3, using the internal oscillator tuned at 4MHZ. You have to omit the two resistors R12 and R13 as well.&lt;br /&gt;
The appropriate fuses for ATtiny2313 must be programed by you because the micro is shipped with internal oscillator tuned at 1MHZ by default.&lt;br /&gt;
Go to &lt;a href="http://www.engbedded.com/fusecalc/" linkindex="306" target="_blank"&gt;AVR Fuse Calculator&lt;/a&gt;, set the appropriate micro and select the settings in the menus (see the photos, click for larger view).&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;For internal oscillator set:&lt;br /&gt;
&lt;a href="http://dselec.wordpress.com/files/2009/08/intosc.png" linkindex="307" target="_blank"&gt;&lt;img alt="IntOsc" class="alignnone size-medium wp-image-512" height="273" src="http://dselec.wordpress.com/files/2009/08/intosc.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;For external oscillator set:&lt;br /&gt;
&lt;a href="http://dselec.wordpress.com/files/2009/08/extosc.png" linkindex="308" target="_blank"&gt;&lt;img alt="ExtOsc" class="alignnone size-medium wp-image-511" height="273" src="http://dselec.wordpress.com/files/2009/08/extosc.png?w=300" title="Click for larger view" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;You can program the micro on board using then 6-pin header JP1. if you use the STK500 remember to remove the VTARGET jumper or the STK500 maybe damaged.&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;For questions or comment mail to: &lt;a href="mailto:dselecdim@gmail.com?subject=Questions%20Comments"&gt;dselecdim at gmail dot com&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8169291790587569450-4519533232230051123?l=dimavrprojects.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/GIdJ?a=cRNKZMsmVsg:_aIEF5Mvw0w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/GIdJ?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/GIdJ/~4/cRNKZMsmVsg" height="1" width="1"/&gt;</description><link>http://dimavrprojects.blogspot.com/2009/12/thermometer-thermostat.html</link><author>noreply@blogger.com (dim)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8169291790587569450.post-6335760887151923944</guid><pubDate>Tue, 08 Dec 2009 21:08:00 +0000</pubDate><atom:updated>2009-12-08T23:11:02.576+02:00</atom:updated><title>RGB Pattern Generator (PAL B/G)</title><description>&lt;table align="center" border="0" cellpadding="0" cellspacing="0" style="color: black; font-family: arial,helvetica,sans-serif; font-size: 14px; margin-bottom: 20px; margin-top: 20px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/bars.jpg" linkindex="85" target="_blank"&gt;&lt;img alt="BARS" class="alignnone size-thumbnail wp-image-474" height="112" src="http://dselec.wordpress.com/files/2009/08/bars.jpg?w=150" title="BARS" width="150" /&gt;&lt;/a&gt; &lt;a href="http://dselec.wordpress.com/files/2009/08/pal-red.jpg" linkindex="86" target="_blank"&gt;&lt;img alt="PAL red" class="alignnone size-thumbnail wp-image-479" height="112" src="http://dselec.wordpress.com/files/2009/08/pal-red.jpg?w=150" title="PAL red" width="150" /&gt;&lt;/a&gt; &lt;a href="http://dselec.wordpress.com/files/2009/08/crosshatch.jpg" linkindex="87" target="_blank"&gt;&lt;img alt="CROSSHATCH" class="alignnone size-thumbnail wp-image-476" height="112" src="http://dselec.wordpress.com/files/2009/08/crosshatch.jpg?w=150" title="CROSSHATCH" width="150" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/pal-blue.jpg" linkindex="88" target="_blank"&gt;&lt;img alt="PAL BLUE" class="alignnone size-thumbnail wp-image-478" height="112" src="http://dselec.wordpress.com/files/2009/08/pal-blue.jpg?w=150" title="PAL BLUE" width="150" /&gt;&lt;/a&gt; &lt;a href="http://dselec.wordpress.com/files/2009/08/dots.jpg" linkindex="89" target="_blank"&gt;&lt;img alt="dots" class="alignnone size-thumbnail wp-image-477" height="112" src="http://dselec.wordpress.com/files/2009/08/dots.jpg?w=150" title="dots" width="150" /&gt;&lt;/a&gt; &lt;a href="http://dselec.wordpress.com/files/2009/08/cross.jpg" linkindex="90" target="_blank"&gt;&lt;img alt="cross" class="alignnone size-thumbnail wp-image-475" height="112" src="http://dselec.wordpress.com/files/2009/08/cross.jpg?w=150" title="cross" width="150" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;This is a pattern generator with 13 images and 1KHZ tone, good for testing LCD TV's, projectors and cathode ray tube TV's.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;The project is based on &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/doc2543.pdf" linkindex="91" target="_blank"&gt;ATtiny2313&lt;/a&gt; running at 20MHZ. The horizontal frequency is 15625HZ and the vertical frequency is 50HZ (Europe standard).&lt;br /&gt;
With the button &lt;b&gt;S1&lt;/b&gt; you can select the images one by one and with the button &lt;b&gt;S2&lt;/b&gt; you can turn the sound on and off (see the pictures below).&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;b&gt;This is the schematic:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/generator-sch.png" linkindex="91" target="_blank"&gt;&lt;img alt="Schematic" class="alignnone size-medium wp-image-541" height="205" src="http://dselec.wordpress.com/files/2009/09/generator-sch.png?w=300" title="Schematic" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;br /&gt;
&lt;b&gt;And this is the PCB and silkscreen:&lt;/b&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/generator-brd.png" linkindex="92" target="_blank"&gt;&lt;img alt="Board" class="alignnone size-medium wp-image-540" height="300" src="http://dselec.wordpress.com/files/2009/09/generator-brd.png?w=279" title="Board" width="279" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a href="http://dselec.wordpress.com/files/2009/09/generator-silk.png" linkindex="93" target="_blank"&gt;&lt;img alt="Silkscreen" class="alignnone size-medium wp-image-542" height="300" src="http://dselec.wordpress.com/files/2009/09/generator-silk.png?w=280" title="Silkscreen" width="280" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a href="http://dselec.wordpress.com/files/2009/09/generator-silk1.png" linkindex="94" target="_blank"&gt;&lt;img alt="generator-silkscreen1" class="alignnone size-medium wp-image-543" height="300" src="http://dselec.wordpress.com/files/2009/09/generator-silk1.png?w=280" title="generator-silkscreen1" width="280" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;br /&gt;
You can download a pdf file with the schematic and pcb from here:&lt;br /&gt;
&lt;br /&gt;
&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/09/adobe-pdf_32.png" width="22" /&gt; &lt;a href="http://dselec.wordpress.com/files/2009/09/attiny2313-pattern-generator.pdf" linkindex="95" target="_blank"&gt;attiny2313-pattern-generator.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here are the files for &lt;a href="http://www.cadsoft.de/" linkindex="95" target="_blank"&gt;Cadsoft's&lt;/a&gt; eagle design program:&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/6gge58ydn4" linkindex="96" target="_blank"&gt;ATtiny2313 pattern generator simple.sch&lt;/a&gt;&lt;br /&gt;
&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/07f2s7tnd9" linkindex="97" target="_blank"&gt;ATtiny2313 pattern generator simple.brd&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The program inside the AVR was made with &lt;a href="http://www.mcselec.com/" linkindex="98" target="_blank"&gt;BASCOM-AVR&lt;/a&gt;. With the trial version provided you can make modifications in the program if you want to.&lt;br /&gt;
Here are the source code and hex file:&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/0hzz06xr64" linkindex="99" target="_blank"&gt;ATtiny2313 pattern generator simple.bas&lt;/a&gt;&lt;br /&gt;
&lt;img align="top" alt="" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" width="22" /&gt; &lt;a href="http://www.box.net/shared/perjl79lh6" linkindex="100" target="_blank"&gt;ATtiny2313 pattern generator simple.hex&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;The ATtiny2313 is shipped with internal oscillator activated by default, so you have to program the appropriate fuses yourself. Goto &lt;a href="http://www.engbedded.com/fusecalc" linkindex="101" target="_blank"&gt;Engbedded AVR Fuse Calculator&lt;/a&gt; site, select the appropriate microcontroller and set the settings as you see in the picture below. The program will calculate the appropriate fuses settings. Put them in your programmer and program the chip.&lt;br /&gt;
&lt;br /&gt;
This is the picture of the settings (click for larger view):&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/09/generator-fuses.png" linkindex="102"&gt;&lt;img alt="generator-fuses" class="alignnone size-medium wp-image-590" height="286" src="http://dselec.wordpress.com/files/2009/09/generator-fuses.png?w=300" title="generator-fuses" width="300" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;div align="center" style="color: red; font-size: 20px; font-weight: bolder;"&gt;&lt;br /&gt;
Important!&lt;br /&gt;
&lt;/div&gt;&lt;div align="center"&gt;A bug found in the placement of transistor T1 in PCB.&lt;br /&gt;
The correct is the reverse of the drawing in silkscreen. The schematic it's ok.&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="center" valign="middle"&gt;For any questions submit a comment or mail me to: &lt;a href="mailto:dselecdim@gmail.com?subject=Questions%2C%20Comments"&gt;dselecdim at gmail dot com&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8169291790587569450-6335760887151923944?l=dimavrprojects.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/GIdJ?a=9QTpNRznc7o:BuV-GWMUJBI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/GIdJ?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/GIdJ/~4/9QTpNRznc7o" height="1" width="1"/&gt;</description><link>http://dimavrprojects.blogspot.com/2009/12/rgb-pattern-generator-pal-bg.html</link><author>noreply@blogger.com (dim)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8169291790587569450.post-6274135819041214542</guid><pubDate>Tue, 08 Dec 2009 15:50:00 +0000</pubDate><atom:updated>2009-12-08T23:08:20.136+02:00</atom:updated><title>Pcb countdown timer</title><description>&lt;table align="center" border="0" cellpadding="0" cellspacing="0" style="font-family: arial,helvetica,sans-serif; font-size: 14px;"&gt;&lt;tbody&gt;
&lt;tr align="left" valign="middle"&gt;&lt;td align="center" nowrap="nowrap" valign="middle"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/timer004.jpg" linkindex="48" target="_blank"&gt;&lt;img alt="timer004" class="alignnone size-thumbnail wp-image-44" height="111" src="http://dselec.wordpress.com/files/2009/08/timer004.jpg?w=150" title="timer004" width="150" /&gt;&lt;/a&gt;    &lt;a href="http://dselec.wordpress.com/files/2009/08/timer003.jpg" linkindex="49" target="_blank"&gt;&lt;img alt="timer003" class="alignnone size-thumbnail wp-image-43" height="127" src="http://dselec.wordpress.com/files/2009/08/timer003.jpg?w=150" title="timer003" width="150" /&gt;&lt;/a&gt;    &lt;a href="http://dselec.wordpress.com/files/2009/08/timer002.jpg" linkindex="50" target="_blank"&gt;&lt;img alt="timer002" class="alignnone size-thumbnail wp-image-42" height="127" src="http://dselec.wordpress.com/files/2009/08/timer002.jpg?w=150" title="timer002" width="150" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="justify" valign="middle"&gt;This is a countdown counter based on &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/doc2543.pdf" linkindex="51" target="_blank"&gt;ATtiny2313&lt;/a&gt;, primary developed for my PCB exposure box, but it can be used for other purposes too.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;The counting range is between 1 and 90 minutes and it can be adjusted with up or down buttons (high and low in the pictures).&lt;br /&gt;
After the desired time is set, the countdown starts by pressing the start/stop button (on/off in the pictures). By pressing the same button we can interrupt the counting at any time we want.&lt;br /&gt;
After the count expires we hear a beeping sound and the load is disconnected. By pressing start/stop button we reset the counter and we are ready for another lap. All actions included the time remaining are shown in the LCD display.&lt;br /&gt;
The schematic is shown here:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/pcb-timer-sch.png" linkindex="51" target="_blank"&gt;&lt;img alt="PCB timer sch" class="aligncenter size-full wp-image-332" height="330" src="http://dselec.wordpress.com/files/2009/08/pcb-timer-sch.png" title="PCB timer sch" width="480" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
And the PCB:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/pcb-timer-brd.png" linkindex="52" target="_blank"&gt;&lt;img alt="PCB timer brd" class="aligncenter size-full wp-image-334" height="822" src="http://dselec.wordpress.com/files/2009/08/pcb-timer-brd.png" title="PCB timer brd" width="480" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/pcb-timer-silk.png" linkindex="53" target="_blank"&gt;&lt;img alt="PCB timer silk" class="aligncenter size-full wp-image-335" height="822" src="http://dselec.wordpress.com/files/2009/08/pcb-timer-silk.png" title="PCB timer silk" width="480" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/pcb-timer-silk1.png" linkindex="54" target="_blank"&gt;&lt;img alt="PCB timer silk1" class="aligncenter size-full wp-image-336" height="822" src="http://dselec.wordpress.com/files/2009/08/pcb-timer-silk1.png" title="PCB timer silk1" width="480" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;Click on the images to get larger view.&lt;br /&gt;
The timer was originally build using the AT90S2313 but is obsolete now. Anyway the ATtiny2313 and AT90S2313 are pin to pin compatible and you can use it if you have it.&lt;br /&gt;
The code for the micro was developed using &lt;a href="http://www.mcselec.com/" linkindex="55" target="_blank"&gt;BASCOM-AVR&lt;/a&gt;. Download the source code and the hex file from here:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;Source code: &lt;img align="top" alt="Download" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" title="Download" width="22" /&gt; &lt;a href="http://www.box.net/shared/n2ameb2466" linkindex="56" target="_blank"&gt;timer16LCD.bas&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: center;"&gt;HEX file: &lt;img align="top" alt="Download" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" title="Download" width="22" /&gt; &lt;a href="http://www.box.net/shared/2rc2sc55yk" linkindex="57" target="_blank"&gt;timer16lcd.hex&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;The schematic and pcb was made with &lt;a href="http://www.cadsoft.de/" linkindex="58" target="_blank"&gt;Cadsoft's&lt;/a&gt; eagle. Download the .sch and .brd files from here:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;.sch file: &lt;img align="top" alt="Download" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" title="Download" width="22" /&gt; &lt;a href="http://www.box.net/shared/gzpfnk4ik4" linkindex="59" target="_blank"&gt;countdown timer.sch&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: center;"&gt;.brd file: &lt;img align="top" alt="Download" height="22" src="http://dselec.wordpress.com/files/2009/08/1250769432_install.png" title="Download" width="22" /&gt; &lt;a href="http://www.box.net/shared/425auyjvz5" linkindex="60" target="_blank"&gt;countdown timer.brd&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;You can program the ATtiny2313 on board by using the 6-pin header which is compatible with the 6-pin header of STK-500. If you use STK-500 to program the micro you have to remove the VTARGET jumper first or the STK-500 will be damaged. The ATtiny2313 is shipped with internal oscillator selected by default, so you have to program the appropriate fuses by yourself. Use the on-line &lt;a href="http://www.engbedded.com/fusecalc/" linkindex="61" target="_blank"&gt;AVR Fuse Calculator&lt;/a&gt; and set the settings for the fuses (see the photo, click to get a larger view).&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;a href="http://dselec.wordpress.com/files/2009/08/fuses.png" linkindex="62" target="_blank"&gt;&lt;img alt="fuses" class="aligncenter size-full wp-image-387" height="440" src="http://dselec.wordpress.com/files/2009/08/fuses.png" title="fuses" width="480" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;if you have any questions submit a comment or send e-mail: &lt;a href="mailto:dseledim@gmail.com?subject=Questions"&gt;dselecdim at gmail dot com&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8169291790587569450-6274135819041214542?l=dimavrprojects.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/GIdJ?a=GaCdNxapuOs:2LF4Zwo0qmE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/GIdJ?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/GIdJ/~4/GaCdNxapuOs" height="1" width="1"/&gt;</description><link>http://dimavrprojects.blogspot.com/2009/12/pcb-countdown-timer.html</link><author>noreply@blogger.com (dim)</author></item></channel></rss>

