<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7652984151809833684</id><updated>2012-02-08T14:30:02.393+05:30</updated><category term='AVR Projects'/><category term='Home Appliance Control'/><title type='text'>Electronics Circuits and Projects for Engineering Students and beginners</title><subtitle type='html'>Exclusively made for hobbyists!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-5650232589299336456</id><published>2010-07-13T12:30:00.000+05:30</published><updated>2010-07-13T12:31:09.000+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AVR Projects'/><title type='text'>LCD Control using UART Serial Port</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFhjSMkTI/AAAAAAAAAPQ/D9ahtzIrqsE/s1600/avr28dev12.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="232" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFhjSMkTI/AAAAAAAAAPQ/D9ahtzIrqsE/s400/avr28dev12.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;When you write an LCD Program to write your name or any text, you can only display the same text at all times. If you have to change the text, you have to change the code, recompile it again and then reprogram it. Instead of doing all this, you can just connect your circuit to serial port of computer and change the text on LCD instantly using the hyperterminal of the PC. You can just type any text in the hyperterminal and press ENTER key. The text will be displayed on the LCD instantly. You can customize the display by changing the pattern.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="white-space: pre;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;AVR GCC CODE&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;/*&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;Purpose:It will take input from the terminal and writes that on LCD&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;Hardware:&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;ATmega8 @ 16MHz&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;PC Software : Hyper terminal @ 19200 baud&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;No Parity,1 Stop Bit,&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;Flow Control = NONE&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;*/&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: green;"&gt;#include &lt;avr/io.h&gt;&lt;/avr/io.h&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: green;"&gt;#include &lt;util/delay.h&gt;&lt;/util/delay.h&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: green;"&gt;#include &lt;string.h&gt; &lt;/string.h&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: green;"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;#include "uart.h"&lt;/span&gt; &lt;br /&gt;&lt;span style="color: green;"&gt;#include "lcd.h"&lt;/span&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;static int&lt;/b&gt; uart_putchar(&lt;b&gt;char&lt;/b&gt; c, FILE *stream);&lt;br /&gt;&lt;b&gt;static&lt;/b&gt; FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);&lt;br /&gt; &lt;br /&gt;&lt;b&gt;static int&lt;/b&gt; uart_putchar(&lt;b&gt;char&lt;/b&gt; c, FILE *stream)&lt;br /&gt;{&lt;br /&gt;&lt;b&gt;if&lt;/b&gt; (c == &lt;span style="color: #ff8000;"&gt;'\n'&lt;/span&gt;)&lt;br /&gt;uart_putchar(&lt;span style="color: #ff8000;"&gt;'\r'&lt;/span&gt;, stream);&lt;br /&gt;loop_until_bit_is_set(UCSRA, UDRE);&lt;br /&gt;UDR = c;&lt;br /&gt;&lt;b&gt;return&lt;/b&gt; &lt;span style="color: #ff0080;"&gt;0&lt;/span&gt;;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;&lt;b&gt;int&lt;/b&gt; main()&lt;br /&gt;{&lt;br /&gt;stdout = &amp;amp;mystdout;&lt;br /&gt;   &lt;span style="color: navy;"&gt;&lt;i&gt;//Initialize the LCD Module.&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;   LCDInit(LS_BLINK|LS_ULINE);&lt;br /&gt;   LCDClear();&lt;br /&gt;   &lt;/span&gt;&lt;/code&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;//USART Initialisation 19200bps @ 16MHz crystal&lt;/i&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;   USARTInit(&lt;span style="color: #ff0080;"&gt;51&lt;/span&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;b&gt;char&lt;/b&gt; str[&lt;span style="color: #ff0080;"&gt;20&lt;/span&gt;],data;&lt;b&gt;int&lt;/b&gt; i=&lt;span style="color: #ff0080;"&gt;0&lt;/span&gt;;&lt;b&gt;while&lt;/b&gt;(&lt;span style="color: #ff0080;"&gt;1&lt;/span&gt;){printf(&lt;span style="color: blue;"&gt;"\n PLEASE ENTER THE STRING : "&lt;/span&gt;);&lt;b&gt;for&lt;/b&gt;(i=&lt;span style="color: #ff0080;"&gt;0&lt;/span&gt;;;i++)   {   data = USARTReadChar();&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="color: navy;"&gt;&lt;i&gt;//saving the given string&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;   USARTWriteChar(data);&lt;br /&gt;   str[i]= data;&lt;br /&gt;   &lt;b&gt;if&lt;/b&gt;((str[i]==&lt;span style="color: #ff8000;"&gt;'\n'&lt;/span&gt;) ||( str[i]==&lt;span style="color: #ff8000;"&gt;'\r'&lt;/span&gt;))&lt;br /&gt;   {&lt;br /&gt;   str[i]=&lt;span style="color: #ff8000;"&gt;'\0'&lt;/span&gt;;&lt;br /&gt;   &lt;b&gt;break&lt;/b&gt;;&lt;br /&gt;   }&lt;br /&gt;   }&lt;br /&gt;LCDClear();&lt;br /&gt;LCDWriteString(str);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: navy;"&gt;&lt;i&gt;//displaying the saved string&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;printf(&lt;span style="color: blue;"&gt;"\n Finished \n"&lt;/span&gt;);_delay_ms(&lt;span style="color: #ff0080;"&gt;1000&lt;/span&gt;);}}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Implementation:&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Open the hyperterminal in your computer. Set the settings as per the code. Then reset your microcontroller. You will see "enter the string : ". Enter the text and press ENTER key. You will get "Finished". You will see the text you entered on the display.&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFGllg29I/AAAAAAAAAPA/fdCN4K0gavo/s1600/Sk348.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFGllg29I/AAAAAAAAAPA/fdCN4K0gavo/s320/Sk348.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv2S2RdOaI/AAAAAAAAAOs/k9Sx5cBs22w/s1600/Sk346.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv2S2RdOaI/AAAAAAAAAOs/k9Sx5cBs22w/s320/Sk346.jpg" /&gt;&lt;/a&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;div class="separator" style="clear: both; font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center; white-space: normal;"&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFGllg29I/AAAAAAAAAPA/fdCN4K0gavo/s1600/Sk348.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center; white-space: normal;"&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFhjSMkTI/AAAAAAAAAPQ/D9ahtzIrqsE/s1600/avr28dev12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center; white-space: normal;"&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFUSHBIpI/AAAAAAAAAPI/5WgfxrDdqOY/s1600/Sk356.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFUSHBIpI/AAAAAAAAAPI/5WgfxrDdqOY/s320/Sk356.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Downloads:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Files related to this project. &lt;a href="http://www.4shared.com/dir/ieAzRzBA/Blog.html"&gt;Click here to download&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;NEXT VERSION:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;The text will display only when you enter the text from terminal. I am developing this code for new options. In the later version of this project, the entered text is saved in the EEPROM and if you change the code directly from the terminal.&lt;br /&gt;I will be updating this post regularly, so subscribe to my blog newsletter(top right of this page) for updated information. If you have any doubts, post you comments here or mail me @ arifuddin2007@gmail.com  Arifuddin Sheik&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-5650232589299336456?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/5650232589299336456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=5650232589299336456' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/5650232589299336456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/5650232589299336456'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/07/lcd-control-using-uart-serial-port.html' title='LCD Control using UART Serial Port'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_M97t2-ixd1U/TDwFhjSMkTI/AAAAAAAAAPQ/D9ahtzIrqsE/s72-c/avr28dev12.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-873348249876648144</id><published>2010-07-13T11:44:00.001+05:30</published><updated>2010-07-13T12:41:01.938+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AVR Projects'/><title type='text'>Serial COM port using ATmega8 (AVR Dude Hack)</title><content type='html'>&lt;pre&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Introduction:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Many times, I have written code for UART communication and when it came to testing, my laptop does not have a serial port. I bought a USB to serial port converter but it didnt worked. I felt frustated and finally thought of buying a Serial to Com port module in an electronics hobby store. After seeing that I got the idea of making one myself. I have 2 USB AVR Programmers with me. I tried different circuits but they didnt worked for Windows 7 because of driver problems. I googled for the circuit and finally came to know that the circuit of USB Programmer and USB to Serial port are both same. I just have to connect some wires in the programmer and change the firm ware of the programmer and it became USB to Serial Converter! Voila! My laptop has a serial port now! &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;There are other methods in internet, but you can only them in old PC's of with Windows 98 or XP. You will find support for high end operating systems like Windows 7. This circuit is tested and it is working 100%. I started using COM port for all my projects because you can give different inputs and debugging became even more simple using serial port.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Click here : &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;a href="http://www.recursion.jp/avrcdc/cdc-232.html"&gt;http://www.recursion.jp/avrcdc/cdc-232.html&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;In the above link you will find the details of the circuit. You can build the circuit using ATTiny45 or ATTiny2313 or ATmega8. But the baud rate speeds will vary depeding upon the device you use.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;b&gt;Circuit Diagram:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.recursion.jp/avrcdc/image/cdc232-mega.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="323" src="http://www.recursion.jp/avrcdc/image/cdc232-mega.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;b&gt;Circuit Building:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;First build the whole circuit using any of the 3 MCU's. You will find the firmwares in the website. Choose CDC32 from here..&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;a href="http://www.recursion.jp/avrcdc/download.html"&gt;http://www.recursion.jp/avrcdc/download.html&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Flash the microcontroller using the firmware. You will have seperate firmwares for different MCU. After that connect the circuit to the USB port. The PC will not recognise your driver. Download the driver depending upon your operating system. The best part in this method is that it supports all operating systems including Windows 7. Install the driver manually in device manager options. For checking the working of circuit, just connect Tx and Rx pins with a wire. Open the terminal and type something, you will see the same thing on the screen. &lt;/span&gt;&lt;/pre&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;My USB to Serial Converter:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;I have built this and connected to my development board. Previously it is a programmer, now it became USB to Serial port to my laptop. I am going to build this using ATTiny45 once I get the chip. But the maximum baud rate with ATTiny45 is only 4800bps as per the circuit. I will post those pics once I finish building the circuit. So keep waiting for my updates.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv02Ohc06I/AAAAAAAAAOY/u7WySwA7N0A/s1600/Sk353.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv02Ohc06I/AAAAAAAAAOY/u7WySwA7N0A/s320/Sk353.jpg" /&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; color: black;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv15P1UxOI/AAAAAAAAAOg/6Dggugndh8Y/s1600/Sk351.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDv15P1UxOI/AAAAAAAAAOg/6Dggugndh8Y/s320/Sk351.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/_M97t2-ixd1U/TDv2Sil_M9I/AAAAAAAAAOo/EZT4Y3SHj8E/s1600/Sk354.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_M97t2-ixd1U/TDv2Sil_M9I/AAAAAAAAAOo/EZT4Y3SHj8E/s320/Sk354.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;I have tested this circuit and it is 100% working. You you have any problems building this circuit or with firmare or drivers, post your problems, I will surely help you out.&lt;br /&gt;&lt;a href="http://arif-ece.blogspot.com/2010/07/lcd-control-using-uart-serial-port.html"&gt;Click here&lt;/a&gt; for sample project after building this circuit.&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I will be updating this post regularly, so subscribe to my blog newsletter(top right of this page) for updated information. If you have any doubts, post you comments here or mail me @ arifuddin2007@gmail.com&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Arifuddin Sheik&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-873348249876648144?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/873348249876648144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=873348249876648144' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/873348249876648144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/873348249876648144'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/07/serial-com-port-using-atmega8-avr-dude.html' title='Serial COM port using ATmega8 (AVR Dude Hack)'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/TDv02Ohc06I/AAAAAAAAAOY/u7WySwA7N0A/s72-c/Sk353.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-4306473657394835818</id><published>2010-07-10T14:32:00.001+05:30</published><updated>2010-07-13T12:37:09.428+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR Projects'/><title type='text'>Remote Controlled Home Appliances project using ATmega8</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Hi everyone! First of all I would like to thank&amp;nbsp;Avinash&amp;nbsp;Gupta for writing all the valuable tutorials and libraries for AVR Microcontrollers and helping people like me to build projects and learn new things. I am dedicating this post to him!&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Note that I am not the owner of all the libraries used in this project. I made this project using libraries and tutorials from&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.extremeelectronics.co.in/"&gt;&lt;span style="color: blue; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;www.extremeelectronics.co.in&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;. The ownership of libraries lies with them. I am publishing this post with their permission.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;You can learn many things regarding&amp;nbsp;AVR&amp;nbsp;MCU&amp;nbsp;here&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.extremeelectronics.co.in/"&gt;&lt;span style="color: blue; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;www.extremeelectronics.co.in&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDSM3_t0FcI/AAAAAAAAAOA/1a4RLDfYWAA/s1600/Sk200.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDSM3_t0FcI/AAAAAAAAAOA/1a4RLDfYWAA/s320/Sk200.jpg" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;For Excellent&amp;nbsp;AVR&amp;nbsp;Tutorials&amp;nbsp;&lt;/span&gt;&lt;a href="http://extremeelectronics.co.in/category/avr-tutorials/"&gt;&lt;span style="color: blue; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;click here&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;/span&gt;&lt;br style="mso-special-character: line-break;" /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Introduction:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Using remote keys from 1 to 4, you can control 4 appliances. You can easily extend this number to as many you wish. For example, if you press key_1 on your remote, fan will turn ON. If you press the same key again, fan will turn OFF i.e each time you press a key configured for an appliance, the condition will toggle. I have programmed the MCU such that all devices will turn OFF on pressing power button(RED COLOR on top of your remote). You can also choose combinations like turning all fans OFF at a time, etc. With little tweaking, you can change the program yourself! The status of the appliances is shown in an LCD. You can ignore this feature if you dont want LCD. I used LCD for developing the code.&lt;br /&gt;&lt;br /&gt;I main advantage in this project is that the appliance status is stored here using internal ATmega8 EEPROM. So, whenever mains power goes off and comes again, the appliance will be in the same state in which it is before. Suppose if power goes off during night. The fan will be off. When power is back, the fan will be automatically turned on again. You dont have to search for remote again!&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;Another advantage using this circuit is that you dont have to use your TV Remote. You can use any DVD remote. So, chances for interference are very less. Normally when you use TV Remotes, your TV channel will also change with appliance. Personally I faced this problem in my old project. Thanks to Avinash for creating wonderful libraries for using DVD Remote.&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; font-size: 24pt;"&gt;Circuit Diagram :&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_M97t2-ixd1U/TDSFAEW1tyI/AAAAAAAAANw/FyAVNOY6Kms/s1600/IR_home+ckt.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_M97t2-ixd1U/TDSFAEW1tyI/AAAAAAAAANw/FyAVNOY6Kms/s320/IR_home+ckt.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; font-size: 24pt;"&gt;Circuit Explanation :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;The project is running off using internal oscillator with 8MHz frequency. So becarefull with fuse bit settings.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;u&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;Fuse bits :&lt;/span&gt;&lt;/u&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;Int. 8 MHz d9 e4&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;We are using&amp;nbsp;TSOP1738 Infrared Receiver&amp;nbsp;IC&amp;nbsp;here to get the DVD Remote signals. The output from&amp;nbsp;TSOP&amp;nbsp;Sensor is connected to INT0 (pin PD2). The&amp;nbsp;MCU&amp;nbsp;receives the signals and appropriate action is taken (appliance switching). After switching, the status of device is stored in&amp;nbsp;EEPROM. Then the status is displayed in LCD.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;The commands for keys may vary from one remote to another remote. So, before using the remote, check the command values for keys and update them in "rckys.h" file. Otherwise the appliance will not switch. Use the second tutorial for getting the command codes.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;To learn about IR Remote decoding, see this tutorials&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;a href="http://extremeelectronics.co.in/code-libraries/using-ir-remote-with-avr-mcus/"&gt;&lt;span style="color: blue; font-weight: normal; text-decoration: none;"&gt;Tutorial - 1&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;a href="http://extremeelectronics.co.in/code-libraries/using-ir-remote-with-avr-mcus-part-ii/"&gt;&lt;span style="color: blue; font-weight: normal; text-decoration: none;"&gt;Tutorial - 2&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;To use LCD in your projects, see this tutorial. After reading this, you wont find hard to interface LCD in your project. I started using LCD in every project because you will get visual information directly regarding what is happening and program flow. It will be also useful during debugging process which you cant do using software tools. click the below link for LCD tutorial.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;a href="http://extremeelectronics.co.in/avr-tutorials/using-lcd-module-with-avrs/"&gt;&lt;span style="color: #9e5d78; text-decoration: none;"&gt;LCD Tutorial&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; font-size: 24pt;"&gt;LCD Connection for the project :&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 1.5pt;"&gt;&lt;b&gt;&lt;span style="color: #ff8000; font-family: Georgia, serif; font-size: 13.5pt;"&gt;PIN Configurations:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black;"&gt;The&amp;nbsp;lcd&amp;nbsp;modules has 16&amp;nbsp;PINs&amp;nbsp;for interfacing. The details are given below.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 18px;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border="0" cellpadding="0" cellspacing="3" class="MsoNormalTable" style="width: 500px;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;1&amp;nbsp;VSS&amp;nbsp;(GND&amp;nbsp;Supply)&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 1;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;2&amp;nbsp;VCC&amp;nbsp;(+5V)&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 2;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;3&amp;nbsp;VEE&amp;nbsp;(Contrast   Adjust)&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Connect to gnd   for normal contrast&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 3;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;4 RS&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PB2&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 4;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;5 R/W&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PB0&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 5;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;6 E&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PD7&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 6;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;7 DB0&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Not Connected&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 7;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;8 DB1&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Not Connected&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 8;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;9 DB2&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Not Connected&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 9;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;10 DB3&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Not Connected&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 10;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;11 DB4&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PD3&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 11;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;12 DB5&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PD4&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 12;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;13 DB6&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PD5&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 13;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;14 DB7&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;PD6&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 14;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;15 LED+&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Vcc&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 15; mso-yfti-lastrow: yes;"&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;16 LED-&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="background: #C0C0FF; padding: 3.75pt 3.75pt 3.75pt 3.75pt;"&gt;&lt;div class="MsoNoSpacing"&gt;Gnd&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;Outputs are connected to&amp;nbsp;PORTC&amp;nbsp;from PC0 to PC3. You can change this connection according to your wish by changing the code. The pins PC0 to PC3 are connected to&amp;nbsp;IC&amp;nbsp;ULN2803. This is a high voltage high current buffer.&amp;nbsp;Click here&amp;nbsp;to know how to use the buffer for connecting relays.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 12.0pt; mso-line-height-alt: 14.25pt;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif; font-size: 18pt;"&gt;&lt;span style="color: #9e5d78; font-size: 13.5pt; font-weight: normal; text-decoration: none;"&gt;&lt;a href="http://arif-ece.blogspot.com/2010/05/computer-controlled-home-appliance.html"&gt;Connecting relays&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 12.0pt; mso-line-height-alt: 14.25pt;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;a href="http://arif-ece.blogspot.com/2010/05/computer-controlled-home-appliance.html"&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;Internal&amp;nbsp;EEPROM&amp;nbsp;is used for saving the appliance status. I searched&amp;nbsp;internet&amp;nbsp;for using internal&amp;nbsp;EEPROM&amp;nbsp;but&amp;nbsp;didnt&amp;nbsp;find useful information. So, I went back to&amp;nbsp;datasheet&amp;nbsp;of&amp;nbsp;ATmega8 and I found the program there! I made the&amp;nbsp;EEPROM&amp;nbsp;library in my project using the&amp;nbsp;datasheet. You will know about&amp;nbsp;EEPROM&amp;nbsp;more in&amp;nbsp;datasheet. You will know the importance of&amp;nbsp;datasheet&amp;nbsp;once you start using it for programming the&amp;nbsp;MCU.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 12.0pt; mso-line-height-alt: 14.25pt;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;search for "eeprom_read" to understand the&amp;nbsp;eeprom&amp;nbsp;read operation.&amp;nbsp;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;search for "eeprom_write" in&amp;nbsp;datasheet&amp;nbsp;to understand the&amp;nbsp;eeprom&amp;nbsp;write operation.I created the libraries using those functions only.&amp;nbsp;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal;"&gt;For understanding code and C tips, click the link below for tutorial in extremeelectronics.co.in written by&amp;nbsp;Avinash&amp;nbsp;Gupta.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 12.0pt; mso-line-height-alt: 14.25pt;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-size: 9pt;"&gt;&lt;span style="color: #9e5d78; text-decoration: none;"&gt;&lt;a href="http://extremeelectronics.co.in/avr-tutorials/programming-in-c-tips-for-embedded-development/"&gt;C Programming Tips - Embedded Development&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 12.0pt; mso-line-height-alt: 14.25pt;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Times New Roman', serif;"&gt;&lt;span style="color: #9e5d78; font-weight: normal; text-decoration: none;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: blue; font-size: 9pt;"&gt;&lt;span style="color: #9e5d78; text-decoration: none;"&gt;&lt;a href="http://extremeelectronics.co.in/avr-tutorials/programming-in-c-tips-for-embedded-development/"&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: medium; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: 'Times New Roman', serif; font-size: 24pt;"&gt;AVR&amp;nbsp;GCC&amp;nbsp;CODE :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;#include&lt;avr/io.h&gt;&lt;/avr/io.h&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New';"&gt;#include&lt;util/delay.h&gt;&lt;/util/delay.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;#include "lcd.h"&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;#include "remote.h"&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;#include "rckeys.h"&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;#include "eeprom.h"&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;uint8_t app_1,app_2,app_3,app_4,cmd=0;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Courier New'; font-weight: normal;"&gt;int main()&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;{&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;DDRC|=((1&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;//Give Some Time for other hardware to start&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;_delay_loop_2(0);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;LCDInit(LS_BLINK);//Initialize the LCD Subsystem&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; LCDClear();&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; InitRemote();//Initialize the Remote Subsystem&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;/*EEPROM bits have to set to either FF or 00. In default they will be set to FF. But its better to check them using Extreme electronics USB avr burning software.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;If the values are other than those, set them to 00 or FF.&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;00 - OFF&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;ff - ON&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;I have written the EEPROM routines using atmega8 datasheet. Refer EEPROM section&amp;nbsp;in datasheet for more information regarding reading and writing of operation in EEPROM.&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New'; font-weight: normal;"&gt;&amp;nbsp;//Reading from internal EEPROM&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;app_1 = EEPROM_read(0);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;app_2 = EEPROM_read(1);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;app_3 = EEPROM_read(2);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;app_4 = EEPROM_read(3);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;while(1)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;{&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;switch(cmd)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; {&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; case RC_1:&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_1=~app_1; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;//toggling the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_1==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC|=(1&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC&amp;amp;=(~(1&amp;lt;&amp;nbsp; //Turn On the appliance_1&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(0,app_1);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//saving the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; case RC_2:&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_2=~app_2; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//toggling the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_2==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC|=(1&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC&amp;amp;=(~(1&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//Turn On the appliance_2&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(1,app_2);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//saving the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; case RC_3:&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_3=~app_3; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//toggling the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_3==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC|=(1&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC&amp;amp;=(~(1&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; //Turn On the appliance_3&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(2,app_3);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; //saving the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; case RC_4:&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_4=~app_4; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//toggling the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_4==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC|=(1&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; PORTC&amp;amp;=(~(1&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//Turn On the appliance_4&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(3,app_4);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//saving the state of appliance&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; case RC_POWER: &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;//turn off all the appliances&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_1=0;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_2=0;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_3=0;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; app_4=0;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(0,app_1);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(1,app_2);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(2,app_3);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; EEPROM_write(3,app_4);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp; }&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_1==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(1,0,"A1-OFF");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(1,0,"A1-ON ");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_2==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(9,0,"A2-OFF");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(9,0,"A2-ON ");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_3==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(1,1,"A3-OFF");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(1,1,"A3-ON ");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; if(app_4==0)&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(9,1,"A4-OFF");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; {LCDWriteStringXY(9,1,"A4-ON ");}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; uint8_t cmd; &amp;nbsp;//dont cut and paste on the top&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; cmd=GetRemoteCmd(1);&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; /*Get Remote Command. Command is taken in last because the&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the past device status has to be recovered first! &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; */&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&amp;nbsp;}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;}&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 14.25pt; margin-bottom: 12.0pt;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 24pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 14.25pt; margin-bottom: 12.0pt;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 24pt;"&gt;Downloads :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 14.25pt; margin-bottom: 12.0pt;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 24pt;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; font-weight: normal;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;span style="color: blue; font-weight: normal; text-decoration: none;"&gt;&lt;a href="http://www.4shared.com/file/d6W9IU_J/IR_Home_Project.html"&gt;Click here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; font-weight: normal;"&gt;&lt;span style="color: black;"&gt;&amp;nbsp;to get the project files ( includes AVR Studio Project files and circuit diagram)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 14.25pt; margin-bottom: 12.0pt;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Implementation :&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black;"&gt;I Implemented this project on&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;a href="http://shop.extremeelectronics.co.in/product_info.php?cPath=23&amp;amp;products_id=107"&gt;&lt;span style="color: blue; text-decoration: none;"&gt;XboardMini&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;from extremeelectronics. I am posting images of the project. I am currently improving the code for fan speed control and Room light control for the same project. Very soon, I will build the project on a demo board and will post those photos. I will be updating this post regularly, so subscribe to my blog newsletter for updated information.&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black;"&gt;Wondered how the XBoardMini is working with out power adopter? In the last photo, can you a see a red wire connecting two terminals and the ISP connector with black tape wounded around it? Yes! the development board is running from USB power supply. If you also want to power your development boards directly from your USB, view this post.&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;span style="color: blue; line-height: 115%;"&gt;&lt;span style="color: #9e5d78; text-decoration: none;"&gt;&lt;a href="http://arif-ece.blogspot.com/2010/07/modifying-avr-development-board-and.html"&gt;Modifying AVR Development board and Programmer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: blue; font-size: 9pt; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_M97t2-ixd1U/TDSEcr1iMdI/AAAAAAAAANo/dXOBe2uxEaY/s1600/Sk198.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_M97t2-ixd1U/TDSEcr1iMdI/AAAAAAAAANo/dXOBe2uxEaY/s320/Sk198.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDSL2X8FgkI/AAAAAAAAAN4/HenvdJdCeWk/s1600/Sk202.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDSL2X8FgkI/AAAAAAAAAN4/HenvdJdCeWk/s320/Sk202.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDSNLCN3E_I/AAAAAAAAAOI/UEDbhhgGMT4/s1600/Sk201.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDSNLCN3E_I/AAAAAAAAAOI/UEDbhhgGMT4/s320/Sk201.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: blue; font-size: 9pt; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;I will be updating this post regularly, so subscribe to my blog newsletter(top right of this page) for updated information. If you have any doubts, post you comments here or mail me @ arifuddin2007@gmail.comArifuddin Sheik&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-4306473657394835818?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/4306473657394835818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=4306473657394835818' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/4306473657394835818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/4306473657394835818'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/07/remote-controlled-home-appliances_10.html' title='Remote Controlled Home Appliances project using ATmega8'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/TDSM3_t0FcI/AAAAAAAAAOA/1a4RLDfYWAA/s72-c/Sk200.jpg' height='72' width='72'/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-1543665179560139542</id><published>2010-07-07T14:55:00.001+05:30</published><updated>2010-07-13T12:31:09.001+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AVR Projects'/><title type='text'>Modifying AVR Development Board and Programmer</title><content type='html'>&lt;u&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Programmer and Development Board from Extremeelectronics:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;Look at the below picture. The programmer I am using is bought from another manufacturer, not from extremeelectronics. It is an USB Porgrammer. You can get it from any leading electronics hobby electronics store. My programmer is not pin compatible with XboardMini which I brought from extremeelectronics. I modified the ISP connector for connecting the USB programmer with the board. The XboardMini does not has Vcc connection in its ISP connector. My programmer has Vcc connection in its ISP connection. 10th pin is free (not connected) in the Xboardmini ISP circuit. I modified my cable such that 9th pin gets Vcc from USB programmer. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The red wire I connected goes from 10th pin to one of its Vcc node. In this way, the board directly gets Vcc from USB power supply. You dont have to use 9V adaptor for programming and powering the board. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I dont know whether the usb programmer from extremeelectronics is having Vcc connection in its ISP Port. Just find an empty pin in the ISP connector in programmer and Development board. Connect that pin to Vcc of the USB port. Just do the same thing in the development board also. Connect the Vcc pin of ISP port to Vcc rail in the board. using this setup, I am able to carry the development board and programmer in my laptop. I dont have to carry a 9v adaptor as finding power sources is not so easy for me as I am always in move. I am happy with my Acer Mini as I am getting a backup of 7hrs! Thanks to Intel for creating such low power processors!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQEqE6G2tI/AAAAAAAAAMg/pRiuA9vziqM/s1600/Sk206.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491018966589954770" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQEqE6G2tI/AAAAAAAAAMg/pRiuA9vziqM/s400/Sk206.jpg" style="cursor: pointer; height: 232px; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_M97t2-ixd1U/TDQE1D7xLCI/AAAAAAAAAMo/kbrJoZ-wikw/s1600/Sk207.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491019155307047970" src="http://4.bp.blogspot.com/_M97t2-ixd1U/TDQE1D7xLCI/AAAAAAAAAMo/kbrJoZ-wikw/s400/Sk207.jpg" style="cursor: pointer; height: 306px; width: 400px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQHg3UXr9I/AAAAAAAAANQ/8RYH1IrNP1k/s1600/Sk201.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491022106858074066" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQHg3UXr9I/AAAAAAAAANQ/8RYH1IrNP1k/s400/Sk201.jpg" style="cursor: pointer; height: 345px; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;u&gt;ATMEGA8 Project Demo Board from NSK Electronics:&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;The board below is an ATmega8 project demo board. I also had same problem of connecting the board to power supply for programming and running the board. The programmer is pin compatible with the board but the demo board has no Vcc connection in the ISP port. I found the Vcc pin in the ISP port and connected to 5v terminals of the demo board. So, i dont have to use adaptor again!&lt;br /&gt;Even I test the peripherals using the Vcc and Gnd ports from demo boards only!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDQE_mbZgYI/AAAAAAAAAMw/I4dwL9pMSXQ/s1600/Sk208.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491019336365212034" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDQE_mbZgYI/AAAAAAAAAMw/I4dwL9pMSXQ/s400/Sk208.jpg" style="cursor: pointer; height: 315px; width: 400px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQFMNUiDCI/AAAAAAAAAM4/3_m3ecsOpdA/s1600/Sk209.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491019552963824674" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDQFMNUiDCI/AAAAAAAAAM4/3_m3ecsOpdA/s400/Sk209.jpg" style="cursor: pointer; height: 334px; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is a ATmega16/32 development board. It also has the same problem. I did the same thing to this board also. This board has 4 LEDs for code verification. The idea of using PORTC in "remote control project using Atmega8" came from this only. I checked the status using these LEDs!&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_M97t2-ixd1U/TDQEVBu4QXI/AAAAAAAAAMQ/v-8QxqaLJWI/s1600/Sk204.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491018604960301426" src="http://3.bp.blogspot.com/_M97t2-ixd1U/TDQEVBu4QXI/AAAAAAAAAMQ/v-8QxqaLJWI/s400/Sk204.jpg" style="cursor: pointer; height: 400px; width: 322px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/TDQEeKN_V-I/AAAAAAAAAMY/l7AxXwnIaV0/s1600/Sk205.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491018761857095650" src="http://2.bp.blogspot.com/_M97t2-ixd1U/TDQEeKN_V-I/AAAAAAAAAMY/l7AxXwnIaV0/s400/Sk205.jpg" style="cursor: pointer; height: 400px; width: 277px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;u&gt;LCD Connections :&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Look at the below figure. When ever it comes to LCD, you have to take out a small PCB and prepare it for interfacing. I know it is a&amp;nbsp;tedious&amp;nbsp;job. I had modified the LCD module like this. With this module, you can directly connect the LCD to your demo boards as shown in the next figure. It is very easy to use and portable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_M97t2-ixd1U/TDQFaRwvGsI/AAAAAAAAANA/SI2gAixRHbs/s1600/Sk210.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5491019794674031298" src="http://3.bp.blogspot.com/_M97t2-ixd1U/TDQFaRwvGsI/AAAAAAAAANA/SI2gAixRHbs/s400/Sk210.jpg" style="cursor: pointer; height: 249px; width: 400px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/TDRCWi1Y60I/AAAAAAAAANY/K3q168kyE28/s1600/Sk212.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_M97t2-ixd1U/TDRCWi1Y60I/AAAAAAAAANY/K3q168kyE28/s320/Sk212.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;keep watching my blog for more updates. I will be updating all the information I collected and my projects which I did from 2 years. Subscribe to my newsletter to get email notifications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have any doubts, post you comments here or mail me @ arifuddin2007@gmail.comArifuddin Sheik&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-1543665179560139542?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/1543665179560139542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=1543665179560139542' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/1543665179560139542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/1543665179560139542'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/07/modifying-avr-development-board-and.html' title='Modifying AVR Development Board and Programmer'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_M97t2-ixd1U/TDQEqE6G2tI/AAAAAAAAAMg/pRiuA9vziqM/s72-c/Sk206.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-6487650382902190522</id><published>2010-05-02T16:47:00.007+05:30</published><updated>2010-07-13T12:37:09.428+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>Cell Phone Controlled Home Appliance circuit</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;u&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Circuit Description:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;Ever Imagined controlling your home appliances using your cell phone. You can find a lot of circuits for this application. But they make use of Telephone. I modified the circuit and redesigned it to make it compatible with normal cell phone headphone. Just connect the your phone headphone jack to the phone and the connections to the circuit as shown in the circuit. The relays are connected using the resistor and transistor. Use ULN2803 to reduce the circuit size and increase the performance.  The connections from the output of flip-flops has to be given to the inputs of the buffer and relays has to be connected to the buffer.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Normally the tip of the headset is connected to the circuit to the 0.1uF capacitor as shown in the circuit diagram. The ground pin of headphone is connected to the ground of the circuit. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Circuit Diagram:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; font-weight: normal;"&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S91mXt_04uI/AAAAAAAAALA/Jxj9lK12ol4/s1600/DTMF+controlled+home+appliances.gif"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466638080367977186" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S91mXt_04uI/AAAAAAAAALA/Jxj9lK12ol4/s400/DTMF+controlled+home+appliances.gif" style="cursor: pointer; display: block; height: 255px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;Operation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;When you press keys in your Phone, the other person will hear some tones with respect to keys pressed. This tones are based on the DTMF technology. Data is transmitted in terms of pair of tones. The receiver detects the valid pair and gives the appropriate BCD code as the output of the DTMF decoder IC. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;The output of the DTMF IC is given to the 4x16 decoder IC. We have 12 signals possible because we have 12 keys  (including * and #) in mobile keypad. The decoder are outputs are then given to D flip-flops. The outputs toggle whenever a key is pressed. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;In DTMF there are 16 distinct tones. Each tone is the sum of two frequencies: one from a low and one from a high frequency group. There are four different frequencies in each group.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;Your phone only uses 12 of the possible 16 tones. If you look at your phone, there are only 4 rows (R1, R2, R3 and R4) and 3 columns (C1, C2 and C3). The rows and columns select frequencies from the low and high frequency group respectively. The exact value of the frequencies are listed in Table 3 below:&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;br /&gt;&lt;table border="5" cellspacing="3" colspec="L20 L20"&gt;&lt;caption align="top"&gt;TABLE 3: DTMF Row/Column Frequencies&lt;/caption&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;LOW-FREQUENCIES&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ROW #&lt;/td&gt;&lt;td&gt;FREQUENCY (HZ)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;R1: ROW 0&lt;/td&gt;&lt;td&gt;697&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;R2: ROW 1&lt;/td&gt;&lt;td&gt;770&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;R3: ROW 2&lt;/td&gt;&lt;td&gt;852&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;R4: ROW 3&lt;/td&gt;&lt;td&gt;941&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;HIGH-FREQUENCIES&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;COL #&lt;/td&gt;&lt;td&gt;FREQUENCY (HZ)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C1: COL 0&lt;/td&gt;&lt;td&gt;1209&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C2: COL 1&lt;/td&gt;&lt;td&gt;1336&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C3: COL 2&lt;/td&gt;&lt;td&gt;1477&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C4: COL 3&lt;/td&gt;&lt;td&gt;1633&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C4 not used in phones&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;br /&gt;Thus to decipher what tone frequency is associated with a particular key, look at your phone again. Each key is specified by its row and column locations. For example the "2" key is row 0 (R1) and column 1 (C2). Thus using the above table, "2" has a frequency of 770 + 1336 = 2106 Hz The "9" is row 2 (R3) and column 2 (C3) and has a frequency of 852 + 1477 = 2329 Hz.&lt;br /&gt;The following graph is a captured screen from an oscilloscope. It is a plot of the tone frequency for the "1" key:&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;img src="http://www.boondog.com/tutorials/dtmf/dtmf1key.gif" /&gt;&lt;/center&gt;&lt;br /&gt;You can see that the DTMF generated signal is very distinct and clear. The horizontal axis is in samples. The frequency of the tone is about 1900 Hz - close to the 1906 Hz predicted by Table 3 (697+1209).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;If you have any doubts or problems connecting the headphone to the circuit, post you comments here or mail me @ arifuddin2007@gmail.com&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Arifuddin Sheik&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-6487650382902190522?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/6487650382902190522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=6487650382902190522' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/6487650382902190522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/6487650382902190522'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/cell-phone-controlled-home-appliance.html' title='Cell Phone Controlled Home Appliance circuit'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/S91mXt_04uI/AAAAAAAAALA/Jxj9lK12ol4/s72-c/DTMF+controlled+home+appliances.gif' height='72' width='72'/><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-8990956774223804717</id><published>2010-05-02T12:39:00.001+05:30</published><updated>2010-07-13T12:37:09.429+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>Circuit for controlling 8 appliances using TV Remote</title><content type='html'>&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;IR decoder Circuit:&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Calibri, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium; line-height: 18px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Calibri, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium; line-height: 18px;"&gt;&lt;div class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span lang="EN-US" style="color: black; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;The IR circuit can be used to switch devices using TV Remote. Normal circuits can switch only one device. But using this circuit, different devices can be controlled using same remote with different switches. In this circuit, we interfaced 8 devices. These devices are switched using remote keypad -1 to 8. AT89S52 microcontroller is used to control the inputs and outputs. TSOP 1738 (infrared receiver) is used to receive the infrared signals from TV Remote. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span lang="EN-US" style="color: black; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span lang="EN-US" style="color: black; line-height: 115%;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;ULN2803 (High voltage, high current) buffer is used to drive relays.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US" style="font-size: 14pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Circuit Diagram:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; font-family: Georgia, serif; font-weight: normal; line-height: normal;"&gt;&lt;a href="http://3.bp.blogspot.com/_M97t2-ixd1U/S90nCx74k_I/AAAAAAAAAJU/trpqO1_jzEU/s1600/IR+Decoder+circuit.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466568451415380978" src="http://3.bp.blogspot.com/_M97t2-ixd1U/S90nCx74k_I/AAAAAAAAAJU/trpqO1_jzEU/s400/IR+Decoder+circuit.jpg" style="height: 262px; width: 400px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;IR Decode Circuit&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;RC-5 Protocol:&lt;/u&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; To understand the operation the details of RC-5 Protocol has to be studied. &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; line-height: normal;"&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S90n2MSm2HI/AAAAAAAAAJc/2XRNXLV_VNY/s1600/rc5.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466569334663338098" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S90n2MSm2HI/AAAAAAAAAJc/2XRNXLV_VNY/s400/rc5.jpg" style="cursor: pointer; height: 266px; width: 400px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;Buy an 8 channel relay board for easy installation as the board will contain relay mate connectors for connecting the switch board wires. Post your doubts if you have any...&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;b&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-8990956774223804717?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/8990956774223804717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=8990956774223804717' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/8990956774223804717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/8990956774223804717'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/circuit-for-controlling-8-appliances.html' title='Circuit for controlling 8 appliances using TV Remote'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_M97t2-ixd1U/S90nCx74k_I/AAAAAAAAAJU/trpqO1_jzEU/s72-c/IR+Decoder+circuit.jpg' height='72' width='72'/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-2400309761102535465</id><published>2010-05-02T12:01:00.001+05:30</published><updated>2010-07-13T12:37:09.430+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>RF Controlled Home Appliance Circuit</title><content type='html'>&lt;div style="text-align: left;"&gt;Circuit Description:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S90gfBtS7GI/AAAAAAAAAI0/bLD5vUdRha4/s1600/Transmitter+circuit.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466561240104103010" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S90gfBtS7GI/AAAAAAAAAI0/bLD5vUdRha4/s400/Transmitter+circuit.png" style="cursor: hand; cursor: pointer; display: block; height: 285px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;u&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Transmitter&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;This circuit consists of Transmitter and Receiver section. The circuit can be used to control home appliances within a range of 30 meters. In open area, you can expect a range of 100 meters.  The circuit comprises HT12 Encoder and Decode IC's. HT12 Encoder is used in the transmitter (remote) circuit where as HT12E is used in receiver circuit. The Encode IC encodes the 4 bits of data and transmit it serially to to RF Transmitter module.  These 433Mhz transmitter and receiver modules operate using ASK Modulation.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Receiver:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; color: #0000ee;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466561772682011698" src="http://4.bp.blogspot.com/_M97t2-ixd1U/S90g-Btw5DI/AAAAAAAAAI8/lCLo9QpgJnI/s400/Receiver+circuit.png" style="cursor: pointer; display: block; height: 205px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 400px;" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; color: #0000ee;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For complete information regarding ASK Modulation, &lt;a href="http://en.wikipedia.org/wiki/Amplitude-shift_keying"&gt;click here&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The converse operation happens in the receiver section. The serial information is given to the decode section and the ICHT12D decodes the 4 bit data and gives across the data pins. The devices are then connected using the ULN2003 high voltage high current buffer. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;These are some of the images of my own remote. You can design something like this. I had modified it and soldered with in the size of 9V battery.  I will post that photos also very soon.&lt;/div&gt;&lt;div&gt;For entire range of photos of this project, &lt;a href="http://www.orkut.co.in/Main#Album?uid=13857460613059245157&amp;amp;aid=1236500456&amp;amp;p=0"&gt;click here &lt;/a&gt; ( you should be an orkut user to access them)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;goto photos : &lt;u&gt;&lt;a href="http://www.orkut.co.in/Main#Album?uid=13857460613059245157&amp;amp;aid=1236500456&amp;amp;p=0"&gt;RF circuit photos&lt;/a&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_M97t2-ixd1U/S90h4_mFWQI/AAAAAAAAAJE/FxUElBJ5-Nc/s1600/transmitter+remote.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466562785725208834" src="http://4.bp.blogspot.com/_M97t2-ixd1U/S90h4_mFWQI/AAAAAAAAAJE/FxUElBJ5-Nc/s400/transmitter+remote.jpg" style="cursor: pointer; height: 400px; width: 300px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_M97t2-ixd1U/S90iltjLPPI/AAAAAAAAAJM/_legaqkSJlA/s1600/reciever+cox.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466563553975287026" src="http://1.bp.blogspot.com/_M97t2-ixd1U/S90iltjLPPI/AAAAAAAAAJM/_legaqkSJlA/s400/reciever+cox.jpg" style="cursor: pointer; height: 300px; width: 400px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-2400309761102535465?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/2400309761102535465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=2400309761102535465' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/2400309761102535465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/2400309761102535465'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/rf-controlled-home-appliance-circuit.html' title='RF Controlled Home Appliance Circuit'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/S90gfBtS7GI/AAAAAAAAAI0/bLD5vUdRha4/s72-c/Transmitter+circuit.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-6851651538098792895</id><published>2010-05-02T11:23:00.002+05:30</published><updated>2010-07-13T12:37:09.430+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>Computer Controlled Home Appliance circuit</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S90TkwLjB3I/AAAAAAAAAIs/Vt_SHCQhLNk/s1600/parallel_port_switch.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466547044827203442" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S90TkwLjB3I/AAAAAAAAAIs/Vt_SHCQhLNk/s400/parallel_port_switch.jpg" style="cursor: hand; cursor: pointer; display: block; height: 203px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;you can control your home appliances very easily using this circuit. Use ULN2803 for controlling 8 devices. just connect pin-1 of parallel port connector to pin-1 of ULN2803. You will have 8 channels in ULN2803 and 9th pin is ground for that IC. &lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To &lt;a href="http://www.4shared.com/file/0CUyOGmg/Parallel_Port_Controller.html"&gt;Download&lt;/a&gt; the Parallel Port Controller software to switch the devices &lt;a href="http://www.4shared.com/file/0CUyOGmg/Parallel_Port_Controller.html"&gt;Click here&lt;/a&gt;.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-6851651538098792895?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/6851651538098792895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=6851651538098792895' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/6851651538098792895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/6851651538098792895'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/computer-controlled-home-appliance.html' title='Computer Controlled Home Appliance circuit'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/S90TkwLjB3I/AAAAAAAAAIs/Vt_SHCQhLNk/s72-c/parallel_port_switch.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-8020269612995094879</id><published>2010-05-02T09:58:00.001+05:30</published><updated>2010-07-13T12:37:09.431+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>TV Remote controlled home appliance circuit</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S90AT1kv66I/AAAAAAAAAIk/T9-JFaviauQ/s1600/remot+-+appliance+circuit+.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466525863496379298" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S90AT1kv66I/AAAAAAAAAIk/T9-JFaviauQ/s400/remot+-+appliance+circuit+.jpg" style="cursor: hand; cursor: pointer; float: right; height: 165px; margin: 0 0 10px 10px; width: 400px;" /&gt;&lt;/a&gt;This is one of the popular EFY circuit. i build this one very easily. The circuit consists of very less components and simple in design.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Connect this circuit to any of your home appliances (lamp, fan, radio, etc) to make the appliance turn on/off from a TV, VCD or DVD remote control. The circuit cane activated from up to 10 metres. The 38kHz infrared (IR) rays generated by the remote control are received by IR receiver module TSOP1738 of the circuit. Pin 1 of TSOP1738 is connected to ground, pin 2 is connected to the power supply through resistor R5 and the output is taken from pin 3. The output signal is amplified by transistor T1 (BC558).&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt; The amplified signal is fed to clock pin 14 of decade counter IC CD4017 (IC1). Pin 8 of IC1 is grounded, pin 16 is connected to Vcc&amp;nbsp;and pin 3 is connected to LED1 (red), which glows to indicate that the appliance is ‘off.’ The output of IC1 is taken from its pin 2. LED2 (green) connected to pin 2 is used to indicate the ‘on’ state of the appliance. Transistor T2 (BC548) connected to pin 2 of IC1 drives relay RL1. Diode 1N4007 (D1) acts as a freewheeling diode. The appliance to be controlled is connected between the pole of the relay and neutral terminal of mains. It gets connected to live terminal of AC&amp;nbsp;mains via normally opened (N/O) contact when the relay energises.&amp;nbsp;you can use any NPN transistor inplace of BC548. You can also use SL100 or any NPN transistor lying around you.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The delay depends on the C1 capacitor. Using higher value capacitor will create more delay and using less value capacitor will switch the circuit more than 2 times when you press a remote. Analyse the circuit by placing the 10uf capacitor in place of C1 (100uf). &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;personally I faced many problems using relay for the first time. A detailed explanation regarding relays can be found &lt;a href="http://en.wikipedia.org/wiki/Relay"&gt;here&lt;/a&gt;.. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you face any problems soldering this circuit, post here. This is simple than the previous version of this type of this circuit. The &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-8020269612995094879?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/8020269612995094879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=8020269612995094879' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/8020269612995094879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/8020269612995094879'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/tv-remote-controlled-home-appliance_01.html' title='TV Remote controlled home appliance circuit'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/S90AT1kv66I/AAAAAAAAAIk/T9-JFaviauQ/s72-c/remot+-+appliance+circuit+.jpg' height='72' width='72'/><thr:total>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7652984151809833684.post-5893879583422345502</id><published>2010-05-02T09:39:00.001+05:30</published><updated>2010-07-13T12:37:09.432+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Home Appliance Control'/><title type='text'>TV Remote controlled home appliance circuit with 555 timer</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_M97t2-ixd1U/S9z-SYquOmI/AAAAAAAAAIc/1Qusm-qTPvk/s1600/remote-appliance-switch-circuit_ct.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5466523639533681250" src="http://2.bp.blogspot.com/_M97t2-ixd1U/S9z-SYquOmI/AAAAAAAAAIc/1Qusm-qTPvk/s400/remote-appliance-switch-circuit_ct.jpg" style="cursor: hand; cursor: pointer; float: right; height: 226px; margin: 0 0 10px 10px; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: black; font-family: Georgia, serif; font-size: 12pt;"&gt;This is my first post and and this is the first circuit i made. There are many types of circuits for controlling home appliances using TV Remote. In fact I had confused a lot when I am a beginner searching for this type of circuits. The circuit here 555 timer IC to avoid fast switching. you can only switch the circuit after 3 seconds. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span style="color: #333333; font-family: Georgia, serif; font-size: 12pt;"&gt;IR remote sensor IC TSOP 1738 is used for recieving the signal. Normally when no signal is falling on IC3 the output of it will be high.This makes Q1 OFF.When a signal of 38 KHz from the TV remote falls on the IC3 its output goes low.This makes Q1 conduct and a negative pulse is obtained at pin 2 of IC 1  NE 555.Due to this IC1 wired as a monostable multivibrator produces a 4 Sec  long high signal at its out put.&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #333333; font-family: Georgia, serif; font-size: 12pt;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Georgia, serif; font-size: 16px;"&gt;This high out put is the clock for IC 2 which is wired as a Flipflop and of , its two outputs pin 3 goes low and pin 2 goes high.The high output at pin 2 is amplified to drive the relay .For the next signal  the outputs of IC2 toggles state. Result, we get a relay toggling on each press on the remote.Any appliance connected to this circuit can be switched ON or OFF.&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;The 555 timer is used to create a 3 sec delay for avoiding fast switching. You can also achieve this by using a high value capacitor across TSOP sensor. &lt;a href="http://arif-ece.blogspot.com/2010/05/tv-remote-controlled-home-appliance_01.html"&gt;Click here&lt;/a&gt; to go view that circuit.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7652984151809833684-5893879583422345502?l=arif-ece.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arif-ece.blogspot.com/feeds/5893879583422345502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7652984151809833684&amp;postID=5893879583422345502' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/5893879583422345502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7652984151809833684/posts/default/5893879583422345502'/><link rel='alternate' type='text/html' href='http://arif-ece.blogspot.com/2010/05/tv-remote-controlled-home-appliance.html' title='TV Remote controlled home appliance circuit with 555 timer'/><author><name>arifuddin</name><uri>http://www.blogger.com/profile/07827523964099094460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_M97t2-ixd1U/S91VA_aZmGI/AAAAAAAAAKI/hoO6vi61WeM/S220/Image203.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M97t2-ixd1U/S9z-SYquOmI/AAAAAAAAAIc/1Qusm-qTPvk/s72-c/remote-appliance-switch-circuit_ct.jpg' height='72' width='72'/><thr:total>5</thr:total></entry></feed>
