<?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-6042205873922204633</id><updated>2026-10-26T02:12:31.115-07:00</updated><category term="DIY PROJECTS"/><category term="DIY ARDUINO"/><category term="Introduction"/><category term="Electronic Project"/><title type='text'>Nepal Robotics Insight Center</title><subtitle type='html'>A site on electronics and robotics project</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-750498927041207234</id><published>2021-01-14T00:45:00.021-08:00</published><updated>2021-01-14T01:01:51.376-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>DIY Bank and Home Security System for valuable ornaments/components Using Arduino, Relay and PIR Sensor</title><content type='html'>&lt;p&gt;The valuable ornaments placed in the bank or high profile house really needs a security system which will guide your ornaments with safety. In this tutorial we are going to make an automated system that will make loud siren ON for 6 minutes and help our valuable things to get protected from being theft using Arduino, Relay and PIR sensor.&lt;/p&gt;&lt;p&gt;Let&#39;s get started;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: medium;&quot;&gt;Component&#39;s required:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Arduino UNO&amp;nbsp; &amp;nbsp; X&amp;nbsp; &amp;nbsp;1&lt;/li&gt;&lt;li&gt;5 Volt Relay Module&amp;nbsp; &amp;nbsp; X&amp;nbsp; 1&lt;/li&gt;&lt;li&gt;PIR Sensor&amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp;1&lt;/li&gt;&lt;li&gt;Alarm&amp;nbsp; X&amp;nbsp; &amp;nbsp; 1&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Circuit Diagram:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;(NOTE: At first upload the program to Arduino UNO board then only do the given below circuit diagram in order to avoid short circuit from the previously uploaded code.)&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&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/AVvXsEhgUI8mp6CbKpKNUNtOulwllIpHUW7LbFddBDHi2lwilasHSI5PSCqeQSrOTKMiDXTvSmPgh2qB4CBXpbFqIWAgZVM1SeC0-ECWUOYnci6C2V4pxemH124Uy0bMHfbjsQ00HdDSSqpd2IPR/s1302/PIR4.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;838&quot; data-original-width=&quot;1302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgUI8mp6CbKpKNUNtOulwllIpHUW7LbFddBDHi2lwilasHSI5PSCqeQSrOTKMiDXTvSmPgh2qB4CBXpbFqIWAgZVM1SeC0-ECWUOYnci6C2V4pxemH124Uy0bMHfbjsQ00HdDSSqpd2IPR/s16000/PIR4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: medium;&quot;&gt;About PIR Sensor:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;PIR stands for Passive Infrared Sensor and it works on the principle of detecting heat rediation. Like other sensor, it does not produce any signal to environment and receive the reflected signal. This&amp;nbsp; sensor small amount of heat radiation produced by either living things or non living things.&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/AVvXsEi1agXUfCgDPybkzQKDapXnddser71rTRhESe5cpaqPkuWN5u2T3AUcZHyTyj1lM5EyRfUUZaAANA1ZJ94G0WErYU7XLqK4o9ATNDDfnKXqQt1fwuywBW_ms77F-R3O4bpHBrC1nWxhEnIW/s1205/3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;905&quot; data-original-width=&quot;1205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1agXUfCgDPybkzQKDapXnddser71rTRhESe5cpaqPkuWN5u2T3AUcZHyTyj1lM5EyRfUUZaAANA1ZJ94G0WErYU7XLqK4o9ATNDDfnKXqQt1fwuywBW_ms77F-R3O4bpHBrC1nWxhEnIW/s16000/3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;The PIR Sensor have two modes, one is repeatable and other is non repeatable mode.&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Repeatable mode will make PIR sensor detect object and produce output at the same time.&lt;/li&gt;&lt;li&gt;Non-Repeatable mode will detect object and produce output for the time we set by rotating delay time pin configuration between (0.3Sec-5Mins) as our wish of adjusting.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;(NOTE: You will find H and L written in your PIR board for repeatable and non-repeatable mood)&lt;/div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Repeatable Trigger Mode: &lt;/b&gt;Place jumper in H-pin configuration as connected in figure.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Non-Repeatable Trigger Mode: &lt;/b&gt;Place jumper in L-Pin configuration&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;In this tutorial we are doing this project for repeatable trigger mode. So place jumper as shown above in the figure.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Connect VCC to 5 volt out of Arduino&lt;/li&gt;&lt;li&gt;GND to GND pin of Arduino&lt;/li&gt;&lt;li&gt;OUT pin to pin 3 of Arduino&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally adjust the sensitivity pin to detect the object according to your required rang within 7 meter from the sensor by rotating the sensitivity pin according to your desire.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: medium;&quot;&gt;Coding:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Copy and paste the given below code to Arduino IDE and upload it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int alarm = 9;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Alarm pin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int pirPin = 3;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // PIR Out pin&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int pirStat = 0;&amp;nbsp; &amp;nbsp; &amp;nbsp; // PIR status&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;pinMode(alarm, OUTPUT);&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;pinMode(pirPin, INPUT);&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Serial.begin(9600);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pirStat = digitalRead(pirPin);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;if (pirStat == HIGH)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// if motion detected&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(alarm, HIGH);&amp;nbsp; &amp;nbsp; // turn alarm ON&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delay(60000);&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;// turns alarm ON for 60000 mili seconds i.e 6 minutes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(alarm, LOW);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// turn alarm OFF if we have no motion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this way you can make your own bank and home security system for valuable ornaments/components using Arduino, Relay and PIR Sensor.&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/750498927041207234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2021/01/DIY-Bank-and-Home-Security-System-for-valuable-ornaments-or-components-Using-Arduino-Relay-and-PIR-Sensor.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/750498927041207234'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/750498927041207234'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2021/01/DIY-Bank-and-Home-Security-System-for-valuable-ornaments-or-components-Using-Arduino-Relay-and-PIR-Sensor.html' title='DIY Bank and Home Security System for valuable ornaments/components Using Arduino, Relay and PIR Sensor'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgUI8mp6CbKpKNUNtOulwllIpHUW7LbFddBDHi2lwilasHSI5PSCqeQSrOTKMiDXTvSmPgh2qB4CBXpbFqIWAgZVM1SeC0-ECWUOYnci6C2V4pxemH124Uy0bMHfbjsQ00HdDSSqpd2IPR/s72-c/PIR4.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-3054359156043058573</id><published>2020-12-30T09:54:00.004-08:00</published><updated>2023-06-17T12:15:40.371-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>DIY home automation using Arduino, Relay and Bluetooth Module(HC-05)</title><content type='html'>&lt;p&gt;Advancement in technology has brought lot&#39;s of change in today&#39;s world. So, in this tutorial we are going to learn about home automation using Arduino, Relay and Bluetooth Module. Here, we have automated our four room appliances namely AC, Bulb, Heater, Fan.&lt;/p&gt;&lt;p&gt;Let&#39;s get started with the today&#39;s tutorial.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Components Required:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Arduino UNO X 1&lt;/li&gt;&lt;li&gt;5 Volt Relay Module X 4&lt;/li&gt;&lt;li&gt;HC-05 Bluetooth Module X 1&lt;/li&gt;&lt;li&gt;Any four home appliances according to your desire&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Circuit Diagram:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;(NOTE: First upload the code to the Arduino board and then only do the given below circuit in order to avoid the short circuit from the previously uploaded code.)&lt;/div&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/AVvXsEivxE5nOHqV52zYtdQm0XDfykQnvYEuXkb5ZtVfkrugMRI9HrfrNUct1wz6xaWCwpsrumT88DdlGlLeErCRAfg3J-zkzLnqOkK7r_RG5FubkAwWZsaO4WDTvJFiOuhunKJ9-Iu4Iontm8PD/s877/automation.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;759&quot; data-original-width=&quot;877&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxE5nOHqV52zYtdQm0XDfykQnvYEuXkb5ZtVfkrugMRI9HrfrNUct1wz6xaWCwpsrumT88DdlGlLeErCRAfg3J-zkzLnqOkK7r_RG5FubkAwWZsaO4WDTvJFiOuhunKJ9-Iu4Iontm8PD/s16000/automation.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;About HC-05 Bluetooth Module:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&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/AVvXsEioFPmpzeoBw59-eNmHMqvY8BQ1iePdNy-exJgErOLNm786cU9XqrPDuMkG9cfbm4wv7sYar-sAC4C5K45NlHzF6PTyJmcrV7QyPpQK91Nrbpf8XB2YhCnM2CWwCoKnX9UjlgD5fLcSPrEG/s585/123.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;457&quot; data-original-width=&quot;585&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioFPmpzeoBw59-eNmHMqvY8BQ1iePdNy-exJgErOLNm786cU9XqrPDuMkG9cfbm4wv7sYar-sAC4C5K45NlHzF6PTyJmcrV7QyPpQK91Nrbpf8XB2YhCnM2CWwCoKnX9UjlgD5fLcSPrEG/s320/123.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;It is a small portable device that is used to be connected in the Arduino board so that it can communicate with mobile or smartphone.&lt;/div&gt;&lt;div&gt;It has 6 pins, among which we are concerned with only 4 pins;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;PIN 2&amp;nbsp; (RXD for receiving information from smartphone through Bluetooth medium)&lt;/li&gt;&lt;li&gt;PIN 3&amp;nbsp; (TXD for transmitting information from smartphone through Bluetooth medium)&lt;/li&gt;&lt;li&gt;PIN 4&amp;nbsp; (GND for grounding or zero potential point)&lt;/li&gt;&lt;li&gt;PIN 5&amp;nbsp; (VCC for supply of 5 Volt in order to power up HC-05)&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;The TXD pin of Arduino is connected to RXD pin HC-05 and the RXD pin of Arduino is connected to TXD pin of HC-05.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here, TXD = 1 in Arduino&amp;nbsp; means transmission of information from Arduino to HC-05.&lt;/div&gt;&lt;div&gt;And, RXD=0 in HC-05 means receiving information from from Arduino to HC-05.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, TXD = 1 in HC-05 means transmission of information from HC-05 to Arduino.&lt;/div&gt;&lt;div&gt;And, RXD=0 in Arduino means receiving information from from HC05 to Arduino.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;(NOTE: About relay and Arduino we have discussed in the previous sections which you can visit in our home page.)&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Coding:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Copy and pest the given below code to the Arduino IDE board and compile it.&lt;/div&gt;&lt;div&gt;&lt;b&gt;(Note:digitalWrite(relay,LOW) turns on the relay. So, don&#39;t be confused while writing LOW in code to turn on the devices because relay is a low trigger device and turns&amp;nbsp; off when high volt(5 volt is provided or digitalWrite(relay,HIGH) is written while writing code.)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int ac=2;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int bulb=3;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int heater=4;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;long int fan=5;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;char x;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(ac,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(bulb,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(heater,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(fan,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(ac,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(bulb,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(heater,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(fan,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;Serial.begin(9600);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(Serial.available()&amp;gt;0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; x=Serial.read();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;a&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(ac,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if (x==&#39;b&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(ac,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if (x==&#39;c&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(bulb,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;d&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(bulb,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;e&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(heater,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;f&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(heater,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;g&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(fan,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if(x==&#39;h&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(fan,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Application Instillation:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;From the given below link install the app from google play store to your smartphone and connect it as given below process:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.bluetoothcontroller&quot; target=&quot;_blank&quot;&gt;https://play.google.com/store/apps/details?id=com.bluetoothcontroller&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Turn on your smartphone Bluetooth&lt;/li&gt;&lt;li&gt;Install and open the app&lt;/li&gt;&lt;li&gt;Click on connect to bluetooth&lt;/li&gt;&lt;li&gt;Click on HC-05&lt;/li&gt;&lt;li&gt;It will ask code, put code &#39;1234&#39; if it doesn&#39;t work then put &#39;0000&#39; if this step doesn&#39;t work here then goto step 1 and try connect manually with same codes and then follow from step 2.&lt;/li&gt;&lt;li&gt;Press OK or Connect and now you are done&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;In this way you can make your own home automated system using Arduino, Relay and Bluetooth Module(HC-05).&amp;nbsp;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/3054359156043058573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/12/diy-home-automation-using-arduino-relay.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/3054359156043058573'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/3054359156043058573'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/12/diy-home-automation-using-arduino-relay.html' title='DIY home automation using Arduino, Relay and Bluetooth Module(HC-05)'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxE5nOHqV52zYtdQm0XDfykQnvYEuXkb5ZtVfkrugMRI9HrfrNUct1wz6xaWCwpsrumT88DdlGlLeErCRAfg3J-zkzLnqOkK7r_RG5FubkAwWZsaO4WDTvJFiOuhunKJ9-Iu4Iontm8PD/s72-c/automation.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-8144007860198195494</id><published>2020-12-22T09:54:00.004-08:00</published><updated>2022-04-22T22:26:30.163-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>DIY Night Light automatic turn ON and OFF using Arduino, Relay and LDR</title><content type='html'>&lt;p&gt;In this tutorial we are going to make an automatic light ON and OFF during night and day respectively using LDR sensor that gets activated or it&#39;s resistance gets reduced when light falls on it. We have also connected a manual switch ON and OFF for the bulb whenever we are out of home for weekends.&lt;/p&gt;&lt;p&gt;Let&#39;s get started,&lt;/p&gt;&lt;p&gt;&lt;b&gt;Components Required:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Arduino UNO X 1&lt;/li&gt;&lt;li&gt;LDR light sensor&amp;nbsp; X 1&lt;/li&gt;&lt;li&gt;5V RelayModule&amp;nbsp; X 1&lt;/li&gt;&lt;li&gt;Resistor (100k) X 1&lt;/li&gt;&lt;li&gt;AC Bulb (25 or 100) Watt X 1&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Circuit Design:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;(Note: First upload the program to the Arduino IDE then only do the below given wirings in order to avoid short circuit from previously uploaded code in the Arduino.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9OX0pdiZAw_BWmlBYFILKIs9A3gu5_qSvv86W0yUbJLewHmsAeR16NTtlYJB3ahBmIdYcb1Zv3qkSPOwVThJQ_q4GKSf61JnRhTSOYnFBR3RzgmaTVZTVbdXzKsp5tLlF8fHr9z2IbOd/s1027/ldr1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;995&quot; data-original-width=&quot;1027&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9OX0pdiZAw_BWmlBYFILKIs9A3gu5_qSvv86W0yUbJLewHmsAeR16NTtlYJB3ahBmIdYcb1Zv3qkSPOwVThJQ_q4GKSf61JnRhTSOYnFBR3RzgmaTVZTVbdXzKsp5tLlF8fHr9z2IbOd/s16000/ldr1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;About LDR (Light Dependent Resistor) Sensor:&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div&gt;It is the sensor with resistance as it&#39;s main property. When light falls upon it then it&#39;s resistance decreases and allows electric current to flow through it. And when it is dark then it offers high resistance to the circuit and blocks current to flow through it.&lt;/div&gt;&lt;div&gt;Let&#39;s see it graphically,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjESXD-HVFz6vK9rPf361KD8TnnHLoPBx6UOcbfm1HL28svtf3pOVfuZYlW8OUHOvU4RyaEJlDfLf9lH13JAjMZPCeVS2esCzZqTNr0hLUowlSYcXHZibZz9ZycJFnlpbTf4w5sPMtqEVq/s480/ldr6.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;480&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjESXD-HVFz6vK9rPf361KD8TnnHLoPBx6UOcbfm1HL28svtf3pOVfuZYlW8OUHOvU4RyaEJlDfLf9lH13JAjMZPCeVS2esCzZqTNr0hLUowlSYcXHZibZz9ZycJFnlpbTf4w5sPMtqEVq/w200-h187/ldr6.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVSaCodaWxTVlglDqrsPI4ZTcsNnyvgOJU2CVXabfH8mkhUJlpH0qSLI62VGlZtlvszybRIdF_H6b2KYco1zud5nCAz9IgGaYo-5fv4A83LJ6dKOiACFOa-g0p8FRplBWwNmlh8ntGqee6/s645/ldr3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;500&quot; data-original-width=&quot;645&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVSaCodaWxTVlglDqrsPI4ZTcsNnyvgOJU2CVXabfH8mkhUJlpH0qSLI62VGlZtlvszybRIdF_H6b2KYco1zud5nCAz9IgGaYo-5fv4A83LJ6dKOiACFOa-g0p8FRplBWwNmlh8ntGqee6/w286-h248/ldr3.png&quot; width=&quot;286&quot; /&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the above diagram, as light intensity increases, resistance decreases and when light intensity decreases then resistance of LDR increases.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Arduino senses the value from LDR in the range 0 to 1023. When the LDR value is less than 900 or 1000 then we call it as day condition and the bulb remains off. When the value is greater than 900 or 1000 then we check for night condition and turn on the bulb.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(Note: About relay and other module we have already discussed in other tutorials that you can see in the same website.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Coding:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int ldr=A0;&amp;nbsp; // taking input from LDR in pin A0 i.e anolog pin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int led=1;&amp;nbsp; &amp;nbsp;// declaring output pin for bulb&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int ldrStatus;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(ldr,INPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(led,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(led,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;Serial.begin(9600);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;ldrStatus=analogRead(ldr);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;Serial.println(ldrStatus);&amp;nbsp; //check sensor value in light and dark condition&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;if (ldrStatus&amp;lt;=1000)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// checks if it is day then led remains OFF&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;digitalWrite(led,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;digitalWrite(led,HIGH);&amp;nbsp; &amp;nbsp; // during night led becomes ON&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this way you can make your own automated light system using Arduino, Relay, and LDR sensor. Also by removing relay and placing the 5 volt bulb to the digital pin 1 with 0.5 K or 220 omh resistor, you can directly make your DC 5 volt bulb operate from Arduino as shown in below given figure with your mini project done.&lt;b&gt;(Upload the same code)&lt;/b&gt;&lt;/div&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/AVvXsEhqit54W-ZVVf1Bg6-TT8Dq0fdiFnoghiazF5z6EmsN7_RUldHPHD339LoqJElUYDP7PvMR385ZEs2vjKLxl4VixpDiRwRyM7PvV0YpcDtJ2VOYI2KooMD1cIqGcTsHdn7FtWOnvX88Mcw7/s965/ldr5.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;675&quot; data-original-width=&quot;965&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqit54W-ZVVf1Bg6-TT8Dq0fdiFnoghiazF5z6EmsN7_RUldHPHD339LoqJElUYDP7PvMR385ZEs2vjKLxl4VixpDiRwRyM7PvV0YpcDtJ2VOYI2KooMD1cIqGcTsHdn7FtWOnvX88Mcw7/s16000/ldr5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Applications:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Make your own home automation using LDR sensor&lt;/li&gt;&lt;li&gt;You can also make automated traffic light system that will ON during night and OFF during day&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/8144007860198195494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/12/diy-night-light-automatic-turn-on-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/8144007860198195494'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/8144007860198195494'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/12/diy-night-light-automatic-turn-on-and.html' title='DIY Night Light automatic turn ON and OFF using Arduino, Relay and LDR'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU9OX0pdiZAw_BWmlBYFILKIs9A3gu5_qSvv86W0yUbJLewHmsAeR16NTtlYJB3ahBmIdYcb1Zv3qkSPOwVThJQ_q4GKSf61JnRhTSOYnFBR3RzgmaTVZTVbdXzKsp5tLlF8fHr9z2IbOd/s72-c/ldr1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-1908924170070252582</id><published>2020-12-10T23:00:00.001-08:00</published><updated>2020-12-10T23:00:49.250-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Control Motor Driver Speed Using Arduino</title><content type='html'>&lt;p&gt;An Arduino cannot supply sufficient power to motor to operate, so we use Motor driver.It is a device that supplies sufficient power or voltage to the motor and helps us to connect them with Arduino and make our mechanical robot. We can use motor driver in two ways.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;One is operate motor driver at high speed&lt;/li&gt;&lt;li&gt;And the other is operate motor driver at controlled speed&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;We have already discussed about point one in brief and cleared all the concepts of programming in the link given below:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://www.roboticsinsighto.com/2020/08/how-to-control-motor-driver-with-arduino.html&quot; target=&quot;_blank&quot;&gt;https://www.roboticsinsighto.com/2020/08/how-to-control-motor-driver-with-arduino.html&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, in this tutorial we are going to see hoe to control the speed of motor driver. Also from this tutorial you can make your own four wheel robot that will operate according to the command described in the code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;COMPONENTS REQUIRED:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Arduino UNO&amp;nbsp; X 1&lt;/li&gt;&lt;li&gt;L298N Motor Driver&amp;nbsp; X 1&lt;/li&gt;&lt;li&gt;(10-12) Volt motor X 4&lt;/li&gt;&lt;li&gt;Male to female jumper wire X 6&lt;/li&gt;&lt;li&gt;Male to male jumper wire X 2&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;CIRCUIT CONNECTION:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;(Note: At first upload the code to the Arduino board then only do the circuit connection in order to avoid short circuit in the Arduino board from the previously uploaded code.)&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&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;&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/AVvXsEgqbV42cu9BFAzmj6w6AwJarCoK5Hv4f2W5CWvWWlo3f9WX1KwN6zlO94dcj_qY1zBaOvvMZK9sMW9Rodxk-c7n6v-iHhxBxsg6Gyxf1UXRkjck7EZlqep_apsYVcn4IBJhG-9pG5kvTfmw/s575/motor+6.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;516&quot; data-original-width=&quot;575&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqbV42cu9BFAzmj6w6AwJarCoK5Hv4f2W5CWvWWlo3f9WX1KwN6zlO94dcj_qY1zBaOvvMZK9sMW9Rodxk-c7n6v-iHhxBxsg6Gyxf1UXRkjck7EZlqep_apsYVcn4IBJhG-9pG5kvTfmw/s0/motor+6.PNG&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;fig: Connection between motor driver and Arduino&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;&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/AVvXsEg5BKzm4e0Mz9umlJWBk2-muvloI7TP4yKYD55qOxDBT57WUYxYS4a5EUVQGYsUIZ4x0qtJAO5VifIz2_eIL9MWMl8QbcJKky5gFYjj8jgXyGMUNxI_DSQFdkdagtoDVeZnovjMGu8ZF6_H/s671/motor+9.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;528&quot; data-original-width=&quot;671&quot; height=&quot;458&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5BKzm4e0Mz9umlJWBk2-muvloI7TP4yKYD55qOxDBT57WUYxYS4a5EUVQGYsUIZ4x0qtJAO5VifIz2_eIL9MWMl8QbcJKky5gFYjj8jgXyGMUNxI_DSQFdkdagtoDVeZnovjMGu8ZF6_H/w581-h458/motor+9.PNG&quot; width=&quot;581&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;fig: Pin configuration of Motor driver&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In the above figure the pin that will control the motor driver speed is EN PIN, means enable pin.&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;There are two EN pins in motor driver as shown in figure:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ol&gt;&lt;li&gt;ENA: This pin will control speed of left two motors&lt;/li&gt;&lt;li&gt;ENB: This will control speed of right two motors&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Note: Motor 1 and Motor 2 will have same speed because they are connected in parallel. And similarly Motor 3 and Motor 4 will have same speed since they are also connected in parallel.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;The motor speed is divided rom 0 to 250 means 0 is the lowest speed and 250 is the highest speed.&lt;/div&gt;&lt;div&gt;So, while doing coding our speed range will be 0-250. Suppose if we put speed as 125 then the motor speed will be half and accordingly&amp;nbsp; we will number the speed to our desire.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the below code,&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font&gt;analogWrite(ENA,250);&amp;nbsp; // means high or top speed&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;analogWrite(ENB,100);&amp;nbsp; //&amp;nbsp; means speed at value 100&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&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;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;CODING PART:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In the given below code the enable pins are connected to analog pins of Arduino in order to control speed of motor. You cannot control speed of motor if you connect enable pins to digital pins in Arduino.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The code is given below. Copy and paste the code to Arduino IDE and upload it to your Arduino UNO board.&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;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int motor1=8;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int motor2=7;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int motor3=6;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int motor4=5;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int ENA=9;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;int ENB=3;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void setup()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(motor1,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(motor2,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(motor3,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(motor4,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(ENA,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;pinMode(ENB,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;serial.begin(9600)&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void forward()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENA,250);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENB,250);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void backward()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENA,100);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENB,100);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void left()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENA,150);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENB,150);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void right()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENA,150);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;analogWrite(ENB,150);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void stop()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;void loop()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; forward();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; delay(2000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; backward();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; delay(5000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; left();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; delay(3000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; right();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; delay(4000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; stop();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp; delay(7000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#ff0000&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;i&gt;In this way you can make your own speed controlled four wheel robot and by changing the program according to your wish you can do your projects.&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/1908924170070252582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/12/control-motor-driver-speed-using-arduino.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1908924170070252582'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1908924170070252582'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/12/control-motor-driver-speed-using-arduino.html' title='Control Motor Driver Speed Using Arduino'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqbV42cu9BFAzmj6w6AwJarCoK5Hv4f2W5CWvWWlo3f9WX1KwN6zlO94dcj_qY1zBaOvvMZK9sMW9Rodxk-c7n6v-iHhxBxsg6Gyxf1UXRkjck7EZlqep_apsYVcn4IBJhG-9pG5kvTfmw/s72-c/motor+6.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-1163645054502086475</id><published>2020-11-23T07:20:00.010-08:00</published><updated>2020-12-06T01:34:28.637-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Fire and defense water system for home using Arduino, relay and Gas sensor</title><content type='html'>&lt;p&gt;Death and property loss due to fire has become a major problem in today&#39;s world. There are many fire fighters stations working for this particular problem. When there is fire caught, it always takes time for water tank to reach the destination and we have loss in life and property as well.&lt;/p&gt;&lt;p&gt;So, in this tutorial we are going to make a fire defense system using Arduino, relay and smoke sensor that senses fire and accordingly take action.&lt;/p&gt;&lt;p&gt;Here, we have taken house having two rooms that may be kitchen or living room or office room. In both the rooms we have connected smoke sensor. When there is no fire in the room or smoke, the sensor goes inactive and the led&#39;s, ledG1 and ledG2 is on denoting there is no any problem. If ROOM 1 or&amp;nbsp; ROOM 2 senses smoke or fire then red led&#39;s, ledR1 or ledR2 goes on respectively and the water system will be on in order to minimize or wipe out the flame.&lt;/p&gt;&lt;p&gt;&lt;b&gt;CIRCUIT DIAGRAM:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;(Note: First upload the code to the Arduino board then only do the programming in order to avoid short circuit from the previously uploaded code in the Arduino. &lt;span style=&quot;color: red;&quot;&gt;Also, connect 0.5k resistor to each led and you can also add buzzer instead of red led bulb.)&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&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/AVvXsEj6dv2MA_dtqoiJhnSSXT-HerX_dpw9f2Ng5tTW-uBBXQGDlo3FIy9DyxF2D4Yxg2_Tn58Thnnqmpk43DZQKbT1BIOKYxygEeygBX6YySFVU9jb2Nu1qCmvnOV5vg6vHRVzodAXERNg-EAs/s2048/smoke11.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1575&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6dv2MA_dtqoiJhnSSXT-HerX_dpw9f2Ng5tTW-uBBXQGDlo3FIy9DyxF2D4Yxg2_Tn58Thnnqmpk43DZQKbT1BIOKYxygEeygBX6YySFVU9jb2Nu1qCmvnOV5vg6vHRVzodAXERNg-EAs/s16000/smoke11.png&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;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;COMPONENTS REQUIRED:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div&gt;Arduino UNO X 1&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;MQ2 Gas Sensor X 2&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;5 Volt Relay X 2&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Led red X 2&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Led green X 2&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Minibbread board X 1&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;ABOUT:&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Arduino&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&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/AVvXsEidURJe01KBLCBWyD7-Oi8PEE_5mj2R-YNy21l-yRgydVHiK-duJeIaulddhvSddb1xIxHHQx-fKgsJrTJ1NqGDEjPwPlbtEy1fhQLW1ZkY_Tdv-nbqpjeHU5lzLCYdeGXE54ZziVl3pDgC/s267/A1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;189&quot; data-original-width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidURJe01KBLCBWyD7-Oi8PEE_5mj2R-YNy21l-yRgydVHiK-duJeIaulddhvSddb1xIxHHQx-fKgsJrTJ1NqGDEjPwPlbtEy1fhQLW1ZkY_Tdv-nbqpjeHU5lzLCYdeGXE54ZziVl3pDgC/s0/A1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;It is a small micro-controller device where we can program and relate our work with input and output voltage production and sensing.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more detail you can go to the link below:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://www.roboticsinsighto.com/2020/07/blink-tutorial-coding-microcontroller.html&quot; target=&quot;_blank&quot;&gt;About Arduino UNO and Arduino IDE working&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;MQ2 Gas Sensor&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&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/AVvXsEghyphenhyphenv_eT_Rqz8-xRFPcd5AMnBz01Im1Abd6neVvtbKBrpme1E9NawoamE0Lu5xVm3K-fm_PyepkJYWuDljPI5CXS6-UB-SP8ep3jhogTUV9dSa4KWJpDdqgbdbwqfp_yiutqxOhEYr9CbCS/s985/smoke14.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;693&quot; data-original-width=&quot;985&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyphenhyphenv_eT_Rqz8-xRFPcd5AMnBz01Im1Abd6neVvtbKBrpme1E9NawoamE0Lu5xVm3K-fm_PyepkJYWuDljPI5CXS6-UB-SP8ep3jhogTUV9dSa4KWJpDdqgbdbwqfp_yiutqxOhEYr9CbCS/s320/smoke14.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Smoke sensor senses the density of gas in certain values and provide output through &lt;b&gt;DOUT &lt;/b&gt;or &lt;b&gt;AOUT &lt;/b&gt;i.e. digital out and analog out pin to the arduino respectively and accrodingly we take action through programming.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here we have taken 400 as threshold value of the sensor above which light and defense system work.&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;font-weight: bold; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Relay&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9DlCDu06LNHeBJDXrRHleWPXitVygsshDdmhEGRhxzAVYx1NgsFcz3ioxKp-qhxPl2wONLuGCh8zldTzE2ebps32utyaCoa65-U2d-SuXHitXSNlaTtZn5L_cLJNS7noKzxN7BkuOmSgA/s286/fan12.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;286&quot; data-original-width=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9DlCDu06LNHeBJDXrRHleWPXitVygsshDdmhEGRhxzAVYx1NgsFcz3ioxKp-qhxPl2wONLuGCh8zldTzE2ebps32utyaCoa65-U2d-SuXHitXSNlaTtZn5L_cLJNS7noKzxN7BkuOmSgA/s0/fan12.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Relay is a device that act as a switch for ac or other high source devices. It switches on when &lt;b&gt;IN1 &lt;/b&gt;is High and turns off when&amp;nbsp;&lt;b&gt;&amp;nbsp;IN1 &lt;/b&gt;is LOW.&lt;br /&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;CODING:&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int ledR1 = 12;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int ledR2 = 11;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int ledG1 = 10;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int ledG2 = 9;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int smokeA0 = A0;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int smokeA1 = A1;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;int sensorThres = 400;&amp;nbsp; &amp;nbsp;// sensor threshold vaue&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup()&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(ledR1, OUTPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(ledR2, OUTPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(ledG1, OUTPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(ledG2, OUTPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(smokeA0, INPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(smokeA1, INPUT);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Serial.begin(9600);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int analogSensor1 = analogRead(smokeA0);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if (analogSensor1 &amp;gt; sensorThres)&amp;nbsp; &amp;nbsp;// Checks if it has reached the threshold value&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledR1, HIGH);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledG1, LOW);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; else&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledG1, LOW);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledR1, HIGH);&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; int analogSensor2 = analogRead(smokeA1);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if (analogSensor2 &amp;gt; sensorThres)&amp;nbsp; &amp;nbsp;// Checks if it has reached the threshold value&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledR2, HIGH);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledG2, LOW);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; else&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledG2, LOW);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; digitalWrite(ledR2, HIGH);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;In this way you can make your own fire alarm and water defense system at home using arduino, MQ2 gas sensor and relay.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Application:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;You can have safe home from fire.&lt;/li&gt;&lt;li&gt;Can save your property during fire&lt;/li&gt;&lt;li&gt;Less worry about fire fighters to come late.&lt;/li&gt;&lt;li&gt;Can make your way to quality and safe life.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/1163645054502086475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/11/fire-and-defense-water-system-for-home.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1163645054502086475'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1163645054502086475'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/11/fire-and-defense-water-system-for-home.html' title='Fire and defense water system for home using Arduino, relay and Gas sensor'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6dv2MA_dtqoiJhnSSXT-HerX_dpw9f2Ng5tTW-uBBXQGDlo3FIy9DyxF2D4Yxg2_Tn58Thnnqmpk43DZQKbT1BIOKYxygEeygBX6YySFVU9jb2Nu1qCmvnOV5vg6vHRVzodAXERNg-EAs/s72-c/smoke11.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-8532724898905020348</id><published>2020-11-12T08:47:00.003-08:00</published><updated>2020-11-13T05:43:21.969-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Digital LED Staircase lightening in motion using Arduino  and Ultrasonic Sensor</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Automated lightening of staircase not only helps to save electricity but also takes us to advancement in quality living of life. We generally uses normal circuit to turn on and off the light in stairs, but there is loss in electricity since we turn it off only at once during sleep.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;So, in this tutorial we are going to make the automated staircase that will light up only when it senses motion of people passing through stair.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Circuit diagram:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;(NOTE: First upload the program to the Arduino then only do the circuit connection in order to avoid short circuit in the Arduino from previously uploaded code.&lt;span style=&quot;color: red;&quot;&gt;Also connect 0.5k resistor to each bulb.&amp;nbsp;&lt;/span&gt;)&lt;/b&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/AVvXsEhT08YJIFxyOq1OQJA4uJ6QNgZvsnLLqetVYh9v5SO5XNDPzydfTduhyphenhypheniiAX1M5vxQPP_YgUQ9cUzKiCDbxkFv3-2bzRm8wINdAahFNa9kV7c92pvNYVRlCRHGI9ul6uykkStTB78oT9FvO/s569/stair3.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;390&quot; data-original-width=&quot;569&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT08YJIFxyOq1OQJA4uJ6QNgZvsnLLqetVYh9v5SO5XNDPzydfTduhyphenhypheniiAX1M5vxQPP_YgUQ9cUzKiCDbxkFv3-2bzRm8wINdAahFNa9kV7c92pvNYVRlCRHGI9ul6uykkStTB78oT9FvO/s320/stair3.PNG&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;COMPONENTS REQUIRED:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Ultrasonic Sensor (HC-SR04)&amp;nbsp; X&amp;nbsp; &lt;span style=&quot;font-size: medium;&quot;&gt;2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Arduino UNO&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;5 volt LED bulbs&amp;nbsp; X&amp;nbsp; &amp;nbsp;2&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;b&gt;CODING:&lt;/b&gt;&lt;div&gt;(Copy and pest the given below code to the arduino IDE and compile it.)&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int trigPin1=7; //set the HC-SR04 SENSOR 1 triger on pin 7 on the arduino&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int echoPin1=8;//set the HC-SR04 SENSOR 1 echo on pin 6 on the arduino&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int trigPin2=A0; //set the HC-SR04 SENSOR2 triger on pin 7 on the arduino&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int echoPin2=A1; //set the HC-SR04 SENSOR2 echo on pin 6 on the arduino&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int led1=1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int led2=2;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;int led3=3;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;Serial.begin (9600);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(trigPin1, OUTPUT); //set the trigpin to output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(echoPin1, INPUT); //set the echopin to input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(trigPin2, OUTPUT); //set the trigpin to output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(echoPin2, INPUT); //set the echopin to input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(led1, OUTPUT); //set the led1 on pin 1 to output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(led2, OUTPUT); //set the led1 on pin 1 to output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(led3, OUTPUT); //set the led1 on pin 1 to output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;float duration1, distance1; //Define two intregers duration and distance to be used to save data for sensor1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;float duration2, distance2; //Define two intregers duration and distance to be used to save data for sensor2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(trigPin1, HIGH); //write a digital high to the trigpin to send out the pulse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delayMicroseconds(500); //wait half a millisecond&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(trigPin1, LOW); //turn off the trigpin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;duration1 = pulseIn(echoPin1, HIGH); //measure the time using pulsein when the echo receives a signal set it to high&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;distance1 = (duration1/2) / 29.1; //distance is the duration devided by 2 becasue the signal traveled from the trigpin then back to the echo pin, then divide by 29.1 to convert to centimeters&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(trigPin2, HIGH); //write a digital high to the trigpin to send out the pulse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delayMicroseconds(500); //wait half a millisecond&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(trigPin2, LOW); //turn off the trigpin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;duration2 = pulseIn(echoPin2, HIGH); //measure the time using pulsein when the echo receives a signal set it to high&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;distance2 = (duration2/2) / 29.1; //distance is the duration devided by 2 becasue the signal traveled from the trigpin then back to the echo pin, then divide by 29.1 to convert to centimeters&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;if (distance1&amp;lt;13 || distance2&amp;lt; 13) //if the distance is less than 13 CM&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(led1,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delay (2000); //wait 2 seconds&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(led2,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delay (15000); //wait 2 seconds&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(led3,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;delay (15000); //wait 5 seconds&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(led1,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(led2,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(led3,LOW);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;In this way you can make your own automated staircase at home using Arduino and Ultrasonic sensor.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Application:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;You can save electricity bill when there is no one bypassing through stair.&lt;/li&gt;&lt;li&gt;Project lead us to automated and quility living life.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/8532724898905020348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/11/digital-led-staircase-lightening-in.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/8532724898905020348'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/8532724898905020348'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/11/digital-led-staircase-lightening-in.html' title='Digital LED Staircase lightening in motion using Arduino  and Ultrasonic Sensor'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT08YJIFxyOq1OQJA4uJ6QNgZvsnLLqetVYh9v5SO5XNDPzydfTduhyphenhypheniiAX1M5vxQPP_YgUQ9cUzKiCDbxkFv3-2bzRm8wINdAahFNa9kV7c92pvNYVRlCRHGI9ul6uykkStTB78oT9FvO/s72-c/stair3.PNG" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-5779113194459798430</id><published>2020-11-06T06:30:00.006-08:00</published><updated>2020-11-13T01:24:35.335-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Room Heater automatic turn on and off using Ultrasonic sensor, Relay and Arduino</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;During winter offices and universities and houses, uses heater to get rid from coldness. But due to excessive use of them we can figure out increment in the electric bills. Also, the co workers of the industry, colleges and homes don&#39;t turn it off when the go out and we find loss in energy consumption and increment in bills.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;So, in this tutorial, we are going to build an automatic heater using ultrasonic sensor, relay module and Arduino UNO that will sense people, if his distance is between 0 cm to 140 cm from the heater then the heater will glow otherwise it remains off.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let&#39;s have look how we did it:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Circuit diagram:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;(NOTE: First upload the program to the Arduino then connect wires in order to be safe from short circuit due to previously uploaded codes in the Arduino.)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHs9dpLn9FNDqnxMzZb8lNt1lM9nrgzQ07eY9hbMw0hvCq5o1XIesHO110cRq1z4z1hKIISWAaK9sKQmyTWA_GXYWy6x_DIrv7NY-1v0pIetO6odn_0Ka3Mx5eys063KVuTnGfLgxtMQ_2/s582/image_2020-11-05_215047.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;410&quot; data-original-width=&quot;582&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHs9dpLn9FNDqnxMzZb8lNt1lM9nrgzQ07eY9hbMw0hvCq5o1XIesHO110cRq1z4z1hKIISWAaK9sKQmyTWA_GXYWy6x_DIrv7NY-1v0pIetO6odn_0Ka3Mx5eys063KVuTnGfLgxtMQ_2/s16000/image_2020-11-05_215047.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Components required:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Arduino UNO&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Ultrasonic Sensor&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;5 volt relay module&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;A room heater&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;Arduino Uno:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&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/AVvXsEgj4DQI3wVSPYKEf84Sk4NdDA77HO33iQMWKr-941_XfgSPwmxj02IjNo7H7-qfJlocX9nG5ZBFD2bhv7S8VUQMY4URJRO06yqHYoA4a5tP5Vjtr-rCvmId01aOtmj3lJA0xaVyWjcf6DJa/s267/A1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;189&quot; data-original-width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj4DQI3wVSPYKEf84Sk4NdDA77HO33iQMWKr-941_XfgSPwmxj02IjNo7H7-qfJlocX9nG5ZBFD2bhv7S8VUQMY4URJRO06yqHYoA4a5tP5Vjtr-rCvmId01aOtmj3lJA0xaVyWjcf6DJa/s0/A1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;It is a programmable micro controller that takes input in the voltage form and produces output in the voltage form. You can program the device according to your need.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;Ultrasonic sensor:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&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_8CZJR5wzwr7z7fc5G9klkx6Npek2ZwfUg6FXWdhzoSbysEoQVLCsiWhznoxhiF6ntww3W1gly9Nrn1gouxE6XeYOyJD5xhy9mo1okbnD3spqQbPmbrIxw0Tj40lS_OQiqRs6nLk9ldYc/s519/image_2020-11-06_092325.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;329&quot; data-original-width=&quot;519&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_8CZJR5wzwr7z7fc5G9klkx6Npek2ZwfUg6FXWdhzoSbysEoQVLCsiWhznoxhiF6ntww3W1gly9Nrn1gouxE6XeYOyJD5xhy9mo1okbnD3spqQbPmbrIxw0Tj40lS_OQiqRs6nLk9ldYc/w280-h178/image_2020-11-06_092325.png&quot; width=&quot;280&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;The working principle of this sensor is to produce ultrasonic wave and when it strikes any medium than then the wave gets reflected back to the sensor and we measure the total time taken by the wave to travel in air from production to return of wave to the sensor and then divide the time by two to measure distance of the object from the sensor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Time(T) =&amp;nbsp; t / 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;where, t is total time taken.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, in order to calculate the distance, we multiply &lt;b&gt;TIME(T) &lt;/b&gt;by speed of sound in air.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;DISTANCE = T * 343&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;where, 343m/s is velocity of sound in air&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;5 volt relay module:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&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/AVvXsEh9mqOnJHfUznfNvlCJtAgg62_HRi7ri4D0t3LDTjy19VC-0LkO2gB-r6DJycsdYktsWnCEG1jxGpFf8H5btw0l1xLs2OY6dzvjAB43oPvjGdHg4BXAzEcZygZTIFuEvefjLmtSz0Y8wwi4/s286/fan12.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;286&quot; data-original-width=&quot;206&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9mqOnJHfUznfNvlCJtAgg62_HRi7ri4D0t3LDTjy19VC-0LkO2gB-r6DJycsdYktsWnCEG1jxGpFf8H5btw0l1xLs2OY6dzvjAB43oPvjGdHg4BXAzEcZygZTIFuEvefjLmtSz0Y8wwi4/w157-h218/fan12.PNG&quot; width=&quot;157&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;It is a switching device that closes the circuit when it&#39;s input sensing voltage goes high i.e. 5 volts, in other condition the relay is off and the circuit remains open.&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Coding:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Copy and paste the given below code to Arduino IDE and upload it.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;float echoPin=2; // attach pin D3 Arduino to pin Echo of HC-SR04&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;float trigPin=3; //attach pin D4 Arduino to pin Echo of HC-SR04&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;int heater=4; // attach pin D2 Arduino to relay&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;long duration; // variable for the duration of sound wave travel&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;int distance; // variable for the distance measurement&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup() {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(trigPin, OUTPUT); // Sets the trigPin as an OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode(echoPin, INPUT); // Sets the echoPin as an INPUT&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(heater, OUTPUT); // sets the heater as OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(heater,LOW); //set heater initially low&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Serial.begin(9600); // // Serial Communication is starting with 9600 of baudrate speed&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop() {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; // Clears the trigPin condition&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(trigPin, LOW);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; delayMicroseconds(2);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; // Sets the trigPin HIGH (ACTIVE) for 10 microseconds&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(trigPin, HIGH);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; delayMicroseconds(10);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(trigPin, LOW);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; // Reads the echoPin, returns the sound wave travel time in microseconds&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; duration = pulseIn(echoPin, HIGH);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; // Calculating the distance&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; distance = duration * 0.034 / 2; // Speed of sound wave divided by 2 (go and back)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; // Displays the distance in cm&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;if (distance&amp;lt;140)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;digitalWrite(heater,HIGH);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;else&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;digitalWrite(heater,LOW);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;In this way you can make your own automated heater using Ultrasonic Sensor and Arduino.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Application:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Saves energy consumption&lt;/li&gt;&lt;li&gt;Less worry of electric bills due to heater&lt;/li&gt;&lt;li&gt;Modernization in the automated world&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/5779113194459798430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/11/room-heater-automatic-turn-on-and-off.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5779113194459798430'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5779113194459798430'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/11/room-heater-automatic-turn-on-and-off.html' title='Room Heater automatic turn on and off using Ultrasonic sensor, Relay and Arduino'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHs9dpLn9FNDqnxMzZb8lNt1lM9nrgzQ07eY9hbMw0hvCq5o1XIesHO110cRq1z4z1hKIISWAaK9sKQmyTWA_GXYWy6x_DIrv7NY-1v0pIetO6odn_0Ka3Mx5eys063KVuTnGfLgxtMQ_2/s72-c/image_2020-11-05_215047.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-6127576181102083926</id><published>2020-10-31T17:52:00.002-07:00</published><updated>2020-10-31T18:08:21.588-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Automatic Dustbin open and close using Ultrasonic sensor and Arduino</title><content type='html'>&lt;p&gt;&lt;b&gt;Introduction:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;In this tutorial, we are going to solve a small problem related to garbage management. Let&#39;s make an automated bin using ultrasonic sensor and Arduino that will open automatically when any one is in front of it. And when he is done the bin gets automatically closed and vice versa.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Components required:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;A foot operated dustbin&lt;/li&gt;&lt;li&gt;HC-SR04 Ultrasonic sensor&lt;/li&gt;&lt;li&gt;5 volt servo motor&lt;/li&gt;&lt;li&gt;An Arduino UNO&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;b&gt;Circuit Diagram:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Connect the wires to the respective components as shown in figure below:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;(Note: first upload the code given below to the Arduino then only do the wiring to avoid short circuit from already stored program&amp;nbsp; in Arduino.)&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHI4jituH6kPwU7Y65pYbJVCJUTvFQC1PgdYK7Hi2JnnXhNCVE_hkuwFyRFrUb-WVgLRbLdt2Jvg9o0huDyjETBvc_o3OVkmzKqfXqVffTHv60h4QZ3Drta-6nfXRrzxyJ-hkHI25L3uU_/s671/image_2020-10-30_092502.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;474&quot; data-original-width=&quot;671&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHI4jituH6kPwU7Y65pYbJVCJUTvFQC1PgdYK7Hi2JnnXhNCVE_hkuwFyRFrUb-WVgLRbLdt2Jvg9o0huDyjETBvc_o3OVkmzKqfXqVffTHv60h4QZ3Drta-6nfXRrzxyJ-hkHI25L3uU_/s16000/image_2020-10-30_092502.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;Arduino Codes:&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Copy and paste the codes given below to arduino IDE and upload it to arduino.&lt;br /&gt;&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;#include &amp;lt;Servo.h&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;Servo s1;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;const int servo_pin = 2;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;const int trig_pin = 3;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;const int echo_pin = 4;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;const int inter_time = 200;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;int time = 0;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup()&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Serial.begin(9600);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; s1.attach(servo_pin, 500, 2400);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; s1.write(90);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode (trig_pin, OUTPUT);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; pinMode (echo_pin, INPUT);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; delay(3000);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop()&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; float duration, distance;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(trig_pin, HIGH);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; delayMicroseconds(1000);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; digitalWrite(trig_pin, LOW);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; duration = pulseIn (echo_pin, HIGH);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; distance = (duration/2)/29;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Serial.print(distance);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Serial.println(&quot; cm&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; time = time + inter_time;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; delay(inter_time);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if (distance &amp;lt; 10)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(int i = 1500; i &amp;gt;= 1100; i-=25){&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; s1.writeMicroseconds(i);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;2&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delay(100);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; delay(1000);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for(int i = 1100; i &amp;lt;= 1500; i+=25){&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; s1.writeMicroseconds(i);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;1&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delay(100);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Now you are done with your code and circuit diagram and you can make your own modification if you want to.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Applications:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;People don&#39;t feel uncomfortable to put garbage in.&lt;/li&gt;&lt;li&gt;Will make us a distance away from germs attached with the dustbin.&lt;/li&gt;&lt;li&gt;City will have smart bin automation.&lt;/li&gt;&lt;li&gt;A healthy and neat environment can be created.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/6127576181102083926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/10/automatic-dustbin-open-and-close-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/6127576181102083926'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/6127576181102083926'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/10/automatic-dustbin-open-and-close-using.html' title='Automatic Dustbin open and close using Ultrasonic sensor and Arduino'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHI4jituH6kPwU7Y65pYbJVCJUTvFQC1PgdYK7Hi2JnnXhNCVE_hkuwFyRFrUb-WVgLRbLdt2Jvg9o0huDyjETBvc_o3OVkmzKqfXqVffTHv60h4QZ3Drta-6nfXRrzxyJ-hkHI25L3uU_/s72-c/image_2020-10-30_092502.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-6171525795911064661</id><published>2020-09-14T00:00:00.008-07:00</published><updated>2020-11-05T15:11:38.539-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>DIY Fan Automatic ON and OFF using Arduino, Relay AND Temperature Sensor</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&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/AVvXsEj3qK2IFQ22Agme9LQ_GtZXcTbWVC5GLUNg2UFr3KdPK8ElG2O29vwWxjrQRTYpVt4CgXANSxMtQLQzqMmpkyYDdc2xYhQoMORir6CqxNdSUWmJnqo4lMTOxQ0ETGC5EXvnrB9sFwVS54wN/s635/fan9.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;473&quot; data-original-width=&quot;635&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3qK2IFQ22Agme9LQ_GtZXcTbWVC5GLUNg2UFr3KdPK8ElG2O29vwWxjrQRTYpVt4CgXANSxMtQLQzqMmpkyYDdc2xYhQoMORir6CqxNdSUWmJnqo4lMTOxQ0ETGC5EXvnrB9sFwVS54wN/s0/fan9.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Are we really worried about our home electrical bill due to the unnecessary consumption of electricity by fan, here is the best solution to it. Often in summer days, we use a fan to make our room temperature falls to 25-26 degree celsius i.e. normal room temperature. during the night the temperature falls still the fan is open and we feel cold and at the same time, there is a waste of energy as well. So, in this tutorial we are going to make an automatic fan that will maintain it&#39;s room temperature i.e, open the fan while room temperature exceeds 26-degree Celcius and close the fan while room temperature is below 26-degree celsius. Let&#39;s make our own automation of the fan.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Components required:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;1. Arduino UNO&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;2.&amp;nbsp; 5 Volt Relay Module 220V&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3.&amp;nbsp; LM35 Temperature Sensor&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;About Relay:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&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/AVvXsEi8wF7RCa_AofTCWkbko99eDF_Y1xKeWsun2X53y6WE1n_ndBJiT_XSD5PwT3hNynHjpVlXvZifl4AfNFwFjCFuuyOm4Y-wDsl08zq4wpGpHC-TSY9w76k-_mzvOfskmHNW_fSTF3xH9ycN/s286/image_2020-11-06_045154.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;286&quot; data-original-width=&quot;206&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8wF7RCa_AofTCWkbko99eDF_Y1xKeWsun2X53y6WE1n_ndBJiT_XSD5PwT3hNynHjpVlXvZifl4AfNFwFjCFuuyOm4Y-wDsl08zq4wpGpHC-TSY9w76k-_mzvOfskmHNW_fSTF3xH9ycN/w126-h175/image_2020-11-06_045154.png&quot; width=&quot;126&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Relay is a switching device. like we put the switch in a normal circuit and do it on and off similarly relay is a device when receives command makes switch on or off. In this tutorial when the temperature exceeds 26-degree celsius then Arduino pin 1 is high i.e. the Vin pin of the relay will get +5 volts and the switch will on making C and NO pin of relay short circuit and current flows resulting our fan operates. Whenever the temperature falls below 26-degree celsius then pin1 will be low i.e zero volts resulting in C and NO pin of the relay is open and the fan closes.&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;About lm35 temperature sensor:&lt;/b&gt;&lt;/div&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/AVvXsEiosYdA4iR6TiFahfYwdWN0rRiFWwnWUeGZpazihCnbuUU4_hmknMuYEP8ODMSogOo7P6UWrZspUWOE_W6RtkpfsVmxm6EFQeRFSa3RuEPmBEFxvrxO47kMcLhIOPMcfZXnX3P6kwwvCcLH/s264/fan+19.PNG&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;264&quot; data-original-width=&quot;195&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiosYdA4iR6TiFahfYwdWN0rRiFWwnWUeGZpazihCnbuUU4_hmknMuYEP8ODMSogOo7P6UWrZspUWOE_W6RtkpfsVmxm6EFQeRFSa3RuEPmBEFxvrxO47kMcLhIOPMcfZXnX3P6kwwvCcLH/w100-h135/fan+19.PNG&quot; width=&quot;100&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;lm35 is a temperature sensor that has 3 pin configuration, Vcc, Vout, Gnd. To Vcc, we supply 5 volts and Gnd is grounded. Whenever the sensor receives fluctuation in temperature, it gives it&#39;s reading in voltage form from Vout. This variation type of output we measure from the Arduino analog pin and convert it into respective temperature in degree celsius by using the formula given below:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Temperature = Analog read *&amp;nbsp;&lt;span style=&quot;text-align: left;&quot;&gt;0.48828125&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;In this way, the obtained temperature is taken into consideration and we do further operation.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Programming Section:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;NOTE:&amp;nbsp;&lt;/b&gt;We first upload our program to Arduino then only we do the connections because after connection and then uploading the program may cause a short circuit due to previously uploaded programs.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;float sensor=A0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;float temp=0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;int fan=1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;void setup() {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Serial.begin(9600);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;pinMode(fan,OUTPUT);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(fan,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;void loop() {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;temp=analogRead(sensor);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;temp=temp*0.48828125;&amp;nbsp; &amp;nbsp; &amp;nbsp; // convert temp to degree celsius&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;if (temp&amp;gt;26)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite(fan,HIGH);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;digitalWrite (fan,LOW);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;Circuit Connection:&lt;/b&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/AVvXsEio8ybNoWvHXI6YROE_lcSFNZNrwDsK6Fk58F98Z8Y2y4y2LJUioJHIlD_Mnb3fRbV60eWkOtGdtG4LdPHRSyeio-NLmvynL8-tI-PIcoFIK2eSRgIoNNMldvQa0YHfBC3Yj_4aB2KnlpdJ/s594/image_2020-11-06_044709.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;444&quot; data-original-width=&quot;594&quot; height=&quot;445&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio8ybNoWvHXI6YROE_lcSFNZNrwDsK6Fk58F98Z8Y2y4y2LJUioJHIlD_Mnb3fRbV60eWkOtGdtG4LdPHRSyeio-NLmvynL8-tI-PIcoFIK2eSRgIoNNMldvQa0YHfBC3Yj_4aB2KnlpdJ/w596-h445/image_2020-11-06_044709.png&quot; width=&quot;596&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Make the circuit connection as above and now you are ready to go with your new featured fan.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;In this way, you can make your own fan automation, and accordingly, you can set the temperature value for on and off of your device.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/6171525795911064661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/09/diy-fan-automatic-on-and-off-using.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/6171525795911064661'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/6171525795911064661'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/09/diy-fan-automatic-on-and-off-using.html' title='DIY Fan Automatic ON and OFF using Arduino, Relay AND Temperature Sensor'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3qK2IFQ22Agme9LQ_GtZXcTbWVC5GLUNg2UFr3KdPK8ElG2O29vwWxjrQRTYpVt4CgXANSxMtQLQzqMmpkyYDdc2xYhQoMORir6CqxNdSUWmJnqo4lMTOxQ0ETGC5EXvnrB9sFwVS54wN/s72-c/fan9.PNG" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-5603821906528365748</id><published>2020-08-28T06:30:00.018-07:00</published><updated>2026-04-14T01:30:41.752-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>Aspiradora- A Cleaning Robot</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Back in 2018, we had made a robot &quot;Aspiradora: A Cleaning Robot&quot; for which we won the best project award at the university. So, here we are giving you ideas about how to make &quot;Aspiradora&quot;.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; line-height: 115%; mso-bidi-font-size: 16.0pt;&quot;&gt;INTRODUCTION&lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 16.0pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&quot; style=&quot;line-height: 115%;&quot;&gt;KATHMANDU&lt;i&gt;: In 2016,
&lt;/i&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;900 sweepers clean Kathmandu every day
but dust remains unsettled.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;Therefore the usability of
Electric Road Cleaner machines have to come in practice to clean dusty roads.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;This project is based on the “CLEAN NEPAL” theme that works on the
principle of suction of waste and it can be controlled by using smart-phones or
remote. Before entering this project I would like you to describe the basics of
electric vacuum suction road cleaner.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;OBJECTIVE&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 38.8pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;1)&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;To make a well managed electric road cleaner
that is controllable through smart-phones.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 38.8pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; line-height: 115%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;2)&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Clean the dusty road without using sweepers
and broom&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; line-height: 115%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;Why the device is important
in the context of Nepal?&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;As we all
are familiar with the background and condition of roadways in our valley. We
know that many governmental constructions are being carried out for the
development of Nepal but due to some ineffective approach, the roads nowadays
are full of dust and unmanaged left out. So to minimize some issues regarding
environmental health and situation we have made this device that is easy to
handle and portable, can be accessible to a larger area if used effectively. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;Device exploration in great
event AVISHKAR 18:&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;There were
many presenters from renowned universities like TU, PU, and KU. We, the first
year/first semester group of 6-students made this project and presented it for
2 days in Robot Demonstration Section at Kathmandu University. And we stood for
the first position, first prize with the immense support of audiences
participated and viewers and a merit vote conducted by the organizers and
judges and made to win the title and the winning prize of NRs. 10,000.&lt;/span&gt;&lt;/p&gt;&lt;h1&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-bidi-font-size: 22.0pt;&quot;&gt;You
can make your own Aspiradora by following given methods&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2&gt;&lt;span style=&quot;font-size: medium; line-height: 115%;&quot;&gt;Step 1: Construction of vacuum
suction.&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l2 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;1.&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Take an ordinary bottle of 1.25L and cut it into
three pieces.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l2 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;2.&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Adjust a fan with a motor attached to the base
piece of the bottle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l2 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;3&amp;nbsp; &amp;nbsp; Keep the middle part of the bottle as it is and
fit the upper piece to the suction pipe. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l2 level1 lfo2; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;4.&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Power the fan with 5V supply, it rotates in the clockwise direction. The positive suction is created resulting in the dust
particles sucked into the bottle. Similarly, the anticlockwise rotation of the fan
is used for the outlet of dust particles.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Step 2: Frame of the Aspiradora&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Fit the constructed vacuum suction bottle to the base of the Aspiradora frame containing four wheels for acceleration.&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo3; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo3; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;2.&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Connect the motors of four wheels to the motor
driver.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Step 3: Connect the whole setup to Arduino UNO with a Bluetooth device and control the system by a smartphone&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Components needed:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Arduino UNO&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;DC Motor&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;L298N Motor Driver&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;HC05 Bluetooth control&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ol&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/AVvXsEhRVzv-PddprGWDFcDaena8JlO3zdpGnWTLuE_59VL3IzbvOR4VGf1o6z_NrRa51OPE8gab4fIEyduLY8-iX1gfN8kKHzvv6P-LD1kRn1t0c2Tcx3gsFdjVEjAS8KXDF2A7_VNfr6podSMl/s468/fan11.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;446&quot; data-original-width=&quot;468&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRVzv-PddprGWDFcDaena8JlO3zdpGnWTLuE_59VL3IzbvOR4VGf1o6z_NrRa51OPE8gab4fIEyduLY8-iX1gfN8kKHzvv6P-LD1kRn1t0c2Tcx3gsFdjVEjAS8KXDF2A7_VNfr6podSMl/s0/fan11.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2&gt;Step 4: Programming section&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;At first, upload the program and then only do the above setup with Bluetooth device, Arduino and motor driver.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;int motor1=8;&lt;/div&gt;&lt;div&gt;int motor2=7;&lt;/div&gt;&lt;div&gt;int motor3=6;&lt;/div&gt;&lt;div&gt;int motor4=5;&lt;/div&gt;&lt;div&gt;int ENA=9;&lt;/div&gt;&lt;div&gt;int ENB=3;&lt;/div&gt;&lt;div&gt;char x;&lt;/div&gt;&lt;div&gt;void setup()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;pinMode(motor1,OUTPUT);&lt;/div&gt;&lt;div&gt;pinMode(motor2,OUTPUT);&lt;/div&gt;&lt;div&gt;pinMode(motor3,OUTPUT);&lt;/div&gt;&lt;div&gt;pinMode(motor4,OUTPUT);&lt;/div&gt;&lt;div&gt;pinMode(ENA,OUTPUT);&lt;/div&gt;&lt;div&gt;pinMode(ENB,OUTPUT);&lt;/div&gt;&lt;div&gt;Serial.begin(9600);&lt;/div&gt;&lt;div&gt;digitalWrite(motor1,LOW);&lt;/div&gt;&lt;div&gt;digitalWrite(motor2,LOW);&lt;/div&gt;&lt;div&gt;digitalWrite(motor3,LOW);&lt;/div&gt;&lt;div&gt;digitalWrite(motor4,LOW);&lt;/div&gt;&lt;div&gt;Serial.begin(9600);&amp;nbsp;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;void forward()&lt;/div&gt;&lt;div&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENA,150);&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENB,150);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;void backward()&lt;/div&gt;&lt;div&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENA,100);&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENB,100);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;void left()&lt;/div&gt;&lt;div&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENA,120);&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENB,120);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;void right()&lt;/div&gt;&lt;div&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENA,120);&lt;/div&gt;&lt;div&gt;&amp;nbsp;analogWrite(ENB,120);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/div&gt;&lt;div&gt;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;void stop()&lt;/div&gt;&lt;div&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;void loop()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(Serial.available()&amp;gt;0)&lt;/div&gt;&lt;div&gt;&amp;nbsp; {&lt;/div&gt;&lt;div&gt;&amp;nbsp; x=Serial.read();&lt;/div&gt;&lt;div&gt;&amp;nbsp; }&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(x==1)&lt;/div&gt;&lt;div&gt;&amp;nbsp; forward();&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(x==2)&lt;/div&gt;&lt;div&gt;&amp;nbsp; backward();&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(x==3)&lt;/div&gt;&lt;div&gt;&amp;nbsp; left();&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(x==4)&lt;/div&gt;&lt;div&gt;&amp;nbsp; right();&lt;/div&gt;&lt;div&gt;&amp;nbsp; if(x==5)&lt;/div&gt;&lt;div&gt;&amp;nbsp; stop();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;You can adjust your own speed by changing analogWrite(ENA,120)&amp;nbsp; to 130 or 150 or so on. But the range should be 0 to 255. similarly change for analogWrite(ENB,120).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;For Bluetooth setup download the Arduino Bluetooth application from the play store. Install it on your smartphone. connect HC05 Bluetooth with your mobile by inserting a password 1111 or 1234.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Now configure the settings for buttons as:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Forward button: 1&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Backward button: 2&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Left button: 3&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Right button: 4&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Stop button: 5&lt;/span&gt;&lt;/li&gt;&lt;/ol&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/AVvXsEioevPBS46R_ckPa7YR5qcqmMLC0psqmw5IZ3eucn0416Kch6qm8Ml_-DT1UGVFQxrlmL7r8uR_ft3653MHMwRRxMWs9Fi73VPO3XhaiRDSRI2H3xcdI_SsspsO9ojbHKRwumv1Gv1Y2goF/s1202/asp.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;996&quot; data-original-width=&quot;1202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioevPBS46R_ckPa7YR5qcqmMLC0psqmw5IZ3eucn0416Kch6qm8Ml_-DT1UGVFQxrlmL7r8uR_ft3653MHMwRRxMWs9Fi73VPO3XhaiRDSRI2H3xcdI_SsspsO9ojbHKRwumv1Gv1Y2goF/s640/asp.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;

















































&lt;span face=&quot;&quot; style=&quot;font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Mangal; mso-bidi-language: NE; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&lt;i&gt;In this way,
you can successfully make and operate Aspiradora. If you have any queries about
this project, you can contact us at nasaelectronics@gmail.com. We will be glad to help
you.&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/5603821906528365748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/aspiradora-cleaning-robot.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5603821906528365748'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5603821906528365748'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/aspiradora-cleaning-robot.html' title='Aspiradora- A Cleaning Robot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRVzv-PddprGWDFcDaena8JlO3zdpGnWTLuE_59VL3IzbvOR4VGf1o6z_NrRa51OPE8gab4fIEyduLY8-iX1gfN8kKHzvv6P-LD1kRn1t0c2Tcx3gsFdjVEjAS8KXDF2A7_VNfr6podSMl/s72-c/fan11.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-7661919637996113077</id><published>2020-08-20T10:24:00.001-07:00</published><updated>2020-08-20T10:26:12.665-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><category scheme="http://www.blogger.com/atom/ns#" term="Electronic Project"/><title type='text'>DIY BIKE LIGHT AUTOMATIC TURN ON AND OFF</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&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/AVvXsEgdX5nYPkuklzw-zWm3HH-DdSjNQGkSNeOfVxrhyWZiaDkvNfaRUU8bYg1MzhgxA9dOGtGqfL9Q9BSVsAimcMcF1CwEMhFf55Gaf83dF2WZUQ3MYa1GUq4vqDS9MMGGiGcmt6lmomfhPW-9/s687/ldr8.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;434&quot; data-original-width=&quot;687&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdX5nYPkuklzw-zWm3HH-DdSjNQGkSNeOfVxrhyWZiaDkvNfaRUU8bYg1MzhgxA9dOGtGqfL9Q9BSVsAimcMcF1CwEMhFf55Gaf83dF2WZUQ3MYa1GUq4vqDS9MMGGiGcmt6lmomfhPW-9/s640/ldr8.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;If we see today&#39;s century then the world is totally filled with new inventions and among them, artificial light is a great invention that provides us the sensation of looking at things at night or dark places.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Almost all the vehicles are provided with light for night vision and driving. Among them, the bike is one. The bike uses a 12 Volt power supply to glow its headlight. Due to maximum road accidents and thieving, today&#39;s bike comes with automatic light that is even turned on in day time when the key is on. This brings loss in electrical energy.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let&#39;s design a circuit that will conserve energy. In this tutorial, we have made a circuit that will make headlight automatically on when it is evening or night i.e. at low intensity of light. Also, we have provided a manual switch to turn on the light if the sensor sometimes fails to automatically turn on.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the above circuit, the components needed are:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;1.) LDR (Light Dependent Resistor)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;2.) BC547 Transistor&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3.) 100k Resistor&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;4.) 12 Volt battery, headlight, and Handel switch are already provided in bikes&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Let&#39;s know about components:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;A.) LDR (Light Dependent Resistor)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;These are known as a photoresistor. There resistance changes with the intensity of light. When the intensity of light is high that is during the day then the LDR resistance decreases and allows current to flow. When the intensity of light is low that is during the night then the resistance of LDR increases and blocks the current flow.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;B.) BC547 Transistor&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Transistors are components that either act as current and voltage amplifiers or as a switch. In this tutorial, we have used transistor as a switch.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;There a three output pins in a transistor:&lt;/b&gt;&amp;nbsp;&lt;b&gt;Collector(C), Base(B), Emitter(E).&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;For Transistor to flow current it should be in active region i.e.,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Voltage of;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp; &lt;b&gt;collector&amp;gt;base&amp;gt;emitter.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the above circuit, we are varying base voltage. During day time resistance of LDR will be high and base will have high voltage than the emitter. So transistor goes to cutoff region i.e. transistor will not operate and will make our headlight turned off.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;During night time LDR will have very low resistance and the base of the transistor will get low voltage. So the transistor now will operate in active region and the headlight of the bike will glow.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Also, the circuit is connected to the manual turn on and off switch of bike headlight so that if sometimes the LDR fails to operate then the user can manually ON and OFF the headlight.&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/7661919637996113077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/diy-bike-light-automatic-turn-on-and-off.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7661919637996113077'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7661919637996113077'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/diy-bike-light-automatic-turn-on-and-off.html' title='DIY BIKE LIGHT AUTOMATIC TURN ON AND OFF'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdX5nYPkuklzw-zWm3HH-DdSjNQGkSNeOfVxrhyWZiaDkvNfaRUU8bYg1MzhgxA9dOGtGqfL9Q9BSVsAimcMcF1CwEMhFf55Gaf83dF2WZUQ3MYa1GUq4vqDS9MMGGiGcmt6lmomfhPW-9/s72-c/ldr8.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-2876356703347828628</id><published>2020-08-14T04:05:00.001-07:00</published><updated>2020-08-14T10:34:18.577-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Electronic Project"/><title type='text'>10 Best Electrical and Electronics Project that you can do in 1st year </title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&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/AVvXsEjYG7VSLiqkDvJM2MI0F8BgwZ-SpeU3jvR41zkJQJpx9zEdNF2FhMKVYK7MqPH5E9fe-ila1t8-OezrO1jMYTe1e4lBzWQX2Bhfw3VXNdw6R7HKAlXWmXOd_3Ks43Zdd4KsS-mW8tmsUGUM/s2048/My+Post.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1325&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYG7VSLiqkDvJM2MI0F8BgwZ-SpeU3jvR41zkJQJpx9zEdNF2FhMKVYK7MqPH5E9fe-ila1t8-OezrO1jMYTe1e4lBzWQX2Bhfw3VXNdw6R7HKAlXWmXOd_3Ks43Zdd4KsS-mW8tmsUGUM/s640/My+Post.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;While doing projects in the first year of engineering, we come across lots of projects and get confused about the projects.&amp;nbsp; Also, many students don&#39;t know how they work and which project comes under this category. Being an electrical and electronics engineering student myself, I was very confused about what project to do in my first year. Here, we have cited 10 best Electrical and electronics projects that you can do in your 1st year along with a short description of the project.&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;1. Water Level Indicator:&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This project is basically an automatic water level controlling system that automatically turns off the switch when water is full in the tank. It checks the water
level in the tank and sends the warning if the water level in the tank is low and it
stops the water pump to operate if there is no water present in the tank.&lt;/p&gt;&lt;p&gt;&lt;b&gt;2. LPG Leakage Detector:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;In this system, the LPG leakage at home or industry is detected employing two
main devices: the gas detector and the centralized alarm unit. The centralized
alarm unit detects the signals sent by the gas detector and turns on the alarm.
The main working principle lies in the comparison of voltage drop and reference voltage between the MQ-6 gas sensor voltages.&lt;/p&gt;&lt;p&gt;&lt;b&gt;3. Variable DC Voltage Supply:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This project describes the construction of AC/DC regulated power supply with
a voltage range of 12-5 V and limited to 1-ampere current. The main power
circuitry is built on a bridge rectifier module configured with a step-down transformer. This power supply is provided with the flexibility to regulate current and
voltage as required for the operation of microcontrollers and other electrical
components.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;4. Infrared Motion Detector:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;/b&gt;This project focuses on detecting the motion of a particular thing or a person from a particular area. Infrared Motion Detector detects emitted infrared energy from a person or an animal in the form of heat. The IR sensors, PIR sensors, etc. can be used in this circuit which sends the signal to the control system which in turn can be programmed to emit light or a bell noise.&lt;/p&gt;&lt;p&gt;&lt;b&gt;5. Remote Controlled IR Switches:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;The remote controller can be used to control different home appliances which
are connected to the circuit. It consists of Infrared Remote Controller and
receiver, LED, relay, diode, etc. In this, infrared remote sends signals to change
the state of home appliances, when the IR sensor receives the signal it performs
its task.&lt;/p&gt;&lt;p&gt;&lt;b&gt;6. Metal Detector:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This project gives an overview of a metal detector working principle and application with the concept of ensuring avoiding any illegal or unauthorized entry
of metal objects. It is a low-cost metal detector using a transistor circuit. It is a simple Colpitts oscillator working in medium band frequency.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;7. Home Automation:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This project work is performed for designing the Home Automated System to
overcome the necessary human effort and test its usability in real life. The system consists of a PIR sensor, an LDR sensor, and Thermistor which senses
the movement senses light and temperature which could automate home by
controlling light and fan.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;8. Car Parking Indicator:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This technology helps the driver to locate a free parking slot to park the car. It
automatically indicates where the slot is free and which is reserved in map kept
in the gateway of parking so that driver can easily find a free parking space which
helps in reducing the traffic created by stuck vehicles in parking zones by using
timer before indication.&lt;/p&gt;&lt;p&gt;&lt;b&gt;9. Automatic Street Light Control Using LDR:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;/b&gt;This project mainly focuses on automatically turning the street lights on and off whenever needed. The circuit is based on IC LM358 which works as an operational amplifier configured in voltage comparator. The LDR(Light Dependent Resistor) is used in which resistance is dependent on the amount of light that falls onto it.&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;10. Touchless Doorbell:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;This project describes an automatic door lock/unlock system along with a
buzzer (doorbell) that can monitor industries as well as homes. The detector
will sense the absence of light caused by intervention and will switch on the buzzer
and the door can be locked/unlocked without any mechanical effort with high
performance and minimum possible cost. Its many applications are in banks,
offices, homes, and shops.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/2876356703347828628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/10-best-electrical-and-electronics.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/2876356703347828628'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/2876356703347828628'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/10-best-electrical-and-electronics.html' title='10 Best Electrical and Electronics Project that you can do in 1st year '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYG7VSLiqkDvJM2MI0F8BgwZ-SpeU3jvR41zkJQJpx9zEdNF2FhMKVYK7MqPH5E9fe-ila1t8-OezrO1jMYTe1e4lBzWQX2Bhfw3VXNdw6R7HKAlXWmXOd_3Ks43Zdd4KsS-mW8tmsUGUM/s72-c/My+Post.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-7572007604903026795</id><published>2020-08-13T07:52:00.002-07:00</published><updated>2020-09-14T00:03:37.307-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DIY ARDUINO"/><category scheme="http://www.blogger.com/atom/ns#" term="DIY PROJECTS"/><title type='text'>HOW TO CONTROL A MOTOR DRIVER WITH ARDUINO</title><content type='html'>&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;font&gt;The dual bidirectional motor driver is based on the L298N Dual H-Bridge Motor Driver IC. This motor driver will allow you to easily and independently control motors up to the current flow of 2A inside the motor driver output terminal. Beyond the flow of 2A current will make motor driver heated resulting in damage to the motor driver.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;For this project you will need:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font&gt;Arduino UNO&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font&gt;4x DC motors&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font&gt;Breadboard&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font&gt;L298N Motor Driver Module&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;font&gt;So let&#39;s get started:&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;Knowing the motor driver from the figure below:&lt;/font&gt;&lt;/div&gt;&lt;div&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;&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/AVvXsEizBc0YipL5Z7CO3GGLznPcv5wDHzoPASp3MTztNiMb3VVO9X6hvZIvh22RlIMCEIwbn6QUkNf0rBop7iMmwPV0j0l9RWeTPIaD3W9RX3lgdOpdiumMY18vkJYUiYEafW_qCikakFkjnrOh/s669/motor4.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;542&quot; data-original-width=&quot;669&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizBc0YipL5Z7CO3GGLznPcv5wDHzoPASp3MTztNiMb3VVO9X6hvZIvh22RlIMCEIwbn6QUkNf0rBop7iMmwPV0j0l9RWeTPIaD3W9RX3lgdOpdiumMY18vkJYUiYEafW_qCikakFkjnrOh/s640/motor4.PNG&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;Fig1: Pin diagram of a motor driver&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;Note:&lt;/b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;Do the below setup of the figure only after uploading code to Arduino because Arduino always stores and run the previously uploaded code that may cause a short-circuit.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&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;&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/AVvXsEi94dnjKqx2vtCIrS-M6VXXSIzX7Se2RD1l6WM8x29EDyBsYR7aE_LF5UpeFv32l_A1_9JX1L2Nchyphenhyphen89hRJ91Ja1h8VQX5yZEXuqAGMN3QtvnIlrclnsa1Lua6qV4y3NE8wQlWG2lLxkel7/s579/motor+8.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;525&quot; data-original-width=&quot;579&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi94dnjKqx2vtCIrS-M6VXXSIzX7Se2RD1l6WM8x29EDyBsYR7aE_LF5UpeFv32l_A1_9JX1L2Nchyphenhyphen89hRJ91Ja1h8VQX5yZEXuqAGMN3QtvnIlrclnsa1Lua6qV4y3NE8wQlWG2lLxkel7/s0/motor+8.PNG&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;fig2: Connection between Arduino and Motor driver&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;Now, let&#39;s code our Arduino to control the motor driver.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;Here is the code:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;int motor1=8;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;int motor2=7;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;int motor3=6;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;int motor4=5;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void setup()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;pinMode(motor1,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;pinMode(motor2,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;pinMode(motor3,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;pinMode(motor4,OUTPUT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void forward()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void backward()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void left()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void right()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor4,HIGH);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void stop()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor1,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor2,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor3,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp;digitalWrite(motor4,LOW);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;void loop()&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; forward();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; delay(2000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; backward();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; delay(5000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; left();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; delay(3000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; right();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; delay(4000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; stop();&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&amp;nbsp; delay(7000);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&lt;i&gt;&lt;u&gt;You can make changes to the above-written code and make your own modifications.&amp;nbsp;&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;b&gt;Let&#39;s understand the code:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Motor driver and Arduino pin will be configured as:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;IN1 - Arduino pin 8&lt;/span&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;span&gt;IN2 - Arduino pin 7&lt;/span&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;span&gt;IN3 - Arduino pin 6&lt;/span&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;span&gt;IN4 - Arduino pin 5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;int motor1=8;&lt;br /&gt;int motor2=7;&lt;br /&gt;int motor3=6;&lt;br /&gt;int&amp;nbsp;motor4=5;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;This is just a declaration of Arduino pins, these pins are equivalent to the pin of motor driver. i.e.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;IN1=PIN8.....IN1=OUT1&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;IN2=PIN7.....IN2=OUT2&lt;/font&gt;&lt;/div&gt;&lt;span&gt;IN3=PIN6.....IN3=OUT3&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;IN4=PIN5...IN4=OUT4&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;Void forward()&lt;div&gt;&lt;font&gt;&amp;nbsp;&lt;/font&gt;&lt;font&gt;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&amp;nbsp;digitalWrite(motor1,HIGH);&amp;nbsp; // OUT 1 = 9 volt&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,LOW);&amp;nbsp; //OUT 2 =0 volt&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&amp;nbsp; //OUT 3= 9 volt&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,LOW);&amp;nbsp; // OUT 4 = 0 volt&lt;/div&gt;&lt;div&gt;&lt;font&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Since OUT 1 gets 9 volt and OUT 2 gets 0 volts this will create a potential difference between motors and will make motor i.e. Motor 1 and Motor 2 operate in a clockwise direction. Similarly for OUT 3 and OUT 4 in clockwise operate for Motor 3 and Motor 4.&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;void left()&lt;div&gt;&lt;font&gt;&amp;nbsp;{&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor1,LOW);&amp;nbsp; &amp;nbsp; // OUT 1 = 0 volt&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor2,HIGH);&amp;nbsp; // OUT 2 = 9 volt&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor3,HIGH);&amp;nbsp; // OUT 3 = 9 volt&lt;/div&gt;&lt;div&gt;&amp;nbsp;digitalWrite(motor4,LOW);&amp;nbsp; // OUT 4= 0 volt&lt;/div&gt;&lt;div&gt;&lt;font&gt;&amp;nbsp;}&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Since OUT1 gets 0 volts and OUT2 gets 9 volts this will create a potential difference between motors and will make motors i.e. Motor1 and Motor2 operate in an anti-clockwise direction. Similarly, OUT3 gets 9 volts and OUT2 gets 0 volts this will create a potential difference between motors and will make motors i.e. Motor1 and Motor2 operate in a clockwise direction.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;similarly, we can think how void backward(), void right() and void left() will work.&lt;/div&gt;&lt;/font&gt;&lt;font&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font&gt;&lt;div&gt;Void forward(), void backward(), void left(), void right(), void stop()....these are functions that we will call from void loop. These functions help motor1, motor2, motor3 and motor4&amp;nbsp; to operate in particular direction.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;Inside void loop()&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;/div&gt;&lt;span&gt;forward();&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;&lt;div&gt;&lt;div&gt;delay(2000);&lt;/div&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;&lt;/font&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;font&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;This will move motors in forward direction for 2 seconds i.e.2000 mili seconds. It means void loop() will call void forward()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;span&gt;for 2 seconds.Similarly, for backward(); delay(5000); will turn motors in left direction for 5 seconds and so on for right(); backward(); and stop();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;b&gt;Let&#39;s understand the mechanical part:&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Connect jumpers in ENA and ENB&amp;nbsp; as shown in fig2.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Here turning is always zero turns i.e. If we make a DIY car from the above configuration of motors then for left turn the car will rotate left at the same position resulting in zero turns. Motor 1 and Motor 2 will turn in an anti-clockwise direction and Motor 3 and Motor 4 will turn in clockwise direction resulting into zero turn&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span&gt;Note that Motor1 and Motor2 are connected to the same pin in OUT1 and OUT2 respectively. So there the direction of rotation will be the same. Similarly, Motor3 and Motor4&#39;s direction of rotation will be the same.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hence, you can control a motor driver with Arduino. If you have any queries regarding this topic you can contact us at nasaelectronics157@gmail.com&lt;/div&gt;&lt;div&gt;&lt;font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/7572007604903026795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/how-to-control-motor-driver-with-arduino.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7572007604903026795'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7572007604903026795'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/how-to-control-motor-driver-with-arduino.html' title='HOW TO CONTROL A MOTOR DRIVER WITH ARDUINO'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizBc0YipL5Z7CO3GGLznPcv5wDHzoPASp3MTztNiMb3VVO9X6hvZIvh22RlIMCEIwbn6QUkNf0rBop7iMmwPV0j0l9RWeTPIaD3W9RX3lgdOpdiumMY18vkJYUiYEafW_qCikakFkjnrOh/s72-c/motor4.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-1790275130033004068</id><published>2020-08-03T07:31:00.001-07:00</published><updated>2020-08-03T18:26:44.996-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction"/><title type='text'>Floating Inputs and its Mitigating Measure in Arduino</title><content type='html'>&lt;b&gt;What are the floating inputs?&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Sometimes, Arduino reads random input on the input port. Even though we don&#39;t give any input in the Arduino, sometimes it tends to read some random input values. This is called floating inputs.&amp;nbsp;When the input is defined as digital, and if you are not connected to the input to either HIGH or LOW the input is said to be floating. This may lead to some random input voltages. We can mitigate this issue by using pull-up or pull-down resistors.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;What are pull-up and pull-down resistors?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the circuit, when it is closed, it makes a connection to the ground, and when the circuit is open, the rest of the circuit will keep floating. In the digital circuit connection, the input or output pins are always at 1(HIGH) or at 0(LOW). Sometimes, we need to change that value from 1 to 0 or 0 to 1, for that we need to hold digital pin either at 0 and change it to 1 or, hold the digital pin at 1 and change it to 0, it can be left on floating. For this, we need a pull-up or pull-down resistors.&amp;nbsp;&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/AVvXsEjh3j1b1O0b0es3Cfd3JVwCYFooearjvDpn8DPW60OS4PQJ7_S5wPfqZZmYBfohneFcWJ5wt9wJSJtNnv8VmTTJ50JvRN40qiWmhvoDB0vIV8eXwuvb7_Gm5a7tSLW3odBYutPNMWeS4m04/s543/low.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;210&quot; data-original-width=&quot;543&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh3j1b1O0b0es3Cfd3JVwCYFooearjvDpn8DPW60OS4PQJ7_S5wPfqZZmYBfohneFcWJ5wt9wJSJtNnv8VmTTJ50JvRN40qiWmhvoDB0vIV8eXwuvb7_Gm5a7tSLW3odBYutPNMWeS4m04/s0/low.png&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;&lt;div&gt;Now, if we put actual voltage in HIGH or LOW, the value of HIGH will be 5V(Logic HIGH) and LOW will be 0V or ground(Logic LOW).&lt;/div&gt;&lt;div&gt;&lt;br /&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/AVvXsEjdBmNnKWkJ3DNfA-zzR4A6ZoZX2OAWcv9MQKS_eDhrDIEgsq2zgar9um3FnbkKaK2442ZRY8ePcuNhY9lNBW0vPMo1oeEyhyNDXC71264Ilq9gMTjlb-UxAAbQH5zRkkpLlAl6zUkk-t3b/s547/sss.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;214&quot; data-original-width=&quot;547&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdBmNnKWkJ3DNfA-zzR4A6ZoZX2OAWcv9MQKS_eDhrDIEgsq2zgar9um3FnbkKaK2442ZRY8ePcuNhY9lNBW0vPMo1oeEyhyNDXC71264Ilq9gMTjlb-UxAAbQH5zRkkpLlAl6zUkk-t3b/s0/sss.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Pull-up resistor is used to set up the default digital pin as HIGH whereas a pull-down resistor is used to set up the default digital pin as LOW.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Though floating inputs are generally observed in digital inputs, it can also be found in analog inputs.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pull-up and pull-down resistors are generally used to interface the switch or some other inputs with a microcontroller which ensures that there are no floating values. Most microcontrollers have built-in pull up/down resistors so less external components are needed.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&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/AVvXsEjGzOTYGHCzh2tqYonOxKziJQJsSj0vBnGDboHRRpmAcwtJjlynRBP9-lOQ5L4ec_45ucuhqRxmH3_1TVtHOdsiN_CqZyQG9mzYXkhBZkKZ89ansJpny7QNAtrza5R0sLWrOnR9lHODXmYg/s770/floating+resistor.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;477&quot; data-original-width=&quot;770&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGzOTYGHCzh2tqYonOxKziJQJsSj0vBnGDboHRRpmAcwtJjlynRBP9-lOQ5L4ec_45ucuhqRxmH3_1TVtHOdsiN_CqZyQG9mzYXkhBZkKZ89ansJpny7QNAtrza5R0sLWrOnR9lHODXmYg/s640/floating+resistor.PNG&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;br /&gt;&lt;/div&gt;&lt;div&gt;In a digital circuit of 3.3V to 5V, we can put pull up/down resistors of value 10k ohm to 20k ohm, but the best practice is to use the value of 10k ohm. The above circuit diagram shows how to interface pull up/down resistors with a microcontroller. Arduino has its own pull-up resistor configured in its system that can be programmed to use without the use of external resistor, whereas there is no pull-down resistor so an external resistor is needed in case of the pull-down. For reference code to programme pull-up resistor you can visit:&amp;nbsp;&lt;a href=&quot;https://www.arduino.cc/en/Tutorial/DigitalInputPullup&quot;&gt;https://www.arduino.cc/en/Tutorial/DigitalInputPullup&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, in this way you can mitigate floating inputs. If you have any queries regarding this, do contact us at nasaelectronics157@gmail.com&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/1790275130033004068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/floating-inputs-and-its-mitigating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1790275130033004068'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/1790275130033004068'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/floating-inputs-and-its-mitigating.html' title='Floating Inputs and its Mitigating Measure in Arduino'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh3j1b1O0b0es3Cfd3JVwCYFooearjvDpn8DPW60OS4PQJ7_S5wPfqZZmYBfohneFcWJ5wt9wJSJtNnv8VmTTJ50JvRN40qiWmhvoDB0vIV8eXwuvb7_Gm5a7tSLW3odBYutPNMWeS4m04/s72-c/low.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-2158874095999396330</id><published>2020-08-01T08:15:00.001-07:00</published><updated>2020-08-01T08:15:54.473-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction"/><title type='text'>ARDUINO IDE WORKING AND FUNCTIONS</title><content type='html'>&lt;div&gt;The open-source Arduino Software (IDE) makes it easy to write code, compile it, and upload it in a board.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here are some tips about Arduino IDE:&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font color=&quot;#222222&quot; face=&quot;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&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/AVvXsEg1dJ0XmloVwHkCudd3vSgIR8cb-Hgb8Mo20U6erml7BE3IrrzT7MQaIHIxKc5h6cUaI5JNH4AYb8LaAXbSeb5RxYaEFBQbwbreK0X2A2GqWdzQ9IoPgkGzcYxa1qrptQ0UDxrCWnFLu36B/s532/arduino+ide.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;532&quot; data-original-width=&quot;527&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1dJ0XmloVwHkCudd3vSgIR8cb-Hgb8Mo20U6erml7BE3IrrzT7MQaIHIxKc5h6cUaI5JNH4AYb8LaAXbSeb5RxYaEFBQbwbreK0X2A2GqWdzQ9IoPgkGzcYxa1qrptQ0UDxrCWnFLu36B/s0/arduino+ide.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;font color=&quot;#222222&quot; face=&quot;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;1.) Running the Arduino IDE program for the first time after instilling&amp;nbsp;it to pc&lt;/b&gt;&lt;div&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;&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/AVvXsEgWYny7L1Yg1Lrbn9-NxV0KhmbjS-1l_HyIeTXYnNzLhAv4GRUEKgwSiQU2mfft2xdRl5JTWqrTDm8c9ik66N4cRjjfzsBxhWeM3ZNCTc4z14Ih9H-DrSVyRcYKuqW8H_wWLHDzH10lTjpo/s1366/Screenshot+%252810%2529.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;728&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWYny7L1Yg1Lrbn9-NxV0KhmbjS-1l_HyIeTXYnNzLhAv4GRUEKgwSiQU2mfft2xdRl5JTWqrTDm8c9ik66N4cRjjfzsBxhWeM3ZNCTc4z14Ih9H-DrSVyRcYKuqW8H_wWLHDzH10lTjpo/s640/Screenshot+%252810%2529.png&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;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;2.)Let&#39;s load our first example that comes with Arduino IDE itself&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&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;&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/AVvXsEgIsg1tx7IzSI3kuYwbDrCUhtgEjEbyWdlMtQe4-uywJDw-ylkDq7lKl9gCe5TduGZamMisXcSoMgDReKjps26kcGAV5S04U4moDucTYG7xr33QSpNMYK3xG-GFN-WaguX4KVote2CsVtgM/s1366/Screenshot+%252811%2529.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIsg1tx7IzSI3kuYwbDrCUhtgEjEbyWdlMtQe4-uywJDw-ylkDq7lKl9gCe5TduGZamMisXcSoMgDReKjps26kcGAV5S04U4moDucTYG7xr33QSpNMYK3xG-GFN-WaguX4KVote2CsVtgM/s640/Screenshot+%252811%2529.png&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;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;OR,&lt;/b&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;&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;&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/AVvXsEg67M4V_QrdLOhl9HkTcv_WqA9eTAb-wkQpDyVX2y49lRktFkeBYRbL9qDS79X3HJ6o4SBMt14iQH0GF1yoTSfXONDtNjTVQIO8VD9x-IpiDSocVlQXirIVn6IznWwNbtqXWr09ljzjqh8O/s1366/Screenshot+%252821%2529.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;723&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg67M4V_QrdLOhl9HkTcv_WqA9eTAb-wkQpDyVX2y49lRktFkeBYRbL9qDS79X3HJ6o4SBMt14iQH0GF1yoTSfXONDtNjTVQIO8VD9x-IpiDSocVlQXirIVn6IznWwNbtqXWr09ljzjqh8O/s640/Screenshot+%252821%2529.png&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;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;3&lt;b&gt;.) This is the first program that we load to our Arduino IDE&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&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/AVvXsEjYsxlQXyOHyeaHMsQvyqXhJ_0ninSShb0IAEVEtr7x52EXEcnjzI49sVQkQco0D3M_a89MBr23tRVwrQ6xHtD_4t1wLsZntH1nG5yXAdtqFSyR717E4VacYq8ef7NpzkNPVACGDzt6gbHS/s1366/Screenshot+%252812%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;728&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYsxlQXyOHyeaHMsQvyqXhJ_0ninSShb0IAEVEtr7x52EXEcnjzI49sVQkQco0D3M_a89MBr23tRVwrQ6xHtD_4t1wLsZntH1nG5yXAdtqFSyR717E4VacYq8ef7NpzkNPVACGDzt6gbHS/s640/Screenshot+%252812%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;4.) To bring a new file&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&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;&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/AVvXsEhHcnLesN3Z8Q6ByZmBDRSKaUUD5mVTwCyWIe8gcmSpj-YiNq8Qt3rL2B1w620KbuaSsMcKRUUue6EXielWfEot5MoNmbEgCrfczh81SS3fRzB64654q4WSQWV2iFS_haNO80mxrZRfqgRw/s1366/Screenshot+%252823%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;719&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHcnLesN3Z8Q6ByZmBDRSKaUUD5mVTwCyWIe8gcmSpj-YiNq8Qt3rL2B1w620KbuaSsMcKRUUue6EXielWfEot5MoNmbEgCrfczh81SS3fRzB64654q4WSQWV2iFS_haNO80mxrZRfqgRw/s640/Screenshot+%252823%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;5.) Verify(Compile) the program&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Compilation means to check the program and find out the error if figured. If there are no errors than at the button of the screen it comes with done compilation.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&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/AVvXsEhx6mxQXTJlYQTxjMJfj3oyyzKfzADT97ixQNFKL6mpkDgjBa6Ek9dn5y-cKIDBUhcd_0Aiy6ADLWOyaQzhg5RrLbeB5xPjNW2sVDbRKjPubh4aSOtScWD9Y5nmwbTOxhqAKAXvlpUY8IXp/s1366/Screenshot+%252813%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;726&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx6mxQXTJlYQTxjMJfj3oyyzKfzADT97ixQNFKL6mpkDgjBa6Ek9dn5y-cKIDBUhcd_0Aiy6ADLWOyaQzhg5RrLbeB5xPjNW2sVDbRKjPubh4aSOtScWD9Y5nmwbTOxhqAKAXvlpUY8IXp/s640/Screenshot+%252813%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&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/AVvXsEgGxixzLI2PHKd3NM4Zk9O6VHrYLvG2LLJ8W503LIcw-BTo5KdFdkcXebBekgio5E0vsrI76b1_ETQtd-97MPw4fvRRo4Dl3Uop74SkBvlywtN8q0uUo9V1e05VSFhp-k9zNTlNiX-kWeli/s1366/Screenshot+%252818%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;726&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGxixzLI2PHKd3NM4Zk9O6VHrYLvG2LLJ8W503LIcw-BTo5KdFdkcXebBekgio5E0vsrI76b1_ETQtd-97MPw4fvRRo4Dl3Uop74SkBvlywtN8q0uUo9V1e05VSFhp-k9zNTlNiX-kWeli/s640/Screenshot+%252818%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;6.) Saving the file to the computer&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&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/AVvXsEizn7s2vg7O6od_q0yIDqDOS8sF4nL7XYlEvcJf9eqMeuy7_WHb_wkOwsui28OjQY5ZzpqzRsBInXq_-KMWAdpUg9ObvZViq7mcv4CnANP_3lMCQSloIKD7SQr_-tkql4CN2lbwqL2-MEE4/s1366/Screenshot+%252817%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;721&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizn7s2vg7O6od_q0yIDqDOS8sF4nL7XYlEvcJf9eqMeuy7_WHb_wkOwsui28OjQY5ZzpqzRsBInXq_-KMWAdpUg9ObvZViq7mcv4CnANP_3lMCQSloIKD7SQr_-tkql4CN2lbwqL2-MEE4/s640/Screenshot+%252817%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;7.) Connecting Arduino to our computer&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large; margin-left: 1em; margin-right: 1em;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img border=&quot;0&quot; data-original-height=&quot;1276&quot; data-original-width=&quot;1920&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaWfoGvcVUQvCOV0Ur4T75DOjsid1TRk2Z_ISmhKnv_pw1q4cWb4Q72H_5RqeGchnUdWA2lvYwuAR0-AVVYjUGkuXXhVCPC4VnlgDA9H9SQGdWh2bVApwT6LJVC0l7VnbnpTogBglXYjA0/w500-h333/3.png&quot; width=&quot;500&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;8.)Configuring the board&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It means we have to choose the Arduino Board which we have bought from the market. In this tutorial, I have used Arduino Uno as my board.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiErlBwefeLeINSHDxOr-ZOTHIccHQZlrMXomRPsBZLh7Gz-C3uUNj9NdPtdfEr2rK71-3MCElg-bE0LDVjndYodIjIkWE3WyEVgiMXg6hty9shcWklq6FgD5Dsr_vN3-GgNj8yJl9Shsva/s1366/Screenshot+%252819%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;728&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiErlBwefeLeINSHDxOr-ZOTHIccHQZlrMXomRPsBZLh7Gz-C3uUNj9NdPtdfEr2rK71-3MCElg-bE0LDVjndYodIjIkWE3WyEVgiMXg6hty9shcWklq6FgD5Dsr_vN3-GgNj8yJl9Shsva/s640/Screenshot+%252819%2529.png&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;b&gt;9.) Configuring the Arduino with IDE&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This configuration will connect our Arduino UNO to our IDE and helps to upload the file through the respective port from where we have connected our Arduino.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9pA-ToSB-v8ktsf7amEzFL4rYkYY7gRP9mCuKF5yWEwzEhSj4AhijILseruQFlpqr44xSYdqap7tYUKfxhz7Sr_QFG-xVCKwYuzoyom85npTBAJsCW7KQPVCWf84DEBd7PYn05HJkPX8c/s800/20.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;364&quot; data-original-width=&quot;800&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9pA-ToSB-v8ktsf7amEzFL4rYkYY7gRP9mCuKF5yWEwzEhSj4AhijILseruQFlpqr44xSYdqap7tYUKfxhz7Sr_QFG-xVCKwYuzoyom85npTBAJsCW7KQPVCWf84DEBd7PYn05HJkPX8c/s640/20.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;10.) Uploading our program to Arduino&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&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/AVvXsEjJWR7vFbS6u3Gwyu3j0MX12TKz2IqF2CgwzgaOLIA5qK46Q7YrkSwN0pfbTrN2TJGFm9vFG7az-OR1KRgVTrShXClarzWVMf2O9FRNjttOe8Bqyvwo5Zzo7eBJmk3CEA5Y2J1AOIj72SmL/s1366/Screenshot+%252814%2529.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;728&quot; data-original-width=&quot;1366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJWR7vFbS6u3Gwyu3j0MX12TKz2IqF2CgwzgaOLIA5qK46Q7YrkSwN0pfbTrN2TJGFm9vFG7az-OR1KRgVTrShXClarzWVMf2O9FRNjttOe8Bqyvwo5Zzo7eBJmk3CEA5Y2J1AOIj72SmL/s640/Screenshot+%252814%2529.png&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&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;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&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;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&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;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/2158874095999396330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/08/arduino-ide-working-and-functions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/2158874095999396330'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/2158874095999396330'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/08/arduino-ide-working-and-functions.html' title='ARDUINO IDE WORKING AND FUNCTIONS'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1dJ0XmloVwHkCudd3vSgIR8cb-Hgb8Mo20U6erml7BE3IrrzT7MQaIHIxKc5h6cUaI5JNH4AYb8LaAXbSeb5RxYaEFBQbwbreK0X2A2GqWdzQ9IoPgkGzcYxa1qrptQ0UDxrCWnFLu36B/s72-c/arduino+ide.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-7647725583963750561</id><published>2020-07-17T10:00:00.004-07:00</published><updated>2020-08-02T00:53:39.635-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Electronic Project"/><title type='text'>USE OLD MOBILE CHARGERS TO GET DC 5V OR 10V SUPPLY FOR YOUR PROJECT</title><content type='html'>&lt;div&gt;Ever thought we can use our old mobile phone chargers to operate some electrical appliances?&amp;nbsp;Are you thinking about making your own power supply instead of battery for your project? If not then, we can use our old mobile phone chargers to operate electrical appliances. So as you already know we can use our old mobile chargers to operate electrical appliances at our home, here is how we can make our own power supply instead of using batteries.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&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/AVvXsEjWlWoOw856blmwFSMkAw1g8mHwAWrK6caUkQF5T_5lQ1eCyG5f0TVW3QHxSmgact5af7qOEP57kYmy2Ns0gUMj0z2VARmTDk_z0wsSmRIdns4BU9fS_Xm0g8hGw6V0DQXnCqCeI6HfpYks/s2048/IMG_20200717_172316.jpg&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1677&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWlWoOw856blmwFSMkAw1g8mHwAWrK6caUkQF5T_5lQ1eCyG5f0TVW3QHxSmgact5af7qOEP57kYmy2Ns0gUMj0z2VARmTDk_z0wsSmRIdns4BU9fS_Xm0g8hGw6V0DQXnCqCeI6HfpYks/s320/IMG_20200717_172316.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
We often do various projects and the most necessary thing is battery or a variable dc supply source. Since the variable DC supply box costs much so many of us use a battery as a temporary source. But we have to replace the battery after every half an hour because it gradually deteriorates. So these sources of energy are really going to bother a lot and we have to spend a lot of money on it.&amp;nbsp;&lt;/div&gt;&lt;div&gt;So, here we present a very cheap and efficient way to make your own power supply using mobile phone chargers in just 2 minutes by following a few steps.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The data cables in the mobile phone&#39;s charger consist of four wires if you remove the outermost layer of the charger. Out of which two wires are for data transmission and two are for charging. Generally, chargers consist of green, white, black and red wires. Green and White wires are for data transmission. And red and black wire that act as positive and negative terminal respectively with a potential difference of 5 volts between them.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, without wasting time lets do it:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
STEP 1:&lt;/h4&gt;
&lt;div&gt;
Cut the wire of charger using scissors or knife as shown in the figure:&lt;/div&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/AVvXsEhAxgiCw1wIBiKfCRie39Xw2PDyDP0NyLN8P6l4XPR7PIV5XmKAQtdBNRHMTXaneFk37jZxMkGxIqjQDHeqDtpzatQWg7gClH_dIK0ytGOH7_PttXsmYOjaweMg1OjA0EiMruYjP6wO1-vC/s2048/IMG_20200717_172339.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2048&quot; data-original-width=&quot;1415&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAxgiCw1wIBiKfCRie39Xw2PDyDP0NyLN8P6l4XPR7PIV5XmKAQtdBNRHMTXaneFk37jZxMkGxIqjQDHeqDtpzatQWg7gClH_dIK0ytGOH7_PttXsmYOjaweMg1OjA0EiMruYjP6wO1-vC/w625-h400/IMG_20200717_172339.jpg&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
STEP 2:&lt;/h4&gt;
&lt;div&gt;
Peel the outer cover of cable and for data cables you can find 4 wires inside. You only need is only red and black wires as we are only working on making the power supply and on transmitting data so we can remove extra wires as shown in the figure:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left;&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/AVvXsEigrAk_CLWSkcR-KCT8jeX-YB5KLgP_erlrL86nGFtTpkbCQlc8JrDrSYT0x6mahdJMry19r8FEgK-9y3vkLj5fWhy22gOEBmKC_uThuiTyTBE_12JDF7B_2pNYikW8Mbq80OlmBKwlgiYS/s1888/IMG_20200717_172238.jpg&quot; style=&quot;clear: left; display: inline; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1526&quot; data-original-width=&quot;1735&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL3ltp6NM0oOwOq2CnO58CaVokW4UMaauRCrivsqRBgX_8Ck8VDHGvsGMeDH-T6T4M-xZ_ZJERe1i3YzAkr8Obi97Egthfj3hJR_7COg2YYt52wfjpvq6RtYujtn0I4aJ9uGU7_I5BPH-T/w320-h225/IMG_20200717_171015.jpg&quot; title=&quot;fig 1&quot; width=&quot;320&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;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVbxxiu_DtKgXdNcR4yr2vJAa2BTkBO5oMkgT8a-Pv-8-llsTz1XqRbnGUx95fnXlXS1M6dv9HD_WR3A-5sB1k_3-_yJIFz5qwQVf4xJuqlxLm-ophORwV8kqKZVr5dzz6raQsTm-gn1rB/s1888/IMG_20200717_172238.jpg&quot; style=&quot;clear: right; display: inline; margin-bottom: 1em; margin-left: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1710&quot; data-original-width=&quot;1888&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVbxxiu_DtKgXdNcR4yr2vJAa2BTkBO5oMkgT8a-Pv-8-llsTz1XqRbnGUx95fnXlXS1M6dv9HD_WR3A-5sB1k_3-_yJIFz5qwQVf4xJuqlxLm-ophORwV8kqKZVr5dzz6raQsTm-gn1rB/w256-h204/IMG_20200717_172238.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
STEP 3:&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As shown in above figure now we can easily get 5 volts output and use it on our project by connecting the charger in our project.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In order to get 10 volts output that we need in motor drivers we can make it by connecting to chargers in series which is shown below:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;STEP 4:&lt;/h4&gt;&lt;div&gt;Take another charger and repeat step 1 and step 2. Connect the chargers in series by connecting a positive terminal(red wire) of one charger to a negative terminal(black wire) of another charger as shown in the figure below.&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/AVvXsEiE5FwlaVZfvbK8uI1UI6IZ8RFPetpRhxeOgOdJNtTAjOPYaX4fHxFGQXqLXvQGBlHm9f0kBq8dLI3Qpk-t0Tm3l6CjsI743ltKJ3wwbYfGDoD3gupMK_xeLnJ0qFQJJIzFcO3fXemqvXDf/s2043/IMG_20200717_172257.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1827&quot; data-original-width=&quot;2043&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE5FwlaVZfvbK8uI1UI6IZ8RFPetpRhxeOgOdJNtTAjOPYaX4fHxFGQXqLXvQGBlHm9f0kBq8dLI3Qpk-t0Tm3l6CjsI743ltKJ3wwbYfGDoD3gupMK_xeLnJ0qFQJJIzFcO3fXemqvXDf/w400-h358/IMG_20200717_172257.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here you easily obtained 10 volts by bringing two chargers in series. We can also connect two batteries in series by following similar procedures.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you can carry out with your project easily without buying a battery. And to make you believe that it is really working, we have attached a video file below in which we ran PC fan using two chargers in series and generating 10 Volts for fan by connecting red wire of fan to red wire of the data cable and black wire of fan to black wire of the data cable.&amp;nbsp;&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;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;650&#39; height=&#39;500&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dxyh61xbKlpWKYl4UN8iqiX9qW0USaAXSZewqcF-oV77XxcW8nFnfmWMFYJ38Yk_MW5mu1vAPM04s2hlqtNMw&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;If you have any queries regarding this or any other projects, do contact us at nasaelectronics157@gmail.com&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/7647725583963750561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/07/use-old-mobile-charger-to-get-dc-5v-or.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7647725583963750561'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7647725583963750561'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/07/use-old-mobile-charger-to-get-dc-5v-or.html' title='USE OLD MOBILE CHARGERS TO GET DC 5V OR 10V SUPPLY FOR YOUR PROJECT'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWlWoOw856blmwFSMkAw1g8mHwAWrK6caUkQF5T_5lQ1eCyG5f0TVW3QHxSmgact5af7qOEP57kYmy2Ns0gUMj0z2VARmTDk_z0wsSmRIdns4BU9fS_Xm0g8hGw6V0DQXnCqCeI6HfpYks/s72-c/IMG_20200717_172316.jpg" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-7707837744432194764</id><published>2020-07-15T09:22:00.015-07:00</published><updated>2021-04-24T07:57:27.461-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction"/><title type='text'>BLINK TUTORIAL-Coding a Microcontroller Using Arduino</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right;&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/AVvXsEht_j1cYbrDwdL3TV3B4Xrspl4AjqnCQ_dqnga_bggIfmVS2HcZMZy8aWXZXnCCLM99EkBXUynDq-XLlygC2Ur-3GHoI7uCkOyLAqyJR0HMt4yV3qhQB66dw9WMFkQCBFDSDaRRJYrAM860/s320/image2.gif&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;240&quot; data-original-width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht_j1cYbrDwdL3TV3B4Xrspl4AjqnCQ_dqnga_bggIfmVS2HcZMZy8aWXZXnCCLM99EkBXUynDq-XLlygC2Ur-3GHoI7uCkOyLAqyJR0HMt4yV3qhQB66dw9WMFkQCBFDSDaRRJYrAM860/s0/image2.gif&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;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Arduino is a platform for microcontroller devices which makes coding much easier than other traditional methods. Basically, it is an easy way out. We can do a complex project in a much easier way just by using Arduino. Here, we are doing the project of the blinking LED by using Arduino. If not for Arduino then this simple and easier project would have been difficult to do.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;First, we will understand the code, and then we will do a real coding process in a microcontroller using Arduino.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPcyqhE_QUT1W4vfMaGjQYlEd_eG2jN_E8J6fdlHbqbU0sMAVAp44kxB7pVeDk2M1n1JguDAjtZ7NllULQweRe40l1IknWWga6mBE-XdBQgbmD_fQCsgjGDmSY2iOJpuf4oN_08Gb6Hh1c/s845/17.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;845&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPcyqhE_QUT1W4vfMaGjQYlEd_eG2jN_E8J6fdlHbqbU0sMAVAp44kxB7pVeDk2M1n1JguDAjtZ7NllULQweRe40l1IknWWga6mBE-XdBQgbmD_fQCsgjGDmSY2iOJpuf4oN_08Gb6Hh1c/w625-h380/17.PNG&quot; width=&quot;625&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Requirements for this project:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Arduino UNO&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;LED Bulb&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;0.5 K resistor&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Jumper wires or connecting wires&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Installing the Arduino UNO:&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Let&#39;s install the app from the link below:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://www.arduino.cc/en/main/software&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://www.arduino.cc/en/main/software&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;After you visit this website you can see different options for downloading Arduino in Linux, in Mac, and in Windows. You can choose any of them as per your operating system.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;After you click on any of those options you will see &#39;Just Download&#39; and &#39;Contribute &amp;amp; Download&#39; option on that page. You can click on the &#39;Just Download&#39; option and proceed further towards the installation process.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;After installation and running the app you will see this window on your computer screen:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEgc6YS9hUmqJhJqYssZI9dFOiTH0kwg89__KpmMQCbJV7sv3bNzM4p4lsC2wa7H0gQMCmiFucNrly6iNVcrNB7uHYMleyy7CWwFYzaHQCIkSfhmvb25jKB-Yz9sTjtUJiEDTkv_9yS4gN0M/s1366/11.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc6YS9hUmqJhJqYssZI9dFOiTH0kwg89__KpmMQCbJV7sv3bNzM4p4lsC2wa7H0gQMCmiFucNrly6iNVcrNB7uHYMleyy7CWwFYzaHQCIkSfhmvb25jKB-Yz9sTjtUJiEDTkv_9yS4gN0M/w625-h351/11.PNG&quot; width=&quot;625&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The reason behind this pre-populated code blocks is if we don&#39;t use loop and setup in our code, our code won&#39;t compile. The void keyword is used only for function declaration. The setup() function is basically used to initialize variables, pin modes, etc. The setup() function only runs once, after each powerup or reset of the Arduino board. The code inside the loop() function will run continuously until and unless Arduino is powered off or reset.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Coding:&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Erase everything on the screen and write an Arduino code as per your wish. Since this is the tutorial for the blinking LED, here is the code for it:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEg7KJAuBX-0mfSex1HCLmP4T5gn5kJZK9TSvZ8Kt2QSt64gC40H_gvcVO5eHH6yzcJdISPlDi85GHMvc7gAi-FOWcHJfgCZNsi8kZdZ9E3DHtZ7G4X4iwRIzXIcAF-1MauiJVEv7jm1phS_/s550/18.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;511&quot; data-original-width=&quot;550&quot; height=&quot;580&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7KJAuBX-0mfSex1HCLmP4T5gn5kJZK9TSvZ8Kt2QSt64gC40H_gvcVO5eHH6yzcJdISPlDi85GHMvc7gAi-FOWcHJfgCZNsi8kZdZ9E3DHtZ7G4X4iwRIzXIcAF-1MauiJVEv7jm1phS_/w625-h580/18.PNG&quot; width=&quot;625&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Let&#39;s understand the code and what does each statement in the code represents:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;int pin1=13.....Here we declare variables and int is an integer that reads value as a number. Pin1=13 means digital pin no 13&amp;nbsp; where we will connect a wire linking bulb and then we will connect bulb with a resistor and in the GND i.e. we will connect&amp;nbsp;a ground pin to&amp;nbsp;the other end of the bulb. Here we have connected resistance so that our bulb will not fuse.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;void setup().....it configures the pin for operation. Like if we have to glow bulb then pin 13 produces an output of 5Volts so that the bulb glows. So it configures pin 13 to produce output that maybe 0 volts or 5 volts since it is a digital pin.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Are you thinking about input then we will have a detailed&amp;nbsp;discussion in further session when we start learning about sensors and taking values from there.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;void loop()....it means the code will run into the same loop several times. So the void loop runs the program continuously between brackets{...}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;digitalWrite(pin1, HIGH)....it means pin1 i.e. pin no 13 will become high and will receive 5 Volt signal.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;delay(50)....means bulb will glow for 50 milliseconds.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;digitalWrite(pin1, LOW)...means pin 13 will receive 0 volts and the bulb will remain off.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;delay(45)...means bulb will remain off for 45 milliseconds&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;now the loop will repeat and again digitalWrite(pin1, HIGH) will be high for 50 milliseconds and the same loop will keep running.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;After writing the program hit the tick mark at top of the left side window. That will check if your program is wrong or right. If the program is right then it will show no error and at the bottom of window Done Compiling will appear and you will know &quot;YES YOUR PROGRAM IS CORRECT!&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In this way, the bulb will glow for 50 seconds and turns off for 45seconds. The same pattern will keep running until we change the code. &lt;i&gt;You can bring your own modifications to this code and write in in your own way.&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Case Sensitivity:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The above-written code is the language that Arduino or machine understands. So we have to write it in the same way. And the thing to remember in digitalWrite(pin13, HIGH) is here &#39;W&#39; in digitalWrite is capital and if we write small &#39;w&#39; i.e. digital write(pin13, LOW) then the computer will not understand. Similarly &#39;HIGH&#39; should not be written as &#39;high&#39; it will bring error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;But in place int pin1=13;...instead of pin1 we can write pin or apple or any name as your wish and should use the same name throughout the program for pin configuration of pin no13 if declared earlier.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Uploading our code into Microcontroller:&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Let&#39;s connect the USB to computer and Arduino as shown in the figure below:&lt;/span&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/AVvXsEiaWfoGvcVUQvCOV0Ur4T75DOjsid1TRk2Z_ISmhKnv_pw1q4cWb4Q72H_5RqeGchnUdWA2lvYwuAR0-AVVYjUGkuXXhVCPC4VnlgDA9H9SQGdWh2bVApwT6LJVC0l7VnbnpTogBglXYjA0/s1920/3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1276&quot; data-original-width=&quot;1920&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaWfoGvcVUQvCOV0Ur4T75DOjsid1TRk2Z_ISmhKnv_pw1q4cWb4Q72H_5RqeGchnUdWA2lvYwuAR0-AVVYjUGkuXXhVCPC4VnlgDA9H9SQGdWh2bVApwT6LJVC0l7VnbnpTogBglXYjA0/w500-h333/3.png&quot; width=&quot;500&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now configure the pin by doing the following process:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEh3X2TqseO9UmVGyGtBH_DfIMw0G2AjqlaziPFSL0Zzk2Z0xRDBNrm_4ODD4402XnUlA9qBmGxUAF0D600dVn-1pZ8Rz7k_sTzJ0R1RXSdWmwIwYLIMSLMB7NtnJk64_8DF4MfPXlXFYrSm/s800/5.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;364&quot; data-original-width=&quot;800&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3X2TqseO9UmVGyGtBH_DfIMw0G2AjqlaziPFSL0Zzk2Z0xRDBNrm_4ODD4402XnUlA9qBmGxUAF0D600dVn-1pZ8Rz7k_sTzJ0R1RXSdWmwIwYLIMSLMB7NtnJk64_8DF4MfPXlXFYrSm/w500-h229/5.jpg&quot; width=&quot;500&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now upload file to Arduino by clicking the icon below:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&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/AVvXsEhkiyfVpKlv39veo5VDaLXeorv2ydVD-mRLTldjReQTvwH_NfHEasLRykanmWVwP8JUC7zgel1dBEkRgsf0NaaNQbi_nbeedutZjlkkUULJ6CsbAdPv_V-Es86xHEk7kmrDKCBiyLG335G-/s500/14.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;313&quot; data-original-width=&quot;500&quot; height=&quot;391&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkiyfVpKlv39veo5VDaLXeorv2ydVD-mRLTldjReQTvwH_NfHEasLRykanmWVwP8JUC7zgel1dBEkRgsf0NaaNQbi_nbeedutZjlkkUULJ6CsbAdPv_V-Es86xHEk7kmrDKCBiyLG335G-/w625-h391/14.PNG&quot; width=&quot;625&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Always remember that after uploading the file to Arduino then only we will do the connection of bulb and resistors because before uploading there may exist other programs running on Arduino if previously it was used by others and there may be the chances of short circuit.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now remove USB from computer and do the connections as shown in the figure below:&lt;/span&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/AVvXsEi8jfmhcYVpnokM6RXXkyw6lT_neFwJNdqOMreqy_GF6FSANN1POQaifRPIcphQXvrGVM7j1njI-a_ep_z8q7K6ltUYs2JjTsHqdW7fAlaARmWsqnCHxBJBaRi4_piSdmqUoRIC1nXgifBO/s845/17.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;845&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8jfmhcYVpnokM6RXXkyw6lT_neFwJNdqOMreqy_GF6FSANN1POQaifRPIcphQXvrGVM7j1njI-a_ep_z8q7K6ltUYs2JjTsHqdW7fAlaARmWsqnCHxBJBaRi4_piSdmqUoRIC1nXgifBO/w500-h304/17.PNG&quot; width=&quot;500&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now connect the USB back to the computer and you will see your first program running on small little brain Arduino in which we taught it to blink bulb for 50 milliseconds ON and 45 milliseconds OFF.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;845&#39; height=&#39;512&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dyAR_PiAW2dlMHKF-UXtyMSb4uxCmEB3wjxxw2SimaZR2Y7GXopw0Jk98cXLJYYFDvBvtblplu3PIfT_3yX9A&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Finally, you made your first microcontroller program and upload it to Arduino and made it blink.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Wasn&#39;t it cool and easy??&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If you have any query regarding this project you can contact us at&amp;nbsp;&lt;a href=&quot;https://www.blogger.com/nasaelectronics157@gmail.com&quot;&gt;nasaelectronics157@gmail.com&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/7707837744432194764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/07/blink-tutorial-coding-microcontroller.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7707837744432194764'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/7707837744432194764'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/07/blink-tutorial-coding-microcontroller.html' title='BLINK TUTORIAL-Coding a Microcontroller Using Arduino'/><author><name>Jay Prakash Mandal</name><uri>http://www.blogger.com/profile/02069873793482577692</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8g-uqPkDvFL0hk4w_GtYlbRS-HnhY27hY3nyavxO8Lym0KGHWvzOrU8vidQWWAY63qsdJxHFrcRpfJ3n78Wc6jkvt6voaSI_6pQpkAuILz5GhSFLgP7CDTsJ_lwCi5zk/s220/1-studyshowspa.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht_j1cYbrDwdL3TV3B4Xrspl4AjqnCQ_dqnga_bggIfmVS2HcZMZy8aWXZXnCCLM99EkBXUynDq-XLlygC2Ur-3GHoI7uCkOyLAqyJR0HMt4yV3qhQB66dw9WMFkQCBFDSDaRRJYrAM860/s72-c/image2.gif" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6042205873922204633.post-5898728711797862518</id><published>2020-07-14T01:52:00.017-07:00</published><updated>2022-01-01T19:15:40.814-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction"/><title type='text'>INTRODUCTION TO ELECTRONICS AND ARDUINO</title><content type='html'>&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&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/AVvXsEj332M2EdbhRp35NG33gMExwCrQCzzkVQUtk63R5xWPLkcBE3g0ApQRWDmy0W2CCndSClEHakTGz0D5j1grKN0wDiNMFNgVq1HaqZn9nRh3tDjxZsyUrjMCU6qTNLsY-fKB4UnOnU0eBeZc/s2048/B.E+Electronics+%2526+Power+Engineering.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1365&quot; data-original-width=&quot;2048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj332M2EdbhRp35NG33gMExwCrQCzzkVQUtk63R5xWPLkcBE3g0ApQRWDmy0W2CCndSClEHakTGz0D5j1grKN0wDiNMFNgVq1HaqZn9nRh3tDjxZsyUrjMCU6qTNLsY-fKB4UnOnU0eBeZc/s320/B.E+Electronics+%2526+Power+Engineering.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&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;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3&gt;&lt;font size=&quot;4&quot;&gt;Introduction&lt;/font&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;4&quot;&gt;Today&#39;s world is filled with electronics and electrical equipments. Electronics are what our lives are controlled by and based on. We cannot imagine a single day without electronic equipment. From lighting our room to cooking food, we all rely on electronic components. Electronic equipment like cell phones, computers, fans, light bulbs has made our life very easier and comfortable. Modern advancement is not possible without the advancement in electrical and electronics technologies. These are the fundamental and most integral part of development. Not all, but many types of electronic equipments are programmed to perform a certain task. Basically, we use microcontrollers to program and control electronics equipments.&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h4&gt;&lt;font size=&quot;4&quot;&gt;So What is Microcontroller?&lt;/font&gt;&lt;/h4&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Microcontrollers are universal cheap integrated circuits that can be programmed and are used in many electronic fields. Microcontrollers can be programmed according to our will to control electronic equipment. It is a single integrated circuit which consists of a processor core, memory, and programmable input/output terminals.&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;&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/AVvXsEjAGXl7yoqOMfTrt-1wH3VnGgCCzJqoEshQOlqGtSc6IBfsiPL9Rye-WngEbKPNlIM-F6rQCaowgxOiI4mUV3u5B7CQc7XW9Ijq3ekbuLLyAocwXl4e8FwgzNJYvsYigZG-AgvZuhXd6GME/s300/download+%25281%2529.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;168&quot; data-original-width=&quot;300&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAGXl7yoqOMfTrt-1wH3VnGgCCzJqoEshQOlqGtSc6IBfsiPL9Rye-WngEbKPNlIM-F6rQCaowgxOiI4mUV3u5B7CQc7XW9Ijq3ekbuLLyAocwXl4e8FwgzNJYvsYigZG-AgvZuhXd6GME/w300-h168/download+%25281%2529.jpg&quot; width=&quot;300&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;Fig: Microcontroller&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Carefully chosen microcontrollers can independently control various processes and devices such as industrial automation, electric current, etc. It is a wonder how a single, small chip can control and automate big electronic equipment.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;h4&gt;&lt;font size=&quot;4&quot;&gt;How does Microcontroller operate?&lt;/font&gt;&lt;/h4&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;A microcontroller is embedded inside a system to the singular function of a device. It receives signals from a peripheral and interprets it in its central processor. The temporary information it receives is stored in its memory and then is used to control the equipment once it deciphers the stored instruction in the program memory.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;For example, in an elevator, push-buttons and Magnetic contact sensors are input parts of the microcontroller. LCD display unit and H-bridge driver circuit are output parts of the microcontroller.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;h4&gt;&lt;font size=&quot;4&quot;&gt;What are the elements of the microcontroller?&lt;/font&gt;&lt;/h4&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;The main elements of microcontroller are:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;The processor: It is also called as CPU. It works as a brain of the microcontroller. It processes and responds to various instructions that directs microcontroller functions.&amp;nbsp;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;Memory: The microcontroller&#39;s memory is used to store the data processor receives and the use it to respond instructions programmed to carry out.&amp;nbsp;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;I/O Peripherals: The input ports receive the information and send it off to the processor in the form of binary data. The processor receives the information and sends it off to output devices that execute tasks.&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h4&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;font&gt;Applications of Microcontrollers:&lt;/font&gt;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; color: #1a1a1a; letter-spacing: 0.04px; text-align: justify; word-spacing: 1px;&quot;&gt;&lt;font face=&quot;inherit&quot;&gt;Experts always strive to introduce innovation in automation that requires minimum effort and gives maximum output. The microcontroller was introduced in the electronics industry with the purpose of making our tasks easy which comes with even a remote connection with automation in any way&lt;/font&gt;&lt;/span&gt;&lt;span face=&quot;poppins, sans-serif&quot; style=&quot;background-color: white; color: #1a1a1a; letter-spacing: 0.04px; text-align: justify; word-spacing: 1px;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;font&gt;Microcontrollers have a wide range of applications. Microcontrollers are used from simple home appliances to big industrial appliances. In the 21st century, the use of electronic equipments has increased vastly. And among those equipments, automatic electronic equipments are preferred in which microcontrollers are used. Microcontrollers are basically used in automatically operated and controlled products, such as Elevator, Escalators, Automobiles, Remote controls, Appliances, etc.&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Some common kinds of microcontrollers are 8-bit Microcontrollers(eg. Arduino UNO), 32-bit Microcontrollers(eg. ARM cortex series), System on Chip Devices(eg. ESP8266), etc.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Here we will discuss Arduino UNO.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h4&gt;&lt;font size=&quot;4&quot;&gt;Arduino UNO:&lt;/font&gt;&lt;/h4&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Arduino UNO is a microcontroller board based on ATmega328P. It is the best microcontroller to get started with the projects. It has 14 digital Input/Output pins out of which 6 can be used as PMW outputs, 6 analog inputs, 16MHz ceramic resonator, a USB connection, a power jack, ICSP header, and a reset button. It contains everything needed for a microcontroller. We can simply connect it to a computer with USB cable and power it with an AC-to-DC adapter or simply a battery to get started with.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;If we come to an electronic point of view then Arduino has a signal flow in current or in voltage form. Every electrical device work in the same format. Suppose, we have to turn the motor on for 5 minutes and then turn it off. What we do is, switch the motor on for 5 minutes and then switch it off.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;This is a manual form of the task and now we can automate the same task by using Arduino.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;In this tutorial, we are going to do the same and the concept will be based on open circuit and close circuit.&lt;/font&gt;&lt;/div&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;&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/AVvXsEhcgY19p_vl9XOiGTOk79UoGhsRiXT5qU4oH1W9p3kgTepUIhLsqAioIE3BaKFISJCtO_7BdeBB_qZ4ryv9nmIo7MrmcJp5HcmN8o2XSaD3qQqlmCPudU5_C0aQmArejzicjqkn1v0CwCVO/s400/4.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;239&quot; data-original-width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcgY19p_vl9XOiGTOk79UoGhsRiXT5qU4oH1W9p3kgTepUIhLsqAioIE3BaKFISJCtO_7BdeBB_qZ4ryv9nmIo7MrmcJp5HcmN8o2XSaD3qQqlmCPudU5_C0aQmArejzicjqkn1v0CwCVO/s320/4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/font&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;&lt;font size=&quot;4&quot;&gt;fig-a&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;fig-b&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;font color=&quot;#0b8043&quot; size=&quot;4&quot; style=&quot;background-color: #eeeeee;&quot;&gt;I BELIEVE IN-DEPTH&amp;nbsp;&lt;span style=&quot;text-align: left;&quot;&gt;KNOWLEDGE&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;In the figure- a, we can see the circuit is closed and current flows in it whereas in figure-b the circuit is open and current doesn&#39;t flow.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;So we will be provided with 20-25 connecting points in the Arduino and according to our desire, we can make a connection off and on in certain time intervals.&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&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;&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/AVvXsEjEMdD_mD28XgkdWj4A4AVhvH9gDIurqJoIxq7JyiH2NENwQuqOye3QADIPjMINd8NCQjnYHhk196-e-1mTd-T9ZHkndKtblFs0ORwdjpykcS4ZZDKn7YLLpOHT5RHpl46uNDqN6ZzgCj-v/s1200/Arduino.webp&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1011&quot; data-original-width=&quot;1200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEMdD_mD28XgkdWj4A4AVhvH9gDIurqJoIxq7JyiH2NENwQuqOye3QADIPjMINd8NCQjnYHhk196-e-1mTd-T9ZHkndKtblFs0ORwdjpykcS4ZZDKn7YLLpOHT5RHpl46uNDqN6ZzgCj-v/s320/Arduino.webp&quot; width=&quot;320&quot; /&gt;&lt;/font&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;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;You can see the pin configuration of Arduino UNO in the given link below:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;a href=&quot;https://components101.com/microcontrollers/arduino-uno&quot; target=&quot;_blank&quot;&gt;https://components101.com/microcontrollers/arduino-uno&lt;/a&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Now we will focus on how pin works:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;DIGITAL PINS&amp;nbsp;&lt;/b&gt;(Pin No. 0,1,2,3,4,5,6,7,8,9,10,11,12,13)&lt;/font&gt;&lt;/div&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;&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/AVvXsEjV52KOjT2WdTxEudtTfnautsXqdk2BlH_muem4g2IqX3gVt-ULER4cdHw9IIaEBbN1VC2TqByXmk_GP8RXmHitcEZcCL5Y4MOssBdcH5_QXR-gGBsvs2kqai9wVcK7u12sk3mlBRCiYdpd/s458/digital.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;183&quot; data-original-width=&quot;458&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV52KOjT2WdTxEudtTfnautsXqdk2BlH_muem4g2IqX3gVt-ULER4cdHw9IIaEBbN1VC2TqByXmk_GP8RXmHitcEZcCL5Y4MOssBdcH5_QXR-gGBsvs2kqai9wVcK7u12sk3mlBRCiYdpd/s320/digital.PNG&quot; width=&quot;320&quot; /&gt;&lt;/font&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;&lt;font size=&quot;4&quot;&gt;Fig: Digital signal&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Digital pin means zero(0) or one(1) i.e.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;zero(0)=&lt;b&gt;Open Circuit&amp;nbsp;&lt;/b&gt;or named as&amp;nbsp;&lt;b&gt;LOW&lt;/b&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;one(1)=&amp;nbsp;&lt;b&gt;Closed Circuit&amp;nbsp;&lt;/b&gt;or named as&amp;nbsp;&lt;b&gt;HIGH&lt;/b&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Here LOW means we will switch off the bulb and HIGH means switch on the bulb. in the above figure, in high condition, there is 5V i.e. the shaded area in the graph and at the low condition, it is zero volts i.e. non-shaded area in the graph.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;ANALOG PINS&amp;nbsp;&lt;/b&gt;(Pin No. A0,A1,A2,A3,A4,A5)&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Analog value means values that are in variation. like adjusting the voltage or taking values from the sensor.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;For eg: sine waves have variation in values at every point of the wave.&lt;/font&gt;&lt;/div&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;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;331&quot; data-original-width=&quot;522&quot; height=&quot;254&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoSz63R8tPleWik_eR479SJyz3nacOc3DTCnB31w9hJ2ve_rzPPvvCmhPdVRhuX_Vd3DKkId7eaOpYV9RQSavKQnAsdqU_Tk4VkCaugBQKoBy5YTK1-5n5kvXcJMZUlknpnpNMakzxIsmz/w400-h254/analog.PNG&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Fig: Analog Signal&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&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/AVvXsEgoSz63R8tPleWik_eR479SJyz3nacOc3DTCnB31w9hJ2ve_rzPPvvCmhPdVRhuX_Vd3DKkId7eaOpYV9RQSavKQnAsdqU_Tk4VkCaugBQKoBy5YTK1-5n5kvXcJMZUlknpnpNMakzxIsmz/s522/analog.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Whenever we take values from sensors suppose proximity sensor then we get response voltage ranging from 0 to 3 volts and it may be any data like 2.7 or 1.2 volts. and for calculating the accurate values we have to sense this variation in voltages and it cannot be done by a digital signal so we use analog pins.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;So we can conclude that digital pin says there is presence or absence of data but analog pins senses signal with the accurate value that it receives.&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;If you have any query regarding this topic you can contact us at&amp;nbsp;&lt;a href=&quot;nasaelectronics157@gmail.com&quot;&gt;nasaelectronics157@gmail.com&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.roboticsinsighto.com/feeds/5898728711797862518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.roboticsinsighto.com/2020/07/our-first-diy-project-blinking-bulb.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5898728711797862518'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6042205873922204633/posts/default/5898728711797862518'/><link rel='alternate' type='text/html' href='https://www.roboticsinsighto.com/2020/07/our-first-diy-project-blinking-bulb.html' title='INTRODUCTION TO ELECTRONICS AND ARDUINO'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj332M2EdbhRp35NG33gMExwCrQCzzkVQUtk63R5xWPLkcBE3g0ApQRWDmy0W2CCndSClEHakTGz0D5j1grKN0wDiNMFNgVq1HaqZn9nRh3tDjxZsyUrjMCU6qTNLsY-fKB4UnOnU0eBeZc/s72-c/B.E+Electronics+%2526+Power+Engineering.jpg" height="72" width="72"/><thr:total>4</thr:total><georss:featurename>Nepal</georss:featurename><georss:point>28.394857 84.124007999999989</georss:point><georss:box>0.084623163821152758 48.967757999999989 56.70509083617884 119.28025799999999</georss:box></entry></feed>