<?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 Interfacing | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/arduino-interfacing/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Wed, 08 Jun 2022 05:01: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>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-1 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" 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>
