<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arduino UNO | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/arduino-uno/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Thu, 09 Jun 2022 08:36:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Getting Started with Arduino UNO</title>
		<link>https://studentprojects.in/electronics/microcontrollers/getting-started-with-arduino-uno/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/getting-started-with-arduino-uno/#respond</comments>
		
		<dc:creator><![CDATA[Narayana Prakash]]></dc:creator>
		<pubDate>Tue, 07 Jun 2022 05:04:46 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[Arduino UNO]]></category>
		<category><![CDATA[Physical layout of Arduino]]></category>
		<category><![CDATA[Components of Arduino]]></category>
		<category><![CDATA[Arduino IDE]]></category>
		<category><![CDATA[Arduino sketch]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9345</guid>

					<description><![CDATA[<p>What is Arduino? Arduino is an open-source electronic tool that uses a combination of hardware and software. The Arduino board can perform the required functions by sending instructions from the microcontroller on the board. This can be achieved by using the Arduino programming language and the Arduino software (IDE). Arduino finds application in everyday objects</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/getting-started-with-arduino-uno/">Getting Started with Arduino UNO</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2>What is Arduino?</h2>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://amzn.to/3xqTmKk" target="_blank" rel="Buy Arduino Uno R3 board noopener"><img decoding="async" loading="lazy" width="500" height="408" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-Uno-R3.jpg" alt="" class="wp-image-9346" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-Uno-R3.jpg 500w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-Uno-R3-300x245.jpg 300w" sizes="(max-width: 500px) 100vw, 500px" /></a><figcaption>Arduino Uno R3 board</figcaption></figure></div>


<p>Arduino is an open-source electronic tool that uses a combination of hardware and software. The Arduino board can perform the required functions by sending instructions from the microcontroller on the board. This can be achieved by using the Arduino programming language and the Arduino software (IDE).</p>



<p>Arduino finds application in everyday objects to complex scientific instruments. Arduino was designed by Ivrea Interaction Design Institute as an easy tool for fast prototyping, aimed at students without a background in electronics and programming.</p>



<h2>Advantages of using Arduino</h2>



<p>Arduino is a key tool to learn new things. Anyone &#8211; children, hobbyists, artists, programmers &#8211; can start tinkering just by following the step by step instructions of a kit, or sharing ideas online with other members of the Arduino community. Several other advantages of Arduino are:</p>



<ul><li><strong>Inexpensive:</strong> Arduino boards are relatively inexpensive.</li><li><strong>Cross-platform: </strong>The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux operating systems.</li><li><strong>Simple, clear programming environment: </strong>The Arduino IDE is easy to use for beginners and it is very flexible.</li><li><strong>Open source and extensible software: </strong>Arduino software is an open-source tool and can be extended by users.</li><li>Open source and extensible hardware: Arduino board pins are published and experienced circuit designers can make their own design by extending and improving it.</li></ul>



<p>We start using the Arduino using the board named Arduino UNO.</p>



<h2>The physical<strong> layout of Arduino UNO</strong></h2>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" loading="lazy" src="https://studentprojects.in/wp-content/uploads/2022/06/Physical-layout-of-Arduino-UNO.jpg" alt="Physical layout of Arduino UNO" class="wp-image-9366" width="625" height="399" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Physical-layout-of-Arduino-UNO.jpg 625w, https://studentprojects.in/wp-content/uploads/2022/06/Physical-layout-of-Arduino-UNO-300x192.jpg 300w" sizes="(max-width: 625px) 100vw, 625px" /><figcaption>The physical layout of Arduino UNO</figcaption></figure></div>


<h2>Components of Arduino UNO</h2>



<ul><li><strong>Microcontroller: </strong>The major component of the Arduino board is the microcontroller. The microcontroller is fabricated inside an integrated chip and it performs the arithmetic/logical operation required for the particular task. Also, it communicates with peripheral devices, reads input devices and writes to output devices. Arduino UNO uses an ATmega328P microcontroller.</li><li><strong>Digital I/O pins</strong>: For connecting the sensors/input devices and output devices the board has digital I/O pins (0-13). These pins are used either as input or as output based on the requirement. Pins 0 and 1 are used in serial communication where pin 0 is used for reception serial information and pin 1 is used for transmission.</li><li><strong>Analog input pins</strong>: Analog input pins (0-5) are used to give analogue inputs directly to the board.</li><li><strong>USB plug</strong>: USB plug for uploading the program and communicating with the computer. This also provides a power supply during the development stage of a project.</li><li><strong>External power supply</strong>: This is used to power the Arduino board when it is not connected to the computer.</li><li><strong>Board power supply pins</strong>: Used to provide power to peripheral devices.</li><li><strong>Reset button</strong>: A push button is used to reset the Arduino.</li><li><strong>In-circuit serial programmer</strong></li></ul>



<h2><strong>Installing Arduino IDE</strong></h2>



<ol><li>Download the latest Arduino integrated development environment (IDE) from the link <a href="https://www.arduino.cc/en/software">https://www.arduino.cc/en/software</a> .</li><li>Click on the Arduino software.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="415" height="285" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-1.png" alt="" class="wp-image-9359" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-1.png 415w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-1-300x206.png 300w" sizes="(max-width: 415px) 100vw, 415px" /></figure></div>


<ol start="3"><li>Click on I agree</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="419" height="288" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-2.png" alt="" class="wp-image-9360" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-2.png 419w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-2-300x206.png 300w" sizes="(max-width: 419px) 100vw, 419px" /></figure></div>


<ol start="4"><li>Click on next</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="420" height="288" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-3.png" alt="" class="wp-image-9361" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-3.png 420w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-3-300x206.png 300w" sizes="(max-width: 420px) 100vw, 420px" /></figure></div>


<ol start="5"><li>Click on install. (If you want change in the destination folder, change to required destination and click install).</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="416" height="286" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-4.png" alt="" class="wp-image-9362" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-4.png 416w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-4-300x206.png 300w" sizes="(max-width: 416px) 100vw, 416px" /></figure></div>


<ol start="6"><li>Now installation will start and wait for the completion of installation. At the end of installation following dialogs will popup. Click on install button for all the three dialogs.</li></ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="503" height="236" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-5.png" alt="" class="wp-image-9363" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-5.png 503w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-5-300x141.png 300w" sizes="(max-width: 503px) 100vw, 503px" /></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="467" height="237" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-6.png" alt="" class="wp-image-9364" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-6.png 467w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-6-300x152.png 300w" sizes="(max-width: 467px) 100vw, 467px" /></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="471" height="231" src="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-7.png" alt="" class="wp-image-9365" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-7.png 471w, https://studentprojects.in/wp-content/uploads/2022/06/Installing-Arduino-IDE-7-300x147.png 300w" sizes="(max-width: 471px) 100vw, 471px" /></figure></div>


<h2>Connecting the Arduino UNO to the <strong>computer</strong></h2>



<p>Connect the Arduino board to the computer using a USB cable.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="444" height="277" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-to-computer-connector-USB-cable.jpeg" alt="Arduino UNO to computer connector USB cable" class="wp-image-9357" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-to-computer-connector-USB-cable.jpeg 444w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-to-computer-connector-USB-cable-300x187.jpeg 300w" sizes="(max-width: 444px) 100vw, 444px" /><figcaption>Arduino UNO to computer connector USB cable</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="800" height="525" src="https://studentprojects.in/wp-content/uploads/2022/06/arduino-connected-to-pc.jpg" alt="arduino connected to pc" class="wp-image-9348" srcset="https://studentprojects.in/wp-content/uploads/2022/06/arduino-connected-to-pc.jpg 800w, https://studentprojects.in/wp-content/uploads/2022/06/arduino-connected-to-pc-300x197.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/06/arduino-connected-to-pc-768x504.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption>Arduino connected to pc</figcaption></figure></div>


<p>Now the Arduino board will be automatically detected. (The same can be verified using device manager).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="779" height="570" src="https://studentprojects.in/wp-content/uploads/2022/06/device-manager.png" alt="device manager" class="wp-image-9358" srcset="https://studentprojects.in/wp-content/uploads/2022/06/device-manager.png 779w, https://studentprojects.in/wp-content/uploads/2022/06/device-manager-300x220.png 300w, https://studentprojects.in/wp-content/uploads/2022/06/device-manager-768x562.png 768w" sizes="(max-width: 779px) 100vw, 779px" /><figcaption>device manager</figcaption></figure></div>


<h2><strong>Writing first Arduino sketch/program</strong></h2>



<p>Instruction writing to Arduino is done using the Arduino programming language. These programs are also called sketches. This section demonstrates how to write a simple Arduino program.</p>



<p><strong>Required components:</strong></p>



<ul><li>Arduino UNO board</li><li>USB cable provided with Arduino UNO board</li></ul>



<p>Arduino UNO board contains a built-in LED. This LED is connected to pin digital pin 13.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="457" height="366" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-board-contains-a-built-in-LED.jpg" alt="" class="wp-image-9356" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-board-contains-a-built-in-LED.jpg 457w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-UNO-board-contains-a-built-in-LED-300x240.jpg 300w" sizes="(max-width: 457px) 100vw, 457px" /></figure></div>


<p>Therefore the simplest task performed using the Arduino is bilking that LED for a particular interval of time.</p>



<p><strong>Arduino IDE visual appearance</strong></p>



<p>Open the Arduino IDE. The following window is displayed having File, Edit, Sketch, Tools and Help options. It also has quick access buttons Verify, Upload, New, Open, Save and Serial monitor options. The editor space is provided to write the Arduino program. At the bottom, there is a message area which displays feedback of different processes performed on the sketch.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="550" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-1-1024x550.png" alt="" class="wp-image-9349" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-1-1024x550.png 1024w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-1-300x161.png 300w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-1-768x413.png 768w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-1.png 1370w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>


<p>The following steps are performed to write and upload the new sketch.</p>



<h4><strong>1. Writing the new sketch</strong></h4>



<p>To write a new sketch, go to File and click New (This can also be done using the New quick access button). This will create a blank sketch. Now write the Arduino program inside the sketch.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="877" height="478" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-2.png" alt="" class="wp-image-9350" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-2.png 877w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-2-300x164.png 300w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-2-768x419.png 768w" sizes="(max-width: 877px) 100vw, 877px" /></figure></div>


<pre class="wp-block-code"><code lang="c" class="language-c">// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
  delay(1000); // wait for a second. The delay given in terms of milliseconds
  digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
  delay(1000); // wait for a second
}</code></pre>



<p></p>



<h4><strong>2. Saving the Sketch</strong></h4>



<p>Now go to File and save the file with the required name (This can also be performed using quick access button Save).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="750" height="408" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-3.png" alt="" class="wp-image-9351" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-3.png 750w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-3-300x163.png 300w" sizes="(max-width: 750px) 100vw, 750px" /></figure></div>


<h4><strong>3. Verifying (compiling) the sketch/Program</strong></h4>



<p>Compile the sketch by clicking verify button.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="760" height="403" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-4.png" alt="" class="wp-image-9352" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-4.png 760w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-4-300x159.png 300w" sizes="(max-width: 760px) 100vw, 760px" /></figure></div>


<p>If the code gets compiled successfully, then the ‘Done compiling’ message will appear in the message area.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="863" height="101" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-5.png" alt="" class="wp-image-9353" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-5.png 863w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-5-300x35.png 300w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-5-768x90.png 768w" sizes="(max-width: 863px) 100vw, 863px" /></figure></div>


<p></p>



<h4>4. <strong>Uploading the sketch</strong></h4>



<p>The upload button compiles the sketch and uploads the program to the board.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="619" height="281" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-6.png" alt="" class="wp-image-9354" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-6.png 619w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-6-300x136.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure></div>


<p>If the code gets uploaded to the Arduino board successfully, then the &#8216;Done Uploading&#8217; message will appear in the message area.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="922" height="98" src="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-7.png" alt="" class="wp-image-9355" srcset="https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-7.png 922w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-7-300x32.png 300w, https://studentprojects.in/wp-content/uploads/2022/06/Arduino-IDE-7-768x82.png 768w" sizes="(max-width: 922px) 100vw, 922px" /></figure></div>


<p>Now you can see the LED blinking for 1 second. Also, this can be re-verified for different values of delays.</p>



<p>Congratulations. You have successfully installed Arduino IDE and are ready to explore the Arduino projects.</p>



<hr class="wp-block-separator has-alpha-channel-opacity" />



<div class="is-layout-flex wp-container-3 wp-block-columns">
<div class="is-layout-flow wp-block-column">
<h3>Buy Original Arduino Uno R3 ATmega328P with USB Cable</h3>
</div>



<div class="is-layout-flow wp-block-column">
<a href="https://www.amazon.in/Arduino-Uno-ATmega328P-USB-Cable/dp/B01LCN8IRK?crid=V3NEJ9PBILJW&amp;keywords=Arduino+Uno+R3&amp;qid=1654578888&amp;s=electronics&amp;sprefix=arduino+uno+r3%2Celectronics%2C206&amp;sr=1-1&amp;linkCode=li3&amp;tag=studentproj0d-21&amp;linkId=247a0cda054cd6c246b00aeaa9907c99&amp;language=en_IN&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-in.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B01LCN8IRK&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=IN&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=studentproj0d-21&amp;language=en_IN"></a><img decoding="async" loading="lazy" src="https://ir-in.amazon-adsystem.com/e/ir?t=studentproj0d-21&amp;language=en_IN&amp;l=li3&amp;o=31&amp;a=B01LCN8IRK" width="1" height="1" border="0" alt="" style="border:none !important;margin:0px !important">
</div>
</div>



<hr class="wp-block-separator has-alpha-channel-opacity" />



<div class="is-layout-flex wp-container-6 wp-block-columns">
<div class="is-layout-flow wp-block-column" style="flex-basis:50%">
<h3>Buy Starter Kit based on original Arduino UNO board 30+ DIY Projects for beginners with Video tutorials</h3>
</div>



<div class="is-layout-flow wp-block-column" style="flex-basis:50%">
<a href="https://www.amazon.in/dp/B08ZKLRNN2?_encoding=UTF8&amp;psc=1&amp;linkCode=li3&amp;tag=studentproj0d-21&amp;linkId=be684d549ea092e4f298360e8a2c7d50&amp;language=en_IN&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-in.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B08ZKLRNN2&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=IN&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=studentproj0d-21&amp;language=en_IN"></a><img decoding="async" loading="lazy" src="https://ir-in.amazon-adsystem.com/e/ir?t=studentproj0d-21&amp;language=en_IN&amp;l=li3&amp;o=31&amp;a=B08ZKLRNN2" width="1" height="1" border="0" alt="" style="border:none !important;margin:0px !important">
</div>
</div>



<hr class="wp-block-separator has-alpha-channel-opacity" />



<div class="is-layout-flex wp-container-9 wp-block-columns">
<div class="is-layout-flow wp-block-column">
<h3>Buy IDUINO SMD UNO R3 Board ATmega328P Compatible with Arduino SMD Uno Cable</h3>
</div>



<div class="is-layout-flow wp-block-column">
<a href="https://www.amazon.in/dp/B09ZVLTSJT?&amp;linkCode=li3&amp;tag=studentproj0d-21&amp;linkId=1fec2ac612cd112b796f144814388793&amp;language=en_IN&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-in.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B09ZVLTSJT&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=IN&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=studentproj0d-21&amp;language=en_IN"></a><img decoding="async" loading="lazy" src="https://ir-in.amazon-adsystem.com/e/ir?t=studentproj0d-21&amp;language=en_IN&amp;l=li3&amp;o=31&amp;a=B09ZVLTSJT" width="1" height="1" border="0" alt="" style="border:none !important;margin:0px !important">
</div>
</div><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/getting-started-with-arduino-uno/">Getting Started with Arduino UNO</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/getting-started-with-arduino-uno/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Object Detection using the Arduino UNO</title>
		<link>https://studentprojects.in/electronics/microcontrollers/object-detection-using-the-arduino-uno/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/object-detection-using-the-arduino-uno/#respond</comments>
		
		<dc:creator><![CDATA[Narayana Prakash]]></dc:creator>
		<pubDate>Wed, 25 May 2022 07:12:10 +0000</pubDate>
				<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[IR Sensor]]></category>
		<category><![CDATA[Arduino UNO]]></category>
		<category><![CDATA[IR Module]]></category>
		<category><![CDATA[Arduino Interfacing]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9271</guid>

					<description><![CDATA[<p>Here is a simple project to detect the object using the IR sensor module. Components required: Principle: IR sensors are used in the detection of objects, and obstacles. IR light is emitted from the IR emitter, which falls on the object and then reflects back. This reflected IR light is captured using an IR receiver</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/object-detection-using-the-arduino-uno/">Object Detection using the Arduino UNO</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is a simple project to detect the object using the IR sensor module. </p>



<p><strong>Components required:</strong></p>



<figure class="is-layout-flex wp-block-gallery-10 wp-block-gallery has-nested-images columns-4 is-cropped">
<figure class="wp-block-image size-large"><a href="https://amzn.to/39fO6jd" target="_blank" rel="noreferrer noopener"><img decoding="async" loading="lazy" width="250" height="250" data-id="9282"  src="https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno.jpg" alt="" class="wp-image-9282" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno-150x150.jpg 150w, https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno-24x24.jpg 24w, https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno-48x48.jpg 48w, https://studentprojects.in/wp-content/uploads/2022/05/Arduino-Uno-96x96.jpg 96w" sizes="(max-width: 250px) 100vw, 250px" /></a><figcaption>Arduino UNO</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://amzn.to/3NZT2rk" target="_blank" rel="noreferrer noopener"><img decoding="async" loading="lazy" width="250" height="250" data-id="9284"  src="https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1.jpg" alt="IR sensor module" class="wp-image-9284" srcset="https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1-150x150.jpg 150w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1-24x24.jpg 24w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1-48x48.jpg 48w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-1-96x96.jpg 96w" sizes="(max-width: 250px) 100vw, 250px" /></a><figcaption>IR Sensor Module</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://amzn.to/3aOlVbF" target="_blank" rel="noreferrer noopener"><img decoding="async" loading="lazy" width="250" height="250" data-id="8859"  src="https://studentprojects.in/wp-content/uploads/2022/04/LED.jpg" alt="" class="wp-image-8859" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LED.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/LED-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /></a><figcaption>LED</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://amzn.to/3xioIl3" target="_blank" rel="noreferrer noopener"><img decoding="async" loading="lazy" width="250" height="250" data-id="9283"  src="https://studentprojects.in/wp-content/uploads/2022/05/Breadboard.jpg" alt="Breadboard" class="wp-image-9283" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Breadboard.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/05/Breadboard-150x150.jpg 150w, https://studentprojects.in/wp-content/uploads/2022/05/Breadboard-24x24.jpg 24w, https://studentprojects.in/wp-content/uploads/2022/05/Breadboard-48x48.jpg 48w, https://studentprojects.in/wp-content/uploads/2022/05/Breadboard-96x96.jpg 96w" sizes="(max-width: 250px) 100vw, 250px" /></a><figcaption>Breadboard</figcaption></figure>
</figure>



<p><strong>Principle:</strong></p>



<p>IR sensors are used in the detection of objects, and obstacles. IR light is emitted from the IR emitter, which falls on the object and then reflects back. This reflected IR light is captured using an IR receiver and used to conclude the presence of the object. If the object is in the vicinity of the IR module, then the object&#8217;s presence can be detected. Otherwise, the object is said to be absent.</p>



<p>The IR sensor module has an IR emitter and receiver in the same module. The diagram below shows the IR sensor module.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="800" height="474" src="https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module.jpg" alt="IR sensor module" class="wp-image-9279" srcset="https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module.jpg 800w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-300x178.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/05/IR-sensor-module-768x455.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption>IR sensor module</figcaption></figure></div>


<p>The IR module contains 3 pins for the interface. Out of 3 pins two pins are VCC (3.3V/5V) and GND power supply. The OUT pin is the output pin which goes to a HIGH state when the object is present. When no object is detected OUT pin will stay at a LOW state. The major components in the module are the OP-AMP comparator, trim-pot, power LED and output LED. Trim-pot is used to change the sensitivity of the IR module (by varying the trim-pot we can change the distance at which the sensor can detect the object).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="735" height="462" src="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-1.jpg" alt="" class="wp-image-9287" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-1.jpg 735w, https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-1-300x189.jpg 300w" sizes="(max-width: 735px) 100vw, 735px" /><figcaption><strong>LED is OFF when no object is in front of the sensor</strong></figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="735" height="462" src="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-2.jpg" alt="" class="wp-image-9286" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-2.jpg 735w, https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-Circuit-2-300x189.jpg 300w" sizes="(max-width: 735px) 100vw, 735px" /><figcaption><strong>LED is ON when an object is in front of the sensor</strong></figcaption></figure></div>


<p><strong>Circuit diagram:</strong></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="800" height="599" src="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO.jpg" alt="Object Detection using the Arduino UNO" class="wp-image-9278" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO.jpg 800w, https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-300x225.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-768x575.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption>Object Detection using the Arduino UNO</figcaption></figure></div>


<p><strong>Procedure:</strong></p>



<ol><li>Connect the IR module’s VCC and GND pins to Arduino&#8217;s +5V and GND pins respectively as shown in the circuit diagram.</li><li>Connect the OUT pin of the IR module to the Arduino board (pin 2) and declare it an input pin.</li><li>From the Arduino board connect the output (pin 7) to the +ve terminal of the LED. Connect –ve terminal of the LED to ground</li><li>Write the code in Arduino UNO software and run the program.</li><li>Move the object in front of the IR module and see the LED turning ON which indicates the presence of the object.</li></ol>



<p><strong>Working of <strong>object detection</strong>:</strong></p>



<p>Whenever there is an object in front of the IR module, OUT of the IR module goes high. The IR module’s OUT pin is connected as the input to the Arduino board. The microcontroller in the Arduino board reads this signal and can conclude whether there is an object or not. The output is indicated through the LED connected to the Arduino board (shown in the breadboard).</p>



<p>The distance of the measurement (sensitivity) can be changed by varying the trim-pot. Variation in the trim-pot changes the reference voltage of the OP-AMP comparator. This</p>



<p><strong>Flowchart</strong> <strong>for object detection</strong>:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="521" height="454" src="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-flowchart.jpg" alt="Object Detection using the Arduino UNO flowchart" class="wp-image-9277" srcset="https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-flowchart.jpg 521w, https://studentprojects.in/wp-content/uploads/2022/05/Object-Detection-using-the-Arduino-UNO-flowchart-300x261.jpg 300w" sizes="(max-width: 521px) 100vw, 521px" /><figcaption>Object Detection using the Arduino UNO flowchart</figcaption></figure></div>


<p><strong>Arduino Program for object detection:</strong></p>



<pre class="wp-block-code"><code lang="objectivec" class="language-objectivec">int in_IRSensor = 2; // connect ir sensor to arduino pin 2
int out_LED = 7; // conect Led to arduino pin 13
void setup() 
{
  pinMode (in_IRSensor, INPUT); // sensor pin INPUT
  pinMode (out_LED, OUTPUT); // Led pin OUTPUT
}
void loop()
{
  int status_IR = digitalRead (in_IRSensor); //Read the IR sensor output
  if (status_IR == 1)
  {
    digitalWrite(out_LED, HIGH); // high on LED indicates object detected
  }
  else
  {
    digitalWrite(out_LED, LOW); // low on LED indicates no object present
  }  
}</code></pre><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/object-detection-using-the-arduino-uno/">Object Detection using the Arduino UNO</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/object-detection-using-the-arduino-uno/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
