<?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:blogger='http://schemas.google.com/blogger/2008' 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-9119675286469574924</id><updated>2024-09-14T08:16:36.233-07:00</updated><category term="Arduino"/><category term="Matlab"/><title type='text'>Programming Codes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-496704006724817061</id><published>2013-05-30T23:59:00.001-07:00</published><updated>2013-05-31T01:24:27.120-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Power Failure Indicator Circuit</title><content type='html'>I have made a simple power failure indicator circuit using the Arduino board. This circuit will displays a message in the serial port that the Mains Supply is OFF along with the time when the power has gone. So if your UPS backup is 20min., you can keep track of the time when the power has gone.&lt;br /&gt;
&lt;br /&gt;
You must be thinking that for making such a circuit, you must need an extra battery for its working. To remove such a drawback, I powered the arduino board through the USB board of PC and the mains is connector through a 12V DC adapter and a relay. The circuit diagram is quite simple and is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLCHgFujbkHQ5hKXCLfrs-CbJcRnhZtIntyLdmTMYKbxzGDpltanxHSKPKcWQgnZ6hyphenhyphenyUMzlyYkFTer0OVZOiickUVIGnQIp2Il0wuJ-vu97FhqA_uhG1QWjG0Bn9erG7b-EYt5gFS0pY/s1600/Power+failure+circuit_schem.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLCHgFujbkHQ5hKXCLfrs-CbJcRnhZtIntyLdmTMYKbxzGDpltanxHSKPKcWQgnZ6hyphenhyphenyUMzlyYkFTer0OVZOiickUVIGnQIp2Il0wuJ-vu97FhqA_uhG1QWjG0Bn9erG7b-EYt5gFS0pY/s1600/Power+failure+circuit_schem.jpg&quot; height=&quot;488&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Power Failure Circuit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
You can also use a diode in input of 12VDC Relay for the protection of the Relay.&lt;br /&gt;
&lt;br /&gt;
The program written in Arduino IDE is also given below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
int r;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // will store the status of Mains&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
int s = 0;&amp;nbsp; // intialise seconds&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
int m = 0;&amp;nbsp; // iniialise minutes&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
void setup(void)&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; // start serial port&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; Serial.begin(9600); //open serial port&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; pinMode(13, INPUT); //initialize input pin&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
void loop(void)&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
{ &lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; r=digitalRead(13); // read data&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; if(r == HIGH) &lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;Mains Supply is ON&quot;); //write serially&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; m = 0;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; s = 0;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(1000); // delay of 1 sec.&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; if(r == LOW)&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;Mains Supply is OFF&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; s += 1;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(s&amp;gt;60)&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m += 1;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = 0;&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&quot;Time=&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(m);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&quot; min &amp;amp;&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(s);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot; sec&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(1000);&amp;nbsp;&amp;nbsp; // delay of 1 sec.&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #b6d7a8;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When your switch ON the mains supply, then the message displayed in serial port is&lt;br /&gt;
&lt;i&gt;Mains Supply is ON&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
When your switch OFF the mains supply, then the message displayed in serial port is&lt;br /&gt;
&lt;i&gt;Mains Supply is OFF&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Time= 0min &amp;amp;1sec&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Then the timer keeps on incrementing.&lt;i&gt;&lt;br /&gt;&lt;/i&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-41346071-1&#39;]);
  _gaq.push([&#39;_setDomainName&#39;, &#39;askforcode.blogspot.com&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/496704006724817061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/05/power-failure-indicator-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/496704006724817061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/496704006724817061'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/05/power-failure-indicator-circuit.html' title='Power Failure Indicator Circuit'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLCHgFujbkHQ5hKXCLfrs-CbJcRnhZtIntyLdmTMYKbxzGDpltanxHSKPKcWQgnZ6hyphenhyphenyUMzlyYkFTer0OVZOiickUVIGnQIp2Il0wuJ-vu97FhqA_uhG1QWjG0Bn9erG7b-EYt5gFS0pY/s72-c/Power+failure+circuit_schem.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-5201424841345187838</id><published>2013-05-07T22:32:00.001-07:00</published><updated>2013-05-31T01:25:02.697-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Pulse Lighting/Strobbing with Arduino(using DIP switch, LCD and transistor)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;u&gt;Get multiple Inputs from DIP Switch and then manipulate the sampling/delay time&lt;/u&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Once, I was given a project to change the switching/sampling time of a pulse light in milliseconds. As variable millisecond delay is difficult to achieve in a 555 timer circuit, so i thought of using micro-controller, ARDUINO.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I used the following items:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
a) 8 position DIP Switch&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilR9TUwAWsYZ-km_yWZK3T24oEyIOIDiGZiM_9mOB2QUoXLpL9NoOu-JwvbGA4IKVmseI-I3kkCNNvj0hEk0Y9uSFie2ujhGOTE3X2YXZk_AcwRDL1-y6sJtMq-sHU54kpQmaptdwUc1E/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilR9TUwAWsYZ-km_yWZK3T24oEyIOIDiGZiM_9mOB2QUoXLpL9NoOu-JwvbGA4IKVmseI-I3kkCNNvj0hEk0Y9uSFie2ujhGOTE3X2YXZk_AcwRDL1-y6sJtMq-sHU54kpQmaptdwUc1E/s200/Untitled.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
b) 16x2 LCD&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_VBJAEXLUyuClgQUjqHvEh9SxHo_H4-zKDELdIWqEJDVOww3u5xX0OkKTaMIXWm8oO6y1FH8rq7yv7Vxj9QqowutSWm9zvxK379SdG0ZJrTCt2ma6gT1uv3CSn2joJfymvXIt34PR1lA/s1600/LCD.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;102&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_VBJAEXLUyuClgQUjqHvEh9SxHo_H4-zKDELdIWqEJDVOww3u5xX0OkKTaMIXWm8oO6y1FH8rq7yv7Vxj9QqowutSWm9zvxK379SdG0ZJrTCt2ma6gT1uv3CSn2joJfymvXIt34PR1lA/s200/LCD.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
c) Atmega328&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8i_2dtESa0_FfOBp_7S1lXLX_VhO_RIMd0FcNODY_yxvn3m8qYM9PIAt6Ucp-tQzIx_Vsxprede02PD_liy_UBYv9M9g61Awk_xBHTyhRgQzTOscl3pazoIKSvpc3kyMgX_FhFIGIoNY/s1600/atmega328p.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8i_2dtESa0_FfOBp_7S1lXLX_VhO_RIMd0FcNODY_yxvn3m8qYM9PIAt6Ucp-tQzIx_Vsxprede02PD_liy_UBYv9M9g61Awk_xBHTyhRgQzTOscl3pazoIKSvpc3kyMgX_FhFIGIoNY/s200/atmega328p.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
and other related items like crystal, resistor, capacitor etc.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I connect them as shown in the following schematics:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikZZ5HyYqQpZkeFHRtObPfMcrf5ZqI-YZhcI7xHj9LEAv7CmVJ92sjqNPfVLrmKRXaAdDxZsJVLn1UcXprTiJMeg3NHZLBrcRz4ny-0u-hABwmotdKDxKK8ApUPP8JjSCxeHsHW6T3zNE/s1600/Pulse+IR-+Circuit+Diagram.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;576&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikZZ5HyYqQpZkeFHRtObPfMcrf5ZqI-YZhcI7xHj9LEAv7CmVJ92sjqNPfVLrmKRXaAdDxZsJVLn1UcXprTiJMeg3NHZLBrcRz4ny-0u-hABwmotdKDxKK8ApUPP8JjSCxeHsHW6T3zNE/s640/Pulse+IR-+Circuit+Diagram.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Pulse Lighting Circuit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
For switching the light, i used a simple FET as the load was only 12V and 1A.&lt;br /&gt;
&lt;br /&gt;
By using the below program, you can change the delay time from 65.01ms to 67.55ms with a resolution of 0.01ms. The delay/sampling range can be change according to your requirement by using a map function. &lt;br /&gt;
&lt;br /&gt;
The code burned in the ATMEGA328 is given below:&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;#include &amp;lt;LiquidCrystal.h&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;br /&gt;int led = 13;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;br /&gt;int dip1 = 9; int dip2 = 8;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;int dip3 = 7; int dip4 = 6;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;int dip5 = 5; int dip6 = 4;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;int dip7 = 3; int dip8 = 2;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;br /&gt;int R0 = 0; int R1 = 0; int R2 = 0; int R3=0; int R4=0; int R5=0; int R6=0; int R7=0;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;LiquidCrystal lcd(A0, A1, A2, A3, A4, A5);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;void setup() &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(led, OUTPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip1, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip2, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip3, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip4, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip5, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip6, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip7, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; pinMode(dip8, INPUT);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; lcd.begin(16, 2);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; lcd.print(&quot;Delay=&quot;);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;}&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;void loop() &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;{&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R0 = digitalRead(dip1);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R1 = digitalRead(dip2);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R2 = digitalRead(dip3);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R3 = digitalRead(dip4);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R4 = digitalRead(dip5);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R5 = digitalRead(dip6);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R6 = digitalRead(dip7);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; R7 = digitalRead(dip8);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; float dipval= ((1*R0)+(2*R1)+(4*R2)+(8*R3)+(16*R4)+(32*R5)+(64*R6)+(128*R7));&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; float fval = (65.00 + (dipval/100));&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp; &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;&lt;/i&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; for(int i = 0; i &amp;lt; 50; i++)&lt;/i&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; {&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; digitalWrite(led, HIGH);&amp;nbsp;&amp;nbsp; // turn the LED on (HIGH is the voltage level)&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; delay(fval);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; digitalWrite(led, LOW);&amp;nbsp;&amp;nbsp;&amp;nbsp; // turn the LED off by making the voltage LOW&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; delay(fval);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; lcd.setCursor(7, 0);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; lcd.print(fval);&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; }&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;}&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Comment below if you need further information.&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-41346071-1&#39;]);
  _gaq.push([&#39;_setDomainName&#39;, &#39;askforcode.blogspot.com&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/5201424841345187838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/05/pulse-lightingstrobbing-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/5201424841345187838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/5201424841345187838'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/05/pulse-lightingstrobbing-with.html' title='Pulse Lighting/Strobbing with Arduino(using DIP switch, LCD and transistor)'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilR9TUwAWsYZ-km_yWZK3T24oEyIOIDiGZiM_9mOB2QUoXLpL9NoOu-JwvbGA4IKVmseI-I3kkCNNvj0hEk0Y9uSFie2ujhGOTE3X2YXZk_AcwRDL1-y6sJtMq-sHU54kpQmaptdwUc1E/s72-c/Untitled.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-8847156027519430057</id><published>2013-03-16T03:15:00.002-07:00</published><updated>2013-05-31T01:25:13.360-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Upload Bootloader to NEW ATMEGA328 using your Arduino Board (stand-alone circuit)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;GET RID OF THE AVR DUDE sync. PROBLEM in Arduino&lt;/h2&gt;
&lt;br /&gt;
Are you facing problem in uploading boot-loader to newly purchased Atmega Micro-controller? Are you are facing AVR DUDE sync problem even after selecting the proper Arduino board and serial port? This is the problem of absence of bootloader in you micro-contoller. Well everyone will suggest to buy a &lt;span itemprop=&quot;url&quot;&gt;&lt;span class=&quot;ProductTitleView&quot; itemprop=&quot;name&quot;&gt;ATMEL AVRISP mkII In Circuit Programmer&lt;/span&gt; for this problem. But here is a simple solution.&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span itemprop=&quot;url&quot;&gt;Now you can use your Arduino Board to upload the Bootloader in the new micro-controller. Follow the following steps carefully:&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span itemprop=&quot;url&quot;&gt;You just need to make a simple stand-alone circuit for this. The following steps are used for the Arduino Duemilanove board and newly purchased ATMEGA328 controller without the bootloader.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU_UeCa2uZfO-QRYW0i8pmk9by-6giM1beLS6csXLL-Q2eHFFZfSpTasi0D13gnv08pq8nC0l5gY2kHOjkHLq3VbsAcx04nz1hZQSgLEjAXZRJBvdgDGOf3w5rAUmi0I8wEuxSViEKLDA/s1600/arduino+duemilanove.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU_UeCa2uZfO-QRYW0i8pmk9by-6giM1beLS6csXLL-Q2eHFFZfSpTasi0D13gnv08pq8nC0l5gY2kHOjkHLq3VbsAcx04nz1hZQSgLEjAXZRJBvdgDGOf3w5rAUmi0I8wEuxSViEKLDA/s320/arduino+duemilanove.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span itemprop=&quot;url&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHebueHxQmLbBxKWvYbTPuV5R-fNAk_daQcQc1mEfJmvrPQA5M0yoLtZfLQDrIzqvfNhyduut2GbvjFJo3eKH3NR5zjQ89Xm9vqIOEQSGCLBWc0jBUNjzLD37W-p4hl_9GVAZr3biRBU/s1600/atmega328p.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHebueHxQmLbBxKWvYbTPuV5R-fNAk_daQcQc1mEfJmvrPQA5M0yoLtZfLQDrIzqvfNhyduut2GbvjFJo3eKH3NR5zjQ89Xm9vqIOEQSGCLBWc0jBUNjzLD37W-p4hl_9GVAZr3biRBU/s200/atmega328p.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span itemprop=&quot;url&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
The pin diagram of ATEGA328 is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWa763J1Rj0NF8OJ3LARj7m1wMtFinyNYAHh8GGcjOzdB56CCRuyG_Eij_NeAYUftuVo0ZLoolwcoQ9HazF5mEI0FaPZj4zJCy6_QYhsDnsrdN3IsRxdRxSfzxGwFu93k38mL0SGkjwrw/s1600/atmega328-arduino-pinout.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWa763J1Rj0NF8OJ3LARj7m1wMtFinyNYAHh8GGcjOzdB56CCRuyG_Eij_NeAYUftuVo0ZLoolwcoQ9HazF5mEI0FaPZj4zJCy6_QYhsDnsrdN3IsRxdRxSfzxGwFu93k38mL0SGkjwrw/s320/atmega328-arduino-pinout.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Now you have to make a simple circuit with your arduino board as shown below:&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88mfwXDQtjKiD2kCAx6JaCK7tJRGJyssU37WwPRa4rUs4IpnMfRyzgCk2aISAoq_q0-V09Xoc8LBOrVslLFxw3cB-Q9sRLdS6n3IxosGVkjWb1alzeOTmriiT5nN3x-FFgR0-bdYTFWk/s1600/arduino+bootloader.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88mfwXDQtjKiD2kCAx6JaCK7tJRGJyssU37WwPRa4rUs4IpnMfRyzgCk2aISAoq_q0-V09Xoc8LBOrVslLFxw3cB-Q9sRLdS6n3IxosGVkjWb1alzeOTmriiT5nN3x-FFgR0-bdYTFWk/s400/arduino+bootloader.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Arduino as a ISP&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;

&lt;span itemprop=&quot;url&quot;&gt;You will need the following equipments:&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;1. Atmega328 micro-controller&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;2. Capacitor 22pF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;3. Crystal Oscillator&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;3. Resistance 1K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;4. LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiArJ03969Fw_sF8irXPDPTsmSVBhZSw6nn_KXbSLG1PtxqBbTkOXPpBJ3zlWRgOVaAgEheu3I_QUl9ryQ-Ta-lrdxBMSWEvNanbc_BKkOEZoVp1BhG6fSiEcWw3cNEfaeo2MB3gQjlFoI/s1600/DSC01383.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiArJ03969Fw_sF8irXPDPTsmSVBhZSw6nn_KXbSLG1PtxqBbTkOXPpBJ3zlWRgOVaAgEheu3I_QUl9ryQ-Ta-lrdxBMSWEvNanbc_BKkOEZoVp1BhG6fSiEcWw3cNEfaeo2MB3gQjlFoI/s320/DSC01383.JPG&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span itemprop=&quot;url&quot;&gt;Once you are done with the connections, then open the Arduino IDE.&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;Select the Arduino Duemilanove board and the proper Serial port.&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span itemprop=&quot;url&quot;&gt;Then click on the open tab and select the ArduinoISP as shown.&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRkn-Nnpgb6zXrUOh6DPRQn0SVpNc01puVSF07d_9tParW50MzNOMtjdyLcdRVLsa_AHiKext9w1zZYRP4xGxUClugoMenRdWgoJrDL252OkDU9FEBcPjyrpa0BmDLCsXJnUoCegb_Yg/s1600/arduino+ISP.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbRkn-Nnpgb6zXrUOh6DPRQn0SVpNc01puVSF07d_9tParW50MzNOMtjdyLcdRVLsa_AHiKext9w1zZYRP4xGxUClugoMenRdWgoJrDL252OkDU9FEBcPjyrpa0BmDLCsXJnUoCegb_Yg/s400/arduino+ISP.jpg&quot; width=&quot;253&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span itemprop=&quot;url&quot;&gt;Upload the ArduinoISP in the Arduino board. &lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;Then click on the Tools menu and then on the Burnloader as shown.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAStV4VZUZ2Qlp2VzklZLhsPIaPNZwSBYnd_P9TI3mgaro7gijejWyOV-Ea4ToCzLfxUsU6tIbz5yuoZlfdMg90caUQuJrH_qNLcUx-u7chFmBdYWCaLz1HcBUqbkZFw_adfL5zJFiPNY/s1600/burn+bootloader.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAStV4VZUZ2Qlp2VzklZLhsPIaPNZwSBYnd_P9TI3mgaro7gijejWyOV-Ea4ToCzLfxUsU6tIbz5yuoZlfdMg90caUQuJrH_qNLcUx-u7chFmBdYWCaLz1HcBUqbkZFw_adfL5zJFiPNY/s400/burn+bootloader.jpg&quot; width=&quot;333&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;If you have made the connections properly, then it will take a minute to burn the bootloader and the 13th pin LED on Arduino board will blink many times.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span itemprop=&quot;url&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span itemprop=&quot;url&quot;&gt;Now, you have successfully uploaded the bootloader in you new ATEMGA328. Now you can replace the microcontroller in the Arduino board with the newly purchased ATMEGA328. &lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-41346071-1&#39;]);
  _gaq.push([&#39;_setDomainName&#39;, &#39;askforcode.blogspot.com&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/8847156027519430057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/03/upload-bootloader-to-new-atmega328.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8847156027519430057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8847156027519430057'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/03/upload-bootloader-to-new-atmega328.html' title='Upload Bootloader to NEW ATMEGA328 using your Arduino Board (stand-alone circuit)'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU_UeCa2uZfO-QRYW0i8pmk9by-6giM1beLS6csXLL-Q2eHFFZfSpTasi0D13gnv08pq8nC0l5gY2kHOjkHLq3VbsAcx04nz1hZQSgLEjAXZRJBvdgDGOf3w5rAUmi0I8wEuxSViEKLDA/s72-c/arduino+duemilanove.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-8487690345326207601</id><published>2013-03-07T03:41:00.000-08:00</published><updated>2013-05-31T01:25:24.143-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Line Follower Library for Arduino free download</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Everyone in his/her college life is crazy after the Line Follower Robot. A simple line-follower can be made by using two IR Sensors and two DC motors. So, for a simple line follower using two IR Sensors and two DC motors, i have written a special library for Arduino to make things easy. You can download the library from the below link: &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/?8rpx6xrk48z67jy&quot; target=&quot;_blank&quot;&gt;http://www.mediafire.com/?8rpx6xrk48z67jy&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now you must know how to install this library in your arduino software.&lt;br /&gt;
&lt;br /&gt;
Firstly, extract the filled from the compressed folder. Then copy the whole Line follower folder into the Libraries folder present in the arduino folder as shown in the following image:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaz4I9EP_TrgFrp8Xip9K0cu5jJLFFfld4pIxeSGghz16wvq5IUkAq37LIFcTjxx1eVNir1-veySUYDaGSvpnTE8QSZejAFNla3a6x6YepEz_bix8pVzcLSYm3C3AL02dsGbFT2nVo0l0/s1600/Arduino+library.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaz4I9EP_TrgFrp8Xip9K0cu5jJLFFfld4pIxeSGghz16wvq5IUkAq37LIFcTjxx1eVNir1-veySUYDaGSvpnTE8QSZejAFNla3a6x6YepEz_bix8pVzcLSYm3C3AL02dsGbFT2nVo0l0/s640/Arduino+library.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JDYpzs1OtHq6TC3K68c57gZ6Y4FVpXAH1kisw12LDt51f2ya-aQESFeiv7evZnyL1Tne_9-oF8CNX1-ZnHSxIIK7DzLt04VOyJifdPyXJ7-T6ACYWeNpdOXfzfXyWhKF11WniIFXeb8/s1600/arduino+library+1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JDYpzs1OtHq6TC3K68c57gZ6Y4FVpXAH1kisw12LDt51f2ya-aQESFeiv7evZnyL1Tne_9-oF8CNX1-ZnHSxIIK7DzLt04VOyJifdPyXJ7-T6ACYWeNpdOXfzfXyWhKF11WniIFXeb8/s640/arduino+library+1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Now Open your Arduino Software&lt;br /&gt;
&lt;br /&gt;
Then go to the Sketch Tab&amp;gt; Import Library&amp;gt; check whether Linefollower is showing or not.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVJpwoCMnBQv4ZvubUV-GY-Qr14-U92vHN-OXN4Z-nQwVvb8L8uYJFHLKS8y3DSpA30vwi9A6oSLo_GVPjC9KTbVsI2FxqDt7mcoA8ARfiVCoA0ZiNEjNA3hOEV9IYA2YV3OXUc3aIWl8/s1600/arduino+library+2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVJpwoCMnBQv4ZvubUV-GY-Qr14-U92vHN-OXN4Z-nQwVvb8L8uYJFHLKS8y3DSpA30vwi9A6oSLo_GVPjC9KTbVsI2FxqDt7mcoA8ARfiVCoA0ZiNEjNA3hOEV9IYA2YV3OXUc3aIWl8/s640/arduino+library+2.jpg&quot; width=&quot;532&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
If showing then go to open tool&amp;gt; Linefollower &amp;gt; linefollower as shown in the below image:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrp64ARyGf8IcGUmphME8wab3fpREDcmzr020AhDg_zAVN2gkiVsTNfHOzZqyR-6BzYlCF4x3Nxv98c50WdMSqYn_jECnAa9YpwB9St1SfFm45bxm-ZNR-KEaOnS_BnFJs35h8vpnFLdY/s1600/arduino+library+3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrp64ARyGf8IcGUmphME8wab3fpREDcmzr020AhDg_zAVN2gkiVsTNfHOzZqyR-6BzYlCF4x3Nxv98c50WdMSqYn_jECnAa9YpwB9St1SfFm45bxm-ZNR-KEaOnS_BnFJs35h8vpnFLdY/s640/arduino+library+3.jpg&quot; width=&quot;408&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Open this file and compile&amp;amp; upload it.&lt;br /&gt;
&lt;br /&gt;
Your line follower program is ready to use.&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-41346071-1&#39;]);
  _gaq.push([&#39;_setDomainName&#39;, &#39;askforcode.blogspot.com&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/8487690345326207601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/03/line-follower-library-for-arduino-free.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8487690345326207601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8487690345326207601'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/03/line-follower-library-for-arduino-free.html' title='Line Follower Library for Arduino free download'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaz4I9EP_TrgFrp8Xip9K0cu5jJLFFfld4pIxeSGghz16wvq5IUkAq37LIFcTjxx1eVNir1-veySUYDaGSvpnTE8QSZejAFNla3a6x6YepEz_bix8pVzcLSYm3C3AL02dsGbFT2nVo0l0/s72-c/Arduino+library.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-1686194370766850948</id><published>2013-03-01T03:40:00.002-08:00</published><updated>2013-03-01T07:33:39.277-08:00</updated><title type='text'>Make Complex PCB Circuit Diagram easily with Fritzing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you feel difficult to use various PCB circuit making software, then this post is very useful for you. Now you can make complex PCB circuit for free without having deep circuit making knowledge. You just simply make connections using Bread-board on very user-friendly interface. Physical prototyping is now moved to actual product.&lt;br /&gt;
&lt;br /&gt;
Fritzing is an open-source har&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ware initiative to support &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;esigners, artists, researchers an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; hobbyists to work creatively with interactive electronics. The software is created in the spirit of &lt;a href=&quot;http://en.wikipedia.org/wiki/Processing_%28programming_language%29&quot; title=&quot;Processing (programming language)&quot;&gt;Processing&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Arduino&quot; title=&quot;Arduino&quot;&gt;Arduino&lt;/a&gt;&lt;sup class=&quot;reference&quot; id=&quot;cite_ref-4&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Fritzing#cite_note-4&quot;&gt;&lt;/a&gt;&lt;/sup&gt; and allows a designer, artist, researcher, or hobbyist to document their Arduino-based prototype and create a &lt;a href=&quot;http://en.wikipedia.org/wiki/Printed_circuit_board&quot; title=&quot;Printed circuit board&quot;&gt;PCB&lt;/a&gt; layout for manufacturing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Hxhd4HKrWpg?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also download this software from the below link: &lt;br /&gt;
&lt;a href=&quot;http://fritzing.org/download/&quot; target=&quot;_blank&quot;&gt;http://fritzing.org/download/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
Installing Fritzing&lt;/h2&gt;
Please make sure your system satisfies one of these requirements:&lt;br /&gt;
&lt;em&gt;PC&lt;/em&gt; - XP an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; up&lt;br /&gt;
&lt;em&gt;Mac &lt;/em&gt;- OSX 10.5 an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; up&lt;br /&gt;
&lt;em&gt;Linux &lt;/em&gt;- a fairly recent linux &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;istro with libc &amp;gt;= 2.6&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Fritzing_schematic_view.jpg/220px-Fritzing_schematic_view.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Fritzing_schematic_view.jpg/220px-Fritzing_schematic_view.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Choose a link above to start &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ownloa&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ing the Fritzing package that&#39;s right for you.&lt;br /&gt;

    &lt;/li&gt;
&lt;li&gt;Unzip your Fritzing fol&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;er somewhere &lt;span class=&quot;highlightedSearchTerm&quot;&gt;co&lt;/span&gt;nvenient on your har&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;rive. 
 &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;discreet&quot;&gt;This may also be a goo&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; time for you to create a shortcut to the Fritzing application.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;discreet&quot;&gt;A free unzipping program can be foun&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;link-external&quot;&gt;&lt;span class=&quot;link-external&quot;&gt;&lt;span class=&quot;link-external&quot;&gt;&lt;a href=&quot;http://www.rarlab.com/download.htm&quot;&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, shoul&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; you nee&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; it.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;discreet&quot;&gt;If you are up&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ating your release of Fritzing, your custom files (parts an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; bins) are not store&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; with the application, so they will not be &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;estroye&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; if you &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;elete the ol&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;er version of the Fritzing application fol&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;er.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;To start Fritzing:
 &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;on Linux: &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ouble-click Fritzing, or try ./Fritzing in your shell win&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ow&lt;/li&gt;
&lt;li&gt;on Win&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ows: &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ouble-click fritzing.exe&lt;/li&gt;
&lt;li&gt;on Mac: &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ouble-click the Fritzing application&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If you experience problems, please try &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ownloa&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ing again. This often helps. If it &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;oesn&#39;t, have a look at our forums. &lt;br /&gt;
 &lt;/li&gt;
&lt;li&gt;Linux note: this binary release has been built an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; teste&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; un&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;er Ubuntu 10.4.2 LTS. 
  &lt;span class=&quot;highlightedSearchTerm&quot;&gt;D&lt;/span&gt;istros for other flavors of linux can be foun&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;link-external&quot;&gt;&lt;a href=&quot;https://build.opensuse.org/package/show?package=fritzing&amp;amp;project=Education&quot;&gt;here&lt;/a&gt;&lt;/span&gt;;
  an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;link-external&quot;&gt;&lt;a href=&quot;http://software.opensuse.org/download.html?project=home:Heinervdm:branches:Education&amp;amp;package=fritzing&quot;&gt;here&lt;/a&gt;&lt;/span&gt;;
  there&#39;s a &lt;a href=&quot;http://fritzing.org/media/uploads/fritzing.ymp&quot;&gt;one-click &lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ownloa&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; for openSUSE&lt;/a&gt;;
  a  Zenwalk GNU &lt;span class=&quot;link-external&quot;&gt;&lt;a href=&quot;http://zenwalk.pinguix.com/user-accounts/rsamurti/fritzing/&quot;&gt;package&lt;/a&gt;&lt;/span&gt;;
  an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; search our &lt;a href=&quot;http://fritzing.org/forum/&quot;&gt;forum&lt;/a&gt; for even more.  Fe&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ora users can install Fritzing with &#39;yum install fritzing&#39;.
  We heartily thank openSUSE, Thomas Zimmermann, &lt;span class=&quot;highlightedSearchTerm&quot;&gt;D&lt;/span&gt;ebian.org, Bruno Canning, the Fe&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;ora Project, E&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; Marshall, an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; other people an&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; organizations for making these available.  
  (But please be aware we have not teste&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt; these buil&lt;span class=&quot;highlightedSearchTerm&quot;&gt;d&lt;/span&gt;s.)&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/1686194370766850948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/03/make-complex-pcb-circuit-diagram-easily.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/1686194370766850948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/1686194370766850948'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/03/make-complex-pcb-circuit-diagram-easily.html' title='Make Complex PCB Circuit Diagram easily with Fritzing'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-3723701281830989889</id><published>2013-02-22T03:26:00.003-08:00</published><updated>2013-05-31T01:25:34.496-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Interfacing RHT03/DHT22 Temperature and humidity Sensor with Arduino</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The DHT22 Temperature and Humidity Sensor can be operated with the help of DHT22 library. The RHT03 Temperature and humidity sensor is equivalent to DHT22 sensor and so can be operated with the same library i.e. DHT22.&lt;br /&gt;
&lt;br /&gt;
The library can be downloaded from the following link:&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/?4e1x1cuvb23dns3&quot; target=&quot;_blank&quot;&gt;DHT22 Library&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The wiring of the Sensor with Arduino is shown below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZ1w9YJGAi4o8SKu0mkUj-RBLEo4W2k50b-2wwifSbiL0nkVN0ar7dUvTim166zDaVcklmAqtIXnWCMjx6BZelflFIAJtVaO7rgsz58zhbyjv9pb4Gymn8shA3PwdLY38w_nZpGed97c/s1600/url.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZ1w9YJGAi4o8SKu0mkUj-RBLEo4W2k50b-2wwifSbiL0nkVN0ar7dUvTim166zDaVcklmAqtIXnWCMjx6BZelflFIAJtVaO7rgsz58zhbyjv9pb4Gymn8shA3PwdLY38w_nZpGed97c/s320/url.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The pin configuration of the sensor is:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Pin1- +5V&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Pin2- Data&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Pin3- NULL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Pin4- GND&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You need to add an extra resistor of 10K between the data pin and the positive supply pin.&lt;br /&gt;
&lt;br /&gt;
After physically connecting the arduino with the Sensor, you need to add the DHT22 library in the Arduino Software.&lt;br /&gt;
Follow the steps to add a library in the ARDUINO Sketch:&lt;br /&gt;
1. Download the DHT22 library from the link given below:&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/?4e1x1cuvb23dns3&quot; target=&quot;_blank&quot;&gt;DHT22 Library&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. Extract the files from the DHT22.zip&lt;br /&gt;
&lt;br /&gt;
3. Copy the complete DHT22 folder and paste it to ..\Arduino\libraries\&lt;br /&gt;
&lt;br /&gt;
4. Now in order to check whether the library has been added, open the arduino window. Then click on the Sketch Tab and then on the Import Library. The DHT22 library will be shown on the top. This confirm that the library has been added successfully to software&lt;br /&gt;
&lt;br /&gt;
Now copy the following code to the editor:&lt;br /&gt;
#include &amp;lt;DHT22.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Data wire is plugged into port 7 on the Arduino&lt;br /&gt;
// Connect a 4.7K resistor between VCC and the data pin (strong pullup)&lt;br /&gt;
#define DHT22_PIN 7&lt;br /&gt;
&lt;br /&gt;
// Setup a DHT22 instance&lt;br /&gt;
DHT22 myDHT22(DHT22_PIN);&lt;br /&gt;
&lt;br /&gt;
void setup(void)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; // start serial port&lt;br /&gt;
&amp;nbsp; Serial.begin(9600);&lt;br /&gt;
&amp;nbsp; Serial.println(&quot;DHT22 Library Demo&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(void)&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp; DHT22_ERROR_t errorCode;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; delay(2000);&lt;br /&gt;
&amp;nbsp; Serial.print(&quot;Requesting data...&quot;);&lt;br /&gt;
&amp;nbsp; errorCode = myDHT22.readData();&lt;br /&gt;
&amp;nbsp; if(errorCode == DHT_ERROR_NONE)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&quot;Got Data &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(myDHT22.getTemperatureC());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&quot;C &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(myDHT22.getHumidity());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;%&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; else&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&quot;Error Code &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(errorCode);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot; readData Failed&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile and Upload the program. Then open the serial Monitor by pressing CTRL+SHIFT+M or go to tools options, then click on the Serial Monitor option.&lt;br /&gt;
&lt;br /&gt;
The Current Temperature and humidity will be shown.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ2kIQVtmXX1baNv7cfIGQ_OcqaMCp3rwcSWymFz3EceZYjbNXj8EqvvON4uakgFOScMe1vQ0yd2RcRsVNaBQn96cfRmYuIe5jQGRUIsaX4rInlfQwk8x6q6aTtZ3UVdCamBqHeGUbTEQ/s1600/fetch.php.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;444&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ2kIQVtmXX1baNv7cfIGQ_OcqaMCp3rwcSWymFz3EceZYjbNXj8EqvvON4uakgFOScMe1vQ0yd2RcRsVNaBQn96cfRmYuIe5jQGRUIsaX4rInlfQwk8x6q6aTtZ3UVdCamBqHeGUbTEQ/s640/fetch.php.gif&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-41346071-1&#39;]);
  _gaq.push([&#39;_setDomainName&#39;, &#39;askforcode.blogspot.com&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/3723701281830989889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2013/02/interfacing-rht03dht22-temperature-and.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/3723701281830989889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/3723701281830989889'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2013/02/interfacing-rht03dht22-temperature-and.html' title='Interfacing RHT03/DHT22 Temperature and humidity Sensor with Arduino'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZ1w9YJGAi4o8SKu0mkUj-RBLEo4W2k50b-2wwifSbiL0nkVN0ar7dUvTim166zDaVcklmAqtIXnWCMjx6BZelflFIAJtVaO7rgsz58zhbyjv9pb4Gymn8shA3PwdLY38w_nZpGed97c/s72-c/url.gif" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-8339787302287329622</id><published>2012-11-01T05:32:00.003-07:00</published><updated>2013-05-09T01:29:37.381-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Interfacing Temperature Sensor(LM35) and Humidity Sensor(Resistive) with Arduino and output is shown on LCD</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//The circuit:&lt;br /&gt;
// * LCD RS pin to digital pin 12&lt;br /&gt;
// * LCD Enable pin to digital pin 11&lt;br /&gt;
// * LCD D4 pin to digital pin 5&lt;br /&gt;
// * LCD D5 pin to digital pin 4&lt;br /&gt;
// * LCD D6 pin to digital pin 3&lt;br /&gt;
// * LCD D7 pin to digital pin 2&lt;br /&gt;
// * LCD R/W pin to ground&lt;br /&gt;
// * 10K resistor:&lt;br /&gt;
// * ends to +5V and ground&lt;br /&gt;
// * wiper to LCD VO pin (pin 3)&lt;br /&gt;
&lt;br /&gt;
// include the library code:&lt;br /&gt;
#include &amp;lt;LiquidCrystal.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// initialize the library with the numbers of the interface pins&lt;br /&gt;
lcd(7, 6, 5, 4, 3, 2);&lt;br /&gt;
&lt;br /&gt;
// the setup routine runs once when you press reset:&lt;br /&gt;
void setup() {&lt;br /&gt;
&amp;nbsp; // initialize serial communication at 9600 bits per second:&lt;br /&gt;
&amp;nbsp; Serial.begin(9600);&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; //initialize LCD&lt;br /&gt;
&amp;nbsp;&amp;nbsp; lcd.begin(16, 2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; // Print a message to the LCD.&lt;br /&gt;
&amp;nbsp; lcd.print(&quot;Temp= &quot;);&lt;br /&gt;
&amp;nbsp; lcd.setCursor(0, 1);&lt;br /&gt;
&amp;nbsp; lcd.print(&quot;Humd= &quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// the loop routine runs over and over again forever:&lt;br /&gt;
void loop() {&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; // read the input on analog pin 0 (temperature sensor):&lt;br /&gt;
&amp;nbsp; int temp_sensorValue = analogRead(A0);&lt;br /&gt;
&amp;nbsp; // Convert the analog reading to real time temperature value:&lt;br /&gt;
&amp;nbsp; int temp = temp_sensorValue /2;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; // read the input on analog pin 1 (humidity sensor sensor):&lt;br /&gt;
&amp;nbsp; int humd_sensorValue = analogRead(A1);&lt;br /&gt;
&amp;nbsp; // Convert the analog reading to real time humidity value:&lt;br /&gt;
&amp;nbsp; unsigned int humd = (humd_sensorValue* (5.0 / 1023.0))* 30.3;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; //Printing tempeature value &lt;br /&gt;
&amp;nbsp;&amp;nbsp; lcd.setCursor(6, 0);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; lcd.print(temp);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // print out the humidity value:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; lcd.setCursor(6, 2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; lcd.print(humd);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Serial.print(&quot;Temp= &quot;);&lt;br /&gt;
&amp;nbsp; Serial.println(temp);&lt;br /&gt;
&amp;nbsp; Serial.print(&quot;Humd= &quot;);&lt;br /&gt;
&amp;nbsp; Serial.println(humd);&lt;br /&gt;
&amp;nbsp; Serial.println(&quot; &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/8339787302287329622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/11/interfacing-temperature-sensorlm35-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8339787302287329622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/8339787302287329622'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/11/interfacing-temperature-sensorlm35-and.html' title='Interfacing Temperature Sensor(LM35) and Humidity Sensor(Resistive) with Arduino and output is shown on LCD'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-7100633716636249230</id><published>2012-10-15T23:29:00.004-07:00</published><updated>2013-05-09T01:29:37.379-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Interfacing DTMF Shield with Arduino(Cellphone operated Bot)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There are 4 data output pins in DTMF shield. These 4 data pins of DTMF shield is connected to any 4 digital pins in arduino. In this program I have connected them to 4,5,6,7 digital pins of arduino. In this program i have manuplated the 4 inputs from DTMF shield to control the motion of robot. I have taken 4 outputs from the Arduino on 8,9,10,11 digital pins. In this program, when you press:&lt;br /&gt;
2 from your cell phone then robot will move forward&lt;br /&gt;
4&amp;nbsp;from your cell phone then robot will move left&lt;br /&gt;
6 &amp;nbsp;from your cell phone then robot will move right&lt;br /&gt;
8 &amp;nbsp;from your cell phone then robot will move backward&lt;br /&gt;
&lt;br /&gt;
When we press any key from our cellphone then the output of DTMF shield is in the binary form.The decimal to binary conversion table is given below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTE5LXqiCWFPz4rUevMzXcs_rEpoMRud39WQ2rEcPWMYAVIfTKj8kidiA22d1wL4tOobiMGHn8XY896MMjA9ll75k9XSr-AR_7aZzgNJSJHFuKwkIXqHi7iyZ5zEU5PMnh7Y4noRhaUZg/s1600/Binary-to-Decimal-and-Hexadecimal-Conversion-Memorization-Chart.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTE5LXqiCWFPz4rUevMzXcs_rEpoMRud39WQ2rEcPWMYAVIfTKj8kidiA22d1wL4tOobiMGHn8XY896MMjA9ll75k9XSr-AR_7aZzgNJSJHFuKwkIXqHi7iyZ5zEU5PMnh7Y4noRhaUZg/s320/Binary-to-Decimal-and-Hexadecimal-Conversion-Memorization-Chart.jpg&quot; width=&quot;270&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Please note that the 7th pin of arduino is connected to D3 pin of DTMF Shield. The program for interfacing arduino Duemilanove with the DTMF shield is given below:&lt;br /&gt;
&lt;br /&gt;
int i1=4;&lt;br /&gt;
int i2=5;&lt;br /&gt;
int i3=6;&lt;br /&gt;
int i4=7;&lt;br /&gt;
int i1m1=8;&lt;br /&gt;
int i2m1=9;&lt;br /&gt;
int i1m2=10;&lt;br /&gt;
int i2m2=11;&lt;br /&gt;
int a,b,c,d;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
pinMode(i1, INPUT);&lt;br /&gt;
pinMode(i2, INPUT);&lt;br /&gt;
pinMode(i3, INPUT);&lt;br /&gt;
pinMode(i4, INPUT);&lt;br /&gt;
pinMode(i1m1, OUTPUT);&lt;br /&gt;
pinMode(i2m1, OUTPUT);&lt;br /&gt;
pinMode(i1m2, OUTPUT);&lt;br /&gt;
pinMode(i2m2, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
a=digitalRead(i1);&lt;br /&gt;
b=digitalRead(i2);&lt;br /&gt;
c=digitalRead(i3);&lt;br /&gt;
d=digitalRead(i4);&lt;br /&gt;
&lt;span style=&quot;color: #6e6e6e; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
if(i4==LOW &amp;amp;&amp;amp; i3==LOW &amp;amp;&amp;amp; i2==HIGH &amp;amp;&amp;amp; i1==LOW)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m1, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m1, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m2, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m2, LOW);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if(i4==LOW &amp;amp;&amp;amp; i3==HIGH &amp;amp;&amp;amp; i2==LOW &amp;amp;&amp;amp; i1==LOW)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m1, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m1, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m2, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m2, LOW);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if(i4==LOW &amp;amp;&amp;amp; i3==HIGH &amp;amp;&amp;amp; i2==HIGH &amp;amp;&amp;amp; i1==LOW)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m1, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m1, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m2, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m2, HIGH);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if(i4==HIGH &amp;amp;&amp;amp; i3==LOW &amp;amp;&amp;amp; i2==LOW &amp;amp;&amp;amp; i1==LOW)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m1, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m1, HIGH);&lt;br /&gt;
&amp;nbsp;digitalWrite(i1m2, LOW);&lt;br /&gt;
&amp;nbsp;digitalWrite(i2m2, HIGH);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/7100633716636249230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/10/interfacing-dtmf-shield-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7100633716636249230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7100633716636249230'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/10/interfacing-dtmf-shield-with.html' title='Interfacing DTMF Shield with Arduino(Cellphone operated Bot)'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTE5LXqiCWFPz4rUevMzXcs_rEpoMRud39WQ2rEcPWMYAVIfTKj8kidiA22d1wL4tOobiMGHn8XY896MMjA9ll75k9XSr-AR_7aZzgNJSJHFuKwkIXqHi7iyZ5zEU5PMnh7Y4noRhaUZg/s72-c/Binary-to-Decimal-and-Hexadecimal-Conversion-Memorization-Chart.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-7056717028896961365</id><published>2012-10-07T13:30:00.002-07:00</published><updated>2013-05-09T01:29:37.378-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Interfacing Accelerometer-73x1 using Arduino</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
In this program, we have used Accelerometer 73x1 and Arduino Duemilanove.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtqqz-ScZTJVsBxnaEqGzzE7XtwYRKABzHTx3bd9wezL6QaC0yHDxhDsq2C7jMkwoLGhfAF7FD-Hl8POr5u_h_TexndoNil4TjP0oPAkHHTiOLMFPCo-RTpAM1uMjmKVm2lePgpphn3YI/s1600/accel-01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtqqz-ScZTJVsBxnaEqGzzE7XtwYRKABzHTx3bd9wezL6QaC0yHDxhDsq2C7jMkwoLGhfAF7FD-Hl8POr5u_h_TexndoNil4TjP0oPAkHHTiOLMFPCo-RTpAM1uMjmKVm2lePgpphn3YI/s320/accel-01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
We have shown only 2 axis: x-axis and y-axis by 4 leds in this program.&amp;nbsp;The values used in the if conditions depends upon the type of accelerometer used.&amp;nbsp;Check the below program and drop me a comment or mail for further details...&lt;br /&gt;
&lt;br /&gt;
int xin = 1;&lt;br /&gt;
int yin = 2;&lt;br /&gt;
int zin = 3;&lt;br /&gt;
int xval;&lt;br /&gt;
int yval;&lt;br /&gt;
int zval;&lt;br /&gt;
int led1 = 8;&lt;br /&gt;
int led2 = 9;&lt;br /&gt;
int led3 = 10;&lt;br /&gt;
int led4 = 11;&lt;br /&gt;
void setup() {&lt;br /&gt;
&amp;nbsp;Serial.begin(9600);&lt;br /&gt;
&amp;nbsp;pinMode(led1, OUTPUT);&lt;br /&gt;
&amp;nbsp;pinMode(led2, OUTPUT);&lt;br /&gt;
&amp;nbsp;pinMode(led3, OUTPUT);&lt;br /&gt;
&amp;nbsp;pinMode(led4, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
&amp;nbsp;xval = analogRead(xin);&lt;br /&gt;
&amp;nbsp;yval = analogRead(yin);&lt;br /&gt;
&amp;nbsp;zval = analogRead(zin);&lt;br /&gt;
&amp;nbsp;if(280&amp;lt;yval&amp;lt;330 &amp;amp;&amp;amp; 260&amp;lt;xval&amp;lt;320)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led1,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led2,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led3,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led4,HIGH);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
if(yval&amp;gt;330 &amp;amp;&amp;amp; 260&amp;lt;xval&amp;lt;320)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; digitalWrite(led1,LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led2,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led3,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led4,HIGH);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;if(yval&amp;lt;280 &amp;amp;&amp;amp; 260&amp;lt;xval&amp;lt;320)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; digitalWrite(led1,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led2,LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led3,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led4,HIGH);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;if(280&amp;lt;yval&amp;lt;330 &amp;amp;&amp;amp; xval&amp;lt;260)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; digitalWrite(led1,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led2,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led3,LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led4,HIGH);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;if(280&amp;lt;yval&amp;lt;330 &amp;amp;&amp;amp; xval&amp;gt;320)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; digitalWrite(led1,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led2,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led3,HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;digitalWrite(led4,LOW);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/7056717028896961365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/10/interfacing-accelerometer-73x1-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7056717028896961365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7056717028896961365'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/10/interfacing-accelerometer-73x1-using.html' title='Interfacing Accelerometer-73x1 using Arduino'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtqqz-ScZTJVsBxnaEqGzzE7XtwYRKABzHTx3bd9wezL6QaC0yHDxhDsq2C7jMkwoLGhfAF7FD-Hl8POr5u_h_TexndoNil4TjP0oPAkHHTiOLMFPCo-RTpAM1uMjmKVm2lePgpphn3YI/s72-c/accel-01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-2295917170437613124</id><published>2012-10-04T10:48:00.001-07:00</published><updated>2013-05-09T01:29:37.373-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Vision Based Robot using IR Sensors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
A vision based robot which detects your hand motion can be made by using a arduino board and 4 IR Sensors placed on the edges of a square. To know the further details about the project drop me a mail.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;Here is the program for running a robotic car by using your hand gesture.&lt;/u&gt;&lt;/div&gt;
&lt;br /&gt;
int led = 4;&lt;br /&gt;
int led1 = 5;&lt;br /&gt;
int led2 = 6;&lt;br /&gt;
int led3 = 7;&lt;br /&gt;
int led4 = 8;&lt;br /&gt;
int led5 = 9;&lt;br /&gt;
int led6 = 10;&lt;br /&gt;
int led7 = 11;&lt;br /&gt;
int a;&lt;br /&gt;
int b;&lt;br /&gt;
int c;&lt;br /&gt;
int d;&lt;br /&gt;
void setup() { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; pinMode(led, INPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led1, INPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led2, INPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led3, INPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led4, OUTPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led5, OUTPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led6, OUTPUT);&lt;br /&gt;
&amp;nbsp; pinMode(led7, OUTPUT); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
&amp;nbsp; a=digitalRead(led);&lt;br /&gt;
&amp;nbsp; b=digitalRead(led1);&lt;br /&gt;
&amp;nbsp; c=digitalRead(led2);&lt;br /&gt;
&amp;nbsp; d=digitalRead(led3);&lt;br /&gt;
&amp;nbsp; if(a == HIGH &amp;amp;&amp;amp; b == LOW &amp;amp;&amp;amp; c == LOW &amp;amp;&amp;amp; d == LOW)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led4, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led5, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led6, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led7, LOW);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(a == LOW &amp;amp;&amp;amp; b == HIGH &amp;amp;&amp;amp; c == LOW &amp;amp;&amp;amp; d == LOW)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led4, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led5, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led6, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led7, HIGH);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(a == LOW &amp;amp;&amp;amp; b == LOW &amp;amp;&amp;amp; c == HIGH &amp;amp;&amp;amp; d == LOW)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led4, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led5, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led6, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led7, LOW);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(a == LOW &amp;amp;&amp;amp; b == LOW &amp;amp;&amp;amp; c == LOW &amp;amp;&amp;amp; d == HIGH)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led4, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led5, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led6, LOW);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led7, HIGH);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; else&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led4, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led5, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led6, HIGH);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; digitalWrite(led7, HIGH);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/2295917170437613124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/10/vision-based-robot-using-ir-sensors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/2295917170437613124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/2295917170437613124'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/10/vision-based-robot-using-ir-sensors.html' title='Vision Based Robot using IR Sensors'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-4189211524603900835</id><published>2012-10-03T11:14:00.003-07:00</published><updated>2013-05-09T01:29:37.375-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arduino"/><title type='text'>Line Follower Robot using Arduino</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;u&gt;The Arduino board used is &lt;b&gt;Duemilanove/ATmega328&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://ajlinx.files.wordpress.com/2010/07/img_2355.jpg?w=775&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;327&quot; src=&quot;http://ajlinx.files.wordpress.com/2010/07/img_2355.jpg?w=775&quot; title=&quot;Arduino Duemilanove/ATmega328&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;In this program digital pins 10, 11, 12, 13 are taken as output pins and are connected to the motor driver/controller circuit(L293D) where as pins 8 and 9 are taken as input pins and are connected to the two sensors.&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;word-wrap: break-word;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-wrap: break-word;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;Here is the program :-&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-wrap: break-word;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;int o1 = 10;
int o2 = 11;
int o3 = 12;
int o4 = 13;
int i1 = 8;
int i2 = 9;
int a,b;
void setup() {                
 pinMode(01, OUTPUT);
 pinMode(o2, OUTPUT);
 pinMode(o3, OUTPUT);
  pinMode(o4, OUTPUT);
 pinMode(i1, INPUT);
 pinMode(i2, INPUT);
}

void loop() {
  a=digitalRead(i1);
  b=digitalRead(i2);
  if(a==HIGH &amp;amp;&amp;amp; b==HIGH)
  {
    digitalWrite(o1, HIGH);
    digitalWrite(o2, LOW);
    digitalWrite(o3, HIGH);
    digitalWrite(o4, LOW); 
  }
  if(a==HIGH &amp;amp;&amp;amp; b==LOW)
  {
    digitalWrite(o1, HIGH);
    digitalWrite(o2, LOW);
    digitalWrite(o3, LOW);
    digitalWrite(o4, HIGH); 
  }
  if(a==LOW &amp;amp;&amp;amp; b==HIGH)
  {
    digitalWrite(o1, LOW);
    digitalWrite(o2, HIGH);
    digitalWrite(o3, HIGH);
    digitalWrite(o4, LOW); 
  }
  if(a==LOW &amp;amp;&amp;amp; b==LOW)
  {
    digitalWrite(o1, HIGH);
    digitalWrite(o2, HIGH);
    digitalWrite(o3, HIGH);
    digitalWrite(o4, HIGH); 
  }
}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;The schematic is given below:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgklqz1bTwb-MJFIyNIMuEI8SvqeKjbuoUXUoNb2EBXk6MTUsXr_GisTMNBIDZ43ps6cW7kqhwJD2zg87AAZpABfN9krvo_3o0ht9oNsRpcvxb0k8dN1b8Dl2f53cu_wYjYsxUxpJzL2lY/s1600/Line+follower+schematic.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Line Follwer Robot schematic using arduino&quot; border=&quot;0&quot; height=&quot;502&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgklqz1bTwb-MJFIyNIMuEI8SvqeKjbuoUXUoNb2EBXk6MTUsXr_GisTMNBIDZ43ps6cW7kqhwJD2zg87AAZpABfN9krvo_3o0ht9oNsRpcvxb0k8dN1b8Dl2f53cu_wYjYsxUxpJzL2lY/s640/Line+follower+schematic.jpg&quot; title=&quot;Line Follwer Robot schematic using arduino&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Line Follower Robot Schematic&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/4189211524603900835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/10/line-follower-robot-using-arduino.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/4189211524603900835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/4189211524603900835'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/10/line-follower-robot-using-arduino.html' title='Line Follower Robot using Arduino'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgklqz1bTwb-MJFIyNIMuEI8SvqeKjbuoUXUoNb2EBXk6MTUsXr_GisTMNBIDZ43ps6cW7kqhwJD2zg87AAZpABfN9krvo_3o0ht9oNsRpcvxb0k8dN1b8Dl2f53cu_wYjYsxUxpJzL2lY/s72-c/Line+follower+schematic.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9119675286469574924.post-7882325837191104404</id><published>2012-10-02T10:03:00.004-07:00</published><updated>2013-11-24T10:07:46.074-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Matlab"/><title type='text'>Matlab Image Processing Code for gesture detection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Gesture Controlled Music Player in Matlab&lt;/h2&gt;
In this program when ever you bring a red colour in front of the webcam then only your song will play otherwise it will stop.&lt;br /&gt;
This program is in the developing state and i am modifying it to be more realistic.&lt;br /&gt;
&lt;br /&gt;
Here is the code in matlab:&lt;br /&gt;
&lt;br /&gt;
%-----------int music file and audio player--------&lt;br /&gt;
[y f] = wavread(&#39;kh.wav&#39;);&lt;br /&gt;
p1=audioplayer(y,f);&lt;br /&gt;
&lt;br /&gt;
%---------- int camera ---------------------&lt;br /&gt;
&lt;br /&gt;
hwInfo = imaqhwinfo(&#39;winvideo&#39;);&lt;br /&gt;
device1 = hwInfo.DeviceInfo(1);&lt;br /&gt;
device1.SupportedFormats;&lt;br /&gt;
&lt;br /&gt;
vid=videoinput(&#39;winvideo&#39;,1,&#39;YUY2_320x240&#39;);&lt;br /&gt;
set(vid,&#39;ReturnedColorSpace&#39;,&#39;rgb&#39;);&lt;br /&gt;
&lt;br /&gt;
triggerconfig(vid,&#39;manual&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; set(vid,&#39;FramesPerTrigger&#39;,1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; set(vid,&#39;TriggerRepeat&#39;, 100000);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; start(vid);&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
%-------- taking values -------------&lt;br /&gt;
&lt;br /&gt;
trigger(vid);&lt;br /&gt;
image1=getdata(vid,1);&lt;br /&gt;
imshow(image1);&lt;br /&gt;
for i=1:1500&lt;br /&gt;
&lt;br /&gt;
trigger(vid);&lt;br /&gt;
image1=getdata(vid,1);&lt;br /&gt;
&lt;br /&gt;
image1_r=image1(:,:,1);&lt;br /&gt;
image1_g=image1(:,:,2);&lt;br /&gt;
image1_b=image1(:,:,3);&lt;br /&gt;
image1_r1=im2bw(image1_r,140/255);&lt;br /&gt;
image1_g1=im2bw(image1_g,130/255);&lt;br /&gt;
image1_b1=im2bw(image1_b,130/255);&lt;br /&gt;
&lt;br /&gt;
img=(image1_r1-image1_g1)-image1_b1;&lt;br /&gt;
img=img*255;&lt;br /&gt;
img=uint8(img);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
img=bwareaopen(img,35);&lt;br /&gt;
img1=imfill(img,&#39;holes&#39;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[x1 y1]=bwlabel(img1);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if (y1 &amp;gt;0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; [x y]=find(img1==1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mean_x=fix(mean(x));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mean_y=fix(mean(y));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mean_x &amp;gt; 60 &amp;amp;&amp;amp; mean_x &amp;lt; 180 &amp;amp;&amp;amp; mean_y &amp;gt; 80 &amp;amp;&amp;amp; mean_y &amp;lt; 240)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; play(p1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string=strcat(num2str(mean_x),&#39;and&#39;,num2str(mean_y));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image2(:,:,1)=double(image1(:,:,1)) .* double(img1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image2(:,:,2)=double(image1(:,:,2)) .* double(img1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image2(:,:,3)=double(image1(:,:,3)) .* double(img1);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image2=uint8(image2);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subplot(1,2,1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imshow(image1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title(&#39;orignal image&#39;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subplot(1,2,2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imshow(image2);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title(string);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pause(p1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subplot(1,2,1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imshow(image1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title(&#39;no object detected&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subplot(1,2,2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imshow(image1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title(&#39;no object detected&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;br /&gt;
end&lt;br /&gt;
end &amp;nbsp; &lt;br /&gt;
--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Change the kh.wav file in wavread command with any wave file present in your computer.. and add that file to the current directory.&lt;br /&gt;
&lt;br /&gt;
Download the m-file from the below link: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
http://www.mediafire.com/?6xf8ni8xff4ppxb&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #fff9ee; color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 15px; line-height: 21px;&quot;&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEbQnhfWvQQDpivSGRAf2aiPZGwzccAwik-eM-kiSyfiTVAHwxkFKMYhUL_VKEdAWgeafArbyl81SWLlUSN2v6_u-8Zm2Qp_EQLyMNVtq-wx2s0io0lAJ9OJJEOgU3pu-3Kuo4V2RFPDA/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEbQnhfWvQQDpivSGRAf2aiPZGwzccAwik-eM-kiSyfiTVAHwxkFKMYhUL_VKEdAWgeafArbyl81SWLlUSN2v6_u-8Zm2Qp_EQLyMNVtq-wx2s0io0lAJ9OJJEOgU3pu-3Kuo4V2RFPDA/s640/Capture.PNG&quot; title=&quot;Matlab Screenshot&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://askforcode.blogspot.com/feeds/7882325837191104404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askforcode.blogspot.com/2012/10/matlab-image-processing-code-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7882325837191104404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9119675286469574924/posts/default/7882325837191104404'/><link rel='alternate' type='text/html' href='http://askforcode.blogspot.com/2012/10/matlab-image-processing-code-for.html' title='Matlab Image Processing Code for gesture detection'/><author><name>Rajat Sharma</name><uri>http://www.blogger.com/profile/15924136844498514854</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjORkjv18eLaMwpnH2jy-40bOtQJOPKbXjN0UBUx2jjRMzE_Ba7JnDXTY-OBKQMsxQzRXRcy5OZEv10aj61MjLyxYU-vempQurqOB5BAZNCtRoDxqtGjULFiBoRVeEEw4s/s220/20120730_13240013+%281%29.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEbQnhfWvQQDpivSGRAf2aiPZGwzccAwik-eM-kiSyfiTVAHwxkFKMYhUL_VKEdAWgeafArbyl81SWLlUSN2v6_u-8Zm2Qp_EQLyMNVtq-wx2s0io0lAJ9OJJEOgU3pu-3Kuo4V2RFPDA/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>