<?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>Electronics | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/electronics/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 sketch]]></category>
		<category><![CDATA[Arduino IDE]]></category>
		<category><![CDATA[Components of Arduino]]></category>
		<category><![CDATA[Physical layout of Arduino]]></category>
		<category><![CDATA[Arduino UNO]]></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[Arduino Interfacing]]></category>
		<category><![CDATA[IR Module]]></category>
		<category><![CDATA[Arduino UNO]]></category>
		<category><![CDATA[IR Sensor]]></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>
		<item>
		<title>Raspberry Pi interface with Ultrasonic Sensor</title>
		<link>https://studentprojects.in/electronics/microcontrollers/raspberry-pi-interface-with-ultrasonic-sensor/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/raspberry-pi-interface-with-ultrasonic-sensor/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 14 Apr 2022 17:28:48 +0000</pubDate>
				<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[Ultrasonic Sensor]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9060</guid>

					<description><![CDATA[<p>Overview In this article, we would interface an ultrasonic sensor (HC-SR04) with raspberry pie 4 to measure the distance of an object or obstacle. HC-SR04 is the sensor device that is specially used to measure the distance of an object within the range of 2mm to 400 cm. The ultrasonic sensor works on the principle</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/raspberry-pi-interface-with-ultrasonic-sensor/">Raspberry Pi interface with Ultrasonic Sensor</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<h4>Overview</h4>



<p><a></a> In this article, we would interface an ultrasonic sensor (HC-SR04) with raspberry pie 4 to measure the distance of an object or obstacle. HC-SR04 is the sensor device that is specially used to measure the distance of an object within the range of 2mm to 400 cm. The ultrasonic sensor works on the principle of measuring the propagation time of the sound waves in between sending and receiving signals. HC-SR04 sends 40KHz signals (8 bursts) for the detection of an object then the time is calculated for the 40KHz signal hitting the object and coming back. That time would be our measured distance. Now, this HC-SR04 sensor has to be interface with a microcontroller or microprocessor to control it in the desired way. In this project, we are gonna use the Raspberry Pi 4 board.</p>



<h4>List of All the Components:</h4>



<p>Below are the components listed, that are used to make this project.</p>



<ul><li>HC-SR04</li><li>Raspberry Pi 4</li><li>680 Ω Resistor (1/4 Watt) resistor</li><li>1.5 KΩ Resistor (1/4 Watt) resistor</li><li>Connecting wires</li><li>Laptop or Computer (For the programming of Raspberry Pi)</li></ul>



<h4>HC-SR04</h4>



<p>HC-SR04 is an ultrasonic sensor, its working principle has been explained above. The picture of the sensor is shown below. From the picture, it can observe that the sensor has 4 pins (Vcc, Trig, Echo, and GND). VCC is for the supply voltage and GND for the ground.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="400" height="230" src="https://studentprojects.in/wp-content/uploads/2022/04/Ultrasonic-Sensor.jpg" alt="" class="wp-image-9061" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Ultrasonic-Sensor.jpg 400w, https://studentprojects.in/wp-content/uploads/2022/04/Ultrasonic-Sensor-300x173.jpg 300w" sizes="(max-width: 400px) 100vw, 400px" /><figcaption>Ultrasonic Sensor</figcaption></figure></div>



<p>Now to send the 40KHz signal into the Air, the Trig PIN must be set high through the Raspberry Pi for at least 10us. As the ultrasonic signals go in the air, the ECHO pin also gets high and it remains high until the 40KHz hit the object and reaches back to the sensor. So the distance is calculated for the time ECHO was HIGH.</p>



<h4>Raspberry Pi 4</h4>



<p>Raspberry Pi 4 is a microprocessor board that runs on Linux. It is a mini-computer, that is used to control electrical components like an ultrasonic sensor. It has some sets of inputs and outputs (GPIO) that allow connecting the electrical components in the desired way. The Pin configuration for the Raspberry pi 4 is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="442" height="513" src="https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-Pin-configuration.jpg" alt="" class="wp-image-9062" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-Pin-configuration.jpg 442w, https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-Pin-configuration-258x300.jpg 258w" sizes="(max-width: 442px) 100vw, 442px" /><figcaption>Raspberry Pi 4 Pin Configuration</figcaption></figure></div>



<h4>Design and working of the Circuit</h4>



<p>When all the required components are ready, it is time to connect them. The noticeable thing here is that Raspberry works on the 3.3V of logic level, while the HC-SR04 works on 5 V. so their voltage compatibility is required. The Schematic of the Circuit is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="672" height="748" src="https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-with-Ultrasonic-Sensor.jpg" alt="" class="wp-image-9063" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-with-Ultrasonic-Sensor.jpg 672w, https://studentprojects.in/wp-content/uploads/2022/04/Raspberry-Pie-with-Ultrasonic-Sensor-270x300.jpg 270w" sizes="(max-width: 672px) 100vw, 672px" /><figcaption>Circuit diagram of Raspberry Pi interface with Ultrasonic Sensor </figcaption></figure></div>



<p>The connections are, VCC of HC-SR04 is connected to the PIN 2 of the Raspberry Pi, the Trig pin is connected to the PIN 16 which is GPIO 23 on the Raspberry board, the Echo is to PIN 18 (GPIO 24), and GND to the Pin 20 on the Raspberry board.</p>



<p>Now the problem is we can’t directly put the Echo Pin of the sensor to the GPIO pin of the Raspberry board. Because the Echo Pin has a voltage of 5V while raspberry needs the 3.3V. so for their configuration, use a combination of 680Ω and 1.5 KΩ resistors are connected between their connection.</p>



<h4>Working</h4>



<p>The working of the project will be that the ultrasonic sensor would be triggered by the Trig Pin through the raspberry programming, then during the propagation and reflection of 40KHz wave, the Echo pin will provide a high signal to the one of GPIO pin of Raspberry pi as input. This input will be calculated by a program to calculate the distance of the object. The code for this project is given below:</p>



<pre class="wp-block-code"><code lang="objectivec" class="language-objectivec">import RPi.GPIO as GPIO
import time
try:
    GPIO.setmode(GPIO.BOARD)
    pinTrigger = 16
    pinEcho = 18
 
    GPIO.setup(pinTrigger, GPIO.OUT)
    GPIO.setup(pinEcho, GPIO.IN)
 
    GPIO.output(pinTrigger, GPIO.LOW)
    GPIO.output(pinTrigger, GPIO.HIGH)
 
    time.sleep(0.00001)
    GPIO.output(pinTrigger, GPIO.LOW)
 
    while GPIO.input(pinEcho)==0:
        pulseStartTime = time.time()
    while GPIO.input(pinEcho)==1:
        pulseEndTime = time.time()
 
    pulseDuration = pulseEndTime - pulseStartTime
    distance = round(pulseDuration * 17150, 2)
 
    print("Distance: %.2f cm" % (distance))
finally:
    GPIO.cleanup()</code></pre><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/raspberry-pi-interface-with-ultrasonic-sensor/">Raspberry Pi interface with Ultrasonic Sensor</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/raspberry-pi-interface-with-ultrasonic-sensor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog program for Full Adder using dataflow style with select statement</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 13:48:45 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9056</guid>

					<description><![CDATA[<p>AIM: Design and verify full adder by using dataflow style with select statement PROGRAM: SIMULATION OUTPUT: RESULT: Full adder is simulated and verified</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/">Verilog program for Full Adder using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full adder by using dataflow style with select statement</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">Library ieee;
use ieee.std_logic_1164.all; 
entity fa_select1 is
port(a,b,c:in bit; 
sum,carry:out bit); 
end fa_select1;
architecture df of fa_select1 is begin
with bit_vector'(a,b,c) select (sum,carry)&lt;=bit_vector'("00") when "000" , bit_vector'("10") when "001",
bit_vector'("10") when "010",
bit_vector'("10") when "100",
bit_vector'("01") when "110",
bit_vector'("01") when "011",
bit_vector'("01" )when "101",
bit_vector'("11") when "111"; end df;
</code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="481" height="195" src="https://studentprojects.in/wp-content/uploads/2022/04/image3.png" alt="" class="wp-image-9057" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image3.png 481w, https://studentprojects.in/wp-content/uploads/2022/04/image3-300x122.png 300w" sizes="(max-width: 481px) 100vw, 481px" /></figure></div>



<p><strong>RESULT: Full adder is simulated and verified</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/">Verilog program for Full Adder using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-adder-using-dataflow-style-with-select-statement/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog program for Full Subtractor by using a behavioral model with if,elsif&#038; then statements.</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 13:39:30 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9051</guid>

					<description><![CDATA[<p>AIM: Design and verify full subtractor by using dataflow style with select statement. PROGRAM: SIMULATION OUTPUT: RESULT: Full subtractor using dataflow style with select statement is simulated and verified.</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/">Verilog program for Full Subtractor by using a behavioral model with if,elsif& then statements.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full subtractor by using dataflow style with select statement.</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">library ieee;
use ieee.std_logic_1164.all; 
entity flsub_select is
port(a:in bit_vector(2 downto 0); 
s:out bit_vector(1 downto 0)); 
end flsub_select;
architecture beh of flsub_select is begin
with a select
s&lt;=("00") when "000",
("11") when "001",
("11") when "010",
("01") when "011",
("10") when "100",
("00") when "101",
("00") when "110",
("11") when "111";
end beh; </code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<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/04/image2.png" alt="" class="wp-image-9052" width="478" height="229" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image2.png 479w, https://studentprojects.in/wp-content/uploads/2022/04/image2-300x144.png 300w" sizes="(max-width: 478px) 100vw, 478px" /></figure></div>



<p><strong>RESULT: Full subtractor using dataflow style with select statement is simulated and verified.</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/">Verilog program for Full Subtractor by using a behavioral model with if,elsif& then statements.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-program-for-full-subtractor-by-using-a-behavioral-model-with-ifelsif-then-statements/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog program for Full Adder by using dataflow style with select statement</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/full-adder/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/full-adder/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 09:36:14 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9045</guid>

					<description><![CDATA[<p>AIM: Design and verify full adder by using dataflow style with select statement. PROGRAM: SIMULATION OUTPUT: RESULT: Full adder using dataflow style with select statement is simulated and Verified.</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/full-adder/">Verilog program for Full Adder by using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>Design and verify full adder by using dataflow style with select statement.</p>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="cpp" class="language-cpp">Library ieee;
use ieee.std_logic_1164.all; entity fa_select is
port(a:in bit_vector(2 downto 0); 
s:out bit_vector(1 downto 0)); end fa_select ;
architecture beh of fa_select is begin
with a select
s&lt;=("00")when"000",
("10")when"001",
("10")when"010",
("01")when"011",
("10")when"100",
("01")when"101",
("01")when"110",
("11")when"111";
end beh; </code></pre>



<p><strong>SIMULATION OUTPUT:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="480" height="229" src="https://studentprojects.in/wp-content/uploads/2022/04/image1.png" alt="" class="wp-image-9046" srcset="https://studentprojects.in/wp-content/uploads/2022/04/image1.png 480w, https://studentprojects.in/wp-content/uploads/2022/04/image1-300x143.png 300w" sizes="(max-width: 480px) 100vw, 480px" /></figure></div>



<p><strong>RESULT: Full adder using dataflow style with select statement is simulated and Verified.</strong></p><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/full-adder/">Verilog program for Full Adder by using dataflow style with select statement</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/full-adder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>IR Based Security Alarm Circuit</title>
		<link>https://studentprojects.in/electronics/basic-electronics/ir-based-security-alarm-circuit/</link>
					<comments>https://studentprojects.in/electronics/basic-electronics/ir-based-security-alarm-circuit/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Tue, 05 Apr 2022 08:30:43 +0000</pubDate>
				<category><![CDATA[Basic Electronic Projects]]></category>
		<category><![CDATA[Op-amp Circuits]]></category>
		<category><![CDATA[NE555]]></category>
		<category><![CDATA[555 Timer Circuits]]></category>
		<category><![CDATA[IR Sensor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8913</guid>

					<description><![CDATA[<p>Here is a simple IR sensor-based security system which will detect any movement and triger an alarm. This circuit is ideal for use in houses, banks, stores, and other restricted areas where a movement-based alert alarm is required. This circuit is based on an IR sensor in which an IR beam is continuously falling on</p>
<p>The post <a href="https://studentprojects.in/electronics/basic-electronics/ir-based-security-alarm-circuit/">IR Based Security Alarm Circuit</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="800" height="413" src="https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-model.jpg" alt="IR Security Alarm model" class="wp-image-8921" srcset="https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-model.jpg 800w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-model-300x155.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-model-768x396.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption>IR Security Alarm model</figcaption></figure>



<p>Here is a simple IR sensor-based security system which will detect any movement and triger an alarm. This circuit is ideal for use in houses, banks, stores, and other restricted areas where a movement-based alert alarm is required. This circuit is based on an IR sensor in which an IR beam is continuously falling on a photodiode, and an alarm is activated anytime this Infrared beam is broken by any form of movement.</p>



<p>The circuit schematic is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="1024" height="389" src="https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-1024x389.jpg" alt="IR Security Alarm" class="wp-image-8917" srcset="https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-1024x389.jpg 1024w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-300x114.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm-768x292.jpg 768w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Security-Alarm.jpg 1042w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>IR Security Alarm</figcaption></figure></div>



<p>This security burgler alarm circuit is simple to build and only requires a few components, which are mentioned below.</p>



<figure class="is-layout-flex wp-block-gallery-12 wp-block-gallery has-nested-images columns-4 is-cropped">
<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8903"  src="https://studentprojects.in/wp-content/uploads/2022/04/LM358.jpg" alt="Op-amp LM358" class="wp-image-8903" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LM358.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/LM358-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Op-amp LM358</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8916"  src="https://studentprojects.in/wp-content/uploads/2022/04/NE555.jpg" alt="" class="wp-image-8916" srcset="https://studentprojects.in/wp-content/uploads/2022/04/NE555.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/NE555-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8904"  src="https://studentprojects.in/wp-content/uploads/2022/04/Photodiode.jpg" alt="IR Photodiode" class="wp-image-8904" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Photodiode.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Photodiode-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>IR Photodiode</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8902"  src="https://studentprojects.in/wp-content/uploads/2022/04/IR-LED.jpg" alt="IR-LED" class="wp-image-8902" srcset="https://studentprojects.in/wp-content/uploads/2022/04/IR-LED.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/IR-LED-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>IR-LED</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8900"  src="https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot.jpg" alt="10K Pot" class="wp-image-8900" srcset="https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>10K Pot</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8905"  src="https://studentprojects.in/wp-content/uploads/2022/04/Resistors.jpg" alt="Resistors" class="wp-image-8905" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Resistors.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Resistors-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Resistors: 100R, 10K, 330R</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8901"  src="https://studentprojects.in/wp-content/uploads/2022/04/Buzzer.jpg" alt="Buzzer" class="wp-image-8901" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Buzzer.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Buzzer-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Buzzer</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8915"  src="https://studentprojects.in/wp-content/uploads/2022/04/10ufCapacitor.jpg" alt="10uf Capacitor" class="wp-image-8915" srcset="https://studentprojects.in/wp-content/uploads/2022/04/10ufCapacitor.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/10ufCapacitor-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>10uf Capacitor</figcaption></figure>
</figure>



<h6><strong>IR LED</strong></h6>



<p>An IR LED (infrared light-emitting diode) is a special-purpose LED that emits infrared rays with wavelengths ranging from 700 nm to 1 mm. So it is invisible to human eyes. IR LEDs are more commonly used in security systems and remote control devices.</p>



<h6><strong>Photodiode</strong></h6>



<p>A photodiode is a semiconductor device with a P-N junction that converts light into an electrical current. The resistance and output voltage of the photodiode alter in response to the amount of infrared light received.</p>



<h6><strong>LM358</strong></h6>



<p>The LM358 is an operational amplifier (Op-Amp), and it is used as a voltage comparator in this design. The LM358 contains two independent voltage comparators.&nbsp;We have&nbsp;used only&nbsp;one comparator, with inputs at PINs 2 and 3 and outputs at PIN 1. The voltage comparator has two inputs: one inverting and the other non-inverting (PIN 2 and 3). The output of the comparator (PIN 1) is High when the voltage at the non-inverting input (+) is greater than the voltage at the inverting input (-). If the inverting input (-) has a higher voltage than the non-inverting end (+), the output is LOW.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="660" height="336" src="https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins.jpg" alt="" class="wp-image-8910" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins.jpg 660w, https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins-300x153.jpg 300w" sizes="(max-width: 660px) 100vw, 660px" /><figcaption>LM358 op-amp pin connections</figcaption></figure></div>



<h6>NE555</h6>



<p>The 555 Timer is is configured as a monostable mode in this example. When a falling edge is detected on pin 2(trigger pin), the output voltage rises high for a predetermined duration.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="640" height="336" src="https://studentprojects.in/wp-content/uploads/2022/04/NE555_Pins_details.jpg" alt="NE555 Pin connections" class="wp-image-8914" srcset="https://studentprojects.in/wp-content/uploads/2022/04/NE555_Pins_details.jpg 640w, https://studentprojects.in/wp-content/uploads/2022/04/NE555_Pins_details-300x158.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption>NE555 Pin connections</figcaption></figure></div>



<h3>Working of an IR Sensor</h3>



<p>An IR LED serves as the emitter, while an IR photodiode serves as the detector. An IR LED emits infrared light, which is detected by the IR photodiode. The resistance and output voltage of the photodiode alter in response to the amount of infrared light received. In this circuit we will detect when there is no light falling on the photodiode and trigger an alarm. </p>



<h3>How does the IR based burgler alarm circuit work?</h3>



<p>As per the circuit diagram given above, a variable resistor is connected to inverting end of LM358(Pin 2) to adjust the sensitivity of the sensor. A junction of the photodiode and a resistor is connected to the non-inverting end of LM358(Pin 3). LM358 op-amp voltage comparator&#8217;s output (PIN1) is connected to the 555 timer&#8217;s Trigger pin. The 555 Timer is set to monostable mode in this example.</p>



<p>When the circuit is switched ON and when there is IR radiation towards the photodiode, the voltage across it drops, while the voltage across the series resistor R2 increases. Non-inverting end (pin 3) gets high voltage when compared to inverting end (pin2). Hence the output of the comparator is HIGH, because the comparator output is connected to the 555 timer&#8217;s trigger pin, the 555 output is low when Trigger pin 2 is high. As a result, the 555 timer output remains LOW when the IR rays fall on the Photodiode. <a href="https://studentprojects.in/projects/basic-electronics/reverse-car-parking-sensor-circuit/">Read this article</a> to learn how the IR sensor works with the LM358 comparator.</p>



<p>Now when the IR radiation towards the photodiode breaks due to some movement, the voltage across it increases, while the voltage across the series resistor R2 decreases. Non-inverting end (+) gets low voltage when compared to inverting end (-). Hence the output of the comparator is LOW, because the comparator output is connected to the 555 timer&#8217;s trigger pin, the 555 output is HIGH when Trigger pin 2 is low. As a result, the 555 timer output becomes HIGH and the he buzzer beeps for a short time. By altering the value of resistor R1 or capacitor C1, the duration of the beep can be lengthened.</p>



<p>Inverting end of LM358 is connected to the 10k pot. Make the necessary adjustments to ensure that voltage comparison works properly.</p>



<p>So, give it a shot and let me know if you have any questions in the comments section below. I’ll be happy to assist you!</p><p>The post <a href="https://studentprojects.in/electronics/basic-electronics/ir-based-security-alarm-circuit/">IR Based Security Alarm Circuit</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/basic-electronics/ir-based-security-alarm-circuit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Reverse Car Parking Sensor Circuit</title>
		<link>https://studentprojects.in/electronics/basic-electronics/reverse-car-parking-sensor-circuit/</link>
					<comments>https://studentprojects.in/electronics/basic-electronics/reverse-car-parking-sensor-circuit/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 14:23:35 +0000</pubDate>
				<category><![CDATA[Basic Electronic Projects]]></category>
		<category><![CDATA[IR Sensor]]></category>
		<category><![CDATA[Photodiode]]></category>
		<category><![CDATA[LM358]]></category>
		<category><![CDATA[Parking sensor]]></category>
		<category><![CDATA[Op-amp Circuits]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8890</guid>

					<description><![CDATA[<p>Taking a reverse on your car is difficult when there are no sensors. Here is a simple circuit that will protect your vehicle from damage while taking a reverse. There will be an alarm when the car gets too close to a wall or an object and needs to be stopped. Here is the circuit</p>
<p>The post <a href="https://studentprojects.in/electronics/basic-electronics/reverse-car-parking-sensor-circuit/">Reverse Car Parking Sensor Circuit</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Taking a reverse on your car is difficult when there are no sensors. Here is a simple circuit that will protect your vehicle from damage while taking a reverse. There will be an alarm when the car gets too close to a wall or an object and needs to be stopped. </p>



<p>Here is the circuit diagram.</p>



<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="929" height="351" src="https://studentprojects.in/wp-content/uploads/2022/04/Reverse-parking-sensor-circuit.png" alt="Reverse parking sensor circuit for students" class="wp-image-8891" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Reverse-parking-sensor-circuit.png 929w, https://studentprojects.in/wp-content/uploads/2022/04/Reverse-parking-sensor-circuit-300x113.png 300w, https://studentprojects.in/wp-content/uploads/2022/04/Reverse-parking-sensor-circuit-768x290.png 768w" sizes="(max-width: 929px) 100vw, 929px" /><figcaption>Reverse parking sensor circuit for students</figcaption></figure>



<p>This car parking sensor circuit is simple to build and only requires a few components, which are mentioned below.</p>



<figure class="is-layout-flex wp-block-gallery-14 wp-block-gallery has-nested-images columns-default is-cropped">
<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8903"  src="https://studentprojects.in/wp-content/uploads/2022/04/LM358.jpg" alt="Op-amp LM358" class="wp-image-8903" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LM358.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/LM358-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Op-amp LM358</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8904"  src="https://studentprojects.in/wp-content/uploads/2022/04/Photodiode.jpg" alt="IR Photodiode" class="wp-image-8904" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Photodiode.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Photodiode-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>IR Photodiode</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8902"  src="https://studentprojects.in/wp-content/uploads/2022/04/IR-LED.jpg" alt="IR-LED" class="wp-image-8902" srcset="https://studentprojects.in/wp-content/uploads/2022/04/IR-LED.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/IR-LED-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>IR-LED</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8900"  src="https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot.jpg" alt="10K Pot" class="wp-image-8900" srcset="https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/10K-Pot-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>10K Pot</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8905"  src="https://studentprojects.in/wp-content/uploads/2022/04/Resistors.jpg" alt="Resistors" class="wp-image-8905" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Resistors.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Resistors-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Resistors: 100R, 10K, 330R</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8901"  src="https://studentprojects.in/wp-content/uploads/2022/04/Buzzer.jpg" alt="Buzzer" class="wp-image-8901" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Buzzer.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Buzzer-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Buzzer</figcaption></figure>
</figure>



<h6><strong>IR LED</strong></h6>



<p>An IR LED (infrared light-emitting diode) is a special-purpose LED that emits infrared rays with wavelengths ranging from 700 nm to 1 mm. So it is invisible to human eyes. IR LEDs are more commonly used in security systems and remote control devices.</p>



<h6><strong>Photodiode</strong></h6>



<p>A photodiode is a semiconductor device with a P-N junction that converts light into an electrical current. The resistance and output voltage of the photodiode alter in response to the amount of infrared light received.</p>



<h6><strong>LM358</strong></h6>



<p>The LM358 is an operational amplifier (Op-Amp), and it is used as a voltage comparator in this design. The LM358 contains two independent voltage comparators.&nbsp;We have&nbsp;used only&nbsp;one comparator, with inputs at PINs 2 and 3 and outputs at PIN 1. The voltage comparator has two inputs: one inverting and the other non-inverting (PIN 2 and 3). The output of the comparator (PIN 1) is High when the voltage at the non-inverting input (+) is greater than the voltage at the inverting input (-). If the inverting input (-) has a higher voltage than the non-inverting end (+), the output is LOW.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="660" height="336" src="https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins.jpg" alt="" class="wp-image-8910" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins.jpg 660w, https://studentprojects.in/wp-content/uploads/2022/04/LM358_pins-300x153.jpg 300w" sizes="(max-width: 660px) 100vw, 660px" /><figcaption>LM358 op-amp pin connections</figcaption></figure></div>



<h3>Working of an IR Sensor</h3>



<p>An IR LED serves as the emitter, while an IR photodiode serves as the detector. An IR LED emits infrared light, which is detected by the IR photodiode. The resistance and output voltage of the photodiode alter in response to the amount of infrared light received. The IR sensor&#8217;s basic functioning concept is shown below.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="660" height="416" src="https://studentprojects.in/wp-content/uploads/2022/04/IR-Sensor.jpg" alt="" class="wp-image-8908" srcset="https://studentprojects.in/wp-content/uploads/2022/04/IR-Sensor.jpg 660w, https://studentprojects.in/wp-content/uploads/2022/04/IR-Sensor-300x189.jpg 300w" sizes="(max-width: 660px) 100vw, 660px" /><figcaption>IR sensor module</figcaption></figure></div>



<h3>How does the Reverse Car Parking Sensor circuit work?</h3>



<p>As per the circuit diagram given above, a variable resistor is connected to inverting end of LM358(Pin 2) to adjust the sensitivity of the sensor. A junction of the photodiode and a resistor is connected to the non-inverting end of LM358(Pin 3).</p>



<p>When the circuit is switched ON and when there is no object near the IR LED and photodiode, then there will be no IR radiation towards the photodiode. Hence the voltage across series resistor R2 decreases. Non-inverting end (pin 3) gets less voltage when compared to inverting end (pin2). Hence the output becomes LOW and the LED turns OFF.</p>



<p>Now when there is an object near the IR LED and photodiode, the photodiode absorbs the IR generated by the IR LED after it is reflected by the object. When reflected IR hits the photodiode, the voltage across it drops, while the voltage across the series resistor R2 increases. Non-inverting end (pin 3) gets high voltage when compared to inverting end (pin2). Hence the output becomes HIGH and the LED turns ON.</p>



<p>Inverting end of LM358 is connected to the 10k pot. Make the necessary adjustments to ensure that voltage comparison works properly.</p>



<p>So, give it a shot and let me know if you have any questions in the comments section below. I’ll be happy to assist you!</p><p>The post <a href="https://studentprojects.in/electronics/basic-electronics/reverse-car-parking-sensor-circuit/">Reverse Car Parking Sensor Circuit</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/basic-electronics/reverse-car-parking-sensor-circuit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Automatic Street Light Control System using LDR</title>
		<link>https://studentprojects.in/electronics/basic-electronics/automatic-street-light-control-system-using-ldr/</link>
					<comments>https://studentprojects.in/electronics/basic-electronics/automatic-street-light-control-system-using-ldr/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 02 Apr 2022 11:52:34 +0000</pubDate>
				<category><![CDATA[Basic Electronic Projects]]></category>
		<category><![CDATA[LDR circit]]></category>
		<category><![CDATA[LDR Street light]]></category>
		<category><![CDATA[LDR Sensor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8874</guid>

					<description><![CDATA[<p>Here is a simple dark sensor circuit that is useful to switch ON and OFF any appliances automatically depending on the Light. As an output device, we&#8217;ll utilise a street lights/bulb in this example. If you are looking for LED as an output device, check this article. To detect the light, we will use an</p>
<p>The post <a href="https://studentprojects.in/electronics/basic-electronics/automatic-street-light-control-system-using-ldr/">Automatic Street Light Control System using LDR</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is a simple dark sensor circuit that is useful to switch ON and OFF any appliances automatically depending on the Light. As an output device, we&#8217;ll utilise a street lights/bulb in this example. If you are looking for LED as an output device, <a href="https://studentprojects.in/projects/basic-electronics/automatic-night-light-using-ldr/">check this article</a>. To detect the light, we will use an LDR (Light-dependent Resistor). As the name says, when the light intensity on LDR is high, the resistance through it decreases; when the light intensity on LDR is low, the resistance through it increases and becomes extremely high. It&#8217;s a kind of variable resistor, but the resistance varies based on the light. </p>



<p>You must use a relay if you want to connect any heavy load. The Relay connection with the Dark Activated automated Light switch is shown in the circuit diagram below.</p>



<h3>Circuit diagram</h3>



<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="985" height="449" src="https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit-with-Relay.png" alt="LDR Dark Sensor Circuit with Relay" class="wp-image-8883" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit-with-Relay.png 985w, https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit-with-Relay-300x137.png 300w, https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit-with-Relay-768x350.png 768w" sizes="(max-width: 985px) 100vw, 985px" /><figcaption>LDR Dark Sensor Circuit with Relay</figcaption></figure>



<h3>Components required</h3>



<figure class="is-layout-flex wp-block-gallery-16 wp-block-gallery has-nested-images columns-4 is-cropped">
<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8856"  src="https://studentprojects.in/wp-content/uploads/2022/04/LDR.jpg" alt="" class="wp-image-8856" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LDR.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/LDR-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>LDR</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8853"  src="https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer.jpg" alt="" class="wp-image-8853" srcset="https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>100k Ohm Potentiometer</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8863"  src="https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN.jpg" alt="" class="wp-image-8863" srcset="https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>BC547 Transistor</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8854"  src="https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt.jpg" alt="" class="wp-image-8854" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>9V Battery</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8862"  src="https://studentprojects.in/wp-content/uploads/2022/04/Relay-9V-10A-5-Pin.jpg" alt="" class="wp-image-8862" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Relay-9V-10A-5-Pin.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Relay-9V-10A-5-Pin-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>9V Relay</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8852"  src="https://studentprojects.in/wp-content/uploads/2022/04/1N4007-1W-Diode.jpg" alt="" class="wp-image-8852" srcset="https://studentprojects.in/wp-content/uploads/2022/04/1N4007-1W-Diode.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/1N4007-1W-Diode-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>1N4007 Diode</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8867"  src="https://studentprojects.in/wp-content/uploads/2022/04/BulbwithHolder.jpg" alt="Bulb with holder" class="wp-image-8867" srcset="https://studentprojects.in/wp-content/uploads/2022/04/BulbwithHolder.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/BulbwithHolder-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>Bulb with a holder</figcaption></figure>
</figure>



<p><strong>100k Ohm Potentiometer</strong> is a variable resistor that is used to change the trigger point for the LED. That is, how much light is needed for the LED to turn ON and OFF. You can also use a 50k Resister in the place of a variable resistor.</p>



<p><strong>BC547</strong> is an NPN transistor that is used to amplify the current. When there is a small current at its base, it controls the large current at its collector and emitter end.</p>



<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/04/BC547_pins.jpg" alt="" class="wp-image-8871" width="450" height="271" srcset="https://studentprojects.in/wp-content/uploads/2022/04/BC547_pins.jpg 600w, https://studentprojects.in/wp-content/uploads/2022/04/BC547_pins-300x181.jpg 300w" sizes="(max-width: 450px) 100vw, 450px" /><figcaption>BC547 Pin details</figcaption></figure></div>



<p><strong>1N4007</strong> is a PN junction rectifier diode. This allows only the flow of electrical current in one direction only. So, it can be used for the conversion of AC power to DC.</p>



<p><span style="background-color: rgba(0, 0, 0, 0.2);"><b>A relay</b></span> is an electrically operated switch.</p>



<h3>How does it work?</h3>



<p>During the daytime when there is a light, the LDR has very low resistance and all voltage coming through R1 dropped with the ground. This makes the voltage at the base of the transistor very low and it will not switch ON the transistor. Because the transistor is OFF, the current will not flow through the transistor. As a result, the relay will not be switched ON and the bulb remains OFF.</p>



<p>At night when there is no light, the LDR has high resistance and very less power dropped with the ground. This makes the voltage at the base of the transistor high to turn the transistor ON. Because the transistor is turned ON, current flows through the transistor. It flows from the positive battery terminal, through R2, the relay, and the transistor down to the negative battery terminal. As a result, the relay turns ON and hence the bulb turns ON.</p>



<p>The same circuit can be used for a variety of purposes.  </p>



<p>So, give it a shot and let me know if you have any questions in the comments section below. I’ll be happy to assist you!</p><p>The post <a href="https://studentprojects.in/electronics/basic-electronics/automatic-street-light-control-system-using-ldr/">Automatic Street Light Control System using LDR</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/basic-electronics/automatic-street-light-control-system-using-ldr/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Automatic night light using LDR</title>
		<link>https://studentprojects.in/electronics/basic-electronics/automatic-night-light-using-ldr/</link>
					<comments>https://studentprojects.in/electronics/basic-electronics/automatic-night-light-using-ldr/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 02 Apr 2022 11:20:45 +0000</pubDate>
				<category><![CDATA[Basic Electronic Projects]]></category>
		<category><![CDATA[LDR circit]]></category>
		<category><![CDATA[Simple Circuit]]></category>
		<category><![CDATA[Light sensor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8847</guid>

					<description><![CDATA[<p>Here is a simple dark sensor circuit that is useful to switch ON and OFF any appliances automatically depending on the Light. As an output device, we&#8217;ll utilise an LED in this example. To detect the light, we will use an LDR (Light-dependent Resistor). As the name says, when the light intensity on LDR is</p>
<p>The post <a href="https://studentprojects.in/electronics/basic-electronics/automatic-night-light-using-ldr/">Automatic night light using LDR</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is a simple dark sensor circuit that is useful to switch ON and OFF any appliances automatically depending on the Light. As an output device, we&#8217;ll utilise an LED in this example. To detect the light, we will use an LDR (Light-dependent Resistor). As the name says, when the light intensity on LDR is high, the resistance through it decreases; when the light intensity on LDR is low, the resistance through it increases and becomes extremely high. It&#8217;s a kind of variable resistor, but the resistance varies based on the light. </p>



<h3>Circuit diagram</h3>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="580" height="430" src="https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit.png" alt="" class="wp-image-8878" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit.png 580w, https://studentprojects.in/wp-content/uploads/2022/04/LDR-Dark-Sensor-Circuit-300x222.png 300w" sizes="(max-width: 580px) 100vw, 580px" /><figcaption>LDR Dark Sensor Circuit</figcaption></figure></div>



<h3>Components required</h3>



<figure class="is-layout-flex wp-block-gallery-18 wp-block-gallery has-nested-images columns-default is-cropped">
<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8856"  src="https://studentprojects.in/wp-content/uploads/2022/04/LDR.jpg" alt="" class="wp-image-8856" srcset="https://studentprojects.in/wp-content/uploads/2022/04/LDR.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/LDR-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>LDR</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8853"  src="https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer.jpg" alt="" class="wp-image-8853" srcset="https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/100k-Ohm-Potentiometer-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>100k Ohm Potentiometer</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8863"  src="https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN.jpg" alt="" class="wp-image-8863" srcset="https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/TRANSISTOR-BC547-NPN-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>BC547 Transistor</figcaption></figure>



<figure class="wp-block-image size-large"><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" /><figcaption>LED</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8851"  src="https://studentprojects.in/wp-content/uploads/2022/04/1K-Resistor.jpg" alt="" class="wp-image-8851" srcset="https://studentprojects.in/wp-content/uploads/2022/04/1K-Resistor.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/1K-Resistor-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>1K Resistor</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" loading="lazy" width="250" height="250" data-id="8854"  src="https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt.jpg" alt="" class="wp-image-8854" srcset="https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt.jpg 250w, https://studentprojects.in/wp-content/uploads/2022/04/Battery_9_Volt-150x150.jpg 150w" sizes="(max-width: 250px) 100vw, 250px" /><figcaption>9V Battery</figcaption></figure>
</figure>



<p><strong>100k Ohm Potentiometer</strong> is a variable resistor that is used to change the trigger point for the LED. That is, how much light is needed for the LED to turn ON and OFF. You can also use a 50k Resister in the place of a variable resistor.</p>



<p><strong>BC547</strong> is an NPN transistor that is used to amplify the current. When there is a small current at its base, it controls the large current at its collector and emitter end.</p>



<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/04/BC547_pins.jpg" alt="" class="wp-image-8871" width="450" height="271" srcset="https://studentprojects.in/wp-content/uploads/2022/04/BC547_pins.jpg 600w, https://studentprojects.in/wp-content/uploads/2022/04/BC547_pins-300x181.jpg 300w" sizes="(max-width: 450px) 100vw, 450px" /><figcaption>BC547 Pin details</figcaption></figure></div>



<h3>How does it work?</h3>



<p>During the daytime when there is a light, the LDR has very low resistance and all voltage coming through R1 dropped with the ground. This makes the voltage at the base of the transistor very low and it will not switch ON the transistor. Because the transistor is OFF, the current will not flow through the transistor. As a result, LED will not turn ON.</p>



<p>At night when there is no light, the LDR has high resistance and very less power dropped with the ground. This makes the voltage at the base of the transistor high to turn the transistor ON. Because the transistor is turned ON, current flows through the transistor. It flows from the positive battery terminal, through R2, the LED, and the transistor down to the negative battery terminal. As a result, the LED turns ON.</p>



<p>The same circuit can be used for a variety of purposes. Check out the Automatic Street Light Control System using LDR application. Instead of LED, bulbs are used using a relay.  </p>



<p>So, give it a shot and let me know if you have any questions in the comments section below. I’ll be happy to assist you!</p><p>The post <a href="https://studentprojects.in/electronics/basic-electronics/automatic-night-light-using-ldr/">Automatic night light using LDR</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/basic-electronics/automatic-night-light-using-ldr/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
