tag:blogger.com,1999:blog-10810013557482888752024-02-20T23:21:10.659+02:00Arduino and ATtiny85 projectsArduino Projects using Attiny85, LCD screens, sensors, shields and many other.Unknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1081001355748288875.post-37690854956281728952014-06-20T18:00:00.000+03:002014-06-20T18:03:22.889+03:00Starter Electronics Kit<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCOtyOms661dFWwAaqxFfJEDLv0dfGNqw0wdOOxadtjL8artoGa61p49Um3wPjOspvYCojHFhKv4nLkuWAtu_8ew8I7fhbjV5lpRERBY9nDYaD_eFZBN5b9FM2qIU7hiSiGDi2z4mHIWsM/s1600/cover2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCOtyOms661dFWwAaqxFfJEDLv0dfGNqw0wdOOxadtjL8artoGa61p49Um3wPjOspvYCojHFhKv4nLkuWAtu_8ew8I7fhbjV5lpRERBY9nDYaD_eFZBN5b9FM2qIU7hiSiGDi2z4mHIWsM/s1600/cover2.jpg" height="320" width="316" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQ4ux2SAltHFA82zENn_7aoCkPYwbVoUwgZmUQ7Sk3h3eTtJePU-Af44AEhSHZ6bGkAqa3r6IFXNyhZHAKneQo4DGgYYAeZi0LW3jq-AWlRyxOHVJg8XgAuufo2Iobf7X9YQmYbVs3yzS/s1600/bat_holders.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQ4ux2SAltHFA82zENn_7aoCkPYwbVoUwgZmUQ7Sk3h3eTtJePU-Af44AEhSHZ6bGkAqa3r6IFXNyhZHAKneQo4DGgYYAeZi0LW3jq-AWlRyxOHVJg8XgAuufo2Iobf7X9YQmYbVs3yzS/s1600/bat_holders.jpg" height="213" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbZK1zLQA19OXePDtd-LlMs6L7lGCgCD_QMINuWRoUqUEhK53dgmBHM0QGyztdZDihEW1LGMOKNTLgzmuppIDl6em8F-5W5w8QRwUXThYJUEPIts_28FbPa8QB7QpmHLEdQQpno6lBi0aX/s1600/big.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbZK1zLQA19OXePDtd-LlMs6L7lGCgCD_QMINuWRoUqUEhK53dgmBHM0QGyztdZDihEW1LGMOKNTLgzmuppIDl6em8F-5W5w8QRwUXThYJUEPIts_28FbPa8QB7QpmHLEdQQpno6lBi0aX/s1600/big.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTU1oT2167xexa_qsvj98TG3njzooqlRVwcQ9YCvKKLb9f0Gh5qE6qe6wgMiMXnIhkmnYsc41XNuiBeVSk6gWpY0NjbLMn7HMBMepDe-U-qEs9P4Ym3D6LV3hhdL-sBIsVXZpWawsJwhPn/s1600/book1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTU1oT2167xexa_qsvj98TG3njzooqlRVwcQ9YCvKKLb9f0Gh5qE6qe6wgMiMXnIhkmnYsc41XNuiBeVSk6gWpY0NjbLMn7HMBMepDe-U-qEs9P4Ym3D6LV3hhdL-sBIsVXZpWawsJwhPn/s1600/book1.jpg" height="320" width="269" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK1HPjoiGp6TSrjHEwFYBF7PX7Gj1C7hnwrOfP3l8WOePKPMhyphenhyphenoAI3xHD3AjXSmsI__4dvuDiQ74EYahZgpM4paZn6xN3LMtJnA27rqzXLwGydV_0c148YJdVAi-LnxUYsubRzVjKfo09l/s1600/book2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK1HPjoiGp6TSrjHEwFYBF7PX7Gj1C7hnwrOfP3l8WOePKPMhyphenhyphenoAI3xHD3AjXSmsI__4dvuDiQ74EYahZgpM4paZn6xN3LMtJnA27rqzXLwGydV_0c148YJdVAi-LnxUYsubRzVjKfo09l/s1600/book2.jpg" height="221" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr8PhQx-wO_797qZhS0PkBQ3-8SNylLjhdSDNHnH0PoWiYZZsgsUmGdjny0A07sDwfozrm0mbfMH9BZODBIGDbERWsEfQq_wA9-MtgdEp8CRmJVli3g-7PRc2dx7VFj6A6vuXzO0ijcWRT/s1600/book3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr8PhQx-wO_797qZhS0PkBQ3-8SNylLjhdSDNHnH0PoWiYZZsgsUmGdjny0A07sDwfozrm0mbfMH9BZODBIGDbERWsEfQq_wA9-MtgdEp8CRmJVli3g-7PRc2dx7VFj6A6vuXzO0ijcWRT/s1600/book3.jpg" height="320" width="306" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJx8KKi5jO-U2FZkvlczDMuncqxkBrfO4pxDixIjvVAjmdurvBnhwoxtApe1XUWnHYY0OiKtWHDzeQM2ZZ6jkh890ide4lHpjvbN7FR9TySAIIn_c5Ajw1YwHKuf2Jsu8x3g-1DEZQ3ypN/s1600/breadboard.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJx8KKi5jO-U2FZkvlczDMuncqxkBrfO4pxDixIjvVAjmdurvBnhwoxtApe1XUWnHYY0OiKtWHDzeQM2ZZ6jkh890ide4lHpjvbN7FR9TySAIIn_c5Ajw1YwHKuf2Jsu8x3g-1DEZQ3ypN/s1600/breadboard.jpg" height="192" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipPdb7Qbau28SfT8PFALDuWMOFYGN4FtASr0XG5FJzb0DloTDUeZTMLyel_UDQbcr_CGSrDkzlFX9hoXPhj_sVSNwu0fEccwQivxgvmKN31QbpaHhVCDy7tF10z2XE8RvOLvR0vC1EZtZz/s1600/jumpers.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipPdb7Qbau28SfT8PFALDuWMOFYGN4FtASr0XG5FJzb0DloTDUeZTMLyel_UDQbcr_CGSrDkzlFX9hoXPhj_sVSNwu0fEccwQivxgvmKN31QbpaHhVCDy7tF10z2XE8RvOLvR0vC1EZtZz/s1600/jumpers.jpg" height="161" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPabeLejwmBXp26pBIIjZu27Pzp9VYcLC-ZTKQY8wkx1wwNSi2OLcwTOU9iBn5pDEjAag1qV4o7zN_SWeWlip3n13sR999UfZ5h-bxsB3T5GfQqBF9czQ1QU92Ly4rw571RF3jVmCsYpMz/s1600/pack.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPabeLejwmBXp26pBIIjZu27Pzp9VYcLC-ZTKQY8wkx1wwNSi2OLcwTOU9iBn5pDEjAag1qV4o7zN_SWeWlip3n13sR999UfZ5h-bxsB3T5GfQqBF9czQ1QU92Ly4rw571RF3jVmCsYpMz/s1600/pack.jpg" height="239" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2W-d0G2UnQhei1FpvKkb4MvmlRPJEzra0fPXnwvSyQKQqlLGhA8KP5eKegrpg2drdk0hG-0tEw5queepBee68OcMczRJ0nhaxaD-FttVqv9A3vf3NV1QI7k8lNbMTv8qf0oaa_u7t6hEr/s1600/psd_flasher.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2W-d0G2UnQhei1FpvKkb4MvmlRPJEzra0fPXnwvSyQKQqlLGhA8KP5eKegrpg2drdk0hG-0tEw5queepBee68OcMczRJ0nhaxaD-FttVqv9A3vf3NV1QI7k8lNbMTv8qf0oaa_u7t6hEr/s1600/psd_flasher.jpg" height="192" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtKezgZfVXfk7i9pLW5sE89TlY-D4BXfLwo48-HIuO6aPLDUl2O6acGbR_QwzIsmbECm3jfwiEgmzF-kGbLKA5rYvJLWFR-BnM0to-Sq2pyX_nAQUVLugoJMpVOr2ZzTSODXg3hyRBExBo/s1600/psd_leds.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtKezgZfVXfk7i9pLW5sE89TlY-D4BXfLwo48-HIuO6aPLDUl2O6acGbR_QwzIsmbECm3jfwiEgmzF-kGbLKA5rYvJLWFR-BnM0to-Sq2pyX_nAQUVLugoJMpVOr2ZzTSODXg3hyRBExBo/s1600/psd_leds.jpg" height="264" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3TWn9CrQHsjlkwddVo0MbnbjDlokzyugRW23GnzgdMIVdmuxOvl0JNBW9Gpk8p9CuHnFm2Y-WFMFWDeeWMgbSrGAyWknOdxrZyg0VvthvWC-wFoumV44_vBOvSsUUmNDs8-v6zNK4bKJo/s1600/psd_resistors.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3TWn9CrQHsjlkwddVo0MbnbjDlokzyugRW23GnzgdMIVdmuxOvl0JNBW9Gpk8p9CuHnFm2Y-WFMFWDeeWMgbSrGAyWknOdxrZyg0VvthvWC-wFoumV44_vBOvSsUUmNDs8-v6zNK4bKJo/s1600/psd_resistors.jpg" height="249" width="320" /></a></div>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1081001355748288875.post-91124113084474158012013-11-25T18:03:00.002+02:002014-06-20T16:31:00.087+03:00NEW ATtinyShield 4.1NEW board is out.<br />
Attinyshield 4.1 with new factory manufactured PCB.<br />
Check it out :<br />
<div style="text-align: center;">
<span style="color: red; font-size: x-large;"><a href="http://www.ebay.com/itm/221324819158"><b>www.ebay.com/itm/221324819158</b></a></span></div>
<h2 style="text-align: center;">
<span style="color: red;"><b> <div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix6dFlErDvE8uHmQjFFB09szaThmsVcyzJvuJcK7qfxGbn5oEAW5T0mkzXAGCnxjrftb4YKYFZYA0XJ1e0Cs0l-l3w7abdKo984tfL1jypXjBEuB9HykQemgRcVpgc7kVJLQqgyEBcGRHf/s1600/cover.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix6dFlErDvE8uHmQjFFB09szaThmsVcyzJvuJcK7qfxGbn5oEAW5T0mkzXAGCnxjrftb4YKYFZYA0XJ1e0Cs0l-l3w7abdKo984tfL1jypXjBEuB9HykQemgRcVpgc7kVJLQqgyEBcGRHf/s1600/cover.jpg" height="346" width="400" /></a></div>
</b></span></h2>
<h2 style="text-align: center;">
<span style="color: red;"><b> </b></span></h2>
<h2 style="text-align: center;">
<span style="color: red;"><b>SOON WITH MORE INFO IN THE BLOG </b></span></h2>
Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-1081001355748288875.post-72892080904916803022013-09-30T23:29:00.003+03:002013-11-25T18:06:08.685+02:00ATtinyShield Structure Diagram<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">ATTINYSHIELD STRUCTURE…</span></b></div>
<br />
After a large capacity of orders of the <b>ATtinyShield </b>and the great feedback I've had for some time, I wanted to explain the full specs of the shield. <b>Simple </b>yet <b>powefull</b>, <b>small </b>yet <b>sufficient</b>...<br />
<br />
So here it is... an <b>explaination digramm </b>about the <b>structure of the ATtinyShield</b>.<br />
<br />
<div style="text-align: center;">
<a href="http://imageshack.us/a/img14/6789/buzg.jpg" target="_blank"><img alt="http://img14.imageshack.us/img14/6789/buzg.jpg" height="322" src="http://img14.imageshack.us/img14/6789/buzg.jpg" width="400" /> </a><br />
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">ATTINYSHIELD on EBAY…</span></b></div>
<br />
Check my Ebay listing with over <b>1500 </b>views and <b>100 </b>board sold for only <b>9.90$.</b><br />
<br />
<div style="text-align: center;">
<a href="http://www.ebay.com/itm/221324819158"><img alt="http://imageshack.us/a/img5/1496/a411.jpg" height="279" src="http://imageshack.us/a/img5/1496/a411.jpg" width="320" /></a> </div>
<div style="text-align: center;">
<a href="http://www.ebay.com/itm/221324819158"><span style="color: #cc0000;"><span style="font-size: x-large;"><b>http://www.ebay.com/itm/221324819158</b></span></span></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
<b>Thanks a lot for all your support.</b></div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-1081001355748288875.post-85026225286811185002013-05-29T16:09:00.000+03:002013-05-31T12:43:53.616+03:00ATtinyShield: Video of Programming ATtiny85 using Arduino<div class="MsoNormal" style="text-align: justify;">
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">INTRO…</span></b></div>
<br />
The whole <b>programming procedure </b>of transfering a sketch from <b>Arduino </b>to an <b>ATtiny85</b>, can be shown here on a short <b>video </b>I made.<br />
The <b>full guide </b>with all the nessecary steps can be found in my previous <b><a href="http://attiny85.blogspot.gr/2013/05/ssss.html">post</a></b>.<br />
<br />
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">VIDEO…</span></b></div>
<br />
<div style="text-align: center;">
Comming soon...<br />
<br />
<a name='more'></a> <br /></div>
</div>
<div class="MsoNormal" style="text-align: justify;">
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">GET YOUR OWN SHIELD…</span></b></div>
<h3>
<span style="color: #cc0000; font-size: medium;"><b><span lang="EN-US" style="mso-ansi-language: EN-US;"><br /><span style="font-size: large;">If you want to buy this shield check, my EBay listing:</span></span></b></span></h3>
<div style="text-align: center;">
<span style="font-size: large;"><a href="http://www.ebay.com/itm/221228068820"><b>http://www.ebay.com/itm/221228068820</b></a></span></div>
<span style="font-size: small;"><b><span style="color: #38761d;"><span lang="EN-US" style="mso-ansi-language: EN-US;">You will get:</span></span></b></span><br />
<ul><span style="font-size: small;"><b><span style="color: #38761d;"> </span> </b>
</span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">The shield with printed and
already etched PCB with color silkscreen on it, and of course the
components soldered on it. It will be fully functionable ready to
program. </span></b></span></li>
<span style="font-size: small;">
<b> <span style="color: #38761d;"> </span> </b>
</span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">An Attiny85 20PU chip for your first experiments. </span></b></span></li>
<span style="font-size: small;">
<b> <span style="color: #38761d;"> </span> </b>
</span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">A detailed printed (and pdf) guide (in color) for the connections and the whole programming procedure.</span></b></span></li>
<span style="font-size: small;">
</span>
<li><span style="font-size: small;"><b><span style="color: #38761d;"><b><span style="color: #38761d;"><b><span style="color: #38761d;">The
RGB-Tiny board, a small PCB with RGB Led, controlled by an ATtiny85
for your first experiments. With code provided you will be able to fade
the Led to all colours or any other programming you want. </span></b></span></b></span></b></span></li>
</ul>
</div>
Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-1081001355748288875.post-69736329454510238792013-05-24T10:54:00.000+03:002013-09-21T02:54:49.953+03:00Attiny_LCD_595 Board: LCD controlled by ATtiny85… stand-alone<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">INTRO...</span></b></div>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span><br />
<div style="text-align: justify;">
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span><b>LCD</b>’s are projects most common <b>output </b>method. We can display any <b>sensor’s value</b>, print <b>information alerts </b>on screen, or even <b>scroll big messages</b>.<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7rj1wgyKCxi7nxV3yTLE9LEeq3ZRfuoRXMWr_pVhS9rjGxAtA6XpBRPZlVwnIQKf7MKg-5dj7ZZ_GtUDx8fqKUTRljjLm0bXds_VyqAxsd867SNTwMLnFFdzoqc_rpAL4jEb4WITwHOc/s1600/lcd162b-yhy.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7rj1wgyKCxi7nxV3yTLE9LEeq3ZRfuoRXMWr_pVhS9rjGxAtA6XpBRPZlVwnIQKf7MKg-5dj7ZZ_GtUDx8fqKUTRljjLm0bXds_VyqAxsd867SNTwMLnFFdzoqc_rpAL4jEb4WITwHOc/s200/lcd162b-yhy.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">LCD screen using the<br />
Hitachi HD44780 LCD controller</td></tr>
</tbody></table>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Also, a screen for setting up parameters, or generally having a visual of your project status, is always useful.<br />
<a name='more'></a><br /></div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">CONNECTING THE ATTINY WITH LCD...</span></b></div>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span><br />
<div style="text-align: right;">
</div>
<div style="text-align: justify;">
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDNDBdC7J6Xq33PvTDgs1nLR2ibelWArIXahaluQ_n7MyxRG4NiWN5otbiYdSQKiwHpXYctpZDynVPAC-CLXd5F-U1JwM8fp9CmI67wXnuVdF2LQfkkaiQPpX5ZzA-QQ6ndezZh4X-3wIr/s1600/75.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDNDBdC7J6Xq33PvTDgs1nLR2ibelWArIXahaluQ_n7MyxRG4NiWN5otbiYdSQKiwHpXYctpZDynVPAC-CLXd5F-U1JwM8fp9CmI67wXnuVdF2LQfkkaiQPpX5ZzA-QQ6ndezZh4X-3wIr/s200/75.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The 595 Shift Register</td></tr>
</tbody></table>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3F0u7RP2zHhJSOFp_3Y4AFUdYFcdYA66heE236RTd4W1gBoZxd-Iy2u1mHqHlqrO3XcwUIKAifGs3g8gNhuGLdp6xJIpig-8rcS1tQkKscgtC5ZX8gTx6BsoO-HJ4ww06fBp6PN3GR33E/s1600/595_pin_diagram.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3F0u7RP2zHhJSOFp_3Y4AFUdYFcdYA66heE236RTd4W1gBoZxd-Iy2u1mHqHlqrO3XcwUIKAifGs3g8gNhuGLdp6xJIpig-8rcS1tQkKscgtC5ZX8gTx6BsoO-HJ4ww06fBp6PN3GR33E/s200/595_pin_diagram.png" width="186" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">595's Pin-out</td></tr>
</tbody></table>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>It’s easy to connect an <b>LCD screen </b>with an <b>Arduino</b>, despite the many cables needed. The problem is when you need to <b>shrink </b>your project using the <b>ATtiny85</b>. Because of the ATtiny’s limited outputs, we cannot connect it directly to an LCD screen. But like everything else, a solution can be found online.<br />
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>A <b>595 Shift Register </b>chip is used and the connections are reduced only to <b>three</b>. So by using ATtiny’s <b>pins 0, 1 and 2 </b>through the <b>595, </b>we control the data passed on the <b>LCD </b>screen.<br />
<i> </i></div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">THE BOARD…</span></b></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
</div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBaNL6dj-tenql0dxy5J8TIc8l58WboqHornl-Ie8n-yqmg_rhxZQ8GaPMKPYPJRjn3aYOl6c9cNYBopVVHAnZB9Y4x-AW2jc73HT7ra2MA53frEtGQ3zwZt04NDtSNlu7T9CHiLvyvosZ/s1600/1.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="119" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBaNL6dj-tenql0dxy5J8TIc8l58WboqHornl-Ie8n-yqmg_rhxZQ8GaPMKPYPJRjn3aYOl6c9cNYBopVVHAnZB9Y4x-AW2jc73HT7ra2MA53frEtGQ3zwZt04NDtSNlu7T9CHiLvyvosZ/s200/1.JPG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The ATtiny_LCD_595 board with an LCD</td></tr>
</tbody></table>
All <b>connections </b>are found on this little board.<br />
<ul>
<li>There is a <b>16-pin Socket </b>for the <b>LCD</b>, a <b>14-pin Dip Socket </b>for the <b>595 Shift Register </b>and finally an <b>8-pin Dip Socket</b> for the <b>ATtiny85</b>.</li>
<li>A <b>potentiometer</b> helps the <b>adjustment </b>of screen’s <b>brightness.</b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span></li>
<li><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">There is also a </span><b>rubber support </b>for the LCD screen on board<b>.</b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span></li>
<li><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">The </span>whole board is being powered by a <b>5 Volts</b> supply.</li>
</ul>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>With all these fitted on the board, the project can be easily fitted in a small box and furthermore create a <b>stand-alone display.</b><br />
<b> </b><br />
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">THE SOFTWARE…</span></b></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<br />
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>The <b>programming </b>of the ATtiny85 can be made easily using the <b>ATtinyShield </b>and by calling the <b>595 modified LCD Library</b>. Also when the LCD’s pins are defined, must be set to <b>0, 1 and 2</b>. All these can be seen in this example sketch, which displays a <b>message </b>on the two lines of the LCD screen.</div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<blockquote class="tr_bq">
<span style="color: #38761d;"><span style="font-size: small;"><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> /* ATtiny85 with 74HC595 Shift Register control over LCD with 3 pins<br /> * This requires the use of the LiquidCrystal595 library<br /> * available at: http://code.google.com/p/arduino-lcd-3pin/<br />*/<br /><br />#include <liquidcrystal595 .h=""><liquidcrystal595 .h=""> // include the library<br />LiquidCrystal595 lcd(0,1,2); // datapin, latchpin, clockpin<br /><br />void setup() {<br /> <br /> lcd.begin(16,2); // 16 characters, 2 rows<br /> <br /> lcd.clear();<br /> <br /> // Message for 1st row<br /> lcd.setCursor(0,0);<br /> lcd.print("ATtiny85_LCD_595");<br /> <br /> // Message for 2nd row<br /> lcd.setCursor(0,1);<br /> lcd.print("Board koursaros");<br />}<br /><br />void loop() {<br />}</liquidcrystal595></liquidcrystal595></span></span></span><b><br /></b></blockquote>
<br />
You can find the library needed for the 595 LCD control all over the internet but check here too:<br />
<a href="http://code.google.com/p/arduino-lcd-3pin/downloads/list">http://code.google.com/p/arduino-lcd-3pin/downloads/list </a><br />
<br />
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">GET YOUR OWN BOARD…</span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<h3>
<span style="color: #cc0000; font-size: large;"><b><span lang="EN-US" style="mso-ansi-language: EN-US;"><br />If you want to buy this board check, my EBay listing:</span></b></span></h3>
<div style="text-align: center;">
<a href="http://www.ebay.com/itm/221272143062"><span style="font-size: x-large;"><b>http://www.ebay.com/itm/221272143062</b></span></a></div>
<b><span style="color: #38761d; font-size: small;"><span lang="EN-US" style="mso-ansi-language: EN-US;">You will get:</span></span></b><br />
<ul><b><span style="color: #38761d; font-size: small;"></span></b>
<li><span style="font-family: Verdana;"><b><span style="color: #38761d; font-size: x-small;">The ATtiny_LCD_595 board made with PCB colour printed silkscreen on it, and of
course high quality components soldered.</span></b></span></li>
<li><span style="font-family: Verdana;"><b><span style="font-family: Verdana;"><b><span style="color: #38761d; font-size: x-small;"><span style="color: #ef00fd;">FREE: </span>1 LCD 16x2 Screen with Blue backlight and headers solder on it, ready to be placed on the project board</span></b></span><span style="color: #38761d; font-size: x-small;"></span></b></span><span style="font-family: Verdana;"><b><span style="color: #38761d; font-size: x-small;">.</span></b></span></li>
<li><span style="font-family: Verdana;"><b><span style="font-family: Verdana;"><b><span style="color: #38761d; font-size: x-small;">1 printed book-guide with all the information about the </span></b></span></b></span><span style="font-family: Verdana;"><b><span style="color: #38761d; font-size: x-small;">connection and the programming needed to display a message on screen.</span></b></span><i><br />Be
carefull that you won't get any ATtiny chip. If you want one you must
check my programmable shield for ATtiny85's (link follows)...</i><i><br /></i></li>
</ul>
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">USAGE…</span></b></div>
<i> </i><br />
<b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Step 1. </b>To program the ATtiny85, firstly connect the chip to the ATtinyShield and fit it on the Arduino. Open the Arduino IDE, set the correct parameters and copy the code given before.<br />
<b><b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Step </b>2. </b>For your future sketches you must keep the first lines that configure the LCD – 595 Library. From that point, you can make your own changes that fit your project.<br />
<b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"><b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Step </b></span>3.</b> Remove the ATtiny85 from the ATtinyShield and place it on the ATtiny_LCD_595 board, minding the correct position of the indicator.<br />
<b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"><b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Step </b></span>4. </b>Check the connection of the LCD screen and the 595 Shift Register. Adjust the pot to proper screen brightness.<br />
<b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"><b><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span>Step </b></span>5.</b> Power up the board with 5 Volts. The screen must light up and if the programming was correct, the message should appear.</div>
</div>
</div>
Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-1081001355748288875.post-64260941494766131152013-05-22T10:54:00.001+03:002013-06-29T12:33:40.769+03:00RGB-tiny: RGB Led controlled by ATtiny85<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">INTRO...</span></b></div>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span><br />
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> An <b>RGB Led </b>has two variations. The <b>Common Anode </b>and the <b>Common Cathode</b>. Both of them have <b>4 pins</b>, 3 of them are the three colors <b>Red, Green </b>and <b>Blue </b>and 1 is the common pin.</span> <br />
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguurBy558GMyo3MbI16HCeJMmmje9XKiY5vkaMzoYJyU0xhlCiZB8KuK6_unnszZgNYt8eXfC-hM9oDD-jeWOBEuykL8C4s8B8xygr2ZF7uksXXGxJR7Ign_XBHBuQNn7ETy4IyFXDtC3J/s1600/8mmrgb.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguurBy558GMyo3MbI16HCeJMmmje9XKiY5vkaMzoYJyU0xhlCiZB8KuK6_unnszZgNYt8eXfC-hM9oDD-jeWOBEuykL8C4s8B8xygr2ZF7uksXXGxJR7Ign_XBHBuQNn7ETy4IyFXDtC3J/s200/8mmrgb.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Typical 4 pins RGB Led</td></tr>
</tbody></table>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6KiaJGkjEN4cr9V6vEYKXYyCv3Zgm8SBdohvMqhefsS_FBTcOPuSKVZmSsFKFBOElQDa5PmWmnLFQ8dDwU5uUp6qu8j4QUNoqk38tZEaDZ8nDJqgZ_Y-KQXVVpeqzJZVhG9jWB2bXfGGw/s1600/rgb.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img alt="" border="0" height="93" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6KiaJGkjEN4cr9V6vEYKXYyCv3Zgm8SBdohvMqhefsS_FBTcOPuSKVZmSsFKFBOElQDa5PmWmnLFQ8dDwU5uUp6qu8j4QUNoqk38tZEaDZ8nDJqgZ_Y-KQXVVpeqzJZVhG9jWB2bXfGGw/s200/rgb.jpg" title="" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">RGB Pin-Out Schematic</td></tr>
</tbody></table>
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"> </span></span></span><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">As shown in the pin-out diagram of the Common Anode (CA) RGB Led, <b>Vcc </b>input goes to <b>pin 1 </b>and the rest are: <b>Red-2</b>, <b>Green-3 </b>and <b>Blue-4</b>. When these three goes <b>LOW</b>, the colors lights up. With the proper combinations we can simulate all the colors on the RGB scale. Furthermore by using the <b>PWM </b>function of <b>Arduino </b>we can adjust the level of each color and create a <b>fading sequence</b>.</span><br />
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span><br />
<a name='more'></a></div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">USING THE ATTINY85...</span></b></div>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span><br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkml4bvFYN9A0oCeUHu5Y7jpUOuaa5QKcPQMPaLGm3C3PfXpfPQnmU_L59SFA5deUyYCV19czMY4JGQ3i3nB-9DBJ_-ft9WqyyWzUl2battEGf3OG1fUNek8jhcW2X0OD8gGaibd2ImDgp/s1600/3.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="128" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkml4bvFYN9A0oCeUHu5Y7jpUOuaa5QKcPQMPaLGm3C3PfXpfPQnmU_L59SFA5deUyYCV19czMY4JGQ3i3nB-9DBJ_-ft9WqyyWzUl2battEGf3OG1fUNek8jhcW2X0OD8gGaibd2ImDgp/s200/3.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">ATtiny85 Pin-Out</td></tr>
</tbody></table>
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> Here is where <b>ATtiny85 </b>comes in handy. With <b>3 output PWM pins (0, 1, 2) </b>connected to the RGB Led, and the right program, we have a standalone project that changes the color of the LED.</span><br />
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"> </span></span></span><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">The ATtiny85 can be programmed any way you want but a good example of code doing the fading can be found here:</span><i><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"> </span></i><br />
<br />
<br />
<b><a href="https://docs.google.com/document/d/1q4gRjL1U6obGA82zsZtXF4-3z0zBOeNFGxcobzhEt1E/edit?usp=sharing">https://docs.google.com/document/d/1q4gRjL1U6obGA82zsZtXF4-3z0zBOeNFGxcobzhEt1E/edit?usp=sharing</a></b><br />
<!--100--><br />
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<div class="MsoNormal">
<br />
<!--100--></div>
<div class="MsoNormal">
<br />
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
<!--100--></div>
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">THE BOARD…</span></b></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
</div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnXGlE4P3T7h9AhTkPOccfZR-5Wq8gc38hGrnIikdQEjw1MlDOeVMYtULxcz4gidGUMYyy3njWCBct_SZeq77fekMbkUzoaD4M4vrXT39KbqUzzgHZZRTJHT8VsJrPzJ0dOmP6BHvx5OJf/s1600/1.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnXGlE4P3T7h9AhTkPOccfZR-5Wq8gc38hGrnIikdQEjw1MlDOeVMYtULxcz4gidGUMYyy3njWCBct_SZeq77fekMbkUzoaD4M4vrXT39KbqUzzgHZZRTJHT8VsJrPzJ0dOmP6BHvx5OJf/s200/1.JPG" width="98" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">RGB-tiny board</td></tr>
</tbody></table>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_U5tNg4IQ-6QBJQqNgwzAh0cCEyG77fW0IM01j42aNomb0uRWLcz1BW5eopQ_nlYU5mvGqpehgZnlpiXCi3VJ2uIA2AhWEWEHbsZCJw77rMUTtZwhh-0KhghBq11g32vjxAVoRLUhnTew/s1600/2.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_U5tNg4IQ-6QBJQqNgwzAh0cCEyG77fW0IM01j42aNomb0uRWLcz1BW5eopQ_nlYU5mvGqpehgZnlpiXCi3VJ2uIA2AhWEWEHbsZCJw77rMUTtZwhh-0KhghBq11g32vjxAVoRLUhnTew/s200/2.JPG" width="91" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">RGB-tiny side view</td></tr>
</tbody></table>
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"></span></span></span><br />
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"> </span></span></span><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">The <b>RGB-tiny </b>board has <b>1 RGB Led </b>soldered with <b>3 resistors</b>, connected to an<b> 8-pin chip socket</b>, waiting for the programmed ATtiny85. If we supply the circuit with <b>5 Volts</b> and slide the <b>On/Off switch</b>, the Led will start the fading circle as the program commands.</span></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"></span></span></span><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;"></span></div>
<div class="MsoNormal" style="margin-left: 0cm; mso-list: l0 level1 lfo1; tab-stops: 18.0pt; text-indent: 0cm;">
<span lang="EN-US" style="font-family: Wingdings; mso-ansi-language: EN-US; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;"><span style="mso-list: Ignore;"><span style="font: 7.0pt "Times New Roman";"> </span></span></span><span lang="EN-US" style="font-family: Calibri; mso-ansi-language: EN-US;">The RGB Led is <b>not diffused </b>witch means that the three colors cannot be seen as one. If you want this to happen you can sand the tip of it and you will then see the colors combined into one.</span><br />
<br />
<br />
<br />
<span style="color: #cc0000; font-size: large;"><b><span lang="EN-US" style="mso-ansi-language: EN-US;">If you want to buy this board you can get for FREE with ATtinyShield. Check my EBay listing:</span></b></span><br />
<div style="text-align: center;">
<br />
<span style="font-size: x-large;"><b><a href="http://www.ebay.com/itm/130938451325">http://www.ebay.com/itm/130938451325 </a></b></span></div>
<span style="font-size: small;"><b><span style="color: #38761d;"><span lang="EN-US" style="mso-ansi-language: EN-US;">You will get:</span></span></b></span><br />
<ul><span style="font-size: small;"><b><span style="color: #38761d;"> </span> </b> </span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">The shield with printed and already etched PCB with color silkscreen on it, and of course the components soldered on it. It will be fully functionable ready to program. </span></b></span></li>
<span style="font-size: small;"> <b> <span style="color: #38761d;"> </span> </b> </span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">An Attiny85 20PU chip for your first experiments. </span></b></span></li>
<span style="font-size: small;"> <b> <span style="color: #38761d;"> </span> </b> </span>
<li><span style="font-size: small;"><b><span style="color: #38761d;">A detailed printed (and pdf) guide (in color) for the connections and the whole programming procedure.</span></b></span></li>
<span style="font-size: small;"> </span>
<li><b><span style="color: #38761d; font-size: x-small;"><span style="font-size: small;"><b><span style="color: #38761d;">The RGB-Tiny board, a small PCB with RGB Led, controlled by an ATtiny85 for your first experiments. With code provided you will be able to fade the Led to all colours or any other programming you want.</span></b></span> </span></b></li>
</ul>
</div>
Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-1081001355748288875.post-60516749917675985192013-05-20T06:48:00.001+03:002013-08-02T17:31:23.236+03:00ATtinyShield: Arduino ATtiny85 Programmer Shield<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">INTRO…</span></b></div>
<br />
Arduino projects are very popular but also big and expensive. There are many times that we don’t need so many input or output pins. As a matter of fact, most projects could be accomplished with only 2 or 3 inputs and outputs. Besides the size, using one Arduino board for each small project can be costly.<br />
<div class="post-body entry-content" id="post-body-5454782249938229443" itemprop="description articleBody">
<div class="Section1">
<div class="MsoNormal" style="tab-stops: right 415.6pt; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="tab-stops: right 415.6pt; text-align: justify;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="http://imageshack.us/photo/my-images/40/34823794.jpg/" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/40/34823794.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Atmel's tiny... ATtiny85</td></tr>
</tbody></table>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>So the solution is given (again) by Atmel with the <b style="mso-bidi-font-weight: normal;">ATtiny microcontroller</b></span><b style="mso-bidi-font-weight: normal;"><span lang="EN-US" style="mso-ansi-language: EN-US;">s</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">. Especially the <b style="mso-bidi-font-weight: normal;"><a href="http://www.atmel.com/Images/2586S.pdf">ATtiny85</a></b> chip, which has 8 Kb flash memory, 6 input/output pins, low power supply at 1.8-5.5V, small 8-pin packaging and costs only 2-3$.</span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
<div class="MsoNormal" style="tab-stops: right 415.6pt; text-align: justify;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="http://imageshack.us/photo/my-images/837/43507155.jpg/" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/837/43507155.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">ATtinyShield - easy Arduino programming</td></tr>
</tbody></table>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>It is very easy to program the ATtiny85 using our own Arduino board based on the tutorial </span><a href="http://hlt.media.mit.edu/?p=1695" target="_blank" title="Programming an ATtiny w/ Arduino"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">Arduino-based ATtiny programming</span></a><span style="mso-ansi-language: EN-GB;"> <span lang="EN-GB">(<a href="http://hlt.media.mit.edu/?p=1695">http://hlt.media.mit.edu/?p=1695</a>) published by <b style="mso-bidi-font-weight: normal;">MIT’s High-Low Tech</b> research group. So we have to connect the ATtiny85 (<b style="mso-bidi-font-weight: normal;">pins 1, 5, 6, 7</b>) with 4 digital outputs of our Arduino (<b style="mso-bidi-font-weight: normal;">pins 10, 11, 12, 13</b>), give <b style="mso-bidi-font-weight: normal;">5V</b> and <b style="mso-bidi-font-weight: normal;">Ground</b> to <b style="mso-bidi-font-weight: normal;">pins 8</b> and <b style="mso-bidi-font-weight: normal;">4</b> of the microcontroller and finally place a <b style="mso-bidi-font-weight: normal;">10uF</b> Electrolytic <b style="mso-bidi-font-weight: normal;">Capacitor</b> between the <b style="mso-bidi-font-weight: normal;">Reset</b> and <b style="mso-bidi-font-weight: normal;">Ground</b> of the Arduino.</span></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/843/34679753.jpg/" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/843/34679753.jpg" /></a></div>
<a href="http://imageshack.us/photo/my-images/211/68827159.jpg/" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/211/68827159.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>In my project I have added an indicator <b style="mso-bidi-font-weight: normal;">LED</b> on <b style="mso-bidi-font-weight: normal;">pin 9</b> of the Arduino that shows that the programmer is running properly and a <b style="mso-bidi-font-weight: normal;">reset</b> tact <b style="mso-bidi-font-weight: normal;">switch</b> for the ATtiny85.</span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>So by creating a small <b style="mso-bidi-font-weight: normal;">shield</b> with all these connections, it’s easy to plug it on our Arduino and worry only about the programming stuff.</span><span lang="EN-US" style="mso-ansi-language: EN-US;"> This is what <b style="mso-bidi-font-weight: normal;">ATtinyShield</b> is doing for us.</span></div>
<div class="MsoNormal" style="text-align: justify;">
<h3>
<span style="color: #cc0000; font-size: large;"><b><span lang="EN-US" style="mso-ansi-language: EN-US;">If you want to buy this shield check, my EBay listing:</span></b></span></h3>
<div style="text-align: center;">
<br />
<b><span style="font-size: x-large;"> </span><a href="http://www.ebay.com/itm/221262921883"><span style="color: blue;"><span style="font-size: x-large;">http://www.ebay.com/itm/</span></span></a></b><b><span style="font-size: x-large;"><a href="http://www.ebay.com/itm/221262921883"><span style="color: blue;">221262921883</span></a> </span></b><br />
<b><span style="font-size: x-large;"><br /></span></b></div>
<b><span style="color: #38761d; font-size: small;"><span lang="EN-US" style="mso-ansi-language: EN-US;">You will get:</span></span></b><br />
<ul><b><span style="color: #38761d; font-size: small;"> </span><span style="font-size: small;"> </span></b>
<li><b><span style="color: #38761d; font-size: small;">The shield with printed and
already etched PCB with color silkscreen on it, and of course the
components soldered on it. It will be fully functionable ready to
program. </span></b></li>
<b><span style="font-size: small;"> <span style="color: #38761d;"> </span> </span></b>
<li><b><span style="color: #38761d; font-size: small;">An Attiny85 20PU chip for your first experiments. </span></b></li>
<b><span style="font-size: small;"> <span style="color: #38761d;"> </span> </span></b>
<li><span style="font-size: small;"><b><span style="color: #38761d;">A detailed printed (and pdf) guide (in color) for the connections and the whole programming procedure.</span></b></span></li>
<span style="font-size: small;"> </span>
<li><b><span style="color: #38761d; font-size: small;"><b><span style="color: #38761d;"><b><span style="color: #38761d;">The
RGB-Tiny board, a small PCB with RGB Led, controlled by an ATtiny85
for your first experiments. With code provided you will be able to fade
the Led to all colours or any other programming you want. </span></b></span></b></span></b></li>
</ul>
</div>
<div class="MsoNormal" style="text-align: justify;">
<a name='more'></a></div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> WHAT ELSE IS NEEDED…</span></b></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="text-align: justify;">
<br />
<a href="http://imageshack.us/photo/my-images/40/s700ide.jpg/" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/40/s700ide.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>Before we start, let’s check what is needed:</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• An Arduino Uno board (Uno is a verified version that works fine).</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• An ATtinyShield (to be placed on the Arduino) with an ATtiny85 on it.</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• The Arduino IDE (the software) version 1.0.1 (also verified version that works fine).</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• Attiny.zip (<a href="https://github.com/damellis/attiny/">https://github.com/damellis/attiny/</a>), containing the necessary files for the software.</span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
<div class="MsoNormal" style="text-align: justify;">
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> SETTING UP THE HARDWARE…</span></b></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="text-align: justify;">
<br />
<a href="http://imageshack.us/photo/my-images/194/29216539.jpg/" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/194/29216539.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>First<b style="mso-bidi-font-weight: normal;"> attach</b> the <b style="mso-bidi-font-weight: normal;">ATtiny85</b> on the shield (check the indicator) and the little <b style="mso-bidi-font-weight: normal;">jumper connection</b> on the 5V selection (5V – SEL, just confirm it). We are ready to place it on the Arduino board.</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>The <b style="mso-bidi-font-weight: normal;">connections</b> are as following:</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• The <b style="mso-bidi-font-weight: normal;">5 pins connector</b> (DATA) of the ATtinyShield to <b style="mso-bidi-font-weight: normal;">pins 9 – 13</b> (DIGITAL) of the Arduino board.</span></div>
<div class="MsoNormal" style="text-align: justify;">
<a href="http://imageshack.us/photo/my-images/838/93064081.jpg/" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/838/93064081.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• The <b style="mso-bidi-font-weight: normal;">4 pins connector</b> (POWER) of the ATtinyShield to <b style="mso-bidi-font-weight: normal;">pins RS – 3.3 – 5V – GND</b> (POWER) of the Arduino board.</span></div>
<div class="MsoNormal">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>If everything went normally, you must have an easy fit. If not it might help tilting the pins a bit. </span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> SETTING UP THE ARDUINO IDE…</span></b></div>
<div class="MsoNormal" style="text-align: justify;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<br />
<div style="text-align: left;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>Now that the connections are done, we have to set the software of the Arduino IDE for the programming phase.</span></div>
</div>
<div class="MsoNormal" style="text-align: left;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>As seen on the photos below, we have to follow some more steps:</span></div>
<div class="MsoNormal" style="text-align: left;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">1:</b> Open your <b style="mso-bidi-font-weight: normal;">Arduino IDE 1.0.1</b> version. Make sure you have the <b style="mso-bidi-font-weight: normal;">COM port</b> and your Arduino <b style="mso-bidi-font-weight: normal;">board</b> set correctly.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/692/s701ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/692/s701ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">2:</b> Go to <b style="mso-bidi-font-weight: normal;">File</b> – <b style="mso-bidi-font-weight: normal;">Preferences</b>.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/853/s702ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/853/s702ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">3:</b> Copy the <b style="mso-bidi-font-weight: normal;">Sketchbook</b> <b style="mso-bidi-font-weight: normal;">location</b> mentioned on this window.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/593/s703ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/593/s703ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">4:</b> Navigate to this folder and you’ll find a subfolder named <b style="mso-bidi-font-weight: normal;">Hardware</b> in it – if not create it.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/10/s704ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/10/s704ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">5:</b> Download the necessary files for the ATtiny85 </span><b style="mso-bidi-font-weight: normal;"><a href="https://github.com/damellis/attiny/archive/master.zip"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">ATtiny</span></a></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> (from </span><a href="https://github.com/damellis/attiny/"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">https://github.com/damellis/attiny/</span></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;">) and extract it in this folder (Hardware). This step is only done once.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/11/s705ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/11/s705ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">6:</b> <b style="mso-bidi-font-weight: normal;">Restart</b> the Arduino IDE and in the <b style="mso-bidi-font-weight: normal;">Board</b> section you must have a lot of new choices. Do not change the board yet.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/20/s706ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/20/s706ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">7:</b> Select <b style="mso-bidi-font-weight: normal;">Arduino as ISP</b> on the <b style="mso-bidi-font-weight: normal;">Programmer</b> menu.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/689/s707ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/689/s707ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">8:</b> Now let’s run the script that will turn our Arduino into an ISP programmer. Go to <b style="mso-bidi-font-weight: normal;">File</b> – <b style="mso-bidi-font-weight: normal;">Examples</b> – <b style="mso-bidi-font-weight: normal;">ArduinoISP</b>. </span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/824/s708ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/824/s708ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">9:</b> This sketch will also <b style="mso-bidi-font-weight: normal;">test</b> our shield. The LED we have connected on <b style="mso-bidi-font-weight: normal;">pin 9</b> is the <b style="mso-bidi-font-weight: normal;">Heartbeat LED</b>, that shows the programmer is running fine. Let’s upload it and see if it will light.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/209/s709ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/209/s709ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">10:</b> Now that the sketch is uploaded, the LED must light, like a <b style="mso-bidi-font-weight: normal;">heartbeat</b>… If not, check the ATtiny85 installation on the DIP socket and rerun steps 5 to 9.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/9/s710ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/9/s710ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">11:</b> Go to <b style="mso-bidi-font-weight: normal;">Tools</b>, change the <b style="mso-bidi-font-weight: normal;">Board</b> and select the <b style="mso-bidi-font-weight: normal;">ATtiny85</b> <b style="mso-bidi-font-weight: normal;">with</b> <b style="mso-bidi-font-weight: normal;">internal 1 MHz clock</b>.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/825/s711ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/825/s711ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">12:</b> Now it’s time to upload the <b style="mso-bidi-font-weight: normal;">Blink </b>(or any other) <b style="mso-bidi-font-weight: normal;">sketch</b> to ATtiny85. Load it from the <b style="mso-bidi-font-weight: normal;">Examples</b> menu.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/825/s712ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/825/s712ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">13:</b> Change the pin of the LED on line 10, <b style="mso-bidi-font-weight: normal;">from 13 to 0</b>. Refer to the ATtiny85 pin-out image.</span></div>
<div class="MsoNormal" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/9/s713ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/9/s713ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"> </span>• <b style="mso-bidi-font-weight: normal;">14:</b> Finally <b style="mso-bidi-font-weight: normal;">upload</b> it and ignore the <b style="mso-bidi-font-weight: normal;">2 avrdude error messages </b>(if errors appear). You are <b style="mso-bidi-font-weight: normal;">DONE</b>.</span></div>
<div class="MsoNormal">
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://imageshack.us/photo/my-images/96/s714ide.jpg/" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/96/s714ide.jpg" /></a></div>
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span lang="EN-GB" style="font-size: 10.0pt; mso-ansi-language: EN-GB;"></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> TESTING…</span></b></div>
<div class="MsoNormal" style="text-align: justify;">
</div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
<br />
<a href="http://imageshack.us/photo/my-images/811/71336510.jpg/" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/811/71336510.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>The small microcontroller is ready to be <b style="mso-bidi-font-weight: normal;">tested</b>. You can leave it on the <b style="mso-bidi-font-weight: normal;">ATtinyShield</b> and test it there, while it is powered by the Arduino. But let’s try it out on a <b style="mso-bidi-font-weight: normal;">breadboard</b> and see if the <b style="mso-bidi-font-weight: normal;">Blink</b> function is activated.</span></div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
<a href="http://imageshack.us/photo/my-images/10/15713355.jpg/" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" target="_blank"><img alt="Image Hosted by ImageShack.us" border="0" src="http://imageshack.us/scaled/modthumb/10/15713355.jpg" /></a><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>Connect <b style="mso-bidi-font-weight: normal;">pin 4</b> of ATtiny85 to the <b style="mso-bidi-font-weight: normal;">Ground</b> and <b style="mso-bidi-font-weight: normal;">pin 8</b> to <b style="mso-bidi-font-weight: normal;">5 Volts</b>. Then connect the <b style="mso-bidi-font-weight: normal;">pin 5</b> (that is referred as <b style="mso-bidi-font-weight: normal;">pin 0</b> on the pin-out schematic) to a <b style="mso-bidi-font-weight: normal;">LED</b> (through a small 200 Ohm resistance). It must <b style="mso-bidi-font-weight: normal;">blink</b> with a second of period.</span></div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
</div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
</div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> <span style="mso-spacerun: yes;"></span>The programming <b style="mso-bidi-font-weight: normal;">worked</b>!</span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"> </span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="background: #FFCC99;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span></span></b><b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">TROUBLESHOOTING…</span></b></div>
<div class="MsoNormal" style="text-align: justify;">
</div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span></span><br />
<span lang="EN-GB" style="mso-ansi-language: EN-GB;"><span style="mso-spacerun: yes;"> </span>If something went wrong and the chip isn’t properly programmed these might be some reasons.</span></div>
<div class="MsoNormal" style="tab-stops: 112.9pt; text-align: justify;">
</div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 480;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"> <td style="background: #CCCCCC; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.1pt;" width="235"><div align="center" class="MsoNormal" style="text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">PROBLEM</span></b></div>
</td> <td style="background: #CCCCCC; border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" width="235"><div align="center" class="MsoNormal" style="text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">REASONS</span></b></div>
</td> <td style="background: #CCCCCC; border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" width="235"><div align="center" class="MsoNormal" style="text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">SOLUTIONS</span></b></div>
</td> </tr>
<tr style="mso-yfti-irow: 1;"> <td rowspan="2" style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.1pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">1.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> When uploading the Arduino ISP, the Heartbeat LED doesn’t work and the IDE returns errors.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">1.a.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> The software doesn’t have the necessary ATtiny files.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">1.a.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> Check steps 2-5 again, so that the files are in the correct folder.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 2;"> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">1.b.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> Sometimes the ISP must be uploaded without the ATtinyShield on the Arduino board.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">1.b.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> Just remove the shield and re-upload the ISP sketch. Then – after uploaded – plug the shield.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 3;"> <td rowspan="3" style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.1pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> When uploading a script the Arduino IDE returns errors.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.a.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> The ISP isn’t properly uploaded.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.a.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> Check Troubleshooting case 1.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 4;"> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.b.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> The ATtiny board isn’t correctly selected.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.b. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">In the board section select ATtiny85 with 1 MHz clock.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 5;"> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.c. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">Some errors, like Avrdude type, may not cause any problem.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">2.c. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">Try ignoring them if the script is uploaded despite the errors and test the chip.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 6;"> <td rowspan="2" style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.1pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">3.</span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;"> When tested the LED connected on ATtiny85’s pin 5 doesn’t flash.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">3.a. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">The ATtiny85 isn’t connected properly on the shield.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">3.a. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">Check the DIP pin holder for the mark and match it with the chip.</span></div>
</td> </tr>
<tr style="mso-yfti-irow: 7; mso-yfti-lastrow: yes;"> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">3.b. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">The Input / Output pins of the ATtiny85 are 0-5.</span></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 176.15pt;" valign="top" width="235"><div class="MsoNormal" style="text-align: justify;">
<b style="mso-bidi-font-weight: normal;"><span lang="EN-GB" style="mso-ansi-language: EN-GB;">3.b. </span></b><span lang="EN-GB" style="mso-ansi-language: EN-GB;">In the Blink sketch, the pin must be changed from 13 to 0. </span></div>
</td> </tr>
</tbody></table>
</div>
</div>
</div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-1081001355748288875.post-25439567220859979352013-05-18T17:41:00.002+03:002013-05-18T17:42:26.650+03:00Welcome to my blog<h2 style="text-align: center;">
</h2>
<div style="text-align: center;">
</div>
<div style="text-align: center;">
Here you will find some projects of mine about <b>Arduino </b>and <b>ATtiny85</b>.</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<i>I hope you'll find it interesting enough.</i></div>
Unknownnoreply@blogger.com0