<?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>Raspberry Pi | Learn with Edwin Robotics</title>
	<atom:link href="https://learn.edwinrobotics.com/category/raspberry-pi/feed/" rel="self" type="application/rss+xml" />
	<link>https://learn.edwinrobotics.com</link>
	<description>Tutorials on basics of electronics, etc.</description>
	<lastBuildDate>Sun, 30 Dec 2018 11:17:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>DRV8833 DC/Stepper motor driver hookup guide</title>
		<link>https://learn.edwinrobotics.com/drv8833-dcstepper-motor-driver-hookup-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=drv8833-dcstepper-motor-driver-hookup-guide</link>
					<comments>https://learn.edwinrobotics.com/drv8833-dcstepper-motor-driver-hookup-guide/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Wed, 28 Jun 2017 06:44:55 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Particle Photon]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1914</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" fetchpriority="high" srcset="https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-140x94.jpg 140w" sizes="(max-width: 6000px) 100vw, 6000px" />The Edwin Robotics DRV8833 breakout board is capable of controlling up to 2 DC motors or one bi/uni-polar stepper motor a max current of 1.2A. The DRV8833 comes with 2 full H-bridges which give bi-directional control of your DC motors. It is similar to the L9110S in its voltage range ( 2.7V &#8211; 10.8V), but [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>The Edwin Robotics DRV8833 breakout board is capable of controlling up to 2 DC motors or one bi/uni-polar stepper motor a max current of 1.2A. The DRV8833 comes with 2 full H-bridges which give bi-directional control of your DC motors. It is similar to the L9110S in its voltage range ( 2.7V &#8211; 10.8V), but carrying 50% more oomph. This makes it ideal for projects where the motors will be run from a 9V battery.</p>
<p>The board can be powered using the provided screw terminals or through micro-USB, checkout out <a href="https://shop.edwinrobotics.com/connectors/106-microusb-dc-jack-female.html" target="_blank" rel="noopener">micro-USB to DC Jack adapter</a> if you would like to use a standard power adapter with the board</p>
<h2> Hardware Required</h2>

<table id="tablepress-23" class="tablepress tablepress-id-23">
<tbody>
<tr class="row-1">
	<td class="column-1"><div id="attachment_1928" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/drivers/924-drv8833-dcstepper-motor-driver-breakout-board.html"target="_blank"><img decoding="async" aria-describedby="caption-attachment-1928" src="http://learn.edwinrobotics.com/wp-content/uploads/Feature-1-150x150.jpg" alt="DC Motor Driver" width="150" height="150" class="size-thumbnail wp-image-1928" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Feature-1-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-1-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-1-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-1.jpg 800w" sizes="(max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1928" class="wp-caption-text">Edwin Robotics DRV8833 Motor Driver</p></div></td><td class="column-2"><div id="attachment_241" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/boards/75-arduino-uno-r3.html"target="_blank"><img decoding="async" aria-describedby="caption-attachment-241" src="http://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-150x150.jpg" alt="Arduino UNO Microcontroller board" width="150" height="150" class="size-thumbnail wp-image-241" srcset="https://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-184x184.jpg 184w" sizes="(max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-241" class="wp-caption-text">Arduino UNO</p></div></td><td class="column-3"><div id="attachment_1571" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/prototyping/19-male-female-jumper-wires-pack-of-10.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1571" src="http://learn.edwinrobotics.com/wp-content/uploads/179-2-150x150.jpg" alt="Arduino Jumper wires" width="150" height="150" class="size-thumbnail wp-image-1571" srcset="https://learn.edwinrobotics.com/wp-content/uploads/179-2-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/179-2-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/179-2-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/179-2.jpg 600w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1571" class="wp-caption-text">Male-Female Jumper wires</p></div></td>
</tr>
<tr class="row-2">
	<td class="column-1"><div id="attachment_1999" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/robotics/31-300-rpm-dc-geared-motor.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1999" src="http://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-150x150.jpg" alt="" width="150" height="150" class="size-thumbnail wp-image-1999" srcset="https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-1080x1080.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/300-RPM-w-yellow-Wheel.jpg 1500w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1999" class="wp-caption-text">DC Geared Motor with Wheel</p></div></td><td class="column-2"><div id="attachment_2000" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/connectors/56-9v-dc-battery-snapper.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2000" src="http://learn.edwinrobotics.com/wp-content/uploads/9v-battery-snapper-1-150x150.jpg" alt="9v battery snap in cable" width="150" height="150" class="size-thumbnail wp-image-2000" srcset="https://learn.edwinrobotics.com/wp-content/uploads/9v-battery-snapper-1-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/9v-battery-snapper-1-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/9v-battery-snapper-1-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/9v-battery-snapper-1.jpg 800w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-2000" class="wp-caption-text">9V DC Battery Snapper</p></div></td><td class="column-3"><div id="attachment_2002" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/connectors/106-microusb-dc-jack-female.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2002" src="http://learn.edwinrobotics.com/wp-content/uploads/microUSB-to-DC-Jack-Female-Front-150x150.jpg" alt="" width="150" height="150" class="size-thumbnail wp-image-2002" srcset="https://learn.edwinrobotics.com/wp-content/uploads/microUSB-to-DC-Jack-Female-Front-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/microUSB-to-DC-Jack-Female-Front-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-2002" class="wp-caption-text">microUSB to DC Jack Female Connector</p></div></td>
</tr>
</tbody>
</table>
<!-- #tablepress-23 from cache -->
<h2>Features</h2>
<ul>
<li>Dual-H-bridge motor driver: can drive two DC motors or one uni/bi-polar stepper motor</li>
<li>Operating voltage: 2.7‌‌ V to 10.8 V</li>
<li>Output current: 1.2 A continuous (2 A peak) per motor</li>
<li>Motor outputs can be paralleled to deliver 2.4 A continuous (4 A peak) to a single motor</li>
<li>Inputs are 3V- and 5V-compatible</li>
<li>Under-voltage lockout and protection against over-current and over-temperature</li>
<li>Reverse-voltage protection circuit</li>
<li>Current limiting can be enabled by adding sense resistors (not included)</li>
</ul>
<h2>Pinouts:</h2>
<div class="row-fluid build-text">
<div id="attachment_1993" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1993" class="wp-image-1993" src="http://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new.png" alt="DRV8833 motor driver pin description" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new.png 2750w, https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new-1080x1080.png 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Pin-DEscription-new-184x184.png 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1993" class="wp-caption-text"><em>DRV8833 Motor driver pin description</em></p></div>
<p>&nbsp;</p>
<h3>Power</h3>
<ul>
<li><strong>Vm</strong> &#8211; This is the voltage supply for the motors. Keep this voltage between 2.7V and 10.8V. This Supply Pin is not Reverse polarity protected, so care must be taken while connecting jumper wires to it.</li>
<li><strong>Power Screw Terminal: </strong>The Power Screw terminal is labelled with + and -, connect your power supply according to label, this terminal is reverse polarity protected.</li>
<li><strong>USB Power In</strong>: You can power the board with micro USB connector provided; this is reverse polarity protected as well.</li>
<li><strong>GND</strong> &#8211; This is the shared logic and motor ground. All grounds are connected</li>
</ul>
</div>
<div class="row-fluid build-text">
<h3><span id="signal-in-pins" class="anchor-link-target"></span>Signals</h3>
<p>These are all &#8216;2.7V or higher logic level&#8217; inputs</p>
<ul>
<li><strong>AIN1, AIN2</strong> &#8211; Two inputs to the Motor A H-bridges. Speed control supported using PWM.</li>
<li><strong>BIN1, BIN2</strong> &#8211; Two inputs to the Motor B H-bridges. Speed control supported using PWM.</li>
<li><strong>FLT</strong> -This is the <strong>Fault</strong> output, which will drive low if there&#8217;s a thermal shutdown or overcurrent.</li>
<li><strong>SLP</strong> &#8211; sleep pin for quickly disabling the driver. On Board 10K pullup resistor provided to keep the driver enabled.</li>
</ul>
<p>The control inputs are pulled low internally, effectively disabling the motor driver outputs by default. See the truth tables in the DRV8833 datasheet for more information on how the inputs affect the driver outputs.</p>
<p><strong>The FAULT pin is an open-drain output that is driven low by the chip whenever an over-current, over-temperature-or under-voltage condition occurs. Otherwise, it remains in a floating state, so you will need to connect an external pull-up resistor (or use a micro-controller input with its built-in pull-up enabled) if you want to monitor fault conditions on the driver.</strong></p>
<p><strong><span style="color: #ff0000;">Note: There is a misprint on Silkscreen, BIN1 is printed in place of AIN1, refer the above image for correct pinouts description.</span></strong></p>
<p><strong>Note: we had Provided on board power LED, which will stay on whenever board is powered. You can disable the power LED with the jumper provided on the back, refer the image below for power LED (P-LED) Jumper</strong></p>
</div>
<div class="row-fluid build-text">
<h3>Current Limiting Pins</h3>
<p><strong>As/ Bs:</strong> The DRV8833 can perform current limiting for each motor H-bridge by connecting a resistor between As/Bs and ground to set the Motor A/ Motor B Limit.</p>
<p><strong>By default , the current limiting feature is disabled and can be enabled by modifying the jumper, refer the image below:</strong></p>
<div id="attachment_1930" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1930" class="wp-image-1930" src="http://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description.png" alt="DRV8833 Current limiting feature" width="500" height="200" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description.png 1856w, https://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description-300x120.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description-1024x410.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Jumper-Description-1080x433.png 1080w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1930" class="wp-caption-text"><em>Current Limiting and Status LED&#8217;s Jumper Pads.</em></p></div>
<p>The Current limiting can be enabled by cutting out the solder joint between the jumper Pads for Asen and Bsen. Once the jumper pads are modified you can either solder SMD resistor (1206 Size) on board or you can use the AS/BS headers pin to make connection with through hole resistors. You can also totally disable current limiting whenever needed by soldering the two jumpers on the back.</p>
<p><strong>The current limiting rule is: LimitCurrent (amps) = 0.2 V / RSENSE</strong></p>
<div id="attachment_1994" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1994" class="wp-image-1994" src="http://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod.png" alt="Current limiting resistors" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod.png 550w, https://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Current-sense-resistors_mod-184x184.png 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1994" class="wp-caption-text"><em>Add 1206 resistors here to modify the current supplied to the respective motors</em></p></div>
<p>&nbsp;</p>
<h2>Connection&#8217;s</h2>
<p>You can use any stepper motor or dc motor rated upto 10.8v with this board. We have used the following kit to get it tested:</p>
<div id="attachment_1929" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1929" class="wp-image-1929" src="http://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET.png" alt="DRV8833 Motor driver kit" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET.png 4300w, https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET-1080x1080.png 1080w, https://learn.edwinrobotics.com/wp-content/uploads/FUnky-DRIVER-SET-184x184.png 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1929" class="wp-caption-text"><em>Robotics Kit</em></p></div>
<p>&nbsp;</p>
<div class="page-title-wrapper"> Refer the image below for the motor connections</div>
</div>
<div></div>
<div></div>
<div class="row-fluid build-text">
<div></div>
<div>
<div id="attachment_1927" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1927" class="wp-image-1927" src="http://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg" alt="DRV8833 gear motor robotics kit" width="500" height="333" srcset="https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/DRV8833_Cover-140x94.jpg 140w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1927" class="wp-caption-text"><em>Motor Connections</em></p></div>
</div>
</div>
<div class="page-content"></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div>You can power the board using phone charger (1.25~ 2.5Ampere rated) using micro usb or use the 9v battery snapper with micro usb connector as shown below:</div>
<div></div>
<div>
<div id="attachment_2013" style="width: 510px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2013" class="wp-image-2013" src="http://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1.jpg" alt="Motor Driver Power Supply" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1.jpg 2800w, https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1-1080x1080.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Power-Supply-1-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /><p id="caption-attachment-2013" class="wp-caption-text"><em>Power Supply Connections</em></p></div>
</div>
<div></div>
<div>Now connect the following pins to your Arduino board:</div>
<div></div>
<div>

<table id="tablepress-21" class="tablepress tablepress-id-21">
<thead>
<tr class="row-1">
	<th class="column-1">DRV8833 Motor Driver Breakout Pins</th><th class="column-2">Arduino Pins</th>
</tr>
</thead>
<tbody class="row-hover">
<tr class="row-2">
	<td class="column-1">AIN1</td><td class="column-2">2</td>
</tr>
<tr class="row-3">
	<td class="column-1">AIN2</td><td class="column-2">3</td>
</tr>
<tr class="row-4">
	<td class="column-1">BIN1</td><td class="column-2">4</td>
</tr>
<tr class="row-5">
	<td class="column-1">BIN2</td><td class="column-2">5</td>
</tr>
</tbody>
</table>
<!-- #tablepress-21 from cache -->
</div>
<div></div>
<div>
<div id="attachment_2008" style="width: 510px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2008" class="wp-image-2008" src="http://learn.edwinrobotics.com/wp-content/uploads/Arduino-Connections.jpg" alt="Stepper Motor driver connections" width="500" height="550" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Arduino-Connections.jpg 816w, https://learn.edwinrobotics.com/wp-content/uploads/Arduino-Connections-273x300.jpg 273w" sizes="auto, (max-width: 500px) 100vw, 500px" /><p id="caption-attachment-2008" class="wp-caption-text"><em>Arduino DRV8833 Connections</em></p></div>
</div>
<div></div>
<h2>Test Codes</h2>
<div></div>
<div></div>
<div> Once the connections are done, upload the following code:</div>
<div></div>
<div></div>
<div></div>
<div>
<pre class="EnlighterJSRAW" data-enlighter-language="cpp" data-enlighter-theme="atomic">#define Ain1 5
#define Ain2 6
#define Bin1 9
#define Bin2 10

int speed = 0;

void setup() {
pinMode(Ain1, OUTPUT);  //Ain1
pinMode(Ain2, OUTPUT);  //Ain2
pinMode(Bin1, OUTPUT);  //Bin1
pinMode(Bin2, OUTPUT);  //Bin2

}

void loop() {

    digitalWrite(Ain1,HIGH);
    digitalWrite(Ain2,LOW);
    digitalWrite(Bin1,HIGH);
    digitalWrite(Bin2,LOW);
    delay(700);
    digitalWrite(Ain1,LOW);
    digitalWrite(Ain2,LOW);
    digitalWrite(Bin1,LOW);
    digitalWrite(Bin2,LOW);

    digitalWrite(Ain1,LOW);
    digitalWrite(Ain2,HIGH);
    digitalWrite(Bin1,LOW);
    digitalWrite(Bin2,HIGH);
    delay(700);
    digitalWrite(Ain1,LOW);
    digitalWrite(Ain2,LOW);
    digitalWrite(Bin1,LOW);
    digitalWrite(Bin2,LOW);
  
}</pre>
<p>&nbsp;</p>
</div>
<div></div>
<div></div>
<div></div>
<h2><a href="http://www.ti.com/lit/ds/symlink/drv8833.pdf" target="_blank" rel="noopener">Download DRV8833 Datasheet</a></h2>
<p>&nbsp;</p>
<p>References:</p>
<p><a href="https://learn.adafruit.com/adafruit-drv8833-dc-stepper-motor-driver-breakout-board/stepper-motor-usage" target="_blank" rel="noopener">Adafruit Hookup Guide</a></p>
<p><a href="https://www.pololu.com/product/2130/blog" target="_blank" rel="noopener">Polulu Blog</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/drv8833-dcstepper-motor-driver-hookup-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MCP23S17 &#8211; Hook Up Guide</title>
		<link>https://learn.edwinrobotics.com/mcp23s17-hook-up-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mcp23s17-hook-up-guide</link>
					<comments>https://learn.edwinrobotics.com/mcp23s17-hook-up-guide/#comments</comments>
		
		<dc:creator><![CDATA[emil]]></dc:creator>
		<pubDate>Sun, 26 Mar 2017 05:51:10 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Breadkout board]]></category>
		<category><![CDATA[MCP23S17]]></category>
		<category><![CDATA[Port Expander]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1606</guid>

					<description><![CDATA[<img width="1500" height="1000" src="https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image.jpg 1500w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-140x94.jpg 140w" sizes="auto, (max-width: 1500px) 100vw, 1500px" />Introduction The MCP23S17 is a SPI Based Port Expander which can add 16 more digital I/O pins to your Arduino or Raspberry Pi. Thanks to the wide operating voltage of 1.8 &#8211; 5.5V,  you can add 5V I/O pins to the Raspberry Pi or 3.3V based Arduino thereby avoiding a level shifter and simplifying connections. [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="1500" height="1000" src="https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image.jpg 1500w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Feature-Image-140x94.jpg 140w" sizes="auto, (max-width: 1500px) 100vw, 1500px" /><h2>Introduction</h2>
<p>The MCP23S17 is a SPI Based Port Expander which can add 16 more digital I/O pins to your Arduino or Raspberry Pi. Thanks to the wide operating voltage of 1.8 &#8211; 5.5V,  you can add 5V I/O pins to the Raspberry Pi or 3.3V based Arduino thereby avoiding a level shifter and simplifying connections.</p>
<h2>Hardware Required:</h2>

<table id="tablepress-18" class="tablepress tablepress-id-18">
<tbody>
<tr class="row-1">
	<td class="column-1"><div id="attachment_1607" style="width: 160px" class="wp-caption alignleft"><a href="https://shop.edwinrobotics.com/breakout-boards/603-edwin-robotics-16-inputoutput-port-expander-breakout-mcp23s17.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1607" class="wp-image-1607 size-thumbnail" src="http://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-150x150.jpg" alt="MCP23S17 Port Expander" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander.jpg 940w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1607" class="wp-caption-text">MCP23S17 Port  Expander</p></div></td><td class="column-2"><div id="attachment_1609" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/prototyping/40-breadboard.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1609" src="http://learn.edwinrobotics.com/wp-content/uploads/breadboard.jpg" alt="Breadboard" width="150" height="50" class="size-full wp-image-1609" /></a><p id="caption-attachment-1609" class="wp-caption-text"></p><b><em> Breadboard</em></b></p></div></td><td class="column-3"><div id="attachment_1620" style="width: 160px" class="wp-caption alignleft"><a href="https://shop.edwinrobotics.com/34-wires" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1620" class="wp-image-1620 size-thumbnail" src="http://learn.edwinrobotics.com/wp-content/uploads/826-04-150x150.jpg" alt="Male - Female Jumper Wires" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/826-04-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/826-04-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1620" class="wp-caption-text">Jumper Wires</p></div></td>
</tr>
</tbody>
</table>
<!-- #tablepress-18 from cache -->
<h2>Board Overview<a href="http://learn.edwinrobotics.com/wp-content/uploads/Port-Expander.jpg" target="_blank"><img loading="lazy" decoding="async" class="wp-image-1607 aligncenter" src="http://learn.edwinrobotics.com/wp-content/uploads/Port-Expander.jpg" alt="MCP23S17 Port Expander" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander.jpg 940w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Port-Expander-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a></h2>
<p>The board consists of 2 Port Banks (A and B), a 3-way switch, power and SPI headers</p>
<p><strong>3-Way switch </strong>is used to set the address of the Port Expander, the switch positioned towards ON sets the address as &#8216;0&#8217;. The image above sets the address as &#8216;7&#8217;</p>
<p><strong>INT B </strong>Interrupt output for PortB</p>
<p><strong>B.0 &#8211; B.7</strong> Bidirectional I/O</p>
<p><strong>INT A </strong>Interrupt output for PortA</p>
<p><strong>A.0 &#8211; A.7</strong> Bidirectional I/O</p>
<p><strong>VCC</strong> Power supply pin for the MCP23S17, connect to a voltage source between 1.8V -5V</p>
<p><strong>GND </strong>connect to ground of power supply</p>
<p><strong>SO, SI, SCK &amp; CS </strong>SPI Pins</p>
<p><strong>RESET </strong>connect to ground to reset the port expander</p>
<p><span style="color: #ff0000;"><strong style="color: #ff0000;">Note: </strong>The silkscreen on Port A is reversed, meaning <strong style="color: #ff0000;">INT A</strong> actually is <strong style="color: #ff0000;">A.7</strong> and <strong style="color: #ff0000;">A.7</strong> actually is <strong style="color: #ff0000;">INT A</strong></span></p>
<p>&nbsp;</p>
<h2>Enabling SPI on the Raspberry Pi</h2>
<p>By default the SPI peripheral is not enabled, we cannot continue unless this is done first. Have a look at the tutorial by SparkFun on <strong><a href="https://learn.sparkfun.com/tutorials/raspberry-pi-spi-and-i2c-tutorial#spi-on-pi" target="_blank">how to do this.</a></strong></p>
<h2></h2>
<p>&nbsp;</p>
<h2>Interfacing the MCP23S17 Port Expander with the Raspberry Pi</h2>
<div id="attachment_1611" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1611" class="wp-image-1611" src="http://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17.jpg" alt="Connection Diagram for the MCP23S17 to the Raspberry Pi 3" width="500" height="356" srcset="https://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17.jpg 1389w, https://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17-300x213.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17-1024x728.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17-400x284.jpg 400w, https://learn.edwinrobotics.com/wp-content/uploads/RPi-to-MCP23S17-1080x768.jpg 1080w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1611" class="wp-caption-text">Interfacing the MCP23S17 to the Raspberry Pi</p></div>
<p>&nbsp;</p>
<h3>Connections from Raspberry Pi to MCP23S17 Port Expander</h3>

<table id="tablepress-14" class="tablepress tablepress-id-14">
<thead>
<tr class="row-1">
	<th class="column-1">MCP23S17 Pin</th><th class="column-2">Raspberry Pi GPIO Pin</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">VCC</td><td class="column-2">5V/3.3V</td>
</tr>
<tr class="row-3">
	<td class="column-1">GND</td><td class="column-2">GND</td>
</tr>
<tr class="row-4">
	<td class="column-1">SO</td><td class="column-2">SPI_MISO / GPIO9 / Pin 21</td>
</tr>
<tr class="row-5">
	<td class="column-1">SI</td><td class="column-2">SPI_MOSI / GPIO10 / Pin 19</td>
</tr>
<tr class="row-6">
	<td class="column-1">SCK</td><td class="column-2">SPI_CLK / GPIO11 /  Pin 23</td>
</tr>
<tr class="row-7">
	<td class="column-1">CS</td><td class="column-2">SPI_CE0_N / GPIO8 / Pin 24</td>
</tr>
</tbody>
</table>
<!-- #tablepress-14 from cache -->
<h3>Installing the Python Library</h3>
<p>In order to get started the python library needs to be installed first. Run the following command in terminal to install the library</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="mootwo">sudo pip install RPiMCP23S17</pre>
<p>&nbsp;</p>
<h3><strong>Sample Code</strong></h3>
<p>The below code will turn ON and OFF all the pins at an interval of 1 second.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="mootwo">from RPiMCP23S17.MCP23S17 import MCP23S17
import time

mcp = MCP23S17(bus=0x00, ce=0x00, deviceID=0x00)
mcp.open()

for x in range(0, 16):
    mcp.setDirection(x, mcp.DIR_OUTPUT)

print "Starting blinky on all pins (CTRL+C to quit)"
while (True):
    for x in range(0, 16):
        mcp.digitalWrite(x, MCP23S17.LEVEL_HIGH)
    time.sleep(1)
    for x in range(0, 16):
        mcp.digitalWrite(x, MCP23S17.LEVEL_LOW)
    time.sleep(1)</pre>
<h2>Further Reading</h2>
<p><a href="https://github.com/petrockblog/RPi-MCP23S17" target="_blank">RPiMCP23S17 Github Repo</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/mcp23s17-hook-up-guide/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Getting Started with Raspberry Pi and Electronics</title>
		<link>https://learn.edwinrobotics.com/getting-started-with-raspberry-pi-and-electronics/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-started-with-raspberry-pi-and-electronics</link>
					<comments>https://learn.edwinrobotics.com/getting-started-with-raspberry-pi-and-electronics/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Mon, 06 Feb 2017 17:36:55 +0000</pubDate>
				<category><![CDATA[Breadboard]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1341</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />New to Electronics or programming ? No need to worry now, the Raspberry pi is only for you. If you are beginner, we will recommend you to go through our Raspberry Pi Blogs. We will recommend you to go through these set of videos before getting started. Lets have a look at set of contents we [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-feature-image-black-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>New to Electronics or programming ? No need to worry now, the Raspberry pi is only for you. If you are beginner, we will recommend you to go through our <a href="http://learn.edwinrobotics.com/category/raspberry-pi/" target="_blank" rel="noopener">Raspberry Pi Blogs</a>. We will recommend you to go through these set of <a href="https://www.raspberrypi.org/help/videos/" target="_blank" rel="noopener">videos</a> before getting started. Lets have a look at set of contents we are covering in this tutorial.</p>
<p>&nbsp;</p>
<ul>
<li>
<h6><a href="#step1">Hardware Needed</a></h6>
</li>
<li>
<h6><a href="#step12">Using RasPiO Portsplus with Raspberry Pi</a></h6>
</li>
<li>
<h6><a href="#step2">Getting Started With Breadboard and LED</a></h6>
</li>
<li>
<h6><a href="#step3">Getting Started with Switch, transistor and buzzer on breadboard</a></h6>
</li>
<li>
<h6><a href="#step4">Pi Wedge Hookup Guide</a></h6>
</li>
<li>
<h6><a href="#step5">Getting Started with Physical Computing on Raspberry Pi</a></h6>
</li>
<li>
<h6><a href="#step6">Getting Started with Scratch</a></h6>
</li>
<li>
<h6><a href="#step7">Test blinking LED using Python/Scratch</a></h6>
</li>
<li>
<h6><a href="#step8">Testing Switch using Python/Scratch</a></h6>
</li>
<li>
<h6><a href="#step9">Testing Capacitive Touch using Python/Scratch</a></h6>
</li>
<li>
<h6><a href="#step10">Testing Buzzer using Python/Scratch</a></h6>
</li>
<li>
<h6><a href="#step11">References</a></h6>
</li>
</ul>
<p>&nbsp;</p>
<h3 id="step1">Hardware Needed</h3>
<p>&nbsp;</p>
<p><a href="https://shop.edwinrobotics.com/kits/547-raspberry-pi-electronics-starter-kit.html" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-1392" src="http://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new.png" alt="Raspberry Pi Electronics Starter Kit tutorial and blog" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new.png 2048w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-3-ELectronics-Starter-Kit-square-ratio-new-184x184.png 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4>        <em>Raspberry Pi Electronics Starter Kit</em></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3 id="step12">RasPiO Portsplus</h3>
<p>&nbsp;</p>
<p>The RasPiO® Portsplus board is designed for the new Raspberry Pi 3/2/A+/B+. It labels the ports clearly for you so that you don’t need to count pins. This will help you avoid wiring errors and damage.You can slip it over the GPIO header if you want, or hold it next to the header.RasPiO® Portsplus has GPIO port numbers on one side and Pin numbers on the other side, so you can use whichever numbering system you prefer. At just 1mm thick, it leaves plenty of space for attaching your wires. It’s thick enough not to feel flimsy, but thin enough not to be clunky. Refer the image below, to see how to use RasPio Portsplus.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1465" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/RasPiO_w_jumper-1.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1465" class="wp-image-1465" src="http://learn.edwinrobotics.com/wp-content/uploads/RasPiO_w_jumper-1.jpg" alt="How to connect jumpers to Raspberry Pi with RasPiO Portsplus" width="500" height="448" srcset="https://learn.edwinrobotics.com/wp-content/uploads/RasPiO_w_jumper-1.jpg 1661w, https://learn.edwinrobotics.com/wp-content/uploads/RasPiO_w_jumper-1-300x269.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/RasPiO_w_jumper-1-1024x917.jpg 1024w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1465" class="wp-caption-text"><em>Raspberry Pi with RasPiO Portsplus and jumpers</em></p></div>
<h4></h4>
<h4></h4>
<h3>Breadboard and LED</h3>
<p>&nbsp;</p>
<p>In this step we will start with the breadboard, breadboards are preferred platform to start building circuits because it don’t need any soldering, thus giving you the flexibility to try, test and modify your circuit at any point of time. They allow you to make quick circuits, test out ideas and allow prototyping before making a permanent Printed Circuit Board. They are inexpensive and reusable and they are easily available in any electronics store. Once you understood the basics regarding breadboading , then will go ahead with the basic essential component of all the electronics circuit i.e LED.<strong>We have already added all the details regarding this step in the following blog, refer this blog on <a href="http://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/" target="_blank" rel="noopener">&#8221; How to Breadboard LED &#8220;</a></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3 id="step3">Getting Started with Switch, transistor and buzzer on breadboard</h3>
<p>&nbsp;</p>
<p>One of the most elementary and easy-to-overlook circuit component is the switch. Switches don’t require any fancy equations to evaluate. All they do is select between an open circuit and a short circuit. Simple. But how could we live without buttons and switches!? What good is a blinky circuit with no user input? Or a deadly robot with no kill switch? or any remote or mobile with no buttons? What would our world be without with big red buttons.A switch is a component which controls the open-ness or closed-ness of an electric circuit. They allow control over current flow in a circuit (without having to actually get in there and manually cut or splice the wires). Switches are critical components in any circuit which requires user interaction or control.A switch can only exist in one of two states: open or closed. In the <strong>off</strong> state, a switch looks like an open gap in the circuit. This, in effect, looks like an <strong>open circuit</strong>, preventing current from flowing.In the <strong>on</strong> state, a switch acts just like a piece of perfectly-conducting wire. A short. This <strong>closes the circuit</strong>, turning the system “on” and allowing current to flow unimpeded through the rest of the system.</p>
<p>&nbsp;</p>
<div id="attachment_1452" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Function.gif" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1452" class="wp-image-1452" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Function.gif" alt="LED + Switch Basic circuit with battery" width="500" height="237" /></a><p id="caption-attachment-1452" class="wp-caption-text"><em>A circuit with an LED, resistor, and a switch. When the switch is closed, current flows and the LED can illuminate. Otherwise no current flows, and the LED receives no power.</em></p></div>
<p>&nbsp;</p>
<p>There are tons and tons of switches out there: toggle, rotary, DIP, push-button, rocker, membrane, … the list just goes on and on. Each of those switch types has a set of unique characteristics to differentiate it from others. Characteristics like what action flips the switch, or how many circuits the switch can control. You can check the <a href="https://shop.edwinrobotics.com/21-switches" target="_blank" rel="noopener">different types of switches</a> we having with us.Transistors can be regarded as a type of switch, as can many electronic components. They are used in a variety of circuits and you will find that it is rare that a circuit built/available in school Technology Department/ Laboratory does not contain at least one transistor. Even the things you used in your daily life, i.e mobile, tv, computers, etc all comes with tons of transistors built into it, transistors are central to electronics and there are two main types; NPN and PNP. Most circuits tend to use NPN. There are hundreds of transistors which work at different voltages but all of them fall into these two categories.<strong>We had added detailed tutorial on <a href="http://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/" target="_blank" rel="noopener">&#8221; Getting started with switch, transistors and buzzer on breadboard &#8220;</a> ,</strong> so that you will clearly understand the basics of switches, transistors and buzzer.</p>
<p>&nbsp;</p>
<h3 id="step4">Pi Wedge</h3>
<p>&nbsp;</p>
<p>Its time to expand your GPIO pins from the Raspberry pi and made it accessible for Breadboarding. The preassembled 40-pin Pi Wedge will let your Pi pins broken out to a breadboard so that they can easily be used. The Sparkfun has already added a detailed <a href="https://learn.sparkfun.com/tutorials/preassembled-40-pin-pi-wedge-hookup-guide" target="_blank" rel="noopener">hookup guide</a> on their website, we will recommend you to <a href="https://learn.sparkfun.com/tutorials/preassembled-40-pin-pi-wedge-hookup-guide" target="_blank" rel="noopener">refer this tutorial</a> to understand pi-Wedge better.</p>
<p>&nbsp;</p>
<h3 id="step5">Physical Computing on Raspberry Pi</h3>
<p>&nbsp;</p>
<p>The Raspberry Pi learning resource is provided for free by the <a href="https://www.raspberrypi.org/" target="_blank" rel="noopener">Raspberry Pi Foundation</a> under a <a href="https://www.raspberrypi.org/creative-commons/" target="_blank" rel="noopener">Creative Commons</a> licence, which we are able to access from their website, you can find the <a href="https://www.raspberrypi.org/learning/physical-computing-guide/" target="_blank" rel="noopener">resources here</a>, We have provided all the items in the Electronics Starter Kit to get started with mentioned tutorial, all you need to do is follow the steps mentioned in the getting started tutorial to understand the basic principles  of interfacing individual items. <strong>please go through this guide on <a href="https://www.raspberrypi.org/learning/physical-computing-guide/worksheet/" target="_blank" rel="noopener">&#8220;Getting Started with Physical Computing on Raspberry Pi &#8220;</a></strong></p>
<p>&nbsp;</p>
<h3 id="step6">Scratch</h3>
<p>&nbsp;</p>
<p>Scratch is a visual programming tool which allows the user to create animations and games with a drag-and-drop interface. It allows you to create your own computer games, interactive stories, and animations using some programming techniques without actually having to write code. This resource will help get you started with the basics of Scratch. The Raspberry Pi learning resource is provided for free by the <a href="https://www.raspberrypi.org/" target="_blank" rel="noopener">Raspberry Pi Foundation</a> under a <a href="https://www.raspberrypi.org/creative-commons/" target="_blank" rel="noopener">Creative Commons</a> licence, which we are able to access from their website, you can find the <a href="https://www.raspberrypi.org/learning/getting-started-with-scratch/worksheet/" target="_blank" rel="noopener">resources here</a>, <strong>please go through <a href="https://www.raspberrypi.org/learning/getting-started-with-scratch/worksheet/" target="_blank" rel="noopener">&#8220;Getting Started with Scratch on Raspberry Pi Tutorial&#8221;</a></strong> to understand the various features and application of the Scratch tool.</p>
<p>&nbsp;</p>
<h3 id="step7">Blinking LED</h3>
<p>&nbsp;</p>
<p>Since you have already seen some basic programming in the getting started section, we are adding one more advancement in the LED circuit and code here, we will recommend you to build the following circuit in your breadboard:</p>
<div id="attachment_1472" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Circuit.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1472" class="wp-image-1472" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Circuit.jpg" alt="Getting started with LED and Raspberry GPIO pins" width="500" height="679" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Circuit.jpg 666w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Circuit-221x300.jpg 221w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1472" class="wp-caption-text"><em>Blinking LED Circuit</em></p></div>
<p>&nbsp;</p>
<p>To begin with, we will recommend you to open the IDLE from the following path: <strong>Menu -&gt; Programming -&gt; IDLE 3/Python 3 </strong>and you will find the Scratch in the Same path as well:  <strong>Menu -&gt; Programming -&gt; Scratch.</strong>We had added the python code and Scratch Project in the following link, you can save/download the file in your system, click on the respective icon to open/download the file.</p>

<table id="tablepress-7" class="tablepress tablepress-id-7">
<tbody>
<tr class="row-1">
	<td class="column-1"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperTTdkUXItODBGWm8" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1481" srcset="https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png 943w, https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo-300x89.png 300w" sizes="(max-width: 943px) 100vw, 943px" /></a></p></td><td class="column-2"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperQUxyNkEtYU1ydXM" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1475" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png 434w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-300x98.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-430x142.png 430w" sizes="(max-width: 434px) 100vw, 434px" /></a></p></td>
</tr>
</tbody>
</table>
<!-- #tablepress-7 from cache -->
<p>You can refer to scratch program in the image below:</p>
<div id="attachment_1602" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Blink_Scratch.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1602" class="wp-image-1602" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Blink_Scratch.jpg" alt="Raspberry pi LED blinking and change cat costume color on scratch" width="500" height="584" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Blink_Scratch.jpg 826w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Blink_Scratch-257x300.jpg 257w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1602" class="wp-caption-text"><em>LED Blinking</em></p></div>
<h4></h4>
<h3 id="step8">Switch</h3>
<p>&nbsp;</p>
<p>In this step you have to add switch connection to the LED connections you made in the previous step. Follow the circuit shown below:</p>
<div id="attachment_1788" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Circuit.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1788" class="wp-image-1788" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Circuit.jpg" alt="Rising and falling edge detection using Raspberry Pi" width="500" height="675" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Circuit.jpg 667w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch_Circuit-222x300.jpg 222w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1788" class="wp-caption-text"><em>Switch Connection</em></p></div>
<p>Now refer the Scratch and Python Code to get it working</p>

<table id="tablepress-8" class="tablepress tablepress-id-8">
<tbody>
<tr class="row-1">
	<td class="column-1"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperQVRnNUFDLWQ3WE0" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1481" srcset="https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png 943w, https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo-300x89.png 300w" sizes="(max-width: 943px) 100vw, 943px" /></a></p></td><td class="column-2"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperUzF4cFNPU25nSGc" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1475" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png 434w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-300x98.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-430x142.png 430w" sizes="(max-width: 434px) 100vw, 434px" /></a></p></td>
</tr>
</tbody>
</table>
<!-- #tablepress-8 from cache -->
<p>You can refer the Scratch program in the blow image:</p>
<div id="attachment_1601" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch-Scratch.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1601" class="wp-image-1601" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch-Scratch.png" alt="Controlling LED and Motors in scratch " width="500" height="539" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch-Scratch.png 505w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch-Scratch-278x300.png 278w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1601" class="wp-caption-text"><em>Contro LED Using Switch/Sensor</em></p></div>
<p>&nbsp;</p>
<h3 id="step9">Capacitive Touch</h3>
<p>&nbsp;</p>
<p>The capacitve touch module we providing in the Kit works as momentary switch in default mode, but if need you can solder the jumper to the pads or add some conductive tape to the pads to change the mode of operation from momentary to toggle. The Capapcitive touch module is capable to sense the human touch, even it can sense the body within nearby range to the pads thus allowing you to place the pads under thin cardboards/paper/plastic, you can add copper tape to it to extend the capacitive touch area as your wish. These tiny boards are nice addon to your project. Refer the image below for the connection diagram:</p>
<div id="attachment_1506" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Capacitive-Touch.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1506" class="wp-image-1506" src="http://learn.edwinrobotics.com/wp-content/uploads/Capacitive-Touch.jpg" alt="TTP223 Capapcitive touch module with toggle and momentary mode" width="500" height="431" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Capacitive-Touch.jpg 728w, https://learn.edwinrobotics.com/wp-content/uploads/Capacitive-Touch-300x259.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1506" class="wp-caption-text"><em>Capacitive Touch Board description</em></p></div>
<p>The board works well with 3.3v and 5v Systems, thus giving you the flexibility to use it straight away, these boards comes with onboard LED for the indication, thus you can use it as an independent product without any need of  Microcontroller or Microprocessor. Now, refer the breadboard connection for the Capacitive touch board and the LED:</p>
<div id="attachment_1508" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Capacitive-touch-and-Led.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1508" class="wp-image-1508" src="http://learn.edwinrobotics.com/wp-content/uploads/Capacitive-touch-and-Led.jpg" alt="Connect momentary and Toggle Capacitive Touch module with Raspberry Pi" width="500" height="674" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Capacitive-touch-and-Led.jpg 706w, https://learn.edwinrobotics.com/wp-content/uploads/Capacitive-touch-and-Led-222x300.jpg 222w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1508" class="wp-caption-text"><em>Capapcitive Touch and LED Connection with Raspberry Pi</em></p></div>
<h4></h4>
<p>Since we had replaced the tactile switch with Capacitive touch module in this circuit and we let the LED stay as it is like in the previous steps, thus the code which we used to control LED with tactile switch will work for this module as well.</p>
<p><strong>Note: We had used GPIO pin 24 to connect Signal pin of the Capacitive touch module thus the previous code will work for this case as well, but if you had used some other pins for this module, make sure to change the pin numbering in the code as well.</strong></p>
<p>If you are using the Capacitve module in Toggle Mode, try out the following code to understand the difference:</p>

<table id="tablepress-9" class="tablepress tablepress-id-9">
<tbody>
<tr class="row-1">
	<td class="column-1"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperZ3hUVWhuRjJTVlk" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1481" srcset="https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo.png 943w, https://learn.edwinrobotics.com/wp-content/uploads/pythonlogo-300x89.png 300w" sizes="(max-width: 943px) 100vw, 943px" /></a></p></td><td class="column-2"><p align="center"><a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperVDRQM1JURzJrVEk" target="_blank"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png" alt="" width="200" height=auto class="alignnone size-full wp-image-1475" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline.png 434w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-300x98.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Scratch-logo-outline-430x142.png 430w" sizes="(max-width: 434px) 100vw, 434px" /></a></p></td>
</tr>
</tbody>
</table>
<!-- #tablepress-9 from cache -->
<p>&nbsp;</p>
<h3 id="step10">Transistor and Buzzer</h3>
<p>&nbsp;</p>
<p>Till now, you have seen the LED indication in the output side, now its time to add some sound to the circuit, since you had already worked with <strong><a href="http://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/" target="_blank" rel="noopener">&#8221; Getting started with switch, transistors and buzzer on breadboard &#8220;</a>  </strong>tutorial, this step is going to be easy. Refer the modified breadboard connection for the circuit.</p>
<div id="attachment_1513" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-buzzer-and-P2N2222A-transistor.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1513" class="wp-image-1513" src="http://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-buzzer-and-P2N2222A-transistor.jpg" alt="Transistor, Buzzer and Switch Interface with Raspberry Pi using python and scratch" width="500" height="636" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-buzzer-and-P2N2222A-transistor.jpg 758w, https://learn.edwinrobotics.com/wp-content/uploads/Raspberry-Pi-buzzer-and-P2N2222A-transistor-236x300.jpg 236w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1513" class="wp-caption-text"><em>Transistor, Buzzer and Switch Interface with Raspberry Pi</em></p></div>
<p>&nbsp;</p>
<p>We are not adding any specific code to this section because the circuit is connected to work with all the three codes described above, so we will recommend you to run all the three codes again for the above circuit, try to add and change the delay in the code, so that you can hear the variation in the output.Since you already understood the basics of various components and its interfacing and programming in scratch and python, <strong>we are giving you challenge to breadboard RGB LED we provided in the Kit and write your own Python and Scratch code for the same, to made it glow for different combination of colors. </strong></p>
<p>Let us know your feedback on this and we are happy to help you, if you found any issue or difficulty in any circuit or have any queries, please do let us know.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4 id="step11">References:</h4>
<ul>
<li><a href="http://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/" target="_blank" rel="noopener">Tutorial: How to Breadboard LED</a></li>
<li><a href="http://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/" target="_blank" rel="noopener">Tutorial: Getting started with switch, transistors and buzzer on breadboard</a></li>
<li><a href="https://learn.sparkfun.com" target="_blank" rel="noopener">Sparkfun Tutorials</a></li>
<li><a href="https://shop.edwinrobotics.com/91-buttonsswitches" target="_blank" rel="noopener">Buy Switches Online</a></li>
<li><a href="https://shop.edwinrobotics.com/98-transistorsmosfet" target="_blank" rel="noopener">Buy Transistors Online</a></li>
<li><a href="https://www.raspberrypi.org/resources/" target="_blank" rel="noopener">Raspberry Pi Learning Resources</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/getting-started-with-raspberry-pi-and-electronics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RetroPie Install Guide</title>
		<link>https://learn.edwinrobotics.com/retropie-install-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=retropie-install-guide</link>
					<comments>https://learn.edwinrobotics.com/retropie-install-guide/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 17:25:28 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[GamePad]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[RetroPie]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1166</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />Good to see that lots of people are interested and looking forward for Raspberry pi, to have the feel of old gaming experience. We already wrote one blog on Retro Gaming machine using Raspberry pi, we mentioned there how to download RetroPie Image and ROM and Install it in your system. We will recommend you to [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>Good to see that lots of people are interested and looking forward for Raspberry pi, to have the feel of old gaming experience. We already wrote one blog on <a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/" target="_blank">Retro Gaming machine using Raspberry pi</a>, we mentioned there how to download RetroPie Image and ROM and Install it in your system. We will recommend you to go through <a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/" target="_blank">Retro Gaming machine using Raspberry pi Blog</a></p>
<p>&nbsp;</p>
<p>This blog is targeted towards people who might not want Raspberry pi to be dedicated just for Retro Gaming Purpose or whom already have our Raspberry Pi Gaming Kit or whom having Raspberry loaded with Raspbian. Here we mentioned steps on how to install RetroPie on a Raspberry pi running Raspbian. This setup will give you flexibility to use any one system(Raspbian or RetroPie) as per their need, i.e they can run RetroPie without uninstalling Raspbian and choose between any one at a time to work with. We will show you how to set RetroPie EmulationStation as default environment and from their if you want you can skip the RetroPie and go to either terminal or Raspbian desktop environment.</p>
<p>&nbsp;</p>
<p>To start with, we will recommend you to have our Raspberry Pi Gaming Kit ready with you, its comes with SD Card preinstalled with latest Raspbian on it. Note: If you aren&#8217;t comfortable with the terminal you would be wise to just use the RetroPie SD image as described in this <a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/" target="_blank">Retro Gaming machine using Raspberry pi Blog</a>. Follow the steps mentioned to get it working.</p>
<p>&nbsp;</p>
<ol>
<li><a href="#step1">Download RetroPie Setup script</a></li>
<li><a href="#step2">Download and Install Putty to run Command via computer</a></li>
<li><a href="#step3">Set EmulationStation as default boot option (video)</a></li>
<li><a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/#step4" target="_blank">Download ROM</a></li>
<li><a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/#step3" target="_blank">Install ROM</a></li>
<li><a href="#step4">Configure Gamepad</a></li>
<li><a href="#step5">References</a></li>
</ol>
<p>&nbsp;</p>
<p>1)    Open the command terminal, refer the following image if you don&#8217;t have idea where is it:</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_raspi-terminal.png" target="_blank"><br />
<img loading="lazy" decoding="async" class="alignnone wp-image-1170 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_raspi-terminal.png" width="646" height="419" srcset="https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_raspi-terminal.png 646w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_raspi-terminal-300x195.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_raspi-terminal-260x170.png 260w" sizes="auto, (max-width: 646px) 100vw, 646px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>2)   <strong id="step1">Download RetroPie Setup Script: </strong></p>
<blockquote><p><code>cd<br />
</code><code>git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git</code></p>
<p>&nbsp;</p></blockquote>
<p>All you need to do is copy the mentioned command line by line and paste it(mouse right click) to the terminal. If you are wondering how to copy paste this, then you can either open this blog in the Raspberry pi browser or It is recommended to use putty on your computer to access the Raspberry Pi terminal.</p>
<p>&nbsp;</p>
<p><strong id="step2">Download and Install Putty to run Command via computer:</strong></p>
<p>Download <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty from here</a> and install it, then you need to enter you Raspberry Pi IP address in the space provided, refer the following image for the same:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Putty.jpg" target="_blank"><img loading="lazy" decoding="async" class="wp-image-1172 size-full alignleft" src="http://learn.edwinrobotics.com/wp-content/uploads/Putty.jpg" width="451" height="438" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Putty.jpg 451w, https://learn.edwinrobotics.com/wp-content/uploads/Putty-300x291.jpg 300w" sizes="auto, (max-width: 451px) 100vw, 451px" /><br />
</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Raspberry Pi IP address can be found out by running the <strong>ifconfig</strong> Command in your LX terminal. Make Sure that your Raspberry Pi is connected to Wifi or ethernet before doing this step.</p>
<p>&nbsp;</p>
<p>3)    Once the Script is downloaded you need to execute the script as follows:</p>
<blockquote><p><code> cd RetroPie-Setup<br />
chmod +x retropie_setup.sh<br />
sudo ./retropie_setup.sh<br />
</code></p></blockquote>
<p>&nbsp;</p>
<p>4)    Make sure to run command line by line as shown, refer the video shown below on how to install the RetroPie</p>
<p>&nbsp;</p>
<div style="width: 1584px;" class="wp-video"><!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<video class="wp-video-shortcode" id="video-1166-1" width="1584" height="1138" preload="metadata" controls="controls"><source type="video/mp4" src="http://learn.edwinrobotics.com/wp-content/uploads/Basic-Install.mp4?_=1" /><a href="http://learn.edwinrobotics.com/wp-content/uploads/Basic-Install.mp4">http://learn.edwinrobotics.com/wp-content/uploads/Basic-Install.mp4</a></video></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>5)  <strong id="step3"> Set EmulationStation as default boot option (video):</strong>  It will take some time to install the RetroPie on Raspbian, you need to wait till then, once done, the last step you need to do is to run the script again and set EmulationStation as default in the boot option, refer the video below for the same:</p>
<p>&nbsp;</p>
<div style="width: 1584px;" class="wp-video"><video class="wp-video-shortcode" id="video-1166-2" width="1584" height="1138" preload="metadata" controls="controls"><source type="video/mp4" src="http://learn.edwinrobotics.com/wp-content/uploads/ES-at-boot.mp4?_=2" /><a href="http://learn.edwinrobotics.com/wp-content/uploads/ES-at-boot.mp4">http://learn.edwinrobotics.com/wp-content/uploads/ES-at-boot.mp4</a></video></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>6)    Once the above step is done, you can see that after the computer reboots, it will open the EmulationStation by default, if you want to access command terminal, you need to <strong>press F4</strong> on you keyboard to exit the EmulationStation, you can type <strong>emulationstation</strong> in the command terminal to open EmulationStation back again. To open pixel desktop you need to run <strong>startx</strong> command in the terminal, it will load pixel environment for you.</p>
<p><strong>Note: You cannot run EmulationStation and the LXDE/ Pixel Environment at the same time so you need to reboot your system to turn on your EmulationStation.</strong></p>
<p>&nbsp;</p>
<p>7)    If you are all done till previous point, now all you need to add is ROM to your system, due to the nature/complexity of Copyright/Intellectual Property Rights Law, which differs significantly from Country to Country, ROMs cannot be provided with RetroPie and must be provided by the user. You should only have ROMs of games that you own.Refer this link to see how to <a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/?preview_id=1064&amp;preview_nonce=f990d40e07&amp;_thumbnail_id=1101&amp;preview=true#step4" target="_blank">download ROM</a> and <a href="http://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/?preview_id=1064&amp;preview_nonce=f990d40e07&amp;_thumbnail_id=1101&amp;preview=true#step3" target="_blank">Install ROM</a></p>
<p>&nbsp;</p>
<p>8)    <strong id="step4">Configure Gamepad:</strong> Once you added the ROM, its time to configure your gamepad, to do so open the EmulationStation Menu( refer the below shown Image)</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1082" src="http://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png" alt="" width="1274" height="711" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png 1274w, https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen-300x167.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen-1024x571.png 1024w" sizes="auto, (max-width: 1274px) 100vw, 1274px" /></a></p>
<p>&nbsp;</p>
<blockquote><p>Select: retroPie menu -&gt; Input options.</p></blockquote>
<p>&nbsp;</p>
<p>9)    Make Sure to connect your game pad before selecting Input options from the Menu. Once selected refer the below key map to configure your gamepad, all you need to do is to press the corresponding key for the shown input option.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Gamepad.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-1179 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Gamepad.png" width="1768" height="851" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Gamepad.png 1768w, https://learn.edwinrobotics.com/wp-content/uploads/Gamepad-300x144.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Gamepad-1024x493.png 1024w" sizes="auto, (max-width: 1768px) 100vw, 1768px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Once done, the settings will be saved permanently  in your system, incase any mistake happened, you can reconfigure your gamepad anytime. <a href="https://github.com/retropie/retropie-setup/wiki/RetroArch-Configuration" target="_blank">Refer this link</a>, if you are planning to add some other gamepad to your raspberry pi, once done you are ready to control your EmulationStation and play games using your gamepad.</p>
<blockquote><p>Note: Only one input is supported for single player games, thus if you had connected multiple inputs like keyboard and gamepad, make sure to disconnect whichever not needed and connect only one.</p></blockquote>
<p>&nbsp;</p>
<p>Do let us know if you are facing any issue with any step, our team will get back to you, to help with installation.</p>
<p>&nbsp;</p>
<p><strong id="step5">References:</strong></p>
<ul>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/559-raspberry-pi-compatible-usb-gamepad.html" target="_blank">Buy Raspberry Pi Compatible Gamepad</a></li>
<li><a href="https://github.com/retropie/retropie-setup/wiki/Updating-RetroPie" target="_blank">Updating RetroPie</a></li>
<li><a href="https://github.com/retropie/retropie-setup/wiki/RetroArch-Configuration" target="_blank">RetroArch Configuration</a></li>
<li><a href="https://github.com/RetroPie/RetroPie-Setup/wiki/FAQ#where-did-the-desktop-go" target="_blank">FAQ</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/retropie-install-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="http://learn.edwinrobotics.com/wp-content/uploads/Basic-Install.mp4" length="298995" type="video/mp4" />
<enclosure url="http://learn.edwinrobotics.com/wp-content/uploads/ES-at-boot.mp4" length="878116" type="video/mp4" />

			</item>
		<item>
		<title>Retro Gaming Machine using Raspberry Pi</title>
		<link>https://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=retro-gaming-machine-using-raspberry-pi</link>
					<comments>https://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Thu, 12 Jan 2017 17:53:18 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1064</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />Missing the old classic games and your gaming consoles? No need to worry now, we are writing this tutorial for you only, if you have Raspberry pi lying around you, then get ready to turn it into a gaming machine. Before going further some of you may be confused with what Retrogaming is all about, for [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/cover-1.png 6000w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-1024x683.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/cover-1-140x94.png 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>Missing the old classic games and your gaming consoles? No need to worry now, we are writing this tutorial for you only, if you have Raspberry pi lying around you, then get ready to turn it into a gaming machine. Before going further some of you may be confused with what Retrogaming is all about, for those let us clear something, you might have seen people playing mario the popular classic game using older gaming consoles that is something which comes under retro games, Usually retrogaming is based upon systems that are obsolete or discontinued.</p>
<p>Here in this post what we are showing  &#8220;how to turn your Raspberry Pi into an retro gaming machine&#8221;, for this we are going to use RetroPie. RetroPie allows you to turn your Raspberry Pi or PC into a retro-gaming machine. It builds upon Raspbian, EmulationStation, RetroArch and many other projects to enable you to play your favourite Arcade, home-console, and classic PC games with the minimum set-up. For power users it also provides a large variety of configuration tools to customise the system as you want.</p>
<p>RetroPie sits on top of a full OS, you can install it on an existing Raspbian, or start with the RetroPie image and add additional software later. It&#8217;s up to you. You can follow our <a href="http://learn.edwinrobotics.com/retropie-install-guide/" target="_blank">RetroPie Installation guide</a> to install the RetroPie on an exsiting Raspbian or If you had bought our Raspberry Pi Gaming Kit, you can <a href="http://learn.edwinrobotics.com/retropie-install-guide/" target="_blank">refer this blog</a> to setup your RetroPie and Configure the Gamepad we provided.</p>
<p>&nbsp;</p>
<ul>
<li>
<h4><a href="#step1">Hardware Needed</a></h4>
</li>
<li>
<h4><a href="#step2">Installation</a></h4>
</li>
<li>
<h4><a href="#step3">Installing ROM</a></h4>
</li>
<li>
<h4><a href="#step4">Download ROM</a></h4>
</li>
<li>
<h4><a href="http://learn.edwinrobotics.com/retropie-install-guide/#step4" target="_blank">Configure Gamepad</a></h4>
</li>
<li>
<h4><a href="#step5">References</a></h4>
</li>
</ul>
<p>&nbsp;</p>
<h5 id="step1"><strong>Let us have a look at the hardware needed for this:</strong></h5>
<p>&nbsp;</p>
<ol>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/91-raspberry-pi-3.html" target="_blank">Raspberry Pi</a> (A, A+, B, B+, 2, Zero, or 3) &#8211; for best performance use a Raspberry Pi 3</li>
<li><a href="https://shop.edwinrobotics.com/power-supply/163-5v-3a-micro-usb-acdc-power-adapter-uk-plug-charger-supply.html" target="_blank">Power Supply</a></li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/87-16gb-microsd-card.html" target="_blank">SD Card</a></li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/160-official-raspberry-pi-case.html" target="_blank">Raspberry Pi official case- White</a> (Optional but recommended)</li>
<li>Keyboard*</li>
<li>Mouse*</li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/559-raspberry-pi-compatible-usb-gamepad.html" target="_blank">USB Joystick /GamePad</a>*</li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/71-wifi-module.html" target="_blank">Wifi Dongle</a> or Ethernet Cable (Wifi is built into the Pi 3)</li>
<li>Display/Monitor with HDMI Cable.</li>
</ol>
<p>* Either the keyboard and mouse or the USB Joystick/<a href="https://shop.edwinrobotics.com/raspberry-pi/559-raspberry-pi-compatible-usb-gamepad.html" target="_blank">GamePad</a> is require to be able to play</p>
<p>&nbsp;</p>
<p>You can straight away start with our <a href="https://shop.edwinrobotics.com/raspberry-pi/562-raspberry-pi-3-gaming-kit-black.html" target="_blank">Raspberry pi 3 Gaming Kit Black</a> or <a href="https://shop.edwinrobotics.com/raspberry-pi/561-raspberry-pi-3-gaming-kit-white.html" target="_blank">Raspberry Pi 3 Gaming Kit White</a>. If you having our Raspberry Pi Gaming Kit with you or you are looking for Configure our <a href="https://shop.edwinrobotics.com/raspberry-pi/559-raspberry-pi-compatible-usb-gamepad.html" target="_blank">Gamepad</a> alone, you can <a href="http://learn.edwinrobotics.com/retropie-install-guide/" target="_blank">refer this blog</a></p>
<p>&nbsp;</p>
<h5 id="step2"><strong>Installation</strong></h5>
<p>&nbsp;</p>
<p>Now once you are ready with the mentioned hardware, its time to setup your SD card with RetroPie, for this you need to download RetroPie OS. There are currently two versions of RetroPie. There is one version for Raspberry Pi 0/1 (Model A, A+, B, B+) and there is a version for Raspberry Pi 2/3.</p>
<blockquote><p>Download the SD image for your version of Raspberry Pi from the following page:</p>
<p><strong><a href="https://retropie.org.uk/download/" target="_blank">https://retropie.org.uk/download/</a></strong></p></blockquote>
<p>&nbsp;</p>
<p>If you are unsure which version of Raspberry Pi you have then look at the Silkscreen on the Raspberry Pi, its mentioned there or if you having one running raspberry pi with raspbian installed then there is an easy way to check:</p>
<p>Rpi 0/1= 1 raspberry when the pi boots up</p>
<p>Rpi 2/3= 4 raspberries when the pi boots up</p>
<p>The above mentioned things can be confirmed after you install the RetroPie on your Raspberry pi. If you get the error <code>Illegal Instruction</code> when it boots, you picked the wrong SD image.</p>
<p>&nbsp;</p>
<p>Once you have downloaded your SD card image you need to extract it using a program such as winrar or 7-Zip. You will extract the downloaded <strong>.gz</strong> file and the extracted file will be a <strong>.img</strong> file.</p>
<p>To extract from the command line, you can type the following into a Terminal window, placing X with version you downloaded:</p>
<p><code>gunzip retropie-4.X.X-rpi2_rpi3.img.gz</code></p>
<p>&nbsp;</p>
<p>To install the RetroPie SD image on your MicroSD card. (You may need a MicroSD card reader to plug it into your computer)</p>
<ol>
<li>For Windows you can use a program called <a href="http://sourceforge.net/projects/win32diskimager/" target="_blank">Win32DiskImager</a></li>
<li>For mac you can use <a href="http://www.tweaking4all.com/hardware/raspberry-pi/macosx-apple-pi-baker/" target="_blank">Apple Pi Baker</a></li>
<li>For Linux you can use <code>dd</code> command or <a href="https://etcher.io/" target="_blank">Etcher</a></li>
</ol>
<p><a href="http://learn.edwinrobotics.com/getting-started-with-the-raspberry-pi/" target="_blank">Refer this guide</a> to see how to install using Win32DiskImager.</p>
<h2></h2>
<p>Once you done with writing image to your SD card, you are ready to plug in the card to Raspberry Pi and Power it up.After your power the system you will see screen as follows:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Start-Screen.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-1083 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Start-Screen.png" width="1366" height="768" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Start-Screen.png 1366w, https://learn.edwinrobotics.com/wp-content/uploads/Start-Screen-300x169.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Start-Screen-1024x576.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></a></p>
<p>&nbsp;</p>
<p>Here you are able to configure your gamepad and keyboard key function, all you need to do is follow the onscreen command, the above shown screen will come during the first time setup only, otherwise, the system will boot retroPie EmulationStation( refer the image shown below), the configuration can be done at anytime as well, which is available in retroPie menu -&gt; Input options.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1082" src="http://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png" alt="" width="1274" height="711" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen.png 1274w, https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen-300x167.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Emulator-Screen-1024x571.png 1024w" sizes="auto, (max-width: 1274px) 100vw, 1274px" /></a></p>
<p>&nbsp;</p>
<p>Now what you can see in front of you is the EmulationStation, when you first see EmulationStation you may wonder why you don&#8217;t see systems like the SNES or Game Boy- worry not- they are installed on the system, roms just need to be added to their respective rom folders before they will become visible. Transferring roms are described in the following steps:</p>
<p>&nbsp;</p>
<h4 id="step3">Installing ROM</h4>
<p>&nbsp;</p>
<p>Due to the nature/complexity of Copyright/Intellectual Property Rights Law, which differs significantly from Country to Country, ROMs cannot be provided with RetroPie and must be provided by the user. You should only have ROMs of games that you own.</p>
<p>You can transfer the ROMs using USB or using SFTP . Refer the steps below to install using USB</p>
<ul>
<li>(ensure that your USB is formatted to FAT32 or NTFS)</li>
<li>first create a folder called <code>retropie</code> on your USB stick</li>
<li>plug it into the pi and wait for it to finish blinking</li>
<li>pull the USB out and plug it into a computer</li>
<li>add the roms to their respective folders (in the <code>retropie/roms</code> folder)</li>
<li>plug it back into the raspberry pi</li>
<li>wait for it to finish blinking</li>
<li>Refresh emulationstation by choosing restart emulationstation from the start menu</li>
</ul>
<p>&nbsp;</p>
<p>To transfer ROM using SFTP, follow the mentioned steps:</p>
<ul>
<li>Connect you Raspberry pi to network, connect ethernet cable to your pi for a wired network or you can use built in wifi for the Raspberry pi 3 or use wifi dongle for older Raspberry pi.</li>
<li>To connect your Raspberry pi with wifi, you need to boot the Raspberry Pi(except Raspberry pi 3) without the WiFi adapter plugged in.</li>
<li>Skip the Emulator screen which is shown in the emulator image by pressing F4 on keyboard then you will be directed to command line</li>
<li>Then enter followng command:<br />
<blockquote><p><span class="pln">sudo nano </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">network</span><span class="pun">/</span><span class="pln">interfaces</span></p></blockquote>
</li>
<li>Then you will see following file:</li>
</ul>
<blockquote><p><span class="kwd">auto</span><span class="pln"> lo</span></p>
<p><span class="pln"> </span></p>
<p><span class="pln">iface lo inet loopback</span></p>
<p><span class="pln">iface eth0 inet dhcp</span></p>
<p><span class="pln"> </span></p>
<p><span class="pln">allow</span><span class="pun">&#8211;</span><span class="pln">hotplug wlan0</span></p>
<p><span class="kwd">auto</span><span class="pln"> wlan0</span></p>
<p><span class="pln"> </span></p>
<p><span class="pln"> </span></p>
<p><span class="pln">iface wlan0 inet dhcp</span></p>
<p><span class="pln"> wpa</span><span class="pun">&#8211;</span><span class="pln">ssid </span><span class="str">&#8220;ssid&#8221;</span></p>
<p><span class="pln"> wpa</span><span class="pun">&#8211;</span><span class="pln">psk </span><span class="str">&#8220;password&#8221;</span></p></blockquote>
<ul>
<li>All you need to do is replace the ssid and password of your network and save the file and you will be connected to wifi automatically once you reboot the system.</li>
<li>The other way to connect  is to use the RetroPie EmulationStation itself, once you open the RetroPie you will see the option for wifi, all you need to do is enter the credentials.</li>
<li>Once connected note down the IP address of the System, you can find it in the same page where you find the Wifi option in the EmulationStation.</li>
<li>There are many SFTP programs out there, for windows many people use <a href="https://winscp.net/eng/download.php" target="_blank">WinSCP</a> and for mac you can use something like <a href="https://cyberduck.io/?l=en" target="_blank">Cyberduck</a></li>
<li>We will show you how to install using WinSCP, first install WinSCP and enter the following credentials in the Login Window:</li>
</ul>
<blockquote><p>Host Name: Your IP Address</p>
<p>User name: pi</p>
<p>Password: raspberry</p></blockquote>
<p>&nbsp;</p>
<p><a href="http://cdn.learn.edwinrobotics.com/wp-content/uploads/WINSCP.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-654 size-full" src="http://cdn.learn.edwinrobotics.com/wp-content/uploads/WINSCP.png" sizes="auto, (max-width: 1075px) 100vw, 1075px" srcset="http://cdn.learn.edwinrobotics.com/wp-content/uploads/WINSCP.png 1075w, http://cdn.learn.edwinrobotics.com/wp-content/uploads/WINSCP-300x193.png 300w, http://cdn.learn.edwinrobotics.com/wp-content/uploads/WINSCP-1024x659.png 1024w" alt="WINSCP" width="1075" height="692" /></a></p>
<p>&nbsp;</p>
<p>Once you are logged in successfully, you can see two windows, one window as your computer files explorer and the second window is of RetroPie files explorer, you just need to upload the files from your computer to the RetroPie -&gt; ROM -&gt; Emulator(for the Respective ROM you having) directory. Refer the sample video below for the demonstration we did to transfer one configuration file from windows system to other System.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe loading="lazy" src="https://www.youtube.com/embed/XLIkHAGAXpw?feature=oembed" width="500" height="375" frameborder="0" allowfullscreen="allowfullscreen" data-mce-fragment="1"></iframe></p>
<p>&nbsp;</p>
<h3></h3>
<h3 id="step4">Download ROM</h3>
<p>&nbsp;</p>
<p>If you don&#8217;t have any ROMs with you, <a href="http://coolrom.com/roms/" target="_blank">download some from here</a></p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/CoolROms.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1091" src="http://learn.edwinrobotics.com/wp-content/uploads/CoolROms.jpg" alt="" width="984" height="726" srcset="https://learn.edwinrobotics.com/wp-content/uploads/CoolROms.jpg 984w, https://learn.edwinrobotics.com/wp-content/uploads/CoolROms-300x221.jpg 300w" sizes="auto, (max-width: 984px) 100vw, 984px" /></a></p>
<p>&nbsp;</p>
<p>You can see that games for various emulators are provided in the website, you can download any game for the supported emulators you needed. Refer <a href="https://github.com/retropie/retropie-setup/wiki/Supported-Systems" target="_blank">this link</a> to see the list of supported systems/Emulators for RetroPie. Now follow the steps below:</p>
<ul>
<li>For initial test open the Atari2600 Emulator and there you can see a list of games, download anyone game as per your interest.</li>
<li>Once downloaded extract the files to some known location like your computer desktop. once done you can see one file in the desktop with .A26 Extension</li>
<li>Now open your WinSCP and connect with RetroPie</li>
<li>Once connected, open the rom folder under RetroPie</li>
<li>Open the Atari2600 folder mentioned under rom directory</li>
<li>Copy the file from your computer desktop to the Atari2600 Folder.</li>
<li>Now all you need to do is disconnect the WinSCP and restart your RetroPie and you are ready to play your game.</li>
</ul>
<p>&nbsp;</p>
<p>Before playing make sure, you had configured your gamepad/Keyboard, for reference check this <a href="https://github.com/retropie/retropie-setup/wiki/First-Installation" target="_blank">installation guide</a> and check out the key Maps for the gamepad. Hope you had enjoyed this tutorial, we love to hear from you.</p>
<p>Stay tuned for our brand new RetroPie Starter Kit for Raspberry Pi, which will be launched soon.</p>
<p>&nbsp;</p>
<h3 id="step5">References:</h3>
<ul>
<li><a href="http://learn.edwinrobotics.com/retropie-install-guide/" target="_blank">RetroPie Install Guide</a></li>
<li><a href="https://retropie.org.uk/" target="_blank">retropie.org</a></li>
<li><a href="https://retropie.org.uk/download/" target="_blank">Retropie Download</a></li>
<li><a href="https://en.wikipedia.org/wiki/Retrogaming" target="_blank">Wikipedia</a></li>
<li><a href="https://www.youtube.com/watch?v=xvYX_7iRRI0" target="_blank">Beginner Installation video</a></li>
<li><a href="https://github.com/retropie/retropie-setup/wiki/Supported-Systems" target="_blank">RetroPie Supported Systems/ Emulators</a></li>
<li><a href="http://coolrom.com/roms/" target="_blank">ROMs</a></li>
<li><a href="https://github.com/retropie/retropie-setup/wiki/First-Installation" target="_blank">Github</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/retro-gaming-machine-using-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Raspberry Pi starter Kit Buying Guide</title>
		<link>https://learn.edwinrobotics.com/raspberry-pi-starter-kit-buying-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-starter-kit-buying-guide</link>
					<comments>https://learn.edwinrobotics.com/raspberry-pi-starter-kit-buying-guide/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Sun, 18 Sep 2016 14:29:02 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=841</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-768x512.jpg 768w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />Confused with which Raspberry pi starter kit to go for ? Don&#8217;t worry, we came with this selection guide to select the starter kit as per your need. If you had visited our store, you may seen that we have variety of starter kit in our store and there are chances that you may get [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035.jpg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-768x512.jpg 768w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/2015/08/DSC_0035-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>Confused with which Raspberry pi starter kit to go for ? Don&#8217;t worry, we came with this selection guide to select the starter kit as per your need. If you had visited our store, you may seen that we have variety of starter kit in our store and there are chances that you may get confused with, what are difference between these starter kit?</p>
<p>&nbsp;</p>
<p>This guide is mainly focused on Raspberry Pi starter kit on the Edwin Robotics Online store, let us show you what are the different starter kit we have in the store:</p>
<ul>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/355-raspberry-pi-zero-budget-pack-includes-pi-zero-v13.html" target="_blank">Raspberry Pi Zero Budget Pack &#8211; Includes Pi Zero v1.3</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/347-raspberry-pi-3-media-center-kit-white.html" target="_blank">Raspberry Pi 3 Media Center Kit &#8211; White</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/349-raspberry-pi-3-media-center-kit-black.html" target="_blank">Raspberry Pi 3 Media Center Kit &#8211; Black</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/346-raspberry-pi-3-starter-kit-white.html" target="_blank">Raspberry Pi 3 Starter Kit &#8211; White</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/345-raspberry-pi-3-starter-kit-black.html" target="_blank">Raspberry Pi 3 Starter Kit &#8211; Black</a></h4>
</li>
</ul>
<p>These are the kit we offer for the Raspberry Pi. Let us see what are the differences between these kits:</p>
<blockquote>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/355-raspberry-pi-zero-budget-pack-includes-pi-zero-v13.html" target="_blank">Raspberry Pi Zero Budget Pack &#8211; Includes Pi Zero v1.3</a></h4>
<p>This is the only kit we offer for the Raspberry Pi zero. Users who are willing to build projects using Raspberry Pi Zero, this budget pack is best suitable to start with. The Kit consist of following items:</p>
<ul>
<li><strong><a href="https://www.raspberrypi.org/products/pi-zero/" target="_blank">Raspberry Pi Zero</a></strong> &#8211; the type of low cost game-changing product Raspberry Pi&#8217;s known for &#8211; a super light, super lean microcomputer</li>
<li><strong><a href="https://www.adafruit.com/products/2819" target="_blank">Mini HDMI to HDMI Adapter</a> &#8211; </strong>Will let you convert the little port on the Zero to a standard sized HDMI jack. You can get 1080P HDMI video + audio out of this little computer!</li>
<li><strong><a href="https://www.adafruit.com/products/1099" target="_blank">USB OTG Cable</a> &#8211; </strong>Lets you plug in a normal USB device such as WiFi dongle, USB hub, keyboard, mouse, etc into the Zero.</li>
<li><strong><a href="https://www.adafruit.com/product/2692">8</a><a href="https://www.adafruit.com/product/2692" target="_blank">GB Class 10 SD Card</a> </strong>&#8211; A SD card that&#8217;s perfect for burning Raspbian Jessie for the Pi Zero</li>
<li><strong><a href="https://www.adafruit.com/product/501" target="_blank">5V 1A Power Supply</a></strong> &amp; <strong><a href="https://www.adafruit.com/product/592" target="_blank">USB A/Micro B Cable</a> </strong>Or<strong> <a href="http://www.adafruit.com/product/1995" target="_blank">5V 2A Power Supply w/ Micro USB Cable</a> </strong>&#8211; the best way to power up your Pi Zero with a stable 5V power supply that wont vary or sag.</li>
<li><strong><a href="https://www.adafruit.com/products/2822" target="_blank">2&#215;20 Male header strip</a></strong> &#8211; Solder this in to plug in Pi HATs, GPIO cables, etc as you would into a normal Pi.</li>
</ul>
</blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now, leaving aside Raspberry Pi zero, we have four varieties of kit available for Raspberry Pi 3, Refer the below table to check the contents under each kit:</p>
<p>&nbsp;</p>

<table id="tablepress-2" class="tablepress tablepress-id-2">
<thead>
<tr class="row-1">
	<td class="column-1"></td><th class="column-2"><h4 align="center">RetroPie Gaming Kit Black/White</h4></th><th class="column-3"><h4 align="center">Starter Kit Black/White</h4></th><th class="column-4"><h4 align="center">Media Center Kit Black/White</h4></th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1"><h5 align="center"><b> Raspberry Pi 3</b></h5></td><td class="column-2"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-3"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-4"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td>
</tr>
<tr class="row-3">
	<td class="column-1"><h5 align="center"><b>5V 3A Power Adapter</b></h5></td><td class="column-2"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-3"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-4"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td>
</tr>
<tr class="row-4">
	<td class="column-1"><h5 align="center"><b>Official Case</b></h5><br />
</td><td class="column-2"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-3"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-4"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td>
</tr>
<tr class="row-5">
	<td class="column-1"><h5 align="center"><b>USB Game Controller</b></h5><br />
</td><td class="column-2"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-3"><center><a href="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1146" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Cut.png 2000w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-184x184.png 184w" sizes="(max-width: 2000px) 100vw, 2000px" /></a></center></td><td class="column-4"><center><a href="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1146" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Cut.png 2000w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-184x184.png 184w" sizes="(max-width: 2000px) 100vw, 2000px" /></a></center></td>
</tr>
<tr class="row-6">
	<td class="column-1"><h5 align="center"><b>Heat Sink</b></h5></td><td class="column-2"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-3"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td><td class="column-4"><center><a href="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1146" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Cut.png 2000w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-184x184.png 184w" sizes="(max-width: 2000px) 100vw, 2000px" /></a></center></td>
</tr>
<tr class="row-7">
	<td class="column-1"><h5 align="center"><b>Mini IR Remote</b></h5><br />
</td><td class="column-2"><center><a href="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1146" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Cut.png 2000w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-184x184.png 184w" sizes="(max-width: 2000px) 100vw, 2000px" /></a></center></td><td class="column-3"><center><a href="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Cut.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1146" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Cut.png 2000w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Cut-184x184.png 184w" sizes="(max-width: 2000px) 100vw, 2000px" /></a></center></td><td class="column-4"><center><a  href="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png"><img decoding="async" src="http://learn.edwinrobotics.com/wp-content/uploads/Tick.png" alt="" width="20" height=auto class="alignnone size-full wp-image-1147" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Tick.png 600w, https://learn.edwinrobotics.com/wp-content/uploads/Tick-300x278.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></center></td>
</tr>
<tr class="row-8">
	<td class="column-1"><h5 align="center"><b>microSD card (16GB, Class 10 )</b></h5><br />
</td><td class="column-2"><h5 align="center">OSMC</h5><br />
</td><td class="column-3"><h5 align="center">Raspbian</h5></td><td class="column-4"><h5 align="center">Raspbian</h5></td>
</tr>
</tbody>
</table>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Refer the following points to be noted from the table</p>
<ul>
<li>Raspberry Pi 3 is common in all the kits</li>
<li>5v, 3A power supply Adapter is common in all the Kits</li>
<li>Official black case are highlighted black. Same black case is available in both the kits</li>
<li>Same Official White case is available in both the kits</li>
<li>Media center Kit comes with IR Remote and receiver, whereas Starter kit comes with Heat sink for the Raspberry Pi 3</li>
<li>Media Center Kit is loaded with Open source media center configured for the IR remote we providing.</li>
<li>Starter Kit is loaded with latest Raspbian OS with default firmware updates.</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thus, the Media center Kit and Starter Kit comes with two different OS for different purposes. If you are looking to dedicate your Raspberry pi for music, videos, movies, internet, then we will recommend you to go for media center kit which is loaded with <strong>OSMC</strong>, <a href="https://osmc.tv/about/" target="_blank">OSMC (Open Source Media Center)</a> is a free and open source media player based on Linux. OSMC is the leading media center in terms of feature set and community and is based on the <a href="http://kodi.tv/">Kodi</a> project. Refer our <a href="http://learn.edwinrobotics.com/raspberry-pi-media-center/" target="_blank">blog on Media center</a> for better idea on OSMC capabilities.</p>
<p>If you are looking to build some projects using raspberry Pi, sensors and I/O devices, then use our Raspberry pi starter kit, which is loaded with <strong>Raspbian</strong>, Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware, it comes with over 35,000 packages, pre-compiled software bundled in a nice format for easy installation on your Raspberry Pi.<br />
We hope, now things are more clear to you. Click the links below to order kit based on your requirement:</p>
<ul>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/355-raspberry-pi-zero-budget-pack-includes-pi-zero-v13.html" target="_blank">Raspberry Pi Zero Budget Pack &#8211; Includes Pi Zero v1.3</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/347-raspberry-pi-3-media-center-kit-white.html" target="_blank">Raspberry Pi 3 Media Center Kit &#8211; White</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/349-raspberry-pi-3-media-center-kit-black.html" target="_blank">Raspberry Pi 3 Media Center Kit &#8211; Black</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/346-raspberry-pi-3-starter-kit-white.html" target="_blank">Raspberry Pi 3 Starter Kit &#8211; White</a></h4>
</li>
<li>
<h4><a href="https://shop.edwinrobotics.com/raspberry-pi/345-raspberry-pi-3-starter-kit-black.html" target="_blank">Raspberry Pi 3 Starter Kit &#8211; Black</a></h4>
</li>
</ul>
<p>&nbsp;</p>
<p>If you are willing to order one customized kit as per you requirement, <a href="https://shop.edwinrobotics.com/index.php?controller=contact" target="_blank">Contact us</a> with your requirements.  we will get back to you as early as possible.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/raspberry-pi-starter-kit-buying-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>230v/110v AC Mains Detection Module Hookup Guide</title>
		<link>https://learn.edwinrobotics.com/230v110v-ac-mains-detection-using-arduino-raspberry-pi-and-esp8266-thing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=230v110v-ac-mains-detection-using-arduino-raspberry-pi-and-esp8266-thing</link>
					<comments>https://learn.edwinrobotics.com/230v110v-ac-mains-detection-using-arduino-raspberry-pi-and-esp8266-thing/#comments</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Mon, 29 Aug 2016 14:43:22 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Home Appliance]]></category>
		<category><![CDATA[IOT]]></category>
		<category><![CDATA[Particle Photon]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Wireless]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=692</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2.jpg" class="attachment- size- wp-post-image" alt="AC Line detector using optocoupler" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />Want to check if you left your lights ON remotely, need to detect the zero crossing point for your dimming circuit or do you just need to interface a 230V signal to your Arduino? The AC Mains Detector board simplifies interfacing high voltage signals by giving a digital output when an AC voltage is detected. [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2.jpg" class="attachment- size- wp-post-image" alt="AC Line detector using optocoupler" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-1080x720.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Isometric-2-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>Want to check if you left your lights ON remotely, need to detect the zero crossing point for your dimming circuit or do you just need to interface a 230V signal to your Arduino? The AC Mains Detector board simplifies interfacing high voltage signals by giving a digital output when an AC voltage is detected. By disabling the on board capacitor, zero crossing detection is possible as well.</p>
<div id="attachment_2054" style="width: 510px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/sensors/960-ac-line-detection-module.html" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2054" class="wp-image-2054" src="http://learn.edwinrobotics.com/wp-content/uploads/Iso.jpg" alt="AC line detection using optocoupler, diode and rectifer" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Iso.jpg 1500w, https://learn.edwinrobotics.com/wp-content/uploads/Iso-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Iso-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Iso-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Iso-1080x1080.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/Iso-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-2054" class="wp-caption-text"><em>AC Line detection Module</em></p></div>
<p>You can buy this item from the following links:</p>
<p><strong>Within GCC</strong>: <a href="https://shop.edwinrobotics.com/sensors/960-ac-mains-zero-crossing-detection-module.html" target="_blank" rel="noopener">Edwin Robotics</a></p>
<p><strong>International Order</strong>: <a href="https://www.tindie.com/products/edwinrobotics/ac-mains-zero-crossing-detector/" target="_blank" rel="noopener">Tindie</a></p>
<p><a href="https://www.tindie.com/stores/edwinrobotics/?ref=offsite_badges&amp;utm_source=sellers_edwinrobotics&amp;utm_medium=badges&amp;utm_campaign=badge_medium"><img loading="lazy" decoding="async" src="https://d2ss6ovg47m0r5.cloudfront.net/badges/tindie-mediums.png" alt="I sell on Tindie" width="150" height="78" /></a></p>
<p>Let us have a look at the guide contents, refer to the list below:</p>
<ul>
<li>
<h4><a href="#Step1">Components</a></h4>
</li>
<li>
<h4><a href="#Step8">Board Pinouts</a></h4>
</li>
<li>
<h4><a href="#Step2">Circuit Schematics </a></h4>
</li>
<li>
<h4><a href="#Step4">Interfacing with Arduino</a></h4>
</li>
<li>
<h4><a href="#Step7">Zero Crossing detection using Arduino</a></h4>
</li>
</ul>
<p>&nbsp;</p>
<h1 id="Step1"><strong>Components</strong></h1>

<table id="tablepress-24" class="tablepress tablepress-id-24">
<tbody>
<tr class="row-1">
	<td class="column-1"><div id="attachment_2055" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/sensors/960-ac-line-detection-module.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2055" src="http://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-150x150.jpg" alt="AC LINE MONITOR LOGIC-OUT MODULE" width="150" height="150" class="size-thumbnail wp-image-2055" srcset="https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-1080x1080.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/AC-Line-Detector_Side.jpg 1300w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-2055" class="wp-caption-text">AC Line detection Module</p></div></td><td class="column-2"><div id="attachment_241" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/boards/75-arduino-uno-r3.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-241" src="http://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-150x150.jpg" alt="Arduino UNO Microcontroller board" width="150" height="150" class="size-thumbnail wp-image-241" srcset="https://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/2016/05/UNO-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-241" class="wp-caption-text">Arduino UNO</p></div></td><td class="column-3"><div id="attachment_1571" style="width: 160px" class="wp-caption aligncenter"><a href="https://shop.edwinrobotics.com/prototyping/19-male-female-jumper-wires-pack-of-10.html"target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1571" src="http://learn.edwinrobotics.com/wp-content/uploads/179-2-150x150.jpg" alt="Arduino Jumper wires" width="150" height="150" class="size-thumbnail wp-image-1571" srcset="https://learn.edwinrobotics.com/wp-content/uploads/179-2-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/179-2-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/179-2-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/179-2.jpg 600w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1571" class="wp-caption-text">Male-Female Jumper wires</p></div></td>
</tr>
</tbody>
</table>
<!-- #tablepress-24 from cache -->
<p>&nbsp;</p>
<h1 id="Step8"><strong>Board Pinouts</strong></h1>

<table id="tablepress-25" class="tablepress tablepress-id-25">
<tbody>
<tr class="row-1">
	<td class="column-1"><div id="attachment_2066" style="width: 310px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2066" src="http://learn.edwinrobotics.com/wp-content/uploads/PCB-TOP-Pins-300x300.jpg" alt="AC Detection Board for industrial application" width="300" height="300" class="size-medium wp-image-2066" srcset="https://learn.edwinrobotics.com/wp-content/uploads/PCB-TOP-Pins-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/PCB-TOP-Pins-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/PCB-TOP-Pins-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/PCB-TOP-Pins.jpg 1000w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p id="caption-attachment-2066" class="wp-caption-text">Top Side</p></div></td><td class="column-2"><div id="attachment_2092" style="width: 310px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2092" src="http://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper-300x300.jpg" alt="AC mains zero crossing detection" width="300" height="300" class="size-medium wp-image-2092" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/Bottom-jumper.jpg 1000w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2092" class="wp-caption-text">Bottom Side</p></div></td>
</tr>
</tbody>
</table>
<!-- #tablepress-25 from cache -->
<ul>
<li><strong>AC-IN &#8211; </strong>Connect the AC line that needs to be detected here.</li>
<li><strong>&#8211;</strong> (negative sign) &#8211; Connect to ground of microcontroller</li>
<li><strong>+</strong> (positive sign) &#8211; Connect to VCC of microcontroller <strong>in case external pull-up is required</strong></li>
<li><strong>S</strong> &#8211; Connect to a digital/interrupt pin of microcontroller</li>
</ul>
<p><strong>Note: Working with AC voltages is DANGEROUS, care must be taken to prevent any short circuits or mistakes in connection. And as always, you are doing this project at your own risk and Edwin Robotics or the Author cannot be held liable for any damages.</strong></p>
<p>&nbsp;</p>
<h1 id="Step2"><strong>Circuit Schematics</strong></h1>
<p>The circuit consists of two main parts, first is the Bridge Rectifier (DB107) which converts the AC signal to DC and the second is the Optocoupler (LTV816), which provides isolation between High voltage(HV) side and Low Voltage (LV) Side.<a href="http://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2115" src="http://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated.png" alt="AC line Detection Schematics and Circuit" width="1121" height="275" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated.png 1121w, https://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated-300x74.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated-1024x251.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Schematics_LTV816_updated-1080x265.png 1080w" sizes="auto, (max-width: 1121px) 100vw, 1121px" /></a></p>
<p>&nbsp;</p>
<p>A pull-up resistor is provided for use with microcontrollers (e.g. ESP8266) that do not have an internal pullup resistor.</p>
<p>&nbsp;</p>
<h1 id="Step4"><strong>Interfacing with Arduino</strong></h1>
<p>The hardware connections are pretty straightforward. On the low voltage side the + (positive symbol) goes to VCC of microcontroller, &#8211; (negative symbol) goes to GND and S goes any digital/interrupt pin. On the high voltage side, the AC lines are connected.</p>
<div id="attachment_2078" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2078" class="wp-image-2078" src="http://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino.jpg" alt="AC Line detection using arduino" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino.jpg 1300w, https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino-1080x1080.jpg 1080w, https://learn.edwinrobotics.com/wp-content/uploads/PCB_Arduino-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-2078" class="wp-caption-text"><em>Arduino Connections</em></p></div>
<p>In this example, Pin 2 on the arduino is used in this example as it can be used as an interrupt pin as well.</p>
<p>Sample Code:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="c" data-enlighter-theme="atomic">#define Signal_Pin 2  // Modify this pin as per your connection

void setup() {
  pinMode(Signal_Pin , INPUT_PULLUP);
  Serial.begin(9600);
}

void loop() {
  if ( digitalRead(Signal_Pin) == 0 )
    Serial.println (" AC Mains 230v Detected ");
}
</pre>
<p>&nbsp;</p>
<p><strong>Note: Do not touch the PCB once powered, you can get electrocuted. Keep it away from reach of humans/Animals. Make sure that there are no shorted wires, when connecting the 230v AC mains supply.</strong></p>
<p>&nbsp;</p>
<h1 id="Step7"><strong>Zero Crossing Detection using Arduino</strong></h1>
<p>By default zero crossing detection is disabled by the use of a 2.2uF capacitor, in order to use the board for zero crossing detection the capacitor needs to be bypassed by cutting the trace shown below. It can be resoldered at any time later to disable zero crossing:</p>
<div id="attachment_2072" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2072" class="wp-image-2072" src="http://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB.jpg" alt="Zero crossing detection using AC line detector module" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB.jpg 1000w, https://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/zero-Crossing-PCB-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-2072" class="wp-caption-text"><em>Modify the jumper</em></p></div>
<p>The Arduino connection will be same as before, upload the following code and view the output on Serial Monitor at 9600 baud rate:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="cpp" data-enlighter-theme="atomic">#define Signal_Pin 2 //Use Arduino Pin 2 or pin 3, both supports hardware interrupt
int counter=0;

void setup()
{
  pinMode(Signal_Pin , INPUT_PULLUP);
  Serial.begin(9600);
  attachInterrupt(0, zero_crosss_int, RISING);  // Choose the zero cross interrupt # from the table above
}

void zero_crosss_int()  // function to be fired at the zero crossing to dim the light
{
  counter++;
}

void loop()
{
  Serial.println(counter);
}
</pre>
<p>&nbsp;</p>
<p>You can see that the counter value increases with every cycle of AC line and the moment you turn off the AC line, the counter Stops as well.</p>
<p>&nbsp;</p>
<h1><strong>References:</strong></h1>
<ul>
<li><a href="http://www.rectron.com/data_sheets/db101-107.pdf" target="_blank" rel="noopener">DB107 Rectifier Datasheet</a></li>
<li><a href="http://datasheet.octopart.com/LTV-816S-Lite-On-datasheet-26684805.pdf" target="_blank" rel="noopener">LTV-816 Datasheet</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/230v110v-ac-mains-detection-using-arduino-raspberry-pi-and-esp8266-thing/feed/</wfw:commentRss>
			<slash:comments>54</slash:comments>
		
		
			</item>
		<item>
		<title>Raspberry Pi Media Center</title>
		<link>https://learn.edwinrobotics.com/raspberry-pi-media-center/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-media-center</link>
					<comments>https://learn.edwinrobotics.com/raspberry-pi-media-center/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Wed, 10 Aug 2016 17:01:59 +0000</pubDate>
				<category><![CDATA[Media Center]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=626</guid>

					<description><![CDATA[<img width="1024" height="683" src="https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover-140x94.png 140w" sizes="auto, (max-width: 1024px) 100vw, 1024px" />&#160; Have you ever felt that, you need a dedicated Media center to take your entertainment to next level. Then try our Media Center Kit, this guide will help you to set up your own media center, also we have added guide in the section below to control this media center using any IR remote and playing and controlling photos and videos from your smart [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="1024" height="683" src="https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover.png" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover-300x200.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Blog-Cover-140x94.png 140w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>&nbsp;</p>
<p>Have you ever felt that, you need a dedicated Media center to take your entertainment to next level. Then try our <a href="https://shop.edwinrobotics.com/raspberry-pi/347-raspberry-pi-3-media-center-kit-white.html" target="_blank" rel="noopener">Media Center Kit</a>, this guide will help you to set up your own media center, also we have added guide in the section below to control this media center using any IR remote and playing and controlling photos and videos from your smart phones.</p>
<p>&nbsp;</p>
<p>This Media Center allows you to view free digital TV Shows, Music, Sports and much more direct from the Internet. You can play any of your unencrypted digital movies and music from USB storage devices or connecting to your network drives. You can stream movies, and manage your media library, all with full iOS and Android compatibility.</p>
<p>&nbsp;</p>
<p>The SD card is loaded with OSMC, <a href="https://osmc.tv/about/" target="_blank" rel="noopener">OSMC (Open Source Media Center)</a> is a free and open source media player based on Linux. OSMC is the leading media center in terms of feature set and community and is based on the <a href="http://kodi.tv/" target="_blank" rel="noopener">Kodi</a> project. OSMC can play all major media formats out there and supports a variety of sharing protocols so you’re guaranteed to be able to stream from other devices. OSMC can stream media and serve files to other devices as well. It looks fantastic,<br />
a great deal of love and care has been put in to engineering OSMC to be the best media center out there. OSMC’s look and feel is no exception. OSMC is more than just a media center, it’s an experience. Don’t take our word for it though. Give it a spin!</p>
<p>&nbsp;</p>
<p>Let us have a look at the guide contents, refer to the list below:</p>
<ul>
<li>
<h4><a href="#Step1">Package Contents</a></h4>
</li>
<li>
<h4><a href="#Step2">Hardware Connections </a></h4>
</li>
<li>
<h4><a href="#Step3">Setting up Network Connections </a></h4>
</li>
<li>
<h4><a href="#Step4">IR Remote Configuration</a></h4>
</li>
<li>
<h4><a href="#Step5">Playing photos and videos from smart phone</a></h4>
</li>
<li>
<h4><a href="#step10">Using Kore/Yatse as OSMC remote</a></h4>
</li>
<li>
<h4><a href="https://drive.google.com/file/d/0BzmrQ1bTvperTktaak1uT2ctNUU/view?usp=sharing" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?hl=en&amp;q=https://docs.google.com/document/d/1XEcimqEAaiVWEvLO6_Ae0ObgLZCrx6M4FEKIfRAjSjY/edit?usp%3Dsharing&amp;source=gmail&amp;ust=1501592703419000&amp;usg=AFQjCNEeRG95hcoUdY7rF3cIvgmgK7DERw">Raspberry Pi Media Center Installation Manual</a></h4>
</li>
</ul>
<p>&nbsp;</p>
<h1 id="Step1" style="text-align: left;"><strong>Package Contents</strong></h1>
<p>&nbsp;</p>
<ul>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/91-raspberry-pi-3.html" target="_blank" rel="noopener">Raspberry Pi 3</a></li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/160-official-raspberry-pi-case.html" target="_blank" rel="noopener">Official Raspberry Pi Case</a></li>
<li><a href="https://shop.edwinrobotics.com/raspberry-pi/89-rpi-os-microsd-card.html#/36-update-default/37-firmware_updates-default/50-capacity-16gb/47-os-open_source_media_center_osmc" target="_blank" rel="noopener">SD Card with OS</a></li>
<li><a href="https://shop.edwinrobotics.com/power-supply/163-5v-3a-micro-usb-acdc-power-adapter-uk-plug-charger-supply.html" target="_blank" rel="noopener">Power Supply 3A</a></li>
<li><a href="https://shop.edwinrobotics.com/wireless/164-mini-ir-remote-control-and-receiver.html" target="_blank" rel="noopener">Mini IR Remote Control</a></li>
</ul>
<p>One more variant of the mentioned kit is available, <a href="https://shop.edwinrobotics.com/raspberry-pi/349-raspberry-pi-3-media-center-kit-black.html" target="_blank" rel="noopener">check it out here</a>. The only difference between the two is the Raspberry Pi official Case. One kit comes with Grey-black case and the other kit comes with white case.</p>
<p>&nbsp;</p>
<h1 id="Step2"><strong>Hardware Connections</strong></h1>
<p>&nbsp;</p>
<p>The connections are really simple, we had provided all the parts and accessories to get it running. you need to connect following two things to start with media center:</p>
<ol>
<li>HDMI Cable</li>
<li><a href="https://shop.edwinrobotics.com/power-supply/163-5v-3a-micro-usb-acdc-power-adapter-uk-plug-charger-supply.html" target="_blank" rel="noopener">Power Supply 3A</a></li>
</ol>
<p>The HDMI cable from the TV / Monitor/ Display must be connected to the Raspberry Pi HDMI Port in order to see the display. Once you done connecting your HDMI, plug in the SD card we provided and then connect the power supply cable to the micro USB port. Refer the Image below for better idea.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_cpc_01-1024x691.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-634 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_cpc_01-1024x691.jpg" alt="raspberry_pi_3_cpc_01-1024x691" width="1024" height="691" srcset="https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_cpc_01-1024x691.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_cpc_01-1024x691-300x202.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_cpc_01-1024x691-140x94.jpg 140w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<p>Once you done with connecting the power adapter and HDMI cable, you need to either connect the USB keyboard/Mouse to the USB port or connect the IR remote receiver we provided in the kit before powering up the device. No need to add or install any drivers or configuration file, all you need to do is to connect hardware properly. Follow the below image to connect your IR Receiver to the Raspberry Pi.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_-Remote.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-645 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_-Remote.jpg" alt="raspberry_pi_3_-Remote" width="1300" height="1100" srcset="https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_-Remote.jpg 1300w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_-Remote-300x254.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/raspberry_pi_3_-Remote-1024x866.jpg 1024w" sizes="auto, (max-width: 1300px) 100vw, 1300px" /></a></p>
<p>&nbsp;</p>
<p>Once you done with above mentioned connections, you are ready to go, now you are able to control your media Center just using the IR remote we Provided. Refer the Key functions in the image below, you are free to modify these key functions, we will show you how to modify these key functions at later stage.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Remote-functions.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-646 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Remote-functions.jpg" alt="Remote-functions" width="5906" height="4134" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Remote-functions.jpg 5906w, https://learn.edwinrobotics.com/wp-content/uploads/Remote-functions-300x210.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Remote-functions-1024x717.jpg 1024w" sizes="auto, (max-width: 5906px) 100vw, 5906px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>By default the OSMC outputs the audio through HDMI cable itself, thus there is no need to connect any other cables or wires for the audio, but in case you need to connect your headphones or speakers, you need to connect 3.5mm audio cable to the audio jack. The Audio Jack is present next to the HDMI port. We had set the default audio output option as HDMI and Analog, thus you are able to listen audio from HDMI as well as audio jack at the same time, you are able to change and modify these audio settings anytime. you can find these settings under:</p>
<p>&nbsp;</p>
<blockquote><p>System Settings  -&gt;  System  -&gt;  Audio output</p></blockquote>
<p>&nbsp;</p>
<p>Once you open the mentioned tab, you are able to see the page as shown in the image below. This page refers to audio settings, which you can modify as per your requirements.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-637 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1.png" alt="Audio Settings OSMC" width="1600" height="1200" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1-300x225.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1-1024x768.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-1-640x480.png 640w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></a></p>
<p>&nbsp;</p>
<p>We had set the OSMC skin as default, if you are using the same skin, you can see the same as shown in the above image, but if you had modified the Skin from OSMC to confluence then you can see the same window as shown in the image below.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-636 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2.png" alt="Audio Settings Confluence" width="1600" height="1200" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2-300x225.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2-1024x768.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Audio-Settings-2-640x480.png 640w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h1 id="Step3"><strong>Setting up Network Connections</strong></h1>
<p>&nbsp;</p>
<p>The OSMC comes with Network Interface GUI, where you are able to change the settings for multiple network related devices. All you need to do is open the following path in the OSMC</p>
<p>&nbsp;</p>
<blockquote><p>My OSMC  -&gt;  Network</p></blockquote>
<p>&nbsp;</p>
<p>Refer the video below for the same:</p>
<p><iframe loading="lazy" title="OSMC Network Setup" width="500" height="375" src="https://www.youtube.com/embed/udWzdUGLBbs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you look at the available options, you can see following options:</p>
<ul>
<li>Wired</li>
<li>Wireless</li>
<li>Bluetooth</li>
<li>Tethering</li>
<li>MySQL</li>
</ul>
<p>Under each tab you can see the enable and disable keys and you can use connect and disconnect to make connectivity with any of the Wifi access point or Bluetooth devices or even you are able to set the Pi as hotspot too under the tethering tab. The GUI is so simple and easy to understand, you will hardly face any issue connecting the media center to your network. Make Sure that you enable the adapter under the Wired tab, if you are using Ethernet cable for network connectivity.</p>
<p>&nbsp;</p>
<h1 id="Step4" style="text-align: left;"><strong>IR Remote Configuration</strong></h1>
<p>&nbsp;</p>
<p>This section will help you to add new IR configuration to the OSMC. Right now we had configured the OSMC with the remote we provided but you are able to use any IR remote around you to control the media center, all you need is to add the configuration file to the OSMC system and set that configuration file as preferred file for IR remote.</p>
<p>Since OSMC is Linux based, we are going to use  <a href="http://www.lirc.org/" target="_blank" rel="noopener">LIRC</a><span class="Apple-converted-space">  </span>&#8220;Linux Infrared Remote Control&#8221;, LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls. Under this we are going to use <a href="http://www.lirc.org/html/lircd.html" target="_blank" rel="noopener">LIRCD</a> System Administration Utilities, its capable to decode infrared signals and provide them on a socket.</p>
<p>If you are using standard remote like Samsung, sony, apple, etc. You have to download the configuration file for the same and needs to add it to the OSMC.</p>
<p>Use this <a href="http://lirc.sourceforge.net/remotes/" target="_blank" rel="noopener">Link</a> to find your remote, here you can find most of the LIRC config file for most of the standard remotes.</p>
<blockquote><p><a href="http://lirc.sourceforge.net/remotes/" target="_blank" rel="noopener">LIRC Configuration files for standard remotes</a></p></blockquote>
<p>You can download the files to your computer. In this tutorial we used windows computer. Once you done with downloading, you need <a href="https://winscp.net/eng/download.php" target="_blank" rel="noopener">WinSCP</a> (SCP, FTP Client for windows), download <a href="https://winscp.net/eng/download.php" target="_blank" rel="noopener">winSCP from this Link</a>, once you done with installation you need to connect to OSMC via network IP address, refer the image below to check your IP address:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/IP-Address.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-651 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/IP-Address.jpg" alt="IP-Address" width="1600" height="1200" srcset="https://learn.edwinrobotics.com/wp-content/uploads/IP-Address.jpg 1600w, https://learn.edwinrobotics.com/wp-content/uploads/IP-Address-300x225.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/IP-Address-1024x768.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/IP-Address-640x480.jpg 640w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></a></p>
<p>&nbsp;</p>
<p>Once you find out the IP address, enter the following credentials in the Login Window:</p>
<blockquote><p>Host Name: Your IP Address</p>
<p>User name: osmc</p>
<p>Password: osmc</p></blockquote>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/WINSCP.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignnone wp-image-654 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/WINSCP.png" alt="WINSCP" width="1075" height="692" srcset="https://learn.edwinrobotics.com/wp-content/uploads/WINSCP.png 1075w, https://learn.edwinrobotics.com/wp-content/uploads/WINSCP-300x193.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/WINSCP-1024x659.png 1024w" sizes="auto, (max-width: 1075px) 100vw, 1075px" /></a></p>
<p>&nbsp;</p>
<p>Once you are logged in successfully, you can see two windows, one window as your computer files explorer and the second window as OSMC files explorer, you just need to upload the files from your computer to the OSMC. Refer the video below for the demonstration we did to transfer one configuration file from windows system to OSMC.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe loading="lazy" title="IR Remote Lircd osmc WinSCP" width="500" height="375" src="https://www.youtube.com/embed/XLIkHAGAXpw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>In the video shown, you have noticed that there is already one ER-lircd.conf in the OSMC, this is the configuration file we used for our remote, then we shown how to add one other configuration file to the OSMC, we dragged the ER-lircd-temp.conf file from windows desktop to OSMC.</p>
<p>Once you are done with uploading file to the OSMC, you can close the WinSCP, now all you need to do is to select the configuration file for your remote from the system directory, we had added one video for the same, where we are adding configuration file for the remote we provided.</p>
<p>&nbsp;</p>
<p><b id="step11">OSMC LIRCD CONFIGURATION</b></p>
<p><iframe loading="lazy" title="OSMC LIRCD Configuration" width="500" height="375" src="https://www.youtube.com/embed/ols_fC0UhYc?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>This is one way of adding remote to your media center, now there are chances that you are not able to find configuration files for your remote, or you are using universal remotes or you want to modify the existing configuration file, in that case, you need to manually make configuration file for your remotes, it means you need to record each and every key on the remote whichever you want to be functional. Follow the steps to record your keys:</p>
<ul>
<li><a href="#step6">Stop the LIRCD service</a></li>
<li><a href="#step7">Start Recording</a></li>
<li><a href="#step8">Assigning standard functions to Individual Keys on the remote</a></li>
<li><a href="#step9">Save and load the Configuration file</a></li>
</ul>
<p>&nbsp;</p>
<h2 id="step6">Stop the LIRCD Service</h2>
<p>&nbsp;</p>
<p>Before you start with this step, you need to <a href="http://www.putty.org/" target="_blank" rel="noopener">download putty </a> . once you done with downloading putty in you computer, you are able to login to your OSMC command shell, you need to login to your OSMC system using IP address(The steps to find IP address mentioned above), enter the <strong>username </strong>and<strong> password </strong>as<strong> osmc. </strong>Once you are connected you need to run the following command to stop the LIRCD service on the OSMC.</p>
<blockquote><p>sudo systemctl stop lircd_helper@lirc0</p></blockquote>
<p>The above steps ensures that service is stopped and we can proceed with recording key strokes.</p>
<p>&nbsp;</p>
<h2></h2>
<h2 id="step7">Start Recording</h2>
<p>&nbsp;</p>
<p>Your need to use following command to start with recording.</p>
<blockquote><p>irrecord -d /dev/lirc0 /home/osmc/lircd.conf</p></blockquote>
<p>This steps lets the LIRC decoder, to decode the format of the remote. During the process you need to keep pressing all the keys and follow the instructions which will be displayed in the command line. You can refer the video below for all the process we went through.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2 id="step8">Assigning standard functions to Individual Keys on the remote</h2>
<p>&nbsp;</p>
<p>Once the LIRCD understands the remote format, the next step is to assign the name and functions to each key on the remote. You have to follow the standard configuration file for this step, as the names are standard and the LIRCD won&#8217;t accept any other names, so you have to refer the one of the available standard config files, we have already provided the Link for the same in the above section.</p>
<p>&nbsp;</p>
<p>Watch this video to see, how to record and assign functions to the remote keys.</p>
<p>&nbsp;</p>
<p><iframe loading="lazy" title="LIRC Recording full" width="500" height="375" src="https://www.youtube.com/embed/TXOpFkdBdCw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<h2></h2>
<h2 id="step9">Save and load the configuration file</h2>
<p>&nbsp;</p>
<p>If you had followed the video, you have seen that you need to hit enter at the end of recording process, to save the file. If the message &#8220;Successfully written config file&#8221; does not comes up , no need to worry about it, the file will be saved in the /home/osmc/ directory. You can use the nano editor to check the contents of the file. Use &#8221; <strong>sudo nano /home/osmc/filename.conf &#8221; </strong>Command. Make sure that you had replaced the filename with what you have provided.</p>
<p>To load the  configuration file, you need to watch the video above tagged with: <a href="#step11"><strong>OSMC LIRCD CONFIGURATION</strong></a> once done with all these steps you need to reboot the system.</p>
<p>&nbsp;</p>
<h1 style="text-align: left;"></h1>
<h1 style="text-align: left;"></h1>
<h1 id="Step5" style="text-align: left;"><strong>Playing Photos and videos from Smartphone</strong></h1>
<p>&nbsp;</p>
<p>The cool thing with this part is you are able to play your mobile contents in the OSMC player or vise versa, all you need to do is to change some settings in the OSMC to use this feature and install the <strong>BubbleUPnp</strong> from the play store. The BubbleUPnp comes in paid and free version, we tried this feature with free version.</p>
<p>To establish UPnp between OSMC and your mobile phone, you need to enable the UPnp services in the OSMC.</p>
<p>Open the following the path:   <strong>System Settings  -&gt;  Services </strong></p>
<p>Once you are open the services you will see the following options:</p>
<ul>
<li><strong>General</strong></li>
<li><strong>UpnP/DLNA</strong></li>
<li><strong>Web Server</strong></li>
<li><strong>Remote Control</strong></li>
<li><strong>Zeroconf</strong></li>
<li><strong>AirPlay</strong></li>
</ul>
<p>&nbsp;</p>
<p><strong>General</strong> : Under this tab you can modify the device name</p>
<p><strong>UPnp/DLNA</strong>: Under this you need to enable both the options to allow remote controlling and sharing the libraries</p>
<p><strong>Web Server</strong>: This is by defualt enabled, if not please enable it.</p>
<p><strong>Remote Control</strong>: Enable both the options to allow remote controlling</p>
<p><strong>Zeroconf</strong>: This is by default enabled, if not please enable it.</p>
<p><strong>Airplay</strong>: This you can enable if you having Apple product with you.</p>
<p>&nbsp;</p>
<p>Now in the mobile application part, all you need to do is to expand the Renderer tab, under that you are able to list your OSMC, just connect it and you are ready to go.</p>
<p>To play the content from Mobile:</p>
<ul>
<li>Select Local Media Server under Library tab</li>
<li>Expand Media tab to select from a list of available options.</li>
</ul>
<p>Play any video/ Music from the media and you are able to watch it now on the OSMC.</p>
<p><a href="https://play.google.com/store/apps/details?id=com.bubblesoft.android.bubbleupnp" target="_blank" rel="noopener">Install BubbleUPnP from Google Play</a></p>
<p>&nbsp;</p>
<h1 id="step10" style="text-align: left;"><strong>Using Kore/Yatse as OSMC Remote</strong></h1>
<p>&nbsp;</p>
<p>There are lots of remote control applications are available for the OSMC/KODI/XBMC. All you need to do is to download the application from the play store, once done with installation, the remote will look for available media center on the network, make sure that your media center is connected to network, then you will see that, these apps will comes with OSMC option. You need to select the device from the available option and then you are ready to control your media center from your mobile Apps.</p>
<p>We tried and tested out both the <strong>Kore</strong> and <strong>Yatse</strong> App with OSMC and its works out really well with it.</p>
<p>&nbsp;</p>
<p><a href="https://play.google.com/store/apps/details?id=org.xbmc.kore" target="_blank" rel="noopener">Install Kore from Google Play</a></p>
<p><a href="https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree" target="_blank" rel="noopener">Install Yatse from Google Play</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/raspberry-pi-media-center/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial: Switch, transistor and Buzzer on Breadboard</title>
		<link>https://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-switch-transistor-and-buzzer-on-breadboard</link>
					<comments>https://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Wed, 29 Jun 2016 15:41:56 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Breadboard]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=608</guid>

					<description><![CDATA[Let start with building something interesting, in the previous tutorial you seen the functionality of  LED and we taught you the basics of breadboard, in this section we are going to show something more interesting, this tutorial is mainly focused on transistors which is basic common part in all of today&#8217;s electronics, they are just simple [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Let start with building something interesting, in the <a href="http://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/" target="_blank">previous tutorial</a> you seen the functionality of  LED and we taught you the basics of breadboard, in this section we are going to show something more interesting, this tutorial is mainly focused on transistors which is basic common part in all of today&#8217;s electronics, they are just simple switches that we can use to turn things on and off. Even though they are simple, they are the most important electrical component. These are basic building block of any Integrated Circuits(IC), For example, transistors are almost the only components used to build a Pentium processor. A single Pentium chip has about 3.5 million transistors. The ones in the Pentium are smaller than the ones we will use but they work the same way.</p>
<p>&nbsp;</p>
<p>To understand transistor better we will start with one of the basic component we seen in electronic circuit, its nothing but switch, refer the image below:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Switch-Description.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-592 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Switch-Description.jpg" alt="Switch Description" width="3552" height="2200" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Switch-Description.jpg 3552w, https://learn.edwinrobotics.com/wp-content/uploads/Switch-Description-300x186.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Switch-Description-1024x634.jpg 1024w" sizes="auto, (max-width: 3552px) 100vw, 3552px" /></a></p>
<p>&nbsp;</p>
<p>These switches are nothing but momentary push buttons, means when you press them then only it will be functional(i.e ON) otherwise it will remain OFF. Lets build a simple circuit on breadboard using a switch, refer the image below to build your circuit:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-SWITCH.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-575 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-SWITCH.jpg" alt="LED-SWITCH" width="2572" height="2123" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-SWITCH.jpg 2572w, https://learn.edwinrobotics.com/wp-content/uploads/LED-SWITCH-300x248.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/LED-SWITCH-1024x845.jpg 1024w" sizes="auto, (max-width: 2572px) 100vw, 2572px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Note: We had Connected 5v supply and GND from Arduino board in the above image, you can use Raspberry Pi or any other boards you having with you to supply 5v and GND from the board.</strong> <strong>If you having our <a href="https://shop.edwinrobotics.com/kits/547-raspberry-pi-electronics-starter-kit.html" target="_blank">Raspberry Pi Electronics Starter kit</a> with you, then you can use the <a href="https://shop.edwinrobotics.com/raspberry-pi/394-raspio-portsplus.html" target="_blank">RasPiO Portplus</a> we provided with the kit, to find the 5v and GND pins on Raspberry Pi and use the <a href="https://shop.edwinrobotics.com/wires/19-male-female-jumper-wires.html" target="_blank">Male-Female Jumper wire</a> we provided in the Kit to Supply power to the LED-Switch Circuit on breadboard.</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now if you see, you can understand that this circuit is nothing but modification of the previous LED breadboard tutorial, here we have added one switch to the LED circuit. Care must be taken when you connect the switch. Out of four legs you will get two shorted legs, as described in the image, you refer the cut mark on the bottom of the switch to understand which sides of the switch are shorted. Make sure that the mark on the switch and the breadboard columns should match otherwise your switch will not functional properly.</p>
<p>&nbsp;</p>
<p style="padding-left: 120px;"><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-611 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Switch.jpg" alt="LED+ Switch" width="351" height="921" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch.jpg 351w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Switch-114x300.jpg 114w" sizes="auto, (max-width: 351px) 100vw, 351px" /></a></p>
<p>&nbsp;</p>
<p>When you power the above circuit, the LED won&#8217;t glow, its because the circuit is controlled by Switch now, so if you press the Switch now, you will see that the LED will remain On till the moment you press the Switch, otherwise it will remain off. The transistors works in similar fashion, its works as Switch, except that, with switch you need to use your hands to push it and made the LED glow, here with transistors you need to apply logics to turn the LED ON and OFF. Thus applying logic&#8217;s will simulate the key press in the transistor.</p>
<p>&nbsp;</p>
<p>All the Electronic Components runs on two logic&#8217;s only <strong>1(HIGH)</strong> and <strong>0(LOW), </strong>When you apply Logic High to transistor the transistor will either turn ON or turn OFF depending on the transistor type. Before we see the types, we will clear you what this Logic High and Low Means. Any Electronic Machine understands only two voltages/ Logic&#8217;s and they are  <strong>Vcc/ Logic 1(High)</strong> and <strong>Gnd/ Logic 0(LOW)</strong></p>
<p>&nbsp;</p>
<p>Now, we will see what are types of transistor:</p>
<ol>
<li>NPN</li>
<li>PNP</li>
</ol>
<p>&nbsp;</p>
<p>The NPN is nothing but N-Type transistor, which will activates when you supply a Logic High to it. Similarly, The PNP is nothing but P-Type transistor, which will activates when you supply a Logic Low to it.</p>
<p>&nbsp;</p>
<p style="padding-left: 90px;"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Transistor-P.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-613" src="http://learn.edwinrobotics.com/wp-content/uploads/Transistor-P.jpg" alt="Transistor-P" width="387" height="888" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Transistor-P.jpg 387w, https://learn.edwinrobotics.com/wp-content/uploads/Transistor-P-131x300.jpg 131w" sizes="auto, (max-width: 387px) 100vw, 387px" /></a></p>
<p style="padding-left: 90px;"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Transistor-N.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-612" src="http://learn.edwinrobotics.com/wp-content/uploads/Transistor-N.jpg" alt="Transistor-N" width="394" height="894" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Transistor-N.jpg 394w, https://learn.edwinrobotics.com/wp-content/uploads/Transistor-N-132x300.jpg 132w" sizes="auto, (max-width: 394px) 100vw, 394px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Refer the two different types of circuit shown above, you will clearly understand the difference between the two types of transistors working. The P type will turn on the LED when you applied Logic low to the transistor and the N type will turn on the LED, when you apply Logic High to the transistor.</p>
<p>&nbsp;</p>
<p>Note: The logic&#8217;s will be applied to <strong>base/gate</strong> Pin of transistors, the other two pins are <strong>emitter/drain</strong> and <strong>Collector/source</strong>.Collector/Source pin used to connect the transistor from power source and emitter/drain pin used to connect with loads.The Pin descriptions are mentioned in the datasheet of each transistor, so there is no need to worry about it as of now.</p>
<p>&nbsp;</p>
<p>Now we will move one step further and add some sound to the project, till now when we press the switch or apply the logic&#8217;s to transistor the LED will lit up. let us add one piezo buzzer to the breadboard and see what happens when we press the switch.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Buzzer-DEscription.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-588 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Buzzer-DEscription.jpg" alt="Buzzer DEscription" width="3481" height="2466" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Buzzer-DEscription.jpg 3481w, https://learn.edwinrobotics.com/wp-content/uploads/Buzzer-DEscription-300x213.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Buzzer-DEscription-1024x725.jpg 1024w" sizes="auto, (max-width: 3481px) 100vw, 3481px" /></a></p>
<p>&nbsp;</p>
<p>Refer the schematic below to build your own circuit in a breadboard.</p>
<p>&nbsp;</p>
<p style="padding-left: 60px;"> <a href="http://learn.edwinrobotics.com/wp-content/uploads/TRANSISTOR-BUZZER-_LED.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-617 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/TRANSISTOR-BUZZER-_LED.jpg" alt="TRANSISTOR + BUZZER _LED" width="607" height="956" srcset="https://learn.edwinrobotics.com/wp-content/uploads/TRANSISTOR-BUZZER-_LED.jpg 607w, https://learn.edwinrobotics.com/wp-content/uploads/TRANSISTOR-BUZZER-_LED-190x300.jpg 190w" sizes="auto, (max-width: 607px) 100vw, 607px" /></a></p>
<p>&nbsp;</p>
<p>In the above shown example we had used Arduino as 5v power source to power the breadboard, you can use any other power source as per you convenience. Now if look at the circuit we had Used N-type(NPN) transistor, now if you google for <strong>BC547 </strong>Datasheet, you will see lots of options, open any one datasheet .pdf document, once you scan through all the pages you will notice lots of details about transistor is mentioned in it, right now we are focusing on the type, voltage and current of the transistor. If check you will see all these data  withing the first 5 pages. There its mentioned:</p>
<blockquote><p><strong>BC547</strong></p>
<ul>
<li>NPN Epitaxial Silicon Transistor</li>
<li>Vceo: 45v</li>
<li>100mA</li>
</ul>
</blockquote>
<p>&nbsp;</p>
<p>we seen that its N-Type(NPN) and its maximum voltage is 45v which is more than enough, since we are running only on 5v. Regarding current, if we calculate the current required for the loads, the LED needs 15mA and the buzzer needs 40mA max, thus combining two, its comes under 60mA, thus we are good to go with same transistor. If your loads exceeds the rated current go for higher current transistor. Refer the image below for the Pin description of the BC547 Transistor we are using.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Transistor.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-593 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Transistor.jpg" alt="Transistor#" width="3756" height="2201" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Transistor.jpg 3756w, https://learn.edwinrobotics.com/wp-content/uploads/Transistor-300x176.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Transistor-1024x600.jpg 1024w" sizes="auto, (max-width: 3756px) 100vw, 3756px" /></a></p>
<p>&nbsp;</p>
<p>You can see that we are supplying High Logic from switch to transistor, so when you press the switch the Vcc(5v) will be applied to gate pin of transistor and this will activate the transistor, allowing the current to flow through LED and Buzzer and in return we can see and hear the light and sound respectively.</p>
<p>Note: Don&#8217;t forget to add current limiting resistor for buzzer and resistor and polarity of the buzzer must be taken care of similar to that of LED.</p>
<p>&nbsp;</p>
<p>So, this is all about the welcome little step you made into hands on with electronics, in the next tutorial, we will show you how to use microcontrollers/Arduino to control these kind of circuits.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/tutorial-switch-transistor-and-buzzer-on-breadboard/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial: How to Breadboard LED</title>
		<link>https://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-how-to-breadboard-led</link>
					<comments>https://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/#comments</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Tue, 28 Jun 2016 16:10:25 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Breadboard]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=553</guid>

					<description><![CDATA[Heard of breadboard? Sure you do, but some of you don&#8217;t have much idea that, what this little piece can do, we will start with some of the basics of breadboards before we start with projects. Breadboards are one of the basic element when you start learning how to build circuits. Breadboards are preferred platform [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Heard of breadboard? Sure you do, but some of you don&#8217;t have much idea that, what this little piece can do, we will start with some of the basics of breadboards before we start with projects. Breadboards are one of the basic element when you start learning how to build circuits. Breadboards are preferred platform to start building circuits because it don&#8217;t need any soldering, thus giving you the flexibility to try, test and modify your circuit at any point of time. They allow you to make quick circuits, test out ideas and allow prototyping before making a permanent Printed Circuit Board. They are inexpensive and reusable and they are easily available in any electronics store.</p>
<p>Breadboard is nothing but a plastic base with lots of holes in it, where you can fit in your components and wires to build your circuit. You can&#8217;t see what&#8217;s going inside the breadboard, but inside its nothing but many strips of metal that connect the rows and columns together. These metal strips are springy so that when you poke a wire or component into the hole, the clips grab onto it.</p>
<p>Breadboards are used for both the simplest circuit as well as very complex circuits. In case one breadboard can&#8217;t accommodate your circuit, you can snap in multiple breadboards together to make a big breadboard base. You can use breadboard to test and figure out the working of Integrated circuits (ICs).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/DSC_0072.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-558 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/DSC_0072.jpg" alt="DSC_0072" width="3768" height="2656" srcset="https://learn.edwinrobotics.com/wp-content/uploads/DSC_0072.jpg 3768w, https://learn.edwinrobotics.com/wp-content/uploads/DSC_0072-300x211.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/DSC_0072-1024x722.jpg 1024w" sizes="auto, (max-width: 3768px) 100vw, 3768px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Breadboard_Description.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-586 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Breadboard_Description.jpg" alt="Breadboard_Description" width="3768" height="2656" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Breadboard_Description.jpg 3768w, https://learn.edwinrobotics.com/wp-content/uploads/Breadboard_Description-300x211.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Breadboard_Description-1024x722.jpg 1024w" sizes="auto, (max-width: 3768px) 100vw, 3768px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you refer the description in the image above you can see that the how tracks are connected inside the breadboard. Refer the Vcc and Gnd Lines in the image above, you can see these two lines are running round the borders, thus allowing us to use these lines for power supply distribution, but there is a discontinuity in Vcc and Gnd tracks as shown above(mentioned &#8220;Not Connected&#8221;), which you need to connect with jumpers to distribute the power. The center holes are column connected as shown in the picture and there is a gap in between the same columns, allowing us to fit in IC to the gap. To make things further clear, we have added the tear down image of the breadboard, refer the next diagram to get better idea of inside connections.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Breadboard-Teardown.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-572 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Breadboard-Teardown.jpg" alt="Breadboard Teardown" width="1772" height="1606" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Breadboard-Teardown.jpg 1772w, https://learn.edwinrobotics.com/wp-content/uploads/Breadboard-Teardown-300x272.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Breadboard-Teardown-1024x928.jpg 1024w" sizes="auto, (max-width: 1772px) 100vw, 1772px" /></a></p>
<p>&nbsp;</p>
<p>The image shown above is of Half sized breadboard, thus don&#8217;t be confused comparing it with previous images. Hope things are clear to this point and you understood the breadboard well, now we will move further and see how to start building basic circuits on this breadboard. We are going to start with LED circuit, which is common to all the devices, we are going to build a circuit for Power LED Indication, i.e whenever there is power in the circuit, this led will let us know about it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-Description-.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-603 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-Description-.jpg" alt="LED Description-" width="3029" height="2252" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-Description-.jpg 3029w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Description--300x223.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/LED-Description--1024x761.jpg 1024w" sizes="auto, (max-width: 3029px) 100vw, 3029px" /></a></p>
<p>&nbsp;</p>
<p>If you notice the above image you will see the legs of LED mentioned with Anode and cathode and to understand how to distinguish between anode and cathode pins, we provided hints in the image, its nothing but one cut mark(Means the LED is not completely round from the bottom side) which indicates that the leg underneath it is cathode(-ve) pin and if we seen the size of the legs, the anode(+ve) pin is little longer. But most of the times you have to trim the legs of LED when you use these LED in any circuit thus making the anode pins and cathode pins indistinguishable in terms of Leg size.</p>
<p>&nbsp;</p>
<p>The importance of anode and cathode pins in LED is that, LED will glow only is you provide <strong>+ve power supply to Anode pin</strong> and &#8211;<strong>ve power supply to Cathode Pin. </strong>But wait, you cannot straight away supply the LED with power supply because there are chances that more current will pass through LED and this will lead to damage the LED, to avoid this situation, it is strongly recommended to use the resistor along with LED.</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LEDREsistor.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-578 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LEDREsistor.jpg" alt="LED+REsistor" width="457" height="834" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LEDREsistor.jpg 457w, https://learn.edwinrobotics.com/wp-content/uploads/LEDREsistor-164x300.jpg 164w" sizes="auto, (max-width: 457px) 100vw, 457px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The circuit will be something like shown above. But it is really important to use the correct resistor value in the circuit to limit the current. We will show you how to select the correct resistor value for each circuit. For this, you need to understand two necessary parameters of LED, i.e <strong>LED Current</strong> and <strong>LED Forward voltage</strong>, refer the section below, for detailed description:</p>
<p>&nbsp;</p>
<h3>LED Current:</h3>
<p>As an example we will <a href="https://drive.google.com/uc?export=download&amp;id=0BzmrQ1bTvperZXpseVRrYk55N1E" target="_blank">refer the datasheet</a> for Basic Red 5mm LED.Starting at the top and making our way down, the first thing we encounter is this Absolute maximum ratings table:</p>
<p><a href="https://cdn.sparkfun.com/assets/8/a/5/0/2/51f20420ce395fe058000000.JPG"><img decoding="async" src="https://cdn.sparkfun.com/assets/8/a/5/0/2/51f20420ce395fe058000000.JPG" alt="alt text" /></a></p>
<p>Confused?  Questions coming that what does it all mean? right ?</p>
<p>So, the first row in the table indicates how much current your LED will be able to handle continuously. In this case, <strong>you can give it 20mA or less, and it will shine its brightest at 20mA</strong>. The second row tells us what the maximum peak current should be for short bursts. This LED can handle short bumps to 30mA, but you don’t want to sustain that current for too long. This datasheet is even helpful enough to suggest a stable current range (in the third row from the top) of 16-18mA. That’s a good target number to help you make the resistor calculations we talked about.</p>
<p>The following few rows are of less importance for the purposes of this tutorial. The reverse voltage is a diode property that you shouldn’t have to worry about in most cases. The power dissipation is the amount of power in milliWatts that the LED can use before taking damage. This should work itself out as long as you keep the LED within its suggested voltage and current ratings.</p>
<h3></h3>
<h3>LED Forward Voltage</h3>
<p>Now, when you check the datasheet further, you will come across the next table shown as follows:</p>
<p><a href="https://cdn.sparkfun.com/assets/4/4/9/0/9/51f6d886ce395f8c67000006.jpg"><img decoding="async" src="https://cdn.sparkfun.com/assets/4/4/9/0/9/51f6d886ce395f8c67000006.jpg" alt="alt text" /></a></p>
<p>Now,this is a useful little table! The first row tells us what the <strong>forward voltage</strong> drop across the LED will be. Forward voltage is a term that will come up a lot when working with LEDs. This number will help you decide how much voltage your circuit will need to supply to the LED.You need to follow the following formula every time you build circuits something with LED, refer the section below:</p>
<p style="text-align: left;">The basic ohm&#8217;s law states that:</p>
<blockquote>
<h2 style="text-align: left;"><strong>V = I x R    or   R = V/I</strong></h2>
<p>where,</p>
<p>V = Supply Voltage</p>
<p>I = Current through LED</p>
<p>R = Circuit Resistor</p></blockquote>
<p>Thus, applying this law for LED circuit, we will get following formula:</p>
<blockquote><p><a href="https://cdn.sparkfun.com/assets/8/3/4/4/e/515f354dce395fc424000000.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone" src="https://cdn.sparkfun.com/assets/8/3/4/4/e/515f354dce395fc424000000.png" alt="Current limiting resistor = (Vs-Vf)/If" width="215" height="86" /></a></p>
<p>Where,</p>
<p>V<sub>S</sub> = Source voltage (usually a battery or power supply voltage)</p>
<p>V<sub>F</sub> = LED’s forward voltage</p>
<p>I<sub>F</sub> = Desired current that runs through it.</p></blockquote>
<p>For example, assume in this example you have a 9V battery to power an LED. If your LED is red, it might have a forward voltage around 1.8V. If you want to limit the current to 10mA (or 0.010A) rather than limiting it to 20mA , use a series resistor of about 720Ω.</p>
<p><a href="https://cdn.sparkfun.com/assets/3/2/b/a/2/515f369cce395f5425000000.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone" src="https://cdn.sparkfun.com/assets/3/2/b/a/2/515f369cce395f5425000000.png" alt="Current limiting example equation R=(9-1.8)/.010" width="500" height="86" /></a></p>
<p>Now, if we are going to build power supply Indicator circuit for 5v system, thus our resistor calculation will come somewhat like this:</p>
<blockquote><p>R = (5-1.8)V ÷ 0.010A</p>
<p>R = 3.2V ÷ 0.010 A</p>
<p>R =  320 V/A</p>
<p>R = 320 Ω</p>
<p>R = 330Ω Approx (Nearest standard resistor value)</p></blockquote>
<p>&nbsp;</p>
<h3></h3>
<p>Thus if you notice in the circuit shown above, you will see that we had used 330Ω resistor in the circuit, but wait you may be confused with how the resistor shown above is 330Ω, its again you need to follow the ring colors on the resistor surface. Refer the image below for better idea:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide-.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-602 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide-.jpg" alt="Resistor Color Guide-" width="3781" height="2532" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide-.jpg 3781w, https://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide--300x201.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide--1024x686.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/Resistor-Color-Guide--140x94.jpg 140w" sizes="auto, (max-width: 3781px) 100vw, 3781px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you notice in the image, it is well documented how the 330Ω value is calculated. Refer the formula shown on the image, which will help you to find out the resistance value of the resistor, you just need to substitute the A,B,C and D value in the formula based on the colored ring.</p>
<p>In our case the resistor colors are orange, orange, brown, gold in sequence, thus if we substitute the corresponding values of the colors in the formula, yow will get: 33 x 10, which is nothing but 330 with 5% tolerance, tolerance will let you know how good the resistor is?</p>
<p>In this case its 5% means: The resistance value is limited within the vast range [<strong>270 &#8211; (5% of 270)</strong>]<strong>  </strong>and  [<strong>270 +</strong> <strong>(5% of 270)</strong>], which is not good, the lesser the range, the more close the resistance to the desired resistance value.</p>
<p>&nbsp;</p>
<p>Let start assembling the circuit in the breadboard, refer the image below for better idea:</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED-1.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-574 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LED-1.jpg" alt="LED-1" width="4248" height="2764" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED-1.jpg 4248w, https://learn.edwinrobotics.com/wp-content/uploads/LED-1-300x195.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/LED-1-1024x666.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/LED-1-207x136.jpg 207w, https://learn.edwinrobotics.com/wp-content/uploads/LED-1-260x170.jpg 260w" sizes="auto, (max-width: 4248px) 100vw, 4248px" /></a></p>
<p>&nbsp;</p>
<p>Now, you can see how we utilized the breadboard columns which are internally shorted to connect the LED anode pin with resistor, similarly we used the jumper wires to connect the LED cathode pin and resistor other end. Now if you power the above shown circuit, i.e Red wire with 5v and Black with Ground supply, you will see that your LED will glow safely.</p>
<p>&nbsp;</p>
<p><strong>Note: We had Connected 5v supply and GND from Arduino board in the following image, you can use Raspberry Pi or any other boards you having with you to supply 5v and GND from the board. If you having our <a href="https://shop.edwinrobotics.com/kits/547-raspberry-pi-electronics-starter-kit.html" target="_blank">Raspberry Pi Electronics Starter kit</a> with you, then you can use the <a href="https://shop.edwinrobotics.com/raspberry-pi/394-raspio-portsplus.html" target="_blank">RasPiO Portplus</a> we provided with the kit, to find the 5v and GND pins on Raspberry Pi and use the <a href="https://shop.edwinrobotics.com/wires/19-male-female-jumper-wires.html" target="_blank">Male-Female Jumper wire</a> we provided in the Kit to Supply power to the LED on breadboard.</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LED.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-573 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LED.jpg" alt="LED" width="3960" height="2213" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LED.jpg 3960w, https://learn.edwinrobotics.com/wp-content/uploads/LED-300x168.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/LED-1024x572.jpg 1024w" sizes="auto, (max-width: 3960px) 100vw, 3960px" /></a></p>
<p>&nbsp;</p>
<p>Now, we want you to build one circuit on your own with multiple LED&#8217;s in series, but before doing that, we want to clear some basics related to building such circuits. When you went through<strong> LED forward voltage</strong> section above, you seen the table with LED forward voltage, you must use that value to find out how much LED you can use in your circuit. When using multiple LED&#8217;s in series, always remember that the Forward Voltage of all of your LEDs added together can’t exceed your system voltage. This is because every component in your circuit has to <em>share</em> the voltage, and the amount of voltage that every part uses together will always equal the amount that’s available. This is called <a href="https://en.wikipedia.org/wiki/Kirchhoff%27s_circuit_laws" target="_blank">Kirchhoff’s Voltage Law</a>. So if you have a 9V power supply and each of your LEDs have a forward voltage drop of 2.4V then you can’t power more than three at a time.</p>
<p>Kirchhoff’s Laws also come in handy when you want to approximate the voltage across a given part based on the Forward Voltage of other parts. For instance, in the example we just mentioned there’s a 9V supply and 3 LEDs with a 2.4V Forward Voltage Drop each. Of course we would want to include a current limiting resistor, right? How would you find out the voltage across that resistor? It’s easy:</p>
<blockquote><p>9 (System Voltage) = 2.4 (LED 1) + 2.4 (LED 2) + 2.4 (LED 3) + Resistor</p>
<p>9 = 7.2 + Resistor</p>
<p>Resistor = 9 &#8211; 7.2</p>
<p>Resistor = 1.8</p></blockquote>
<p>So there is 1.8V across the resistor! This is a simplified example and it isn’t always this easy, but hopefully this gives you an idea of why <strong>Forward Voltage Drop</strong> is important. Using the voltage number you derive from Kirchhoff’s Laws you can also do things like determine the current across a component using Ohm’s Law. In short, you want your system voltage equal to the expected forward voltage of your combined circuit components.</p>
<p>Hope the things are more clear to you now and this is the end of your first basic steps towards hands on with electronics. Refer the next tutorial for more advanced Projects.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/tutorial-how-to-breadboard-led/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 170/556 objects using APC
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 38/222 queries in 0.187 seconds using APC (Request-wide modification query)

Served from: learn.edwinrobotics.com @ 2025-07-23 22:15:40 by W3 Total Cache
-->