<?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>Power Appliances | Learn with Edwin Robotics</title>
	<atom:link href="https://learn.edwinrobotics.com/category/power-appliances/feed/" rel="self" type="application/rss+xml" />
	<link>https://learn.edwinrobotics.com</link>
	<description>Tutorials on basics of electronics, etc.</description>
	<lastBuildDate>Wed, 01 Feb 2017 13:51:02 +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>MOSFET Breakout board Hookup Guide</title>
		<link>https://learn.edwinrobotics.com/mosfet-breakout-board-hookup-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mosfet-breakout-board-hookup-guide</link>
					<comments>https://learn.edwinrobotics.com/mosfet-breakout-board-hookup-guide/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Tue, 31 Jan 2017 09:00:51 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Power Appliances]]></category>
		<category><![CDATA[Relay]]></category>
		<category><![CDATA[high power application]]></category>
		<category><![CDATA[mosfet]]></category>
		<category><![CDATA[mosfet breakout]]></category>
		<category><![CDATA[mosfet interface]]></category>
		<category><![CDATA[power applicance]]></category>
		<category><![CDATA[power application]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=1221</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-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/MOSFTE-BREAKOUT-COVER.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-140x94.jpg 140w" sizes="(max-width: 6000px) 100vw, 6000px" />This hookup guide is not only limited to the MOSFET breakout board, here you can learn basics of MOSFET, so that you can build your own circuit in a breadboard/ Protoboard with components we are providing or use if you have some with you. Check below the contents we covered in this tutorial: &#160; MOSFET BASICS [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-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/MOSFTE-BREAKOUT-COVER.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFTE-BREAKOUT-COVER-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>This hookup guide is not only limited to the MOSFET breakout board, here you can learn basics of MOSFET, so that you can build your own circuit in a breadboard/ Protoboard with components we are providing or use if you have some with you. Check below the contents we covered in this tutorial:</p>
<p>&nbsp;</p>
<ul>
<li>
<h4><a href="#step1">MOSFET BASICS</a></h4>
</li>
<li>
<h4><a href="#step2">Hardware Needed</a></h4>
</li>
<li>
<h4><a href="#step3">MOSFET Breakout PCB Introduction</a></h4>
</li>
<li>
<h4><a href="#step4">PCB SilkScreen</a></h4>
</li>
<li>
<h4><a href="#step5">Gate Control Circuit Schematics</a></h4>
</li>
<li>
<h4><a href="#step6">Jumper Settings</a></h4>
</li>
<li>
<h4><a href="#step7">PCB Assembly</a></h4>
</li>
<li>
<h4><a href="#step8">Heatsink Assmebly</a></h4>
</li>
<li>
<h4><a href="#step9">References</a></h4>
</li>
</ul>
<h4></h4>
<h4></h4>
<h4></h4>
<h4 id="step1">MOSFET BASICS</h4>
<p>&nbsp;</p>
<p>Most of you have heard of BJT and MOSFET but still you have doubts regrading MOSFET, here we are covering some basics of MOSFET before going to the breakout board details. MOSFET stands for &#8220;metal-oxide semiconductor field-effect transistor&#8221;. It is a special type of field-effect transistor (FET). Its g<span class="ntxt">ate</span> input is electrically insulated from the main current carrying channel and is therefore also called as an &#8220;Insulated Gate Field Effect Transistor&#8221; or &#8220;IGFET&#8221;.<b> </b>Unlike BJT which is ‘current controlled’, the MOSFET is a voltage controlled device. The MOSFET has “gate“, “Drain” and “Source”  terminals instead of a “base”, “collector”, and “emitter” terminals in a bipolar transistor. By applying voltage at the gate, it generates an electrical field to control the current flow through the channel between drain and source, and there is no current flow from the gate into the MOSFET. Unlike the BJT, the FET is a unipolar device since it functions with the conduction of electrons alone for the N-channel type or on holes alone for a P-channel type.</p>
<p>Hope now things are little clear to you now, but this is not enough, so we had covered types of MOSFET as well, refer the types below:</p>
<ul>
<li>N-Channel (NMOS) or P-Channel (PMOS)</li>
<li>Enhancement or Depletion mode</li>
</ul>
<p><strong>N-Channel</strong> – For an N-Channel MOSFET, the source is connected to ground. To turn the MOSFET on, we need to raise the voltage on the gate. To turn it off we need to connect the gate to ground.</p>
<p><strong>P-Channel</strong> – The source is connected to the power rail (Vcc). In order to allow current to flow the Gate needs to be pulled to ground. To turn it off the gate needs to be pulled to Vcc.</p>
<p><strong>Depletion Mode</strong> – It requires the Gate-Source voltage ( Vgs ) applied to switch the device “OFF”.</p>
<p><strong>Enhancement Mode</strong> – The transistor requires a Gate-Source voltage ( Vgs ) applied to switch the device “ON”.</p>
<p>Despite the variety, the most commonly used type is N-channel enhancement mode. There are also &#8220;Logic-Level&#8221; and &#8220;Normal MOSFET&#8221;, but the only difference is the Gate-Source potential level required to drive the MOSFET. Refer the symbols in the diagram below to distinguish the types of MOSFET.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1223" style="width: 490px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/MOSFET.gif" target="_blank"><img decoding="async" aria-describedby="caption-attachment-1223" class="wp-image-1223 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/MOSFET.gif" width="480" height="544" /></a><p id="caption-attachment-1223" class="wp-caption-text"><em>MOSFET TYPES</em></p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now consider the following points while connecting the load/Heatsink to the MOSFET:</p>
<ul>
<li>Because load  has resistance, which is basically a resistor. For N-channel MOSFET put the load at the Drain side and Source is usually connected to GND. If load is connected at the source side, the Vgs will needs to be higher in order to switch the MOSFET, or there will be insufficient current flow between source and drain than expected</li>
<li>For P-Channel MOSFET put the load at the source side and drain is usually connected to GND.</li>
<li>Typically the heat sink on the back of a MOSFET is connected to the Drain! If you mount multiple MOSFETs on a heat sink, they must be electrically isolated from the heat sink! It’s good practice to isolate regardless in case the heat sink is bolted to a grounding frame.</li>
</ul>

<table id="tablepress-3" class="tablepress tablepress-id-3">
<thead>
<tr class="row-1">
	<th class="column-1">MOSFET type</th><th class="column-2"><p align="center">VGS = +ve</p>	</th><th class="column-3"><p align="center">VGS = 0</p>	</th><th class="column-4"><p align="center">VGS = -ve</p>	</th>
</tr>
</thead>
<tbody class="row-striping row-hover">
<tr class="row-2">
	<td class="column-1">N-Channel Depletion</td><td class="column-2"><p align="center">ON</p></td><td class="column-3"><p align="center">ON</p></td><td class="column-4"><p align="center">OFF</p></td>
</tr>
<tr class="row-3">
	<td class="column-1">N-Channel Enhancement</td><td class="column-2"><p align="center">ON</p></td><td class="column-3"><p align="center">OFF</p></td><td class="column-4"><p align="center">OFF</p></td>
</tr>
<tr class="row-4">
	<td class="column-1">P-Channel Depletion</td><td class="column-2"><p align="center">OFF</p></td><td class="column-3"><p align="center">ON</p></td><td class="column-4"><p align="center">ON</p></td>
</tr>
<tr class="row-5">
	<td class="column-1">P-Channel Enhancement</td><td class="column-2"><p align="center">OFF</p></td><td class="column-3"><p align="center">OFF</p></td><td class="column-4"><p align="center">ON</p></td>
</tr>
</tbody>
</table>
<!-- #tablepress-3 from cache -->
<h4></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4 id="step2"><strong>Hardware Needed:</strong></h4>
<p>&nbsp;</p>

<table id="tablepress-5" class="tablepress tablepress-id-5">
<tbody>
<tr class="row-1">
	<td class="column-1"><div id="attachment_1372" style="width: 160px" class="wp-caption alignleft"><a href="http://learn.edwinrobotics.com/wp-content/uploads/BACK-square.png" target="_blank"><img decoding="async" aria-describedby="caption-attachment-1372" class="wp-image-1372" src="http://learn.edwinrobotics.com/wp-content/uploads/BACK-square.png" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/BACK-square.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/BACK-square-150x150.png 150w, https://learn.edwinrobotics.com/wp-content/uploads/BACK-square-300x300.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/BACK-square-1024x1024.png 1024w, https://learn.edwinrobotics.com/wp-content/uploads/BACK-square-184x184.png 184w" sizes="(max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1372" class="wp-caption-text"><em>MOSFET Breakout Board</em></p></div></td><td class="column-2"><div id="attachment_1375" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/mosfet/201-irf1404.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1375" class="wp-image-1375" src="http://learn.edwinrobotics.com/wp-content/uploads/MOSFET.jpg" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/MOSFET.jpg 850w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFET-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFET-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/MOSFET-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1375" class="wp-caption-text"><em>N Channel MOSFET (IRF1404)</em></p></div></td><td class="column-3"><div id="attachment_1374" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/miscellaneous-components/152-heat-sink-multiwatt-package.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1374" class="wp-image-1374" src="http://learn.edwinrobotics.com/wp-content/uploads/Heatsink-Square.jpg" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-Square.jpg 525w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-Square-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-Square-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-Square-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1374" class="wp-caption-text"><em>Heatsink -Multiwatt Package</em></p></div></td>
</tr>
<tr class="row-2">
	<td class="column-1"><div id="attachment_1371" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/fixed-value/8-1k-025watt-resistor.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1371" class="wp-image-1371" src="http://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W.jpg" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W.jpg 1650w, https://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W-1024x1024.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/1k_0.25W-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1371" class="wp-caption-text"><em>1KΩ Resistor</em></p></div></td><td class="column-2"><br />
<div id="attachment_1376" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/connectors/463-screw-terminal-kf126-5mm-pitch-2-pin.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1376" class="wp-image-1376" src="http://learn.edwinrobotics.com/wp-content/uploads/screw-terminal-kf126-5mm-pitch-2-pin.jpg" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/screw-terminal-kf126-5mm-pitch-2-pin.jpg 450w, https://learn.edwinrobotics.com/wp-content/uploads/screw-terminal-kf126-5mm-pitch-2-pin-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/screw-terminal-kf126-5mm-pitch-2-pin-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/screw-terminal-kf126-5mm-pitch-2-pin-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1376" class="wp-caption-text"><em>Screw Terminal- 2pin (5mm)</em></p></div></td><td class="column-3"><br />
<div id="attachment_1373" style="width: 160px" class="wp-caption alignnone"><a href="https://shop.edwinrobotics.com/miscellaneous-components/68-male-header-40x1.html" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1373" class="wp-image-1373" src="http://learn.edwinrobotics.com/wp-content/uploads/Header.jpg" width="150" height="150" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Header.jpg 550w, https://learn.edwinrobotics.com/wp-content/uploads/Header-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Header-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Header-184x184.jpg 184w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a><p id="caption-attachment-1373" class="wp-caption-text"><em>Male Header 40 x 1</em></p></div></td>
</tr>
</tbody>
</table>
<!-- #tablepress-5 from cache -->
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4></h4>
<h4 id="step3">MOSFET Breakout PCB Introduction:</h4>
<p>&nbsp;</p>
<p>This basic is enough for now, to getting started with MOSFET. There are many more things which you can do with MOSFET, we did not covered all the things in details here, but we will recommend you to start using MOSFET in most of the circuits to understand its uses in various applications, only practice makes man perfect, so this is what we are expecting from you that you will build something really cool projects using MOSFET. Now its time to go in details of MOSFET breakout board. Refer the board shown in the Image below:</p>
<h4></h4>
<h4></h4>
<p>&nbsp;</p>
<div id="attachment_1383" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/TOP-BOTTOM.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1383" class="wp-image-1383" src="http://learn.edwinrobotics.com/wp-content/uploads/TOP-BOTTOM.jpg" width="500" height="282" srcset="https://learn.edwinrobotics.com/wp-content/uploads/TOP-BOTTOM.jpg 3100w, https://learn.edwinrobotics.com/wp-content/uploads/TOP-BOTTOM-300x169.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/TOP-BOTTOM-1024x578.jpg 1024w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1383" class="wp-caption-text"><em>MOSFET BREAKOUT PCB</em></p></div>
<h4></h4>
<h4></h4>
<h4></h4>
<p>&nbsp;</p>
<h4 id="step4">PCB SilkScreen:</h4>
<p>&nbsp;</p>
<p>Now if you notice, then you can see the silkscreen at the bottom and the top will distinguish between P Channel side and N channel Side. You only need to solder the parts which are dedicated for that specific channel, i.e if you are willing to use just N channel Enhancement type MOSFET in your project, then all you need to do is to solder the parts needed only for N channel, which you can easily distinguish by referring the silkscreen. We had highlighted the TOP side silkscreen in the following image to distinguish between the two channel side.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1381" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Highlighted.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1381" class="wp-image-1381" src="http://learn.edwinrobotics.com/wp-content/uploads/Highlighted.jpg" width="500" height="545" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Highlighted.jpg 1458w, https://learn.edwinrobotics.com/wp-content/uploads/Highlighted-275x300.jpg 275w, https://learn.edwinrobotics.com/wp-content/uploads/Highlighted-940x1024.jpg 940w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1381" class="wp-caption-text"><em>N Channel / P Channel</em></p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You can refer the following image to see which resistors refer to which channel, this you can easily distinguish, if you refer the bottom silkscreen.</p>
<div id="attachment_1318" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/N_P-Channel_Resistors.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1318" class="wp-image-1318" src="http://learn.edwinrobotics.com/wp-content/uploads/N_P-Channel_Resistors.png" width="500" height="563" srcset="https://learn.edwinrobotics.com/wp-content/uploads/N_P-Channel_Resistors.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/N_P-Channel_Resistors-267x300.png 267w, https://learn.edwinrobotics.com/wp-content/uploads/N_P-Channel_Resistors-910x1024.png 910w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1318" class="wp-caption-text"><em>N Channel/ P Channel Resistors</em></p></div>
<h4></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4></h4>
<h4></h4>
<h4></h4>
<h4 id="step5">Gate Control Circuit Schematics:</h4>
<p>&nbsp;</p>
<p>We had added the <strong>Pull_Up / Pull_Down Resistor</strong> for the Gate, this feature is disabled by default, but if you need you can use this feature in your circuit by enabling the jumper J1/J2. Refer the below Schematics for better idea of the circuit.</p>
<div id="attachment_1322" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Gate-Schematic.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1322" class="wp-image-1322" src="http://learn.edwinrobotics.com/wp-content/uploads/Gate-Schematic.jpg" width="500" height="231" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Gate-Schematic.jpg 1250w, https://learn.edwinrobotics.com/wp-content/uploads/Gate-Schematic-300x138.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Gate-Schematic-1024x473.jpg 1024w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1322" class="wp-caption-text"><em>Gate Circuit Schematics</em></p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You can see in the following images we had highlighted the pull_up/ pull_down resistors.</p>
<p>&nbsp;</p>
<div id="attachment_1319" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/P_up_DN_Resistors.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1319" class="wp-image-1319" src="http://learn.edwinrobotics.com/wp-content/uploads/P_up_DN_Resistors.png" width="500" height="563" srcset="https://learn.edwinrobotics.com/wp-content/uploads/P_up_DN_Resistors.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/P_up_DN_Resistors-267x300.png 267w, https://learn.edwinrobotics.com/wp-content/uploads/P_up_DN_Resistors-910x1024.png 910w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1319" class="wp-caption-text"><em>Gate Control Resistors</em></p></div>
<h4></h4>
<h4></h4>
<p>&nbsp;</p>
<h4></h4>
<h4></h4>
<h4></h4>
<h4 id="step6">Jumper Settings:</h4>
<p>&nbsp;</p>
<p>These Pull-Up/Down Resistors (R_U/D) is disabled by default and can be enabled by adding solder to the Jumper Pads J1 for P-Channel and Jumper Pads J2 for N-Channel, the Vcc and Ground side is indicated in the Silkscreen. Its a 2-Way Jumper thus center pad is the main path and you need to apply solder either to &#8220;+&#8221; or &#8220;-&#8220;, so make sure to solder only required logic for each jumper, i.e either Vcc or ground. In case you need to disable this feature from the circuit, just remove the solder from the pads you applied. You can see the J1 and J2 Jumper in the following image and the + and &#8211; indication against its pad.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1384" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Jumper.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1384" class="wp-image-1384" src="http://learn.edwinrobotics.com/wp-content/uploads/Jumper.png" width="500" height="630" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Jumper.png 1464w, https://learn.edwinrobotics.com/wp-content/uploads/Jumper-238x300.png 238w, https://learn.edwinrobotics.com/wp-content/uploads/Jumper-813x1024.png 813w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1384" class="wp-caption-text">Jumper Pads</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Note: Do not Solder all the three pads of the jumper together, this will create a short between Vcc and GND.</strong></p>
<p>Refer the below table for jumper selection chart:</p>

<table id="tablepress-4" class="tablepress tablepress-id-4">
<tbody class="row-striping row-hover">
<tr class="row-1">
	<td class="column-1"></td><td class="column-2"><b><p align="center">CHANNEL</p></b></td><td class="column-3"><b><p align="center">RESISTOR</p></b></td><td class="column-4"><b><p align="center">+(Vcc)</p></b></td><td class="column-5"><b><p align="center">-(GND)</p></b></td>
</tr>
<tr class="row-2">
	<td class="column-1"><b align="center">J1</b></td><td class="column-2"><p align="center">P</p></td><td class="column-3"><p align="center">R1_U/D</p></td><td class="column-4"><p align="center">Pullup</p></td><td class="column-5"><p align="center">Pulldown</p></td>
</tr>
<tr class="row-3">
	<td class="column-1"><b align="center">J2</b></td><td class="column-2"><p align="center">N</p></td><td class="column-3"><p align="center">R_U/D</p></td><td class="column-4"><p align="center">Pullup</p></td><td class="column-5"><p align="center">Pulldown</p></td>
</tr>
</tbody>
</table>
<!-- #tablepress-4 from cache -->
<p>You can ignore these R_U/D and R1_U/D resistor in the breakout board, if you don&#8217;t need pull_up/Down Feature. Now if you notice the Gate schematics you can see that the control signal is passed via Gate Resistor, so you need to solder this in your breakout PCB to get the circuit working, if you don&#8217;t want any Gate resistors, you can solder the 0Ω Resistor in the R_G / R1_G. We had Provided some standard values of resistors with this breakout board, so you don&#8217;t need to worry much about it, all you need to do is, to solder the resistors as per your requirement. Refer the below image for the Gate resistors slot in the Breakout board.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1316" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Gate_Resistors.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1316" class="wp-image-1316" src="http://learn.edwinrobotics.com/wp-content/uploads/Gate_Resistors.png" width="500" height="563" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Gate_Resistors.png 1600w, https://learn.edwinrobotics.com/wp-content/uploads/Gate_Resistors-267x300.png 267w, https://learn.edwinrobotics.com/wp-content/uploads/Gate_Resistors-910x1024.png 910w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1316" class="wp-caption-text"><em>Gate current limit </em></p></div>
<p>&nbsp;</p>
<p><strong>Note: MOSFET will not work if R_G / R1_G  Gate Resistor is left open, atleast you must solder 0Ω Resistor or short the slot with solder/Wire.</strong></p>
<h4></h4>
<h4></h4>
<h4></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4 id="step7">PCB Assembly:</h4>
<p>&nbsp;</p>
<p>The Drain and  Source pins are indicated clearly on the TOP/BOTTOM Silkscreen, this can be accessed either with screw terminal or with male/female Headers, you can solder whichever you need. You need to solder three pin header for Gate, Gnd, Vcc pins as well, so as to control the MOSFET from microcontroller or any other circuit. Make sure to use the Gate Control header of the same channel as that of MOSFET. Refer the legend and the diagram below for the  N- Channel MOSFET assembly:</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1385" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Legend-.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1385" class="wp-image-1385" src="http://learn.edwinrobotics.com/wp-content/uploads/Legend-.png" width="500" height="353" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Legend-.png 2300w, https://learn.edwinrobotics.com/wp-content/uploads/Legend--300x212.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/Legend--1024x723.png 1024w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1385" class="wp-caption-text">Legend</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_1284" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Assembled.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1284" class="wp-image-1284" src="http://learn.edwinrobotics.com/wp-content/uploads/Assembled.jpg" width="500" height="453" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Assembled.jpg 3471w, https://learn.edwinrobotics.com/wp-content/uploads/Assembled-300x272.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Assembled-1024x928.jpg 1024w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1284" class="wp-caption-text"><em>N Channel MOSFET Assembly</em></p></div>
<h4></h4>
<h4></h4>
<h4></h4>
<h4></h4>
<h4></h4>
<h4 id="step8">Heatsink Assmebly:</h4>
<p>&nbsp;</p>
<p>The board supports one N Channel and one P-Channel MOSFET at the same time, since both channels have its own sets of resistors, headers and screw terminal slot, make sure that all the things are properly connected. For the high current application your MOSFET will heat up like crazy, thus you need to add heatsink to provide cooling to the MOSFET, we had provided Heatsink Slot to be soldered on board for both type of MOSFET, refer the following image on how to use heatsink with MOSFET:</p>
<p>&nbsp;</p>
<div id="attachment_1290" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Heatsink.jpg" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1290" class="wp-image-1290" src="http://learn.edwinrobotics.com/wp-content/uploads/Heatsink.jpg" width="500" height="500" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Heatsink.jpg 600w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink-184x184.jpg 184w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1290" class="wp-caption-text"><em>Heatsink Multiwatt</em></p></div>
<p>&nbsp;</p>
<div id="attachment_1388" style="width: 510px" class="wp-caption aligncenter"><a href="http://learn.edwinrobotics.com/wp-content/uploads/Heatsink_assembled-1.png" target="_blank"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1388" class="wp-image-1388" src="http://learn.edwinrobotics.com/wp-content/uploads/Heatsink_assembled-1.png" width="500" height="553" srcset="https://learn.edwinrobotics.com/wp-content/uploads/Heatsink_assembled-1.png 1568w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink_assembled-1-271x300.png 271w, https://learn.edwinrobotics.com/wp-content/uploads/Heatsink_assembled-1-926x1024.png 926w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><p id="caption-attachment-1388" class="wp-caption-text">N Channel MOSFET with Heatsink</p></div>
<p>&nbsp;</p>
<p>The P Channel also supports Heatsink. If you are using Heatsink with N Channel  MOSFET then it is not possible to use P Channel MOSFET or vice versa. The Heatsink is not provided with the MOSFET Breakout PCB, you need to buy it separately if needed. If you are facing any issue or difficulty with the PCB, do let us know, our team will help you with all the issue, we are happy to hear from you, do let us know your feedback.</p>
<h4></h4>
<h4></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4></h4>
<h4 id="step9">References:</h4>
<p>&nbsp;</p>
<ul>
<li>MOSFET types Image Source:  <a href="http://www.electronics-tutorials.ws" target="_blank">Electronics Tutorials</a></li>
<li>Heatsink Image Source: <a href="https://www.sparkfun.com/" target="_blank">Sparkfun</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/mosfet-breakout-board-hookup-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>eSocket</title>
		<link>https://learn.edwinrobotics.com/esocket/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=esocket</link>
					<comments>https://learn.edwinrobotics.com/esocket/#respond</comments>
		
		<dc:creator><![CDATA[Abhishek Nair]]></dc:creator>
		<pubDate>Thu, 26 May 2016 12:10:52 +0000</pubDate>
				<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[Power Appliances]]></category>
		<category><![CDATA[Relay]]></category>
		<guid isPermaLink="false">http://learn.edwinrobotics.com/?p=438</guid>

					<description><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover.jpg" class="attachment- size- wp-post-image" alt="ESP8266 Wifi Board" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" />&#160; Now a days we have seen lots of devices are available in the market which can be controlled over the internet either using web browser or using mobile application. This project is all about controlling the Power socket over internet using web browser. We had used ESP8266 Thing in this Project, since it will give [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="6000" height="4000" src="https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover.jpg" class="attachment- size- wp-post-image" alt="ESP8266 Wifi Board" style="float:left; margin:0 15px 15px 0;" decoding="async" loading="lazy" srcset="https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover.jpg 6000w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-300x200.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-1024x683.jpg 1024w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266-cover-140x94.jpg 140w" sizes="auto, (max-width: 6000px) 100vw, 6000px" /><p>&nbsp;</p>
<p>Now a days we have seen lots of devices are available in the market which can be controlled over the internet either using web browser or using mobile application. This project is all about controlling the Power socket over internet using web browser. We had used ESP8266 Thing in this Project, since it will give you the flexibility to make a flexible product with internet connectivity using the wifi. Particle photon is another option to be used in this project and it will give great advantage over ESP8266 Thing that, you can flash the code over the internet without bothering about where the product is. Now we will show you how to build your own eSocket.</p>
<p>&nbsp;</p>
<ul>
<li><a href="#Step1">Parts Needed</a></li>
<li><a href="#Step2">ESP8266 Thing </a></li>
<li><a href="#Step3">Circuit Integration</a></li>
<li><a href="#Step4">Source Code</a></li>
</ul>
<p>&nbsp;</p>
<h1 id="Step1" style="text-align: left;"><strong>Parts Needed</strong></h1>
<ul>
<li><a href="#Step2">ESP8266 Thing</a></li>
<li>FTDI Basic USB to Serial Converter</li>
<li><a href="http://shop.edwinrobotics.com/miscellaneous-components/50-5v-relay.html" target="_blank">Relay</a></li>
<li><a href="#ULN2803">ULN2803</a></li>
<li>Power Supply 5v</li>
<li>Power Supply 12v</li>
</ul>
<p>&nbsp;</p>
<h1 id="Step2"><strong>ESP8266 Thing</strong></h1>
<p>&nbsp;</p>
<p>The ESP8266 is a low-cost Wi-Fi chip with full TCP/IP stack and Microcontroller capability produced by Shanghai-based Chinese manufacturer, Espressif. There are many third party modules With ESP8266 available in the market and you can decide which one suits best for your application, we are using the Sprakfun ESP8266 Thing in this tutorial.</p>
<p><a href="https://cdn.sparkfun.com//assets/parts/1/0/4/0/0/13231-04.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone" src="https://cdn.sparkfun.com//assets/parts/1/0/4/0/0/13231-04.jpg" width="600" height="600" /></a></p>
<p>The SparkFun ESP8266 Thing is a breakout and development board for the ESP8266 WiFi SoC – a leading platform for Internet of Things (IoT) or WiFi-related projects. These are some features of the board:</p>
<p>&nbsp;</p>
<h2>ESP8266 Thing Features:</h2>
<h2></h2>
<ul>
<li>All module pins broken out</li>
<li>On-board LiPo charger/power supply</li>
<li>802.11 b/g/n</li>
<li>Wi-Fi Direct (P2P), soft-AP</li>
<li>Integrated TCP/IP protocol stack</li>
<li>Integrated TR switch, balun, LNA, power amplifier and matching network</li>
<li>Integrated PLLs, regulators, DCXO and power management units</li>
<li>Integrated low power 32-bit CPU could be used as application processor</li>
<li>+19.5dBm output power in 802.11b mode</li>
<li>Arduino IDE integration</li>
<li>Breadboard Compatible Breakout Headers position</li>
<li>Power On-Off Switch</li>
<li>Status LED</li>
<li>Operating Voltage: 3.3v</li>
</ul>
<p>&nbsp;</p>
<p>Refer the Graphical Datasheet for hardware description</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/ESP8266ThingV1-page-001.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-313 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/ESP8266ThingV1-page-001.jpg" alt="ESP8266ThingV1-page-001" width="3300" height="2550" srcset="https://learn.edwinrobotics.com/wp-content/uploads/ESP8266ThingV1-page-001.jpg 3300w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266ThingV1-page-001-300x232.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/ESP8266ThingV1-page-001-1024x791.jpg 1024w" sizes="auto, (max-width: 3300px) 100vw, 3300px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>Programming the Thing:</h2>
<p>The ESP8266 has a built-in serial bootloader, which allows for easy programming and re-programming. You don’t need a specialized, expensive programmer – just a simple, USB-to-Serial converter.</p>
<p>We use a 3.3V FTDI Basic to program the Thing, but other serial converters with 3.3V I/O levels should work. The converter does need a DTR line in addition to the RX and TX pins.The FTDI Basic’s 6-pin header matches up exactly to the Thing’s 6-pin serial port header. To set up for programming, simply connect the FTDI directly to this port – take care to match up the DTR and GND pins!</p>
<p style="padding-left: 150px;"><a href="http://learn.edwinrobotics.com/wp-content/uploads/s.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-318 size-medium" src="http://learn.edwinrobotics.com/wp-content/uploads/s-300x300.jpg" alt="s" width="300" height="300" srcset="https://learn.edwinrobotics.com/wp-content/uploads/s-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/s-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/s-184x184.jpg 184w, https://learn.edwinrobotics.com/wp-content/uploads/s.jpg 600w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p><b>Note:</b> While programming the Thing, it&#8217;s best to power it off USB. We&#8217;ve noticed programming is more likely to fail if the Thing is only powered via the battery.</p>
<p>&nbsp;</p>
<p>Going further we need to interface relay with ESP8266 Thing, since we need to control the power socket, the relay we used in this project is of Industrial grade 10A, 250vAC rated and Coil Supply with 12v DC control voltage, you can use any other relay as per your convenience. Our ESP8266 Thing runs on 3.3v control logic, thus we are not able to straight away control the relay from ESP8266 IO Pins, we used ULN2803 Darlington array IC as relay driver, this IC is easily available in the market and can be used to control 8 relays at a time, since we need to interface just one relay to control the socket, we used only one channel of the IC.</p>
<p>&nbsp;</p>
<h1 style="text-align: left;"><strong>Relay</strong></h1>
<p>&nbsp;</p>
<h3><strong>Specifications:</strong></h3>
<ul>
<li>DPDT</li>
<li>Mini Middle Electromagnetic Relay</li>
<li>8Pins 2NO+2NC</li>
<li>Current:10A</li>
<li>contacts:silver plated gold</li>
<li>LED color:green</li>
<li>Terminal form:socket type</li>
<li>LED voltage: AC220/240V</li>
<li>12V DC voltage Controlled</li>
<li>Secondary Side: 10A/240vAC, 10A/28vDC</li>
</ul>
<p>The relay base module is separate part and needs to be purchased separately, its is rated for 15A, 250v AC, all the pin marking are made on the base itself thus connection is really simple, just refer the schematic shown on the relay body itself.</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-477 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New.jpg" alt="LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New" width="1000" height="1000" srcset="https://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New.jpg 1000w, https://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New-150x150.jpg 150w, https://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New-300x300.jpg 300w, https://learn.edwinrobotics.com/wp-content/uploads/LY2N-J-font-b-LY2NJ-b-font-220-240VAC-10A-DPDT-2NO-2NC-8-Pins-New-184x184.jpg 184w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></a></p>
<p>&nbsp;</p>
<h1 id="ULN2803" style="text-align: left;"><strong>ULN2803</strong></h1>
<p>&nbsp;</p>
<p>The ULN2803A device is a high-voltage, high-curren Darlington transistor array. The device consists of eight NPN Darlington pairs that feature high-voltage outputs with common-cathode clamp diodes for switching inductive loads. The collector-current rating of each Darlington pair is 500 mA. The Darlington pairs may be connected in parallel for higher current Types of Logic capability.</p>
<p><strong>Features:</strong></p>
<ul>
<li>500-mA-Rated Collector Current (Single Output).</li>
<li>High-Voltage Outputs: 50 V</li>
<li>Output Clamp Diodes</li>
<li>Inputs Compatible with Various types of Logic</li>
<li>Relay-Driver Applications</li>
<li>Compatible with ULN2800A Series</li>
</ul>
<p>&nbsp;</p>
<h2><strong>Simplified Schematics:</strong></h2>
<p style="padding-left: 90px;"><a href="http://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Schematics.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-469 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Schematics.png" alt="ULN2803 Schematics" width="444" height="600" srcset="https://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Schematics.png 444w, https://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Schematics-222x300.png 222w" sizes="auto, (max-width: 444px) 100vw, 444px" /></a></p>
<h2><strong>Pin Diagram:</strong></h2>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Pins.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-470 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Pins.png" alt="ULN2803 Pins" width="1379" height="709" srcset="https://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Pins.png 1379w, https://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Pins-300x154.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/ULN2803-Pins-1024x526.png 1024w" sizes="auto, (max-width: 1379px) 100vw, 1379px" /></a></p>
<p>Connections with ULN2803 are really simple, the channel mentioned with 1B , 2B, &#8230;, 8B all are inputs and you can pass on your logic control voltage from microcontroller to these pins, its 3.3v/5v Compatible. The corresponding inverted out will be present on the other side i.e 1C,2C,&#8230;,8C.</p>
<p>Connect the <strong>GND</strong> pin with GND from power supply and <strong>COM</strong> pin with 12v Supply Input, When a logic one is fed to 1B , you are able to get the ground from 1C, we used the channel 8, thus we connected 8B with ESP8266 pin 12 and and 8C to relay coil ground Pin, we already provided relay coil +ve pin with 12v supply. Refer the schematics in the next section to get a clear idea of the circuit connection.</p>
<p><a href="http://www.ti.com/lit/ds/symlink/uln2803a.pdf" target="_blank">Click here</a> to See the Datasheet.</p>
<p>&nbsp;</p>
<h1 id="Step3" style="text-align: left;"><strong>Circuit Integration</strong></h1>
<p>&nbsp;</p>
<p>The complete circuit integration won&#8217;t take much time, you can use  <a href="http://shop.edwinrobotics.com/prototyping/40-breadboard.html" target="_blank">breadboard </a> to integrate the circuit to save your time, we used the protoboards to make breakout boards for the ULN2803 IC and ESP8266 Thing. we used fritzing to make breadboard design for you, just refer the circuit diagram to build your own circuit.</p>
<p>The 12v and 5v power supply is something you can get from adapter around you, power socket or power extension box is something you need to buy. you must buy a big box to fit in maximum circuit Inside it, Precaution must be taken when you assemble this high power circuits.</p>
<p>&nbsp;</p>
<h2>Schematics:</h2>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/eSocket.jpg" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-464 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/eSocket.jpg" alt="eSocket" width="935" height="1191" srcset="https://learn.edwinrobotics.com/wp-content/uploads/eSocket.jpg 935w, https://learn.edwinrobotics.com/wp-content/uploads/eSocket-236x300.jpg 236w, https://learn.edwinrobotics.com/wp-content/uploads/eSocket-804x1024.jpg 804w" sizes="auto, (max-width: 935px) 100vw, 935px" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://learn.edwinrobotics.com/wp-content/uploads/eSocket.png" target="_blank"><img loading="lazy" decoding="async" class="alignnone wp-image-455 size-full" src="http://learn.edwinrobotics.com/wp-content/uploads/eSocket.png" alt="eSocket" width="5232" height="3744" srcset="https://learn.edwinrobotics.com/wp-content/uploads/eSocket.png 5232w, https://learn.edwinrobotics.com/wp-content/uploads/eSocket-300x215.png 300w, https://learn.edwinrobotics.com/wp-content/uploads/eSocket-1024x733.png 1024w" sizes="auto, (max-width: 5232px) 100vw, 5232px" /></a></p>
<p>&nbsp;</p>
<p>If you check the above image, you won&#8217;t find 5v power supply, its because we fitted it in inside the power socket, the two green wires coming out of the power socket is 5v and GND. The rest you are able to figure out just by referring the schematic shown. We had added working video of the prototype to show you how the things work, use the source code we provided to build your own device.</p>
<p>&nbsp;</p>
<div style="width: 640px;" class="wp-video"><!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<video class="wp-video-shortcode" id="video-438-1" width="640" height="352" preload="metadata" controls="controls"><source type="video/mp4" src="http://learn.edwinrobotics.com/wp-content/uploads/eSocket-Video.mp4?_=1" /><a href="http://learn.edwinrobotics.com/wp-content/uploads/eSocket-Video.mp4">http://learn.edwinrobotics.com/wp-content/uploads/eSocket-Video.mp4</a></video></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h1 id="Step4" style="text-align: left;"><strong>Source Code</strong></h1>
<blockquote><p><span style="color: #33cccc;">//ON Device                        Control command:   http://192.168.1.167/led?params=1                </span><br />
<span style="color: #33cccc;">//OFF Device                      Control command:   http://192.168.1.167/led?params=2            </span></p>
<p>#include &lt;ESP8266WiFi.h&gt;<br />
#include &lt;aREST.h&gt;</p>
<p>#define PIN1 13<br />
#define PIN2 12</p>
<p>aREST rest = aREST();</p>
<p><span style="color: #33cccc;">// WiFi parameters</span><br />
const char* ssid = &#8220;xxxx&#8221;;<br />
const char* password = &#8220;xxxxxxxx&#8221;;</p>
<p><span style="color: #33cccc;">// The port to listen for incoming TCP connections</span><br />
#define LISTEN_PORT 80</p>
<p><span style="color: #33cccc;">// Create an instance of the server</span><br />
WiFiServer server(LISTEN_PORT);</p>
<p><span style="color: #33cccc;">// Declare functions to be exposed to the API</span><br />
int ledControl(String command);<br />
void setup(void){<br />
Serial.begin(57600);<br />
pinMode(PIN1,OUTPUT);<br />
pinMode(PIN2,OUTPUT);</p>
<p><span style="color: #33cccc;">// Function to be exposed</span><br />
rest.function(&#8220;led&#8221;,ledControl);</p>
<p><span style="color: #33cccc;">// Give name and ID to device</span><br />
rest.set_id(&#8220;1&#8221;);<br />
rest.set_name(&#8220;esp8266&#8221;);</p>
<p><span style="color: #33cccc;">// Connect to WiFi</span><br />
WiFi.begin(ssid, password);<br />
while (WiFi.status() != WL_CONNECTED) {<br />
delay(500);<br />
}</p>
<p><span style="color: #33cccc;">// Start the server</span><br />
server.begin();<br />
Serial.println(WiFi.localIP());<br />
}<br />
void loop() {<br />
<span style="color: #33cccc;">// Handle REST calls</span><br />
WiFiClient client = server.available();<br />
if (!client) {<br />
return;<br />
}</p>
<p>while(!client.available()){<br />
delay(1);<br />
}<br />
rest.handle(client);<br />
}<br />
int ledControl(String command) {<br />
int state = command.toInt();</p>
<p>if(state==1){<br />
digitalWrite( PIN1, 1);<br />
digitalWrite( PIN2, 1);<br />
}</p>
<p>else<br />
if(state==2){<br />
digitalWrite( PIN1, 0);<br />
digitalWrite( PIN2, 0);<br />
}</p>
<p>return 1;<br />
}</p></blockquote>
<p>&nbsp;</p>
<p>Make sure that you had replaced the Wifi SSID and password credentials in the code with your own network one.</p>
<p>Once you upload the code to you device, you are able to get your local IP address from the serial terminal, open the arduino serial terminal at 57600 baud rate, when you are able to see the IP address just copy it and open your browser either from computer or mobile, whichever connected to same network, use the following two commands in the address bar to control the socket:</p>
<p><span style="color: #33cccc;">//ON Device                        Control command:   http://192.168.1.167/led?params=1                </span><br />
<span style="color: #33cccc;">//OFF Device                      Control command:   http://192.168.1.167/led?params=2      </span></p>
<p>Replace the IP address with you own IP address in the command shown above. Whenever a successful communication is established between ESP8266 and Web, you will get response from the ESP8266 at web end, you are able to see this in the video we added.</p>
<p>We had used the arest in this project, which made our task looks simple, using the arest command line we are able to pass on multiple parameters(all at once) to ESP8266 as string or vise versa.</p>
<p>Download the <a href="https://github.com/marcoschwartz/aREST/archive/master.zip" target="_blank">arest library</a> to run the above code. you need to unzip and copy the library to the arduino library folder.</p>
<p>If you are a web developer the things will be more easier for you, just use the mentioned commands in your web page to link it to the web User Interface. In the next part we will come with more advanced options for the same project so that things will be more easier for you.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h1>Source:</h1>
<p><a href="https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide" target="_blank">ESP8266 Thing<br />
</a><a href="http://fritzing.org/home/" target="_blank">Frtizing</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://learn.edwinrobotics.com/esocket/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="http://learn.edwinrobotics.com/wp-content/uploads/eSocket-Video.mp4" length="5666545" type="video/mp4" />

			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 19/290 objects using APC
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using APC (Request-wide modification query)

Served from: learn.edwinrobotics.com @ 2025-07-28 09:25:19 by W3 Total Cache
-->