<?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>Embedded Micro</title>
	<atom:link href="http://embeddedmicro.com/feed" rel="self" type="application/rss+xml" />
	<link>http://embeddedmicro.com</link>
	<description>Making Technology</description>
	<lastBuildDate>Mon, 03 Oct 2011 02:32:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Neon Flies Pro</title>
		<link>http://embeddedmicro.com/products/neon-flies</link>
		<comments>http://embeddedmicro.com/products/neon-flies#comments</comments>
		<pubDate>Wed, 28 Sep 2011 18:33:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>
		<category><![CDATA[Products]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/?p=186</guid>
		<description><![CDATA[Introducing Neon Flies, a live wallpaper for Android phones. Be surrounded by swarms of multicolored butterflies that flutter in and out of view. With an almost endless number of colors and flight paths you will be mesmerized. Each butterfly flaps its wings realistically as it zooms around your screen. Neon Flies is based on OpenGL [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://embeddedmicro.com/redirect/neonflies.php" target="_blank"><img class="aligncenter size-full wp-image-223" title="Neon Flies Pro" src="http://embeddedmicro.com/wp-content/uploads/2011/09/featuredPro.png" alt="Neon Flies Pro" width="553" height="270" /></a></p>
<p>Introducing <strong><span style="color: #fe0000;">N</span><span style="color: #00fd00;">e</span><span style="color: #fdfd00;">o</span><span style="color: #0000fe;">n</span> <span style="color: #00fefe;">F</span><span style="color: #a900fe;">l</span><span style="color: #ff8300;">i</span><span style="color: #4900fd;">e</span><span style="color: #5afb00;">s</span></strong>, a live wallpaper for Android phones. Be surrounded by swarms of multicolored butterflies that flutter in and out of view. With an almost endless number of colors and flight paths you will be mesmerized. Each butterfly flaps its wings realistically as it zooms around your screen. Neon Flies is based on OpenGL for silky smooth hardware accelerated animations.</p>
<p><iframe src="http://www.youtube.com/embed/Jz47ZD-yISw" frameborder="0" width="553" height="415"></iframe></p>
<p>Download it now from the Market <a href="/redirect/neonflies.php" target="_blank">here</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-188 alignnone" style="border-style: initial; border-color: initial;" title="Phone Shot 1" src="http://embeddedmicro.com/wp-content/uploads/2011/09/device.png" alt="" width="207" height="346" /> <img class="size-full wp-image-189 alignnone" title="Phone Shot 2" src="http://embeddedmicro.com/wp-content/uploads/2011/09/device2.png" alt="" width="207" height="346" /></p>
<p style="text-align: left;">It also looks great on tablets!</p>
<p style="text-align: left;"><a href="http://embeddedmicro.com/wp-content/uploads/2011/09/tablet.png"><img class="aligncenter size-medium wp-image-191" title="Neon Flies on a Tablet" src="http://embeddedmicro.com/wp-content/uploads/2011/09/tablet-300x187.png" alt="" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/products/neon-flies/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canopy Live Wallpaper</title>
		<link>http://embeddedmicro.com/products/android/canopy-live-wallpaper</link>
		<comments>http://embeddedmicro.com/products/android/canopy-live-wallpaper#comments</comments>
		<pubDate>Sun, 28 Nov 2010 01:34:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/?p=167</guid>
		<description><![CDATA[Canopy is a live wallpaper for Android phones.  When you first load the wallpaper a large branch grows from the bottom of the screen and the screen starts to zoom in. After the branch has grown more branches sprout from it and more from the new branches and more from them. This continues as you [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Canopy is a live wallpaper for Android phones.  When you first load the wallpaper a large branch grows from the bottom of the screen and the screen starts to zoom in. After the branch has grown more branches sprout from it and more from the new branches and more from them. This continues as you zoom forever into the new branches. Canopy is vector based so it will look gorgeous on any size display.</p>
<p style="text-align: left;"><span id="more-167"></span></p>
<p style="text-align: center;"><a href="http://embeddedmicro.com/wp-content/uploads/2010/11/device2.png"><img class="alignnone size-medium wp-image-183" title="Black on Yellow" src="http://embeddedmicro.com/wp-content/uploads/2010/11/device2-200x300.png" alt="" width="200" height="300" /></a> <a href="http://embeddedmicro.com/wp-content/uploads/2010/11/device.png"><img class="alignnone size-medium wp-image-182" title="Rainbow" src="http://embeddedmicro.com/wp-content/uploads/2010/11/device-200x300.png" alt="" width="200" height="300" /></a></p>
<p style="text-align: left;">You can download Canopy by searching for &#8220;Canopy Live Wallpaper&#8221; in the Market or by using this QR code.</p>
<p style="text-align: left;"><a href="http://embeddedmicro.com/wp-content/uploads/2010/11/canopy-code.png"><img class="aligncenter size-full wp-image-172" title="QR Code" src="http://embeddedmicro.com/wp-content/uploads/2010/11/canopy-code.png" alt="" width="215" height="215" /></a></p>
<p style="text-align: left;">Canopy is based on the <a href="http://onecm.com/projects/canopy/" target="_blank">Chrome Canopy</a>. However, there were some modifications that had to be made to allow it to be used as a background.  The biggest being that it had to be able to zoom by itself. In Chrome Canopy the user uses the mouse to control the zoom, in Canopy Live Wallpaper it automatically zooms into the place with the most action. Another change was that the number of branches on screen had to be reduced due to the fact that it has to run on a phone and not a powerful desktop. However, this is adjustable in the settings.</p>
<p style="text-align: left;">Canopy Live Wallpaper is fully customizable.</p>
<p style="text-align: left;">You have full control over</p>
<ul>
<li>The color of the branches</li>
<li>The color of the background</li>
<li>The number of branches on screen</li>
<li>The number of twigs that grows off each branch</li>
<li>How crooked the branches can get</li>
<li>Number of vertices that compose each branch (detail vs. speed)</li>
<li>Zoom speed</li>
<li>Anti-Aliasing</li>
<li>Max FPS</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/products/android/canopy-live-wallpaper/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introducing the Fusion</title>
		<link>http://embeddedmicro.com/products/electronics-products/introducing-the-fusion</link>
		<comments>http://embeddedmicro.com/products/electronics-products/introducing-the-fusion#comments</comments>
		<pubDate>Sun, 31 Oct 2010 04:51:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/?p=123</guid>
		<description><![CDATA[This board was designed to allow the AVR to offload processor intensive tasks to the FPGA. The AVR and the FPGA are connected by 28 IO pins (PORTC[0-3], PORTD, PORTE, and PORTF). This will allow for high speed data transfer. It was originally designed for a project I am working on which requires a large artificial neural [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This board was designed to allow the AVR to offload processor intensive tasks to the <a href="http://en.wikipedia.org/wiki/Fpga">FPGA</a>. The AVR and the FPGA are connected by 28 IO pins (PORTC[0-3], PORTD, PORTE, and PORTF). This will allow for high speed data transfer. It was originally designed for a project I am working on which requires a large <a href="http://en.wikipedia.org/wiki/Artificial_neural_network">artificial neural network</a>. The neural net will be modeled in hardware on the FPGA.<span id="more-123"></span></p>
<p style="text-align: center;"><a href="http://embeddedmicro.com/wp-content/uploads/2010/10/fusion.jpg"><img class="aligncenter size-medium wp-image-155" title="Fusion" src="http://embeddedmicro.com/wp-content/uploads/2010/10/fusion-300x199.jpg" alt="Fusion" width="300" height="199" /></a></p>
<p style="text-align: left;">What exactly is the Fusion? Take a look at it&#8217;s features!</p>
<ul>
<li><a href="http://www.atmel.com/dyn/products/product_card.asp?part_id=4298">XMEGA128A1</a></li>
<li><a href="http://www.xilinx.com/products/spartan3a/">Spartan 3A XC3S200A 5C</a></li>
<li>32MHz clock</li>
<li>Real-time clock</li>
<li>16MB SDRAM</li>
<li>8MB DataFlash</li>
<li>3-axis accelerometer</li>
<li>2 general purpose LED connected to the XMEGA</li>
<li>1 general purpose LED connected to the FPGA</li>
<li>2Mbit FPGA PROM</li>
<li>DONE LED for FPGA</li>
<li>5v-3.3V bi-directional level shifters</li>
<li>8 analog inputs (with 5V or 3.3V selectable power)</li>
<li>6 3.3V digital inputs</li>
<li>16 5V digital IOs</li>
<li>8 3.3V digital IOs</li>
<li>Reset buttons</li>
<li>Program button for FPGA</li>
<li>Powered from 5V</li>
</ul>
<p>The problem with FPGAs is the <a href="http://www.xilinx.com/products/devkits/HW-USB-II-G.htm">programmers</a> are too expensive for most people. To combat this the FPGA will come loaded with a versatile design. It will allow for PWM on any of the pins, input capture on some, a hardware neural net, USART, and more.</p>
<p>The chip missing in the pictures is the DataFlash. I was not able to locate any stock right now but Atmel is sending a sample for this prototype.</p>
<p>So far I have identified two errors. The DONE label on the silkscreen should be next to the left LED not the right one and pins 20 and 19 on the 5v-3.3v level-shifters are flipped. I will patch that up tomorrow.</p>

<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/fusion' title='Fusion'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/fusion-150x150.jpg" class="attachment-thumbnail" alt="Fusion" title="Fusion" /></a>
<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/populated' title='Populated Board'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/populated-150x150.jpg" class="attachment-thumbnail" alt="Populated Board" title="Populated Board" /></a>
<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/fpga' title='FPGA'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/fpga-150x150.jpg" class="attachment-thumbnail" alt="FPGA" title="FPGA" /></a>
<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/xmega' title='XMEGA'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/xmega-150x150.jpg" class="attachment-thumbnail" alt="XMEGA" title="XMEGA" /></a>
<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/accelerometer-2' title='Accelerometer'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/accelerometer1-150x150.jpg" class="attachment-thumbnail" alt="Accelerometer" title="Accelerometer" /></a>
<a href='http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/attachment/bottom-2' title='Bottom of PCB'><img width="150" height="150" src="http://embeddedmicro.com/wp-content/uploads/2010/10/bottom1-150x150.jpg" class="attachment-thumbnail" alt="Bottom of PCB" title="Bottom of PCB" /></a>

]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/products/electronics-products/introducing-the-fusion/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Programming the 3x3x3 RGB LED Cube</title>
		<link>http://embeddedmicro.com/tutorials/programming-the-3x3x3-rgb-led-cube</link>
		<comments>http://embeddedmicro.com/tutorials/programming-the-3x3x3-rgb-led-cube#comments</comments>
		<pubDate>Fri, 20 Aug 2010 22:50:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/?p=101</guid>
		<description><![CDATA[So you have a 3x3x3 RGB LED Cube and you are board of the built in patterns. Now you want to try your hand at making your own patterns but you&#8217;re not quite sure where to start. You&#8217;ve come to the right place. In this tutorial I will explain how the demo code works and [...]]]></description>
			<content:encoded><![CDATA[<p>So you have a 3x3x3 RGB LED Cube and you are board of the built in patterns. Now you want to try your hand at making your own patterns but you&#8217;re not quite sure where to start. You&#8217;ve come to the right place. In this tutorial I will explain how the demo code works and how it can be easily adapted to your new patterns.<span id="more-101"></span></p>
<p>First if you have not already download the <a href="http://embeddedmicro.com/wp-content/uploads/2010/08/V04.zip">Source Code</a>.</p>
<p>This code will be the base for your code. Much of the underlying code is done for you so you can just worry about implementing your patterns. Go ahead and open up main.c</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &quot;hardware.h&quot;</span>
<span style="color: #339933;">#include &quot;driver.h&quot;</span>
<span style="color: #339933;">#include &quot;patterns.h&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">extern</span> <span style="color: #993333;">volatile</span> <span style="color: #993333;">uint8_t</span> cube<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000dd;">27</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #993333;">int</span> main <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    init_ports<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    USART_Init<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">21</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//baud 115200</span>
    init_timer1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//set up the timer and start the main interrupt</span>
    display_colors<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">//serial_control();</span>
        plasma<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">750</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        corner_expand<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">35</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        rain<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        worm<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">150</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        flash_rand<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This is the core section of the code. Everything before the while loop is setting up the cube so you should not need to mess with this. The code inside the while loop are the patterns that will be displayed. You can change the order or change their arguments (the numbers in parentheses). The number sets how long the pattern will run for.</p>
<p>Note that they are not a unit of time but rather how many times a pattern will execute its loop. Some patterns have fast loops and others have slow loops so the fact that plasma has 750 and corner_expand has 35 does not necessarily mean that plasma will run 21 times longer.</p>
<p>Now that you are familiar with the highest level open up patterns.c. This file contains the actual patterns and is where you should add yours.</p>
<p>Let us take a look at one of the simplest patterns, flash_rand()</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">void</span> flash_rand <span style="color: #009900;">&#40;</span><span style="color: #993333;">uint16_t</span> len<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #993333;">uint16_t</span> ctr<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span>ctr<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>ctr<span style="color: #339933;">&lt;</span>len<span style="color: #339933;">;++</span>ctr<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        fill_buffer<span style="color: #009900;">&#40;</span>rand<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> MAX_COLOR<span style="color: #339933;">,</span>rand<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> MAX_COLOR<span style="color: #339933;">,</span>rand<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> MAX_COLOR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        display_buffer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        delay_ms<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This function simply fills the cube will a solid random color every 300ms.</p>
<p>There are a set of functions you can use to manipulate the cube. They are listed in driver.h. In flash_rand() we use fill_buffer() which will fill the entire cube with a single color.</p>
<p>The next line display_buffer() copies the cube&#8217;s frame buffer to the display buffer. This is used so your entire frame will be displayed once it has been fully rendered. MAX_COLOR is defined as the brightest value a LED can have. Anything higher than MAX_COLOR will be treated the same as if it were MAX_COLOR. This number is subject to change so it is always best to use a fraction of MAX_COLOR.</p>
<p>The last line is used to wait 300ms before showing the next frame. There are delay functions in driver.h which should be used instead of the normal AVR delays like _delay_ms(). This is because the cube display is interrupt driven so your delay will be interrupted many times making the delay time much longer than what you originally wanted.</p>
<p>Something to note is that while you can write to the cube&#8217;s frame buffer directly you should use the functions in driver.h instead. The main reason for this is that in future version of the cube the wiring of the LED matrix may change which will lead to a change in the driver and the frame buffer structure. Using the display functions guarantees that the patterns you worked hard on will be usable on future versions of the cube.</p>
<p>I will be adding more to this tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/programming-the-3x3x3-rgb-led-cube/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Transistors</title>
		<link>http://embeddedmicro.com/tutorials/transistors</link>
		<comments>http://embeddedmicro.com/tutorials/transistors#comments</comments>
		<pubDate>Fri, 20 Aug 2010 04:02:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=31</guid>
		<description><![CDATA[The next step into semiconductors, the transistor. Chances are you have heard of the transistor before. They are one of the more widely used components, a computer has massive amounts of them. So what is a transistor? A transistor is an electrical switch. By using a small amount of power you can control a larger [...]]]></description>
			<content:encoded><![CDATA[<p>The next step into semiconductors, the transistor. Chances are you have heard of the transistor before. They are one of the more widely used components, a computer has massive amounts of them. So what is a transistor? <span id="more-31"></span>A transistor is an electrical switch. By using a small amount of power you can control a larger amount of power. There are many types of transistors, but we will focus on the two basic ones, NPN and PNP.</p>
<h4>Inside a Transistor</h4>
<p>Inside a transistor there are three pieces of silicon. Just like the diode each piece is ether a N-type or P-type silicon. The name of the transistor, NPN and PNP, come from how the silicon is arranged.</p>
<h4>NPN vs. PNP</h4>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/trans.jpg"><img class="aligncenter size-full wp-image-94" title="Transistors" src="http://embeddedmicro.com/wp-content/uploads/2010/08/trans.jpg" alt="" width="450" height="155" /></a></p>
<p>As you can see, NPN and PNP have the same structure, but differently doped silicon. Why does that matter? A NPN transistor is used to sink current, or pull it to ground, while a PNP transistor sources current, or pulls it to VDD (positive voltage). Also a NPN transistor is closed (conducting) when the base has a positive voltage, but a PNP is closed when the base is pulled to ground.</p>
<h4>Using the Transistor</h4>
<p>A transistor has three pins, base, collector, and emitter. The emitter of a NPN transistor is connected to ground, while in a PNP it is connected to a VDD. To make the transistor conduct electricity, you need to run current from the base pin to the emitter pin. That is why you need to connect the base of a PNP transistor to ground and a NPN to VDD to turn them on.</p>
<h4>Biasing Resistor</h4>
<p>A resistor should be placed between the base and whatever is driving it. This is because the base will act as a diode and short the signal when the transistor is on! The resistance of the resistor depends on the transistor as well as how much current you need. A transistor requires a certain amount of current to flow from the base to the emitter to become saturated. When a transistor is saturated is will be the best conductor it can be, allowing the most amount of current. Sometimes you do not want that, as the amount of current that flows from the collector to the emitter is related to the amount of current flowing through the base to the emitter, you can use this to amplify a signal, or to limit how much power something receives.</p>
<h4>Forward Voltage</h4>
<p>Just like a diode a transistor has a forward voltage of around 0.7V, as it is basically two diodes. See the diode tutorial for more on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/transistors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diodes</title>
		<link>http://embeddedmicro.com/tutorials/diodes</link>
		<comments>http://embeddedmicro.com/tutorials/diodes#comments</comments>
		<pubDate>Fri, 20 Aug 2010 04:01:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=29</guid>
		<description><![CDATA[Diodes are the most basic semiconductor. A diode simply allows electricity to flow only one way. They allow current to flow through them when the side marked with a + in the picture below has a higher voltage then the side marked with a -. A diode can be thought of as a check valve, [...]]]></description>
			<content:encoded><![CDATA[<p>Diodes are the most basic semiconductor. A diode simply allows electricity to flow only one way.<span id="more-29"></span> They allow current to flow through them when the side marked with a + in the picture below has a higher voltage then the side marked with a -.<br />
<a href="http://embeddedmicro.com/wp-content/uploads/2010/08/diode.jpg"><img class="aligncenter size-full wp-image-86" title="Diode" src="http://embeddedmicro.com/wp-content/uploads/2010/08/diode.jpg" alt="" width="155" height="83" /></a><br />
A diode can be thought of as a check valve, they only let water though one way.</p>
<h4>How Diodes Work</h4>
<p>Silicon is special in that it is a semiconductor, meaning it conducts electricity in some circumstances but not others. Silicon can be mixed with small amounts of impurities to give it a charge. This is called doping.To give the silicon a positive charge small amounts of boron are mixed into it, for a negative charge it is mixed with something like phosphorous. A diode consists of two pieces of silicon, a n-type(-) and a p-type(+).</p>
<p>When a positive voltage is applied to the p-type side the like charges repel and it creates a conductive path past the P-N junction (where P and N touch). However if a negative charge is applied to the p-type side then the opposite charges attract creating an electrical &#8220;hole&#8221; at the P-N junction, blocking the flow of electrons.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/diodes.jpg"><img class="aligncenter size-full wp-image-87" title="Diode" src="http://embeddedmicro.com/wp-content/uploads/2010/08/diodes.jpg" alt="" width="210" height="150" /></a></p>
<h4>Forward Voltage</h4>
<p>When positive voltage is applied to the P-type side of the diode it takes a specific amount of voltage before it can create the conducting bridge. The lowest voltage at which the diode starts conducting is called the <strong>forward voltage</strong>. A diode typically has a forward voltage of around 0.7V. This also means that the voltage across the diode will be 0.7V, so you will lose 0.7V. If you have a 5V connected to the P-type side then the voltage from the N-type side to ground will be the difference between 5V and the forward voltage, 4.3V. There are special diodes know as Schottky diodes that have a very low forward voltage, however they are usually more expensive and can not handle as much current.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/diodes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inductors</title>
		<link>http://embeddedmicro.com/tutorials/inductors</link>
		<comments>http://embeddedmicro.com/tutorials/inductors#comments</comments>
		<pubDate>Fri, 20 Aug 2010 04:00:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=27</guid>
		<description><![CDATA[The inductor tutorial! So you want to know what an inductor is? An inductor is a coil of wire, normally around a ferrous, magnetic, core. They come in all shapes and sizes, but the most common ones are called toroids. Toroids consist of a ferrous ring with a hold in the center where wire is [...]]]></description>
			<content:encoded><![CDATA[<p>The inductor tutorial! So you want to know what an inductor is? <span id="more-27"></span>An inductor is a coil of wire, normally around a ferrous, magnetic, core. They come in all shapes and sizes, but the most common ones are called toroids. Toroids consist of a ferrous ring with a hold in the center where wire is wrapped around. They look something like this.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/induct.jpg"><img class="aligncenter size-full wp-image-90" title="Inuductor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/induct.jpg" alt="" width="300" height="300" /></a></p>
<p>What does an inductor do? An inductor stores electrical energy in the form of a magnetic field. An inductor can be though of as a large water wheel in a river. Where the river starts flowing and the water wheel is stopped it resists the flow of water until it starts to move and is up to speed with the river. If the river stops the momentum of the water wheel will continue to make it spin pushing the water forward for a short amount of time. An inductor does pretty much that. When electricity first pases though the inductor there is a large resistance until its magnetic field is up. Once the power stops flowing the magnetic field collapses into the inductor forcing the electricity forward until the field has completely collapsed.</p>
<h4 class="heading">Voltage Changes</h4>
<p>When the field collapses, if there is no path for the electricity the collapsing field makes to go the voltage will build up until it dissipates somewhere, either though the inductor itself or through another circuit. This is useful in generating higher voltages. If you have a AA battery, 1.5V, and your circuit needs 5V you can use a boost converter to generate the higher voltage. Remember that when boosting voltage the current goes down, so you do not gain any power, you actually lose some as the efficiency is not 100%. To generate a higher voltage the boost circuit switches the inductor on and off very fast. When it is on the power flows through the inductor to ground, but when it is off it flows from the inductor to the 5V circuit. There are special chips that monitor the voltage so you get a nice 5V. You can get regulators for almost any voltage you will need. This property of inductors can also be used to generate high voltage, I used one to make 600V with 15V input.</p>
<h4 class="heading">Transformers</h4>
<p>Transformers (aka &#8220;wall warts&#8221;) use two or more inductors to convert voltage. Much like the single inductor regulators the transformer turns the inductor on and off. However they turn one inductor on and off and allow the magnetic field to collapse into the other. A wall wart uses the fact that the power in your home is AC voltage, it switches directions 60 times a second. Most transformers that regulate 120AC have an inductor connected directly to the outlet and another that the field collapses into.</p>
<h4 class="heading">Chokes</h4>
<p>Chokes are inductors that are used to smooth the current flow. When there is a larger flow then it uses is to build up the magnetic field, but when there is lower amount part of the field collapses effectively smoothing it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/inductors/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Capacitors</title>
		<link>http://embeddedmicro.com/tutorials/capacitors</link>
		<comments>http://embeddedmicro.com/tutorials/capacitors#comments</comments>
		<pubDate>Fri, 20 Aug 2010 04:00:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=25</guid>
		<description><![CDATA[So you still want to learn more, well you are about to learn about the capacitor! I have to warn you, capacitors are more complicated then resistors, but you&#8217;ll be fine. Enough talk, what is a capacitor? A capacitor is a part that stores electrostatic energy. OK&#8230; what does that mean? Capacitors store an electrical [...]]]></description>
			<content:encoded><![CDATA[<p>So you still want to learn more, well you are about to learn about the <strong>capacitor</strong>! I have to warn you, capacitors are more complicated then resistors, but you&#8217;ll be fine. Enough talk, what is a capacitor? <span id="more-25"></span>A capacitor is a part that stores electrostatic energy. OK&#8230; what does that mean? Capacitors store an electrical charge, just like a battery, but the way the store the charge and their properties are very different. A batter uses chemicals to store a charge, while a capacitor uses an electrostatic field. What that means is they uses an electromagnetic field to store energy, very similar to static electricity. Again water does an excellent job as a visual, if you take a hose and this time put a <strong>water balloon</strong> on the end, fill it up, then take it off and open it what happens? The water that you just put into it comes shotting out. A capacitor acts the same way.</p>
<p>Capacitors like resistors have different ratings, voltage, farads, and ESR (<strong>E</strong>quivalent <strong>S</strong>eries <strong>R</strong>esistance).</p>
<h4 class="heading">Voltage</h4>
<p>All capacitors have a voltage rating. This is the maximum voltage you can apply to the capacitor without it going <em>BOOM!</em>, or simply not working anymore. Image if you left the water balloon on the hose and turned on the hose on full, once it got full it would pop. This is because inside a capacitor are two metal plates that are separated by a very thin insulator.The two plates can not touch, but the closer they are the more electrons the capacitor can store. However if you apply too high of a voltage the electrons will have enough driving force to jump across the insulator. Always stay under the rated voltage. The rule of thumb is to use a capacitor rated at twice the voltage it will ever see, so for a 5V circuit you would use a 10V capacitor.</p>
<h4 class="heading">Farads</h4>
<p>Farads is the measure of how big of a charge a capacitor can store. Most capacitors are rated in microfarads (µF, often typed as uF), 1/1,000,000 of a farad. This is very similar to how big the water balloon is, the larger it is the more water it can store. The size of the capacitor, generally, will increase with a higher farads or a higher voltage rating.</p>
<h4 class="heading">Joules</h4>
<p>Joules is a measure of the amount of energy stored in the capacitor. This is not used in most things, but is included for reference. 1J = 1W for 1 second. So if the capacitor stored 1J then it could supply 1V at 1A for one second before running out of power. To calculate joules you use the formula <strong>J=V^2*F*0.5</strong>, where J=joules, V=voltage, and F=farads. I almost never use that formula, instead I use <strong>J=V^2*µF*0.5*10^-6</strong>, with this you can use µF instead of farads.</p>
<h4 class="heading">ESR</h4>
<p>ESR is used to show how fast a capacitor can be charged or discharged. This is the largest difference between a battery and a capacitor. A capacitor can dump all of it&#8217;s power almost instantly while if you shorted a battery (don&#8217;t do it) it could take hours to completely discharge. That is because a capacitor uses an electrostatic field to <strong><em>store</em></strong> the energy, that can easy dump its energy. A battery, on the other hand, uses chemicals in an electrochemical reaction to <strong><em>produce</em></strong> electricity. The amount of power the battery can discharge is relatively small compared to the amount of power stored.</p>
<h4 class="heading">Types of Capacitors</h4>
<p>There are many types of capacitors, I will cover the four main types here. This includes ceramic, electrolyte, tantalum, and super capacitors. Each have the strengths and weaknesses that I will cover.</p>
<h4 class="heading">Ceramic Capacitors</h4>
<p>Ceramic capacitors are the most common capacitors. They are also the cheapest and generally the smallest. They are not polarized, which means that it does not matter which way you connect them. They have a low ESR, but relatively low farads. They are commonly used for noise reduction.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/ccap.jpg"><img class="aligncenter size-full wp-image-85" title="Ceramic Capacitor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/ccap.jpg" alt="" width="238" height="300" /></a></p>
<h4 class="heading">Electrolyte Capacitors</h4>
<p>Another very common capacitor, the electrolyte capacitor. These capacitors are usually larger then their ceramic counterparts, they have a higher ESR so they can not be charged/discharged as fast, and generally have a lower voltage rating. So why would anyone want them? They are fairly cheap for starters, but their main selling point is that they have a high farad rating. These capacitors are polarized and <strong>must</strong> be charged a specific way. Look at the picture below, see the silver stripe? That is used to show which pin is connected to ground. Also notice how one pin is longer then the other? The longer one is the + pin while the shorter one connects to &#8211; or ground.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/ecap.jpg"><img class="aligncenter size-full wp-image-89" title="Electrolytic Capacitor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/ecap.jpg" alt="" width="450" height="300" /></a></p>
<h4 class="heading">Tantalum Capacitors</h4>
<p>Tantalum capacitors look almost identical to ceramic capacitors. They are high performance capacitors. Usually they don&#8217;t have as high of farad rating as electrolyte capacitors, but they have a very low ESR. They can be charged/discharged extremely fast, because of this they are commonly used in switching regulators. This high performance comes at a price, they are usually much more expensive than ceramic capacitors, around 4-5x more. Tantalum capacitors are polarized and the + side is usually marked by a little + next to the pin.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/tcap.jpg"><img class="aligncenter size-full wp-image-93" title="Tantalum Capacitor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/tcap.jpg" alt="" width="300" height="300" /></a></p>
<h4 class="heading">Super Capacitors</h4>
<p>Super capacitors are the bridge between capacitors and batteries. They have <strong>extremely</strong> high farad ratings up to a few 1000F! That is F not µF! However they have a very low voltage rating, around 2.1V. They also have a high ESR, much higher than electrolyte capacitors. They look identical to electrolyte capacitors, except they are generally bigger. They are polarized and they are marked with a stripe like the electrolyte capacitors.</p>
<p><a href="http://embeddedmicro.com/wp-content/uploads/2010/08/scap.jpg"><img class="aligncenter size-full wp-image-92" title="Super Capacitor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/scap.jpg" alt="" width="300" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/capacitors/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Resistors</title>
		<link>http://embeddedmicro.com/tutorials/resistors</link>
		<comments>http://embeddedmicro.com/tutorials/resistors#comments</comments>
		<pubDate>Fri, 20 Aug 2010 03:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=18</guid>
		<description><![CDATA[Resistors, one of the most common and simple parts used in electronics. So, what is a resistor? Why are they so useful? A resistor is anything that resists the flow of electricity. Now that is pretty broad isn&#8217;t it. Pretty much everything resists the flow of electricity, except for super conductors, however &#8220;resistor&#8221; generally applies [...]]]></description>
			<content:encoded><![CDATA[<p>Resistors, one of the most common and simple parts used in electronics. So, what is a resistor? Why are they so useful?<span id="more-18"></span> A resistor is anything that resists the flow of electricity. Now that is pretty broad isn&#8217;t it. Pretty much everything resists the flow of electricity, except for super conductors, however &#8220;resistor&#8221; generally applies to a component that looks something like this.<br />
<a href="http://embeddedmicro.com/wp-content/uploads/2010/08/resistor.png"><img class="aligncenter size-full wp-image-91" title="Resistors" src="http://embeddedmicro.com/wp-content/uploads/2010/08/resistor.png" alt="" width="300" height="200" /></a><br />
So what exactly do they do? As I said before, resistors resist electrical current. If your electrical current was water running through a hose, a bend in the hose would be a resistor.</p>
<h4>Ohm</h4>
<p>What is an ohm? Just like voltage or amperage, ohm is a unit. Ohm is used to measure how much a resistor resists the flow of electricity. The higher the rating the more it resists. Just like the hose, the more bends, or the tighter the bend, the more it resists the water. In this tutorial I use a LED as an example for the resistor. Exactly what an LED is will be covered in a later tutorial, for now all you need to know it that it is a type of light bulb. They are found in all sorts of electronics. They are commonly used to show that something is on, and are normally green or red.</p>
<h4 class="heading">Ohm&#8217;s Law</h4>
<p>You may have heard about this before in school, the famous equation <strong>V=IR</strong>. This is very important when working with resistors. Using this formula you can find out how much current (amperage) will flow though a resistor at a set voltage. For this you want to use a variation of the formula (solve for I, I stands for current) <strong>I=V/R</strong>.</p>
<p>So why would I <strong>ever</strong> need this? Here is a very common example, you have a nice LED (<strong>L</strong>ight <strong>E</strong>mitting <strong>D</strong>iode) and you want to use 5V to power it. If you decided to connect 5V directly to the LED then your LED <em>might</em> last for a second or two, it would then turn a black color and stop working, they also smell horrible, of course I have never done this <img src='http://embeddedmicro.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>So how can you stop this? Well the title of this tutorial gives it away, a resistor! The average LED takes around 35mA of current and a red LED has a forward voltage of around 1.7V, the voltage it takes to make it light up. That means that it uses 1.7V*0.035A=~0.06W. Now we need to know how many amps we need at 5V to equal 0.06W. First we divide 0.06W by 5V = ~0.012A. Well what this means is that if we can power the LED with 5V and 12mA then it won&#8217;t burn out. To <em>limit</em> the amount of current down to 12mA we need a resistor, but how many ohms? We use another variation of Ohm&#8217;s Law <strong>R=V/I</strong>, R=5V/0.012A. We need a resistor with the value of around 417ohms for this LED.</p>
<p>Now I commonly use 220ohm resistors with LED and most can take it. I have yet to burn one out with a 220ohm resistor at 5V. Just to be sure lets find out how much current will flow though a 220ohm resistor at 5V. In this example we know R and V so we solve for I, I=5V/220ohm. Approximately 23mA, but wait that is not through the resistor. When something (the LED) uses more power than provided (providing 23mA when 35mA are needed) the voltage will drop and the current will increase. That is why we need to calculate the wattage, <strong>W=VI</strong>. 5V*0.023A=0.115W, now how much current will flow if the voltage is 1.7V? <strong>W/V=I</strong> 0.115W/1.7V=~0.07A or 70mA.</p>
<p>I know what you are thinking, &#8220;OK, do you really do all this for a LED?&#8221; honestly, no, but that is because 220ohms is usually safe, but for things like high power LED or LED in series/parallel, I do.</p>
<h4>Voltage Divider</h4>
<p>Another fantastic use of resistors. A voltage divider does just that, it divides voltage. A common voltage divider looks like this.<br />
<a href="http://embeddedmicro.com/wp-content/uploads/2010/08/divider.png"><img class="aligncenter size-full wp-image-88" title="Voltage Divider" src="http://embeddedmicro.com/wp-content/uploads/2010/08/divider.png" alt="" width="391" height="149" /></a><br />
The output is equal to <strong>Vo=V*[R2/(R1+R2)]</strong>. If R1=R2 and VDD=5V then:</p>
<p>5*[x/(x+x)]</p>
<p>5*[x/2x]</p>
<p>5*1/2</p>
<p>Vo=2.5V</p>
<p>The voltage divider is useful for reading a voltage with a microcontroller that is over the maximum voltage it can read. I have used a voltage divider to read 0-400V with a microcontroller running at 5V (meaning it can&#8217;t read anything over 5V with out damage).</p>
<p>The problem with voltage dividers is if you draw any current from the output then the voltage <strong>will</strong> drop. If you are using a microcontroller to read the voltage then the amount of current it draws from it is so little that the drop is not noticeable. The higher value you use for the resistors the more it is effected by current draw. For example if you used the ratio described above a 1ohm to 1ohm divider would be a lot less effected by current draw then a 1M ohm to 1M ohm (1M ohm = 1,000,000ohms). However the voltage divider draws power and that is calculated with Ohm&#8217;s Law, <strong>I=V/(R1+R2)</strong>. So using 1ohm for R1 and R2 with VDD=5V you would draw 2.5A! However with 1M ohm for each you would draw only 0.0000025A! For most cases I use 10K ohm to 100K ohm for a nice balance.</p>
<h4>What&#8217;s the value?</h4>
<p>Resistors are measured in ohms as you probably figured out by now, but how do we know how many ohms the resistor is? As you can see in the picture below resistors have colored bands on them. Those colors tell you what the value of the resistor is and the tolerance. Here is close up of a 220ohm resistor.<br />
<a href="http://embeddedmicro.com/wp-content/uploads/2010/08/220bands.jpg"><img class="aligncenter size-full wp-image-84" title="220 Ohm Resistor" src="http://embeddedmicro.com/wp-content/uploads/2010/08/220bands.jpg" alt="" width="495" height="204" /></a><br />
Each color represents a number.</p>
<table style="width: 100%; text-align: center;">
<tbody>
<tr>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #000000; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #a62e00; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #ff0000; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #ff9900; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #ffff00; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #00ff00; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #0000ff; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #ff00ff; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #c0c0c0; height: 15px;"></td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff; background-color: #ffffff; height: 15px;"></td>
</tr>
<tr>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">0</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">1</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">2</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">3</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">4</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">5</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">6</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">7</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">8</td>
<td style="padding: 0; text-align: center; border: 1px solid #ffffff;">9</td>
</tr>
</tbody>
</table>
<p>The first two bands are the 1st and 2nd digits. In this case the two red bands on the left. So that makes red red or 22. The next band is the multiplier. You add that many 0s to the end of your original number. On this one it is brown, 1. That means our resistor is 220ohm. If it were a black stripe it would be 22ohm or if it were another red strip it would be 2200ohm or 2.2K ohm.</p>
<p>Wait! What is that other band for? This band tells you the tolerance. Gold is +-5%, silver is +-10%, and if it is missing it is +-20%. In our case it is gold so the value of the resistor is 220ohm+-5% or 209-231ohm.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/resistors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginning Electronics, the Basics</title>
		<link>http://embeddedmicro.com/tutorials/14</link>
		<comments>http://embeddedmicro.com/tutorials/14#comments</comments>
		<pubDate>Fri, 20 Aug 2010 03:09:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://embeddedmicro.com/addon/embeddedmicro/?p=14</guid>
		<description><![CDATA[This tutorial will be your first step into the world of electronics. Here I will tell you about the three units that are commonly used when talking about electricity. You should have a good understanding of these, it will help you later. Now I know this can be hard. It took me about a year [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will be your first step into the world of electronics. Here I will tell you about the three units that are commonly used when talking about electricity. You should have a good understanding of these, it will help you later. Now I know this can be hard. It took me about a year before I fully understood what current really was, then again I did not have this great tutorial to read <img src='http://embeddedmicro.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<span id="more-14"></span></p>
<h4>Voltage</h4>
<p>Voltage is the measure of electrical potential between two points. Well, what does that mean?!? Voltage is the driving force that makes the electrons move through a wire. If electricity was water then voltage would be pressure. The more pressure, the more force it can move though something with.</p>
<p>The circuits in this tutorial require 5V to operate. That means that if you gave them a lower voltage the circuit may not operate correctly, the electrons would not be able to flow though the intended path. On the other hand if you power the circuit with too much voltage the electrons will force there where through places they should not. This is when things get toasted. You will learn from experience, as I have many times, that 5V component + 9V = bad. Remember to never power you circuits with anything above the rated voltage.</p>
<h4>Amperage</h4>
<p>Amperage is the measure of how many electrons are flowing past one point. Amperage is also called current or amps for short. One amp equals one coulomb of electrons per second. That equates to roughly 6,241,507,648,655,549,400 electrons per second! So if electricity was water then amperage would be the current.</p>
<p>We will be dealing with a small amount of current. We will be mostly using milliamp, mA. One mA is equal to 1/1000 of an amp. A LED takes only around 35mA. You can not power your circuits with too many amps. The circuit, as long as it is powered with the correct voltage, will only take what it needs. However if you do not power it will enough amps then you have problems. Remember if you have a power source that says “12V 800mA” then you can use <strong>up to</strong> 800mA. You do not need to use that much.</p>
<h4>Wattage</h4>
<p>Wattage is the unit used to measure power. To calculate the number of watts used you use, watts = votls * amps. That means that if your circuit is powered by one volt and draws one amp then it is said to consume one watt of power. However if you circuit is powered with 5V but draws 200mA then it also consumes 1 watt. There are methods for converting the voltage/current ratio. You can increase voltage and lose current, or increase current and lose voltage.</p>
<p>Now you should at least have some sort of idea of what electricity is. Be patient it will take some time to get it all. I believe the best way to learn this stuff is to use it! Just dive right in, get your hands dirty. You will learn much quicker then just reading a lot of pages that mean nothing. Now you <em>should</em> go back to the tutorials page and start learning about the various components you will have at your disposal.</p>
]]></content:encoded>
			<wfw:commentRss>http://embeddedmicro.com/tutorials/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

