<?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>Design and Technology &#187; Explorations</title>
	<atom:link href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?cat=55&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk</link>
	<description>My Own Personal Yellow Brick Road</description>
	<lastBuildDate>Tue, 24 May 2011 23:47:04 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Flip Flops&#8230; and not the sandy beach kind</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1065</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1065#comments</comments>
		<pubDate>Thu, 07 Apr 2011 21:12:37 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1065</guid>
		<description><![CDATA[In having a nosy at what my fellow students have been doing I&#8217;ve come across another digital logic device called a flip flop. The ever helpful Steve has aslo been building a binary counter but he has done it in a very different way to mine, he has used a chain of 4 linked D [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In having a nosy at what my fellow students have been doing I&#8217;ve come across another digital logic device called a flip flop.</p>
<p>The ever helpful Steve has aslo been building a binary counter but he has done it in a very different way to mine, he has used a chain of 4 linked D type flip flops.</p>
<p>To give you a brief explanation of what I mean by D type flip flop I have to go back to my logic gates:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/OR.jpg"><img class="alignnone size-full wp-image-1180" title="OR" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/OR.jpg" alt="" width="315" height="105" /></a></p>
<p>This OR gate looks perfectly normal but what if we&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/or-feedback.jpg"><img class="alignnone size-full wp-image-1181" title="or feedback" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/or-feedback.jpg" alt="" width="315" height="105" /></a></p>
<p>&#8230;link it&#8217;s output back through one of it&#8217;s inputs? This turns it into a digital logic with feedback device. Any digital circuit using feedback is called a multivibrator, the example I used above is a bistable multivibrator as it is stable in one of two states, you can also get monostable (one stable state) and astable (no stable state) just like the 555 timer!</p>
<p>The logic circuit for a D type flip flop looks like this:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/d-type-logic-circuit.png"><img class="alignnone size-full wp-image-1182" title="d type logic circuit" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/d-type-logic-circuit.png" alt="" width="538" height="165" /></a></p>
<p>The latch in the truth table looks a bit odd though&#8230; We know that a high input to a NOR gate will gove a low output, the circuit will &#8216;latch&#8217; in the state after anytime that the inpit is high.  When the input is low the output could be either high or low depending on the circuits prior state.</p>
<p>It&#8217;s quite quite simple but a little longwinded to explain fully but if you fancy finding out exactly how they work have a look <a href="http://www.allaboutcircuits.com/vol_4/chpt_10/1.html">here</a>.</p>
<p>So a D type flip flop is a bistable multivibrator, a digital logic device using feedback with two stable states. </p>
<p>As I said before Steve has been using these to build binary counting circuits so how does that work? First you need to start by looking at the input and output of a flip flop. The input can come from something like a 555 timer astable circuit, this high, low, high, low wave form goes into the clock input and then is fed back through the data input, this results in the second wave form from output Q. The second wave form is half the frequency of the first, the flip flop divides it by two. This is really important for making the counting circuit.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/dtypeflipflopbincount.gif"><img class="alignnone size-full wp-image-1188" title="dtypeflipflopbincount" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/dtypeflipflopbincount.gif" alt="" width="662" height="205" /></a></p>
<p>When you feed the output from one chip into the clock input of another it divides the frequency in half again so the following signals will look like&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/binary-counter-wave-form.jpg"><img class="alignnone size-full wp-image-1074" title="binary counter wave form" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/binary-counter-wave-form.jpg" alt="" width="621" height="269" /></a></p>
<p>&#8230;this. Look familiar? It&#8217;s the same as the pattern of the outputs from the 4510 chip <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  Each output fed into each subsequent chip divides the signal forming the pattern of a binary counter. </p>
<p>So whats the difference between the two? As I have mentioned in my post on <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1065">counting circuits </a>there are two types of counting circuit, ripple and synchronous. The arrangement of flip flops I have described above is an example of a ripple counter. It is vary simple and does work but it has it&#8217;s disadvantages. The first is there is a tiny delay as the original clock signal &#8216;ripples&#8217; through the circuit and the second is that if you are using it to trigger a logic circuit it can give glitchy signals, for a ripple counter to count from 0111 (7) to 1000 (8) it will go through 0110, 0100 and 0000 before it settles on 1000, this happens too fast for us to see but not for a logic circuit. </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/binary-down-counter.gif"><img class="alignnone size-full wp-image-1191" title="binary-down-counter" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/04/binary-down-counter.gif" alt="" width="679" height="196" /></a></p>
<p>A synchronous counter is like the one I built in my previous post.It has a much more complex structure which does the job of making sure that all the outputs change at exactly the same time on each clock pulse. It also avoids the tiny false counts so you could use them to trigger a logic system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=1065</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pull Ups and Pull Downs</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1062</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1062#comments</comments>
		<pubDate>Thu, 31 Mar 2011 20:44:42 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1062</guid>
		<description><![CDATA[In my explorings I have come across the terms &#8216;pull up&#8217; and &#8216;pull down&#8217; resistors in conjunction with digital circuits. So&#8230; what are they? How do they work? And why do we need them? CMOS gates are sensitive to static electricity and can be damaged by high voltages, they may also assume any logic level [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In my explorings I have come across the terms &#8216;pull up&#8217; and &#8216;pull down&#8217; resistors in conjunction with digital circuits. So&#8230; what are they? How do they work? And why do we need them?</p>
<p>CMOS gates are sensitive to static electricity and can be damaged by high voltages, they may also assume any logic level if they are left &#8216;floating&#8217;. Say if you have a switch connected to your CMOS chip through to ground, when the switch is pushed ground is connected to the input pin. Unfortunately when the switch is open the signal to that pin is open to interference and static, this is a &#8216;floating&#8217; state. Floating is bad, very bad. It can cause damage to your chip and send misleading signals to your circuit. To get around this you use a pull up or pull down resistor.</p>
<p>A pull up resistor does exactly that, pulls a signal up. It holds the pin in a high state stopping it from floating and so getting rid of any unwanted signals. Pull down resistors do exactly the same thing just pulling the signal low.</p>
<p>This diagram shows an input that is floating, the switch is open so the pin is subject to static and interference:</p>
<p>This one shows the positioning of a pull up resistor (for a pull down the switch and the resistor would swap places):</p>
<p>Most useful <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=1062</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting Circuits</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=779</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=779#comments</comments>
		<pubDate>Mon, 21 Mar 2011 12:37:22 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[555 Timer]]></category>
		<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=779</guid>
		<description><![CDATA[I wanted to create a couple of circuits using 555 timers and 4017 decade counters but I seem to have hit a brick wall in trying to obtain any 4017s! Rapid look through equivalent chips with Dean and it looks like I can use a 4028 chip instead. A 4028 is officially known as a BCD [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I wanted to create a couple of circuits using 555 timers and 4017 decade counters but I seem to have hit a brick wall in trying to obtain any 4017s!</p>
<p>Rapid look through equivalent chips with Dean and it looks like I can use a 4028 chip instead. A 4028 is officially known as a BCD (binary coded decimal) to decimal (1 of 10) decoder, this should perform the same function as the decade counter would in my counting circuits.</p>
<p>First I want to see if I can build a binary counter running off pulses from an astable 555 circuit, here goes&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4510-circuit.bmp"><img class="alignnone size-full wp-image-1153" title="4510 circuit" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4510-circuit.bmp" alt="" width="603" height="256" /></a></p>
<p>The circuit diagram is very simple, the pulses generated by the astable 555 circuit feed into a 4510 binary counter chip, this converts the input signal into the 4 output signals needed to generate the binary count, it&#8217;s much easier to see in a diagram:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/binary-counter-wave-form.jpg"><img class="alignnone size-full wp-image-1074" title="binary counter wave form" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/binary-counter-wave-form.jpg" alt="" width="621" height="269" /></a></p>
<p>The chip uses it&#8217;s network of tiny logic gates to interpret the input from the 555 and turn it into a binary count. I find it almost easier to understand looking at these wave forms rather than truth table below, but that&#8217;s just me, I get on better with visual representations :):</p>
<table border="1" cellspacing="0" cellpadding="0" width="650">
<tbody>
<tr>
<td width="103" valign="top">Pulses</td>
<td width="103" valign="top">Output D (8s)</td>
<td width="103" valign="top">Output C (4s)</td>
<td width="103" valign="top">Output B (2s)</td>
<td width="103" valign="top">Output A (1s)</td>
<td width="136" valign="top">Decimal Equivalent</td>
</tr>
<tr>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="136" valign="top">0</td>
</tr>
<tr>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="136" valign="top">1</td>
</tr>
<tr>
<td width="103" valign="top">2</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="136" valign="top">2</td>
</tr>
<tr>
<td width="103" valign="top">3</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">1</td>
<td width="136" valign="top">3</td>
</tr>
<tr>
<td width="103" valign="top">4</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="136" valign="top">4</td>
</tr>
<tr>
<td width="103" valign="top">5</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="136" valign="top">5</td>
</tr>
<tr>
<td width="103" valign="top">6</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="136" valign="top">6</td>
</tr>
<tr>
<td width="103" valign="top">7</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">1</td>
<td width="136" valign="top">7</td>
</tr>
<tr>
<td width="103" valign="top">8</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="136" valign="top">8</td>
</tr>
<tr>
<td width="103" valign="top">9</td>
<td width="103" valign="top">1</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">0</td>
<td width="103" valign="top">1</td>
<td width="136" valign="top">9</td>
</tr>
</tbody>
</table>
<p>The 4510 is a BCD chip, this means that it will count a binary sequence representing the decimal numbers 0-9 hence binary coded decimal counter :) </p>
<p>So I&#8217;ve calculated my resistor values to give me a good frequency of pulses, I&#8217;ve hooked up the 4510 according to the pinout below found in it&#8217;s data sheet (more on data sheets <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=935">here</a>) time to test.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4510-pinout.jpg"><img class="alignnone size-full wp-image-1083" title="4510 pinout" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4510-pinout.jpg" alt="" width="259" height="276" /></a></p>
<p>Clang! not working! Hmmm&#8230; everything is in the right place, the two chips are hooked up properly what could be wrong&#8230; at this point enter Dean, saviour of all malfunctioning circuitry&#8230;  </p>
<p>I hate it when it&#8217;s something really simple that I haven&#8217;t spotted, my reset switch was pushed into the board the wrong way round, *smacks head with palm of hand* and this is after Steve showed me how to use a <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=935">multimeter</a> to see how components should be connected up.</p>
<p>Now that&#8217;s fixed here&#8217;s the circuit working:</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/pAk0kvznBk4" frameborder="0" allowfullscreen></iframe></p>
<p>An extension of this would be to link up lots of timers together. To do this you connect the carry out (pin 7) to the carry in/enable (pin5) of another timer, this second counter now counts up 10s. By cascading them in this way you can count much larger numbers.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/cascading-timers.jpg"><img class="alignnone size-full wp-image-1162" title="cascading timers" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/cascading-timers.jpg" alt="" width="718" height="349" /></a></p>
<p><span style="color: #339966;">Note (07/04/11) There are two types of counting circuit, ripple and synchronous. The linked counters above form a synchronous counting circuit, a ripple counter is made up of linked flip flop chips. More on them <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1065">here </a>along with a more detailed look into ripple and synchronous counters.</span></p>
<p>Now I can have a go a converting the digital binary signal I have to a decimal format&#8230;</p>
<p>I get to have a go using the 4028 chip :) All you need to do is to hook up the 4 outputs from the binary counter to the 4 inputs of the 4028, then, carefully reading the pinout (they&#8217;re not in order as you can see below!) attach your LED outputs.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4028B-pinout.jpg"><img class="alignnone size-full wp-image-1077" title="4028B pinout" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/4028B-pinout.jpg" alt="" width="259" height="281" /></a></p>
<p>If you were using a divide by 16 binary counter you&#8217;d need to add in an extra step to limit the counter to 0-9. To do this you need to connect an AND gate using outputs B and D as the gates inputs. This would have the effect of triggering the reset every time the counter got to 10 (B and D going high together) keeping it counting from just 0 to 9.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Binary-counter-with-AND-gate.jpg"><img class="alignnone size-full wp-image-1079" title="Binary counter with AND gate" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Binary-counter-with-AND-gate.jpg" alt="" width="476" height="311" /></a></p>
<p>The truth table for the 4028 is really simple, once you get past the volume of 0s and 1s the information is easy to extract:</p>
<table border="1" cellspacing="0" cellpadding="0" width="499">
<tbody>
<tr>
<td width="26" valign="top"><span style="color: #339966;"><strong>D</strong></span></td>
<td width="25" valign="top"><span style="color: #339966;"><strong>C</strong></span></td>
<td width="26" valign="top"><span style="color: #339966;"><strong>B </strong></span></td>
<td width="25" valign="top"><span style="color: #339966;"><strong>A</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>0</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>1</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>2</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>3</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>4</strong></span></td>
<td width="24" valign="top"><span style="color: #3366ff;"><strong>5</strong></span></td>
<td width="29" valign="top"><span style="color: #3366ff;"><strong>6</strong></span></td>
<td width="29" valign="top"><span style="color: #3366ff;"><strong>7</strong></span></td>
<td width="29" valign="top"><span style="color: #3366ff;"><strong>8</strong></span></td>
<td width="29" valign="top"><span style="color: #3366ff;"><strong>9</strong></span></td>
<td width="136" valign="top"><strong>Decimal Equivalent</strong></td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">0</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">1</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">2</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">3</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">4</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">5</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">6</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">7</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="136" valign="top">8</td>
</tr>
<tr>
<td width="26" valign="top"><span style="color: #339966;">1</span></td>
<td width="25" valign="top"><span style="color: #339966;">0</span></td>
<td width="26" valign="top"><span style="color: #339966;">0</span></td>
<td width="25" valign="top"><span style="color: #339966;">1</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="24" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">0</span></td>
<td width="29" valign="top"><span style="color: #3366ff;">1</span></td>
<td width="136" valign="top">9</td>
</tr>
</tbody>
</table>
<p>Right, that&#8217;s the board put together, safety checks done and schematic double checked, power up <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Binary-to-Decimal-counter-web.jpg"><img class="alignnone size-full wp-image-1160" title="Binary to Decimal counter web" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Binary-to-Decimal-counter-web.jpg" alt="" width="423" height="317" /></a></p>
<p>Crud! Crud! Crud! another no go! what could be wrong this time? The astable is still going, the signals to the binary are still working but the signals going to the 4028 are really weak&#8230; once again, Dean to the rescue. This time I really have had a proper brain has temporarily left the premises moment. I&#8217;d got the leads coming off the vss and vdd pins going to the opposite of where they should be. There is no excuse for this (apart from said stepping out of brain) as the data sheet clearly shows the right connections. Must slow down a bit&#8230;</p>
<p>Anyway now it works :) </p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/W5WNcs5A62g" frameborder="0" allowfullscreen></iframe></p>
<p>You can take this circuit another step forward by replacing the 4028 with a seven segment display driver. It&#8217;s a very similar set up, the 4 outputs from the 4510 go into the display driver (4511) and the outputs then connect up to the inputs on the seven segment display. I may have a go at this later on but for now I think it&#8217;s time I revisited competence&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=779</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>555 Timer Experiments</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=742</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=742#comments</comments>
		<pubDate>Fri, 18 Mar 2011 22:56:35 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[555 Timer]]></category>
		<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=742</guid>
		<description><![CDATA[Now we get to have a little fun&#8230; I&#8217;m going to take a look at the 3 types of circuit you can make with a 555 timer, astable, monostable and bistable. Monostable &#8211; one stable state This is my monostable circuit and I&#8217;ve calculated that I need a 100K resistor with my 100µf capacitor to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Now we get to have a little fun&#8230;</p>
<p>I&#8217;m going to take a look at the 3 types of circuit you can make with a 555 timer, astable, monostable and bistable.</p>
<p><span style="text-decoration: underline;">Monostable &#8211; one stable state</span></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/monostable.jpg"><img class="alignnone size-full wp-image-995" title="monostable" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/monostable.jpg" alt="" width="403" height="327" /></a></p>
<p>This is my monostable circuit and I&#8217;ve calculated that I need a 100K resistor with my 100µf capacitor to give me a time of 10 seconds&#8230;</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/f3tjVfEqgwM" frameborder="0" allowfullscreen></iframe></p>
<p>Taking into account the tolerances of the resistor and the capacitor that&#8217;s pretty good going. If I wanted to get exactly 10 seconds I could use a POT or a variable capacitor.</p>
<p>Here you can see the capacitor charging using a multimeter (more on those <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=935">here</a>):</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/vnSSeXHU0Ww" frameborder="0" allowfullscreen></iframe></p>
<p>So a monostable circuit generates a single pulse when triggered, without the trigger the circuit produces a low (zero) voltage which is it&#8217;s stable state. I pulled this brilliant diagram from a site that&#8217;s been really helpful, it shows the wave forms of the signals involved in this circuit:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/555monop.gif"><img class="alignnone size-full wp-image-996" title="555monop" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/555monop.gif" alt="" width="456" height="244" /></a></p>
<p>(<a href="http://www.kpsec.freeuk.com/555timer.htm#monostable">http://www.kpsec.freeuk.com/555timer.htm#monostable</a> site accessed 18/03/11)</p>
<p>I had one problem with this circuit in that my LED output kept burning out after 3 or 4 triggers so I decided to investigate&#8230;</p>
<p>My multimeter showed that 6.5 v was getting through to my poor little LED, it shouldn&#8217;t get more than 1.7V so my resistor was really not limiting enough of the current.</p>
<p>Using Ohms law I worked out which resistor would be best:</p>
<p>R = (VS-VL)/I</p>
<p>VS &#8211; supply voltage</p>
<p>VL &#8211; LED voltage</p>
<p>R = (6.5V-1.7V)/2ma</p>
<p>R = 4.8/0.02</p>
<p>R = 240R</p>
<p>So by adding another 240R to my 470R resistor I should have enough resistance to stop the burnout. As there isn&#8217;t a resistor with a value of 710R I used the next highest value which is 750R.</p>
<p>Monostable circuits are often used to trigger digital logic devices. Mechanical switches can &#8216;bounce&#8217; when they are closed, causing voltage spikes that would confuse an IC into thinking it&#8217;s gotten a high signal. By putting a monostable in between your mechanical switch and your end device you can stop confusing signals.</p>
<p> <span style="text-decoration: underline;">Astable &#8211; no stable state</span></p>
<p>An astable circuit is sort of like an electronic metronome using a combination of two resistors and a capacitor you can configure your circuit so you output, say an LED, will turn on and off at a set frequency. It has no stable state because it keeps changing on its own.</p>
<p>I wanted to make my output LED blink on and off for 5 seconds each, 5 on and 5 off. To do this I needed an (initially) scary range of calculations.</p>
<p>The first is for working out the frequency of your circuit, this is how many times per second your circuit completes one cycle of it&#8217;s wave form:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable-wave.jpg"><img class="alignnone size-full wp-image-999" title="astable wave" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable-wave.jpg" alt="" width="313" height="135" /></a> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/osc-astable-freq-equation.png"><img class="alignnone size-full wp-image-1000" title="osc-astable-freq-equation" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/osc-astable-freq-equation.png" alt="" width="142" height="68" /></a></p>
<p>Frequency is measured in Hertz so a frequency of 2Hz would mean that your circuit would complete its wave form twice per second.</p>
<p>The next two are for working out the high (on) and low (off) times:</p>
<p>T high = 0.69(R1+R2)xC</p>
<p>T low = 0.69(R2xC) </p>
<p>So&#8230; you start by working out the resistor needed for the low time first:</p>
<p>T low = 0.69(R2xC) </p>
<p>5sec = 0.69(R2x100µf)</p>
<p>R2 = 5/0.69&#215;0.0001</p>
<p>R2 = 72,464 or 72K (I tried it with a 68K)</p>
<p>Then you can work out R1:</p>
<p>T high = 0.69(R1+R2)xC</p>
<p>5sec = 0.69(R1+75K)x100µf</p>
<p>R1 = 5/(0.69&#215;0.0001)-68,000</p>
<p>R1 = 4,464K (I used a 3K4)</p>
<p>So&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable.jpg"></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable.jpg"><img class="alignnone size-full wp-image-1003" title="astable" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable.jpg" alt="" width="415" height="334" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/astable.jpg"></a></p>
<p>And here it is in test:</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/3efrrTcua-k" frameborder="0" allowfullscreen></iframe></p>
<p><span style="color: #339966;">Note (25/03/11) Cool siren effect using two astable circuits and POTs! I think I&#8217;ve just made a device for communicating with dolphins&#8230; or for just really annoying dogs&#8230; </span></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/bh32YS_TZxM" frameborder="0" allowfullscreen></iframe></p>
<p><span style="color: #339966;"><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/siren.jpg"><img class="alignnone size-full wp-image-1050" title="siren" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/siren.jpg" alt="" width="599" height="470" /></a></span></p>
<p><span style="color: #339966;">The effect of using two astable circuits feeding into the speaker and controllable from the two potentiometers gives you an enormous range of (really annoying ;)) sounds:</span></p>
<p><span style="text-decoration: underline;">Bistable</span></p>
<p>Right, we&#8217;ve had one stable state, no stable states and now&#8230; yes you guessed it two stable states!</p>
<p>If this sounds a little like theintro to a cheap game show then I&#8217;m setting the right tone&#8230;</p>
<p>A bistable state circuit can be used as the buzzer system on a quiz show. The contestants each have one trigger, to trigger the high state and the quiz master has the other to reset it.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/bistable.jpg"><img class="alignnone size-full wp-image-1004" title="bistable" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/bistable.jpg" alt="" width="417" height="340" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/bistable.jpg"></a></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/0Ck3ebAvMUw" frameborder="0" allowfullscreen></iframe></p>
<p>This one is the easiest one by far as there are no resistor values to calculate!!</p>
<p><span style="color: #339966;">Note (25/03/11) Mnemonic for remembering resister colours:</span></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/resistor-colours.jpg"><span style="color: #339966;"><img class="alignnone size-full wp-image-994" title="resistor colours" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/resistor-colours.jpg" alt="" width="638" height="69" /></span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=742</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taught Session with Dean</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=740</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=740#comments</comments>
		<pubDate>Wed, 09 Mar 2011 19:25:07 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=740</guid>
		<description><![CDATA[Brilliant session with Dean today, loads to add&#8230; First, the Darlington driver or Darlington pair. You basically feed the emitter of one NPN transistor to the base of another, this multiplies their individual current gains so massively boosting the signal. Darlington pairs can be used like this to convert analogue signals to digital ones. If you had [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Brilliant session with Dean today, loads to add&#8230;</p>
<p>First, the Darlington driver or Darlington pair. You basically feed the emitter of one NPN transistor to the base of another, this multiplies their individual current gains so massively boosting the signal. Darlington pairs can be used like this to convert analogue signals to digital ones. If you had a potentiometer connected up to the base of the first transistor and an LED being driven from the other you can see this effect in action. Instead of the LED getting brighter or dimmer as you vary the resistance it would only switch on and off as the base current in the first transistor became high enough or low enough to affect the output of the second.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/darlington-pair.png"><img class="alignnone size-full wp-image-980" title="darlington pair" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/darlington-pair.png" alt="" width="142" height="232" /></a></p>
<p>Most transistors have a threshold of 0.7V, when it the current through the base reaches this it &#8216;switches on&#8217; and completes the circuit.</p>
<p><span style="color: #339966;">Note (20/03/11) Here&#8217;s a cool little circuit I put together to demonstrate a Darlington pair:</span></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/Dlfm91nvcCg" frameborder="0" allowfullscreen></iframe></p>
<p><span style="color: #339966;">Note (20/03/11) And a look at how potentiometers work. A Potentiometer or POT is an adjustable resistor. It has 3 connections, one connects to the power source, one goes to ground and the last runs across a strip of resistive material. It acts as a wiper running across the strip which at one end has a very low resistance and the other which has a high resistance. the wiper is connected to a knob that the user can interact with. </span></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/_oN7imlXDNY" frameborder="0" allowfullscreen></iframe></p>
<p>On to capacitors &#8211; a capacitor is a bit like a bucket but it collects and stores electricity not water.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-circuit.jpg"><img class="alignnone size-full wp-image-982" title="capacitor circuit" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-circuit.jpg" alt="" width="290" height="381" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-circuit.jpg"></a></p>
<p>If you were to put a voltmeter across the capacitor in the circuit and plot a voltage/time graph it would look like this:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-charging-graph.jpg"><img class="alignnone size-full wp-image-983" title="capacitor charging graph" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-charging-graph.jpg" alt="" width="272" height="185" /></a></p>
<p>If you were to hook up a few more components to the circuit above you can convert the analogue input of the capacitor charging to a digital output:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-analog-to-digital-circuit.jpg"><img class="alignnone size-full wp-image-985" title="capacitor analog to digital circuit" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-analog-to-digital-circuit.jpg" alt="" width="589" height="374" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-analog-to-digital-circuit.jpg"></a></p>
<p>The Darlington pair in the process part of the circuit is boosting the signal being taken as the capacitor is charging, this means that the LED will only be on or off, if the pair was replaced with a single transistor the LED would brighten or dim.</p>
<p>In this circuit the capacitor is acting as a delay device, as the capacitor fills the voltage increases until the required voltage to activate the transistors is reached to then turn on the LED.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-charging-graph-detail.jpg"><img class="alignnone size-full wp-image-986" title="capacitor charging graph detail" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-charging-graph-detail.jpg" alt="" width="272" height="185" /></a></p>
<p>So&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-timer1.jpg"><img class="size-full wp-image-990 alignnone" title="capacitor timer" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/capacitor-timer1.jpg" alt="" width="198" height="306" /></a></p>
<p>&#8230;this arrangement will act as a timer! You can control the time by using bigger or smaller resistors or bigger or smaller capacitors.</p>
<p>The equation to work out the timing is:</p>
<p>T=RC or Time = Resistance x Capacitance</p>
<p>To get a 30sec time you can work out the components you need like this:</p>
<p>(I&#8217;ve chosen to use a 10µf capacitor if the resistor or calculated from this was huge or tiny I could adjust this value)</p>
<p>30sec = R x 10µf</p>
<p>R = 30sec/10µf</p>
<p>R = 30/0.00001 (always convert your values! 10µf is actually 10<sup>-3</sup>)</p>
<p>R = 3,000,000Ω or 3M</p>
<p>This is a bit big&#8230; I could change the capacitor to a 100µf and use a 300K resistor instead</p>
<p><span style="color: #339966;">Note (20/03/11) Polorised and non polerised capacitors: Capacitors with values over 1µf tend to be polorised, meaning that the way round you connect it in a circuit matters. If you connect it the wrong way round you can cause the dielectric inside the capacitor to break down. This can short circuit the capacitor, damage other components in the circuit (by sending them too much current) or your capacitor could even explode!</span></p>
<p>Instead of using a Darlington pair you can feed this signal through a <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=742">555 timer</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=740</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Returning to Logic Gates</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=707</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=707#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:23:46 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Logic Gates]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=707</guid>
		<description><![CDATA[I&#8217;ve moved on a bit since the last time I looked at logic gates so I think it&#8217;s about time to revisit&#8230; I&#8217;ve found out a bit more on NOT gates, they are actually called inverters, not surprisingly as they &#8216;invert&#8217; the input into the output. When you connect up two inverters in series you [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve moved on a bit since the last time I looked at logic gates so I think it&#8217;s about time to revisit&#8230;</p>
<p>I&#8217;ve found out a bit more on NOT gates, they are actually called inverters, not surprisingly as they &#8216;invert&#8217; the input into the output. When you connect up two inverters in series you get a &#8216;buffer. All this does is take the output of the first NOT gate and feeds it into the input of the next one. The two cancel each other out so you the final output is the same as the first input:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/buffer.jpg"><img class="alignnone size-full wp-image-959" title="buffer" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/buffer.jpg" alt="" width="363" height="137" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/buffer.jpg"></a></p>
<p>Possibly pointless? Not really, it does have a practical use. Logic gate circuits are <strong>signal amplifiers </strong>(remember logic gates are made up of those lovely signal boosting <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=672">transistors</a>&#8230;), a weak signal can be boosted using this combination of two inverters. The logic level isn&#8217;t changed, you still get a high output from a high input but the final signal is stronger than the initial one. The symbol is the same as for a NOT gate just without the little bubble on the end.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/buffer-gate.jpg"><img class="alignnone size-full wp-image-960" title="buffer gate" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/buffer-gate.jpg" alt="" width="210" height="166" /></a></p>
<p>With additional inputs logic gates can process more complex information, for example a 2 input gate has 4 output possibilities, a 3 input gate has 8 output possibilities etc.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/2-input-AND-3-input-AND.jpg"><img class="alignnone size-full wp-image-963" title="2 input AND 3 input AND" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/2-input-AND-3-input-AND.jpg" alt="" width="538" height="140" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/AND-table.jpg"><img class="alignnone size-full wp-image-807" title="AND table" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/AND-table.jpg" alt="" width="295" height="100" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/3-input-and-table.jpg"><img class="alignnone size-full wp-image-962" title="3 input and table" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/3-input-and-table.jpg" alt="" width="382" height="182" /></a></p>
<p>The equation for working out number of possibilities is&#8230;</p>
<p>Number of possible input states = 2<sup>n</sup> </p>
<p>Where n = number of inputs</p>
<p>This means that your gates can control much more complex systems.</p>
<p>I had a go at prototyping a logic gate circuit using a NAND gate chip but first I should probably say how to interpret/draw logic gates in circuit diagrams. You can do it in one of two ways either by drawing in the IC (labeling it with the chip number) and numbering the pins:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Figure1_18-QuadNandIC.gif"><img class="alignnone size-full wp-image-884" title="Figure1_18-QuadNandIC" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Figure1_18-QuadNandIC.gif" alt="" width="454" height="329" /></a></p>
<p>Or by using the logic gate symbol and labeling the inputs and outputs. The label on the symbol below indicates that it is 1/4 of a 4011 chip, so only using one of the 4 NAND gates contained in this chip.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/NAND-circuit1.jpg"><img class="alignnone size-full wp-image-972" title="NAND circuit" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/NAND-circuit1.jpg" alt="" width="408" height="394" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/NAND-circuit1.jpg"></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/NAND-circuit.jpg"></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/NAND-circuit.jpg"></a></p>
<p>(Please excuse the clumsy editing, I couldn&#8217;t find how to edit the circuit symbol in circuit wizard&#8230;) </p>
<p>Here&#8217;s my circuit in action:</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/Rfye9I0HRUk" frameborder="0" allowfullscreen></iframe></p>
<p>I also found out that NAND and NOR gates have a cool capability, they are universal gates. This means that by arranging NAND and NOR gates in specific ways you can get them to mimic any other gate:</p>
<p>So to make an OR gate you need to connect up the gates in your IC like this:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/nandor.gif"><img class="alignnone size-full wp-image-973" title="nandor" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/nandor.gif" alt="" width="254" height="164" /></a></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/6eFrynvsRE0" frameborder="0" allowfullscreen></iframe></p>
<p>(All truth tables can be found <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=670">here</a>)</p>
<p>There are also complementary output gates, this basically means that you have a gate that can produce inverted and non-inverted outputs. So you could have an AND gate that could give you an AND gate out put or a NAND gate output:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Complementary-gates.jpg"><img class="alignnone size-full wp-image-974" title="Complementary gates" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Complementary-gates.jpg" alt="" width="233" height="220" /></a></p>
<p>So why would you need a gate that can do this if you could just hook up a NOT gate off the output lead? For two reasons, 1) it saves space and 2) adding in a seperate NOT causes a time delay so if your inputs were alternating high and low your non-inverted output and your inverted outputs would change at slightly different times. </p>
<p>Again this is getting a bit far afield from what I&#8217;m aiming for but would be interesting to look at in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=707</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logic Families</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=683</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=683#comments</comments>
		<pubDate>Sun, 06 Mar 2011 20:26:29 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=683</guid>
		<description><![CDATA[Digital ICs are classified into logic families depending on how they&#8217;re constructed on the inside. Some construction methods make the circuits run faster or work using lower currents or just by being able to fit more gates in. There are loads of logic families but the two most famous (and the ones I&#8217;ll likely be using) are [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Digital ICs are classified into logic families depending on how they&#8217;re constructed on the inside. Some construction methods make the circuits run faster or work using lower currents or just by being able to fit more gates in.</p>
<p>There are loads of logic families but the two most famous (and the ones I&#8217;ll likely be using) are TTL and CMOS.</p>
<p>TTL stands for transistor transistor logic, and uses bipolar transistors to construct gates and amplifiers. You can fit more gates in and they&#8217;re cheaper to make but they draw a lot more power and need a specific 5V power supply to work. Most TTL IC chips use the 74xx or 74xxx part numbers e.g. the 7400 is a quad input NAND gate (there are 4 NAND gates contained withing the chip).</p>
<p>CMOS stands for complementary metal oxide semiconductor, this is a type of technology used to make MOSFETs (metal oxide semiconductor field effect transistors, what a mouthful, you can see why they shortened the name to CMOS!). They&#8217;re a bit more expensive to make but they draw less power are operate over a wider range of voltages. One problem with them is that they are very susceptible to static electricity so you have to be careful when handling them (I&#8217;ve already had one issue with <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=241">static messing up my circuit</a>). Chips in the 40xx series are part of the CMOS family.</p>
<p>TTL chips are not really used anywhere outside of schools now as CMOS chips can do the same jobs without the drawbacks.</p>
<p><span style="color: #339966;">Note (07/03/11) &#8211; B series CMOS chips have &#8216;buffered&#8217; outputs to increase the voltage gain from input to output (Have a look at buffers </span><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=707"><span style="color: #339966;">here</span></a><span style="color: #339966;">), this means that they have a faster response to input signal changes. ﻿</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=683</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Slight Detour&#8230; into Boolean Algebra</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=701</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=701#comments</comments>
		<pubDate>Sun, 06 Mar 2011 18:15:18 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=701</guid>
		<description><![CDATA[One thing that has kept coming up in my research has been the term Boolean algebra or Boolean logic, this apparently is a system of logic that was developed in the 1840&#8242;s by a chap called George Boole. It basically laid out several rules of relationships between mathematical quantities that were limited to being true [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>One thing that has kept coming up in my research has been the term Boolean algebra or Boolean logic, this apparently is a system of logic that was developed in the 1840&#8242;s by a chap called George Boole. It basically laid out several rules of relationships between mathematical quantities that were limited to being true or false, 1 or 0 (this is starting to look familiar&#8230;).Since then some clever bod at MIT realised that Boolean algebra could be applied to looking at digital circuits, what with all those 1s and 0s. Boolean algebra is a powerful too for designing and analysing digital circuits, it can show where systems can be simplified, Ive pasted in below a couple of slides I found from a <a href="http://home.wlu.edu/~levys/courses/cs101w2004/lectures/10_FEB_2004.pdf">powerpoint</a> on the subject﻿﻿:</p>
<p>You take a Boolean expression of a logic circuit (the bars over some of the outputs mean that they are inverted)&#8230;</p>
<p> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification1.jpg"><img class="alignnone size-full wp-image-876" title="simplification1" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification1.jpg" alt="" width="412" height="311" /></a></p>
<p>Simplify it using regular algebraic rules and Boolean logic rules&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification2.jpg"><img class="alignnone size-full wp-image-877" title="simplification2" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification2.jpg" alt="" width="409" height="309" /></a></p>
<p>And convert the result back into a logic circuit&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification3.jpg"><img class="alignnone size-full wp-image-878" title="simplification3" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/simplification3.jpg" alt="" width="411" height="311" /></a></p>
<p>This subject is huge and requires going much deeper into the subject than I have need for in this project but I found this site a great resource when I was trying to understand the basics: <a href="http://www.allaboutcircuits.com/vol_4/chpt_7/1.html">http://www.allaboutcircuits.com/vol_4/chpt_7/1.html</a></p>
<p>It&#8217;s amazing that a system of logic developed in the 1800&#8242;s could have such a huge significance in developing cutting edge technology today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=701</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which ICs?</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=680</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=680#comments</comments>
		<pubDate>Sun, 06 Mar 2011 18:10:42 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[555 Timer]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=680</guid>
		<description><![CDATA[If I&#8217;m going to teach electronics (or even develop my interest as a hobby) there are three ICs that I will have to look at. They are the op amp (operational amplifier), the 555 timer and the 4017 decade counter. Op Amp - this IC takes a weak signal and gives it a boost, it&#8217;s made up [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If I&#8217;m going to teach electronics (or even develop my interest as a hobby) there are three ICs that I will have to look at. They are the op amp (operational amplifier), the 555 timer and the 4017 decade counter.</p>
<p><span style="text-decoration: underline;"><strong>Op Amp </strong></span>- this IC takes a weak signal and gives it a boost, it&#8217;s made up of several transistors, resisters and capacitor. It gives a much better performance than using a single transistor. The op amp is in fact an analogue IC, it takes the input voltage through the two input leads shown below and produces an output that (and here&#8217;s where it gets technical&#8230;)  is a multiple of the difference between the two inputs, so not just high and low.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/opamp_symbol.gif"><img class="alignnone size-full wp-image-888" title="opamp_symbol" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/opamp_symbol.gif" alt="" width="250" height="238" /></a></p>
<p>the actual gain involved can be controlled using resistors, one of these control circuits is called an inverting amplifier. The values of the resistors shown below can be used to work out the gain using this equation &#8211; Gain = R2/R1, so for instance if the resistor values were R2 = 10k and R1 = 1K the gain would be 1000/100 = 10 so a signal of 1V would produce an output of 10V.  </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/op-amp_basic_inv.gif"><img class="alignnone size-full wp-image-893" title="op-amp_basic_inv" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/op-amp_basic_inv.gif" alt="" width="400" height="252" /></a></p>
<p>(As this is analogue and I&#8217;m working on digital, I don&#8217;t think I need to go into any more detail to op amps at the mo.)</p>
<p><span style="text-decoration: underline;"><strong>555 Timer </strong></span>- This popular little IC can be used in analogue and digital circuits, from my first look at them it seems there in everything. It&#8217;s well worth getting to know what each of the pins does on a 555 as it makes it easier to understand what&#8217;s going on inside. I pulled the descriptions below straight out of one of my text books:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/555_pinout.png"><img class="alignnone size-full wp-image-895" title="555_pinout" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/555_pinout.png" alt="" width="353" height="182" /></a></p>
<p><span style="color: #0000ff;"><strong>Trigger </strong>- when you apply a low voltage to pin 2, you trigger the internal timing circuit to start working.This trigger is know as an <em>active low</em> trigger.</span></p>
<p><span style="color: #0000ff;"><strong>Output</strong> &#8211; The output waveform appears on pin 3.</span></p>
<p><span style="color: #0000ff;"><strong>Reset </strong>- If you apply a low voltage to pin 4, you reset the timing function, and the output (pin 3) goes low. (Some circuits don&#8217;t use the reset function, and this pin is tied to the positive supply.)</span></p>
<p><span style="color: #0000ff;"><strong>Control</strong> &#8211; If you want to override the internal trigger circuit (which you normally don&#8217;t), you apply a voltage to pin 5. Otherwise, you can connect pin 5 to ground, preferably through a 0.01µF capacitor.</span></p>
<p><span style="color: #0000ff;"><strong>Threshold</strong> &#8211; When the voltage applied to pin 6 reaches a certain level (usually two-thirds of the positive supply voltage), the timing cycle ends. You connect a resistor between pin 6 and the positive supply. The value of this <em>timing resistor </em>influences the length of the timing cycle. </span></p>
<p><span style="color: #0000ff;"><strong>Discharge</strong> &#8211; You connect a capacitor to pin 7. The discharge time of this <em>timing capacitor </em>influences the length of the timing intervals.</span></p>
<p><span style="color: #0000ff;">(Ross, Shamieh, McComb,  2010, p.153-4) </span></p>
<p>There are 3 main ways to use a 555 chip, the different configurations producing different outputs. They are&#8230;</p>
<p><strong>As an astable multivibrator (oscillator) </strong>- astable just means that the output has no stable state, it doesn&#8217;t settle down but keeps changing on it&#8217;s own. You can use this for flashing lights,making an alarm or triggering a logic chip&#8230;</p>
<p><strong>As amonostable multivibrator (one shot) </strong>- monostable means this circuits output has one stable state, it generates a single pulse when triggered. This state is really useful for triggering logic devices.</p>
<p><strong>As a bistable multivibrator (flip flop) </strong>- bistable means (you guessed it) this circuits output has two stable states, it switches from one state to the other when it&#8217;s triggered. You can make a quiz show buzzer system using this state, it&#8217;s in it&#8217;s low state as the question is being asked, a contestant hits a button to answer triggering the high state, this is then reset in to the low state by the quiz master.</p>
<p><span style="text-decoration: underline;"><strong>4017 CMOS Decade Counter</strong></span> - This cool little chip will count from 0 - 9 when it&#8217;s triggered, by joining lots of them together you can count up tens, hundreds, thousands etc you have to be careful though&#8230; the output pins are not in order down the side of the chip, you have to check the configuration in the &#8216;pinout&#8217; diagram below.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/imagesCAI2WI4R.jpg"><img class="alignnone size-full wp-image-899" title="imagesCAI2WI4R" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/imagesCAI2WI4R.jpg" alt="" width="200" height="191" /></a></p>
<p><span style="text-decoration: underline;"><strong>4000 CMOS Series Logic Gates</strong></span> - I&#8217;ve kind of started looking into these gates <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=670">here</a>, but there are a couple of cool experiments I can do to physically show how gates work. I&#8217;ll put these in a later post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=680</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Importance of the Transistor and the Dawn of the IC</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=672</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=672#comments</comments>
		<pubDate>Sun, 06 Mar 2011 15:16:49 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Explorations]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=672</guid>
		<description><![CDATA[Right, as I&#8217;ve stated before, logic gates are made up of lots of components arranged in just the right way to produce a desired logical outcome. If you had to build one of these circuits each time you needed a gate you&#8217;d probably throw your hands up in disgust as it would not only take huge [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Right, as I&#8217;ve stated before, logic gates are made up of lots of components arranged in just the right way to produce a desired logical outcome. If you had to build one of these circuits each time you needed a gate you&#8217;d probably throw your hands up in disgust as it would not only take huge amounts of time, it would vastly increase the size of your electronic project. These days logic gates come as IC chips (integrated circuit chips), I started to look into this in my <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=195">last project</a> but I hope to go a little further here.</p>
<p>So a brief history of logic circuits, the only place to start is with relays.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/P1020952.jpg"><img class="alignnone size-full wp-image-923" title="P1020952" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/P1020952.jpg" alt="" width="392" height="354" /></a></p>
<p>Relays are electromagnetic switches that physically open and close. The pic above is a broken relay that I took the case off, you can see the coil of copper wire and the connectors at the front. They were initially developed by an American physicist Joseph Henry (1797–1878), and  were eventually used for things like transmitting Morse code, telephone communication and, as it is an on (1) off (0) device, early logic circuits. If you fancy a deeper read&#8230;</p>
<p>have a look at this article it&#8217;s brill <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  <a href="http://history-computer.com/ModernComputer/Basis/relay.html">http://history-computer.com/ModernComputer/Basis/relay.html</a>  </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/vacuum-tube.jpg"><img class="alignnone size-full wp-image-845" title="vacuum-tube" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/vacuum-tube.jpg" alt="" width="228" height="304" /></a></p>
<p>Relays were replaced by vacuum tubes in the 1940&#8242;s &#8211; 50&#8242;s, the benefit being that there were no moving parts, the vacuum tube was an entirely electronic switch. A vacuum tube can switch electricity on or off, or amplify a current, the first digital computer, ENIAC, was made using vacuum tubes. They had their problems though, vacuum tubes look and act a lot like an incandescent bulb, they generate a lot of heat and have a tendency to burn out. Another problem was size, you can imagine that if your computer at home needed at least one vacuum tube for each logic circuit it would be massive! ENIAC had a whopping 18,000 tubes!</p>
<p>Take a minor detour if you wish to my cool stuff page on <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=849">Nixie Tubes</a>, they&#8217;re like vacuum tubes but used to display numbers, one of these days I&#8217;ll get around to building that clock&#8230;</p>
<p>OK, the next step was when the vacuum tube was replaced by the transistor.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/tubeandtransistor.jpg"><img class="alignnone size-full wp-image-860" title="tubeandtransistor" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/tubeandtransistor.jpg" alt="" width="150" height="150" /></a></p>
<p>This picture should give you a start on the advantages of transistors over tubes <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  The transistor was invented in 1947 and it revolutionised electronics. Without them your phone wouldn&#8217;t be mobile, there would be no such thing as the laptop (or desktop or even a &#8216;fit in your house&#8217; top).</p>
<p>Transistors amplify current and can also be used as electronic switches so they perform the same job as the vacuum tube but with less power, more reliability and less heat. Transistors are made of semiconductor materials such as silicone, these are materials that hover somewhere between holding onto their electrons and letting them move about freely. So they act as conductors under some conditions and insulators under others. Have a look at the symbol for a transistor below and you&#8217;ll get an idea of how a transistor works as a switch:</p>
<p> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/npn-transistor.png"><img class="alignnone size-full wp-image-864" title="npn-transistor" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/npn-transistor.png" alt="" width="166" height="192" /></a></p>
<p>When the current going to the base is low (0v or 0) you can imagine the end of that arrow as sitting away from the emitter lead so there is no connection, when the current going to the base is high (+5V or 1) it&#8217;s like the arrow moves over and completes the circuit allowing current to flow. So there&#8217;s the switch function, but what about amplifying current?</p>
<p>Here&#8217;s a little circuit experiment showing this effect (for more info on potentiometers have a look <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=740">here</a>):</p>
<p> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Transistor_boost_circuit_copy.jpg"><img class="alignnone size-full wp-image-922" title="Transistor_boost_circuit_copy" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Transistor_boost_circuit_copy.jpg" alt="" width="351" height="487" /></a></p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/cuu0XRVaiwU" frameborder="0" allowfullscreen></iframe></p>
<p>So the tiny base current passing through LED1 is being amplified by the transistor allowing a larger current to flow through LED2. You get a dim light from LED1 due to the tiny base current and a much brighter glow from LED2 because of the stronger collector current.</p>
<p>For a more detailed read on transistors have a look here <a href="http://www.kpsec.freeuk.com/trancirc.htm">http://www.kpsec.freeuk.com/trancirc.htm</a></p>
<p>Transistors can work using digital signals, this makes them perfect for constructing logic gates. The diagram below is a (simplified) circuit of a NOT gate:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/not-transistors.jpg"><img class="alignnone size-full wp-image-869" title="not transistors" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/not-transistors.jpg" alt="" width="425" height="328" /></a> </p>
<p>A NOT gate is really just a transistor, with a couple of resistors and diodes thrown in to protect the transistor and keep the current flowing in the right direction but you get the gist of it. It&#8217;s even better when you look at an AND gate:</p>
<p> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/and-transistors.jpg"><img class="alignnone size-full wp-image-868" title="and transistors" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/and-transistors.jpg" alt="" width="414" height="312" /></a></p>
<p>It&#8217;s clear that you can build any logic gate you need just by arranging resistors in specific ways.</p>
<p>As I mentioned above, if you had to build a complex arrangement of components each time you wanted a logic gate you&#8217;d go mad, so the next step was the emergence of the IC.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/ics.jpg"><img class="alignnone size-medium wp-image-882" title="OLYMPUS DIGITAL CAMERA" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/ics-300x224.jpg" alt="" width="300" height="224" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/ics.jpg"></a></p>
<p> Using transistors for complex circuits was great till you got above a certain size, then errors started creeping in. The sheer number of components meant that shorts and broken connections became more frequent and the circuits became less reliable the bigger they got, advanced circuits contained so many components and connections that they were almost impossible to build. In 1958 an engineer named Jack Kilby had the idea of building these circuits out of a single block of semiconductor material, effectively removing the errors caused by broken connections, this was the beginning of the IC. Inside each IC is a collection of microscopic discrete components made out of the same bit of material, they are arranged in such a way as to act like any number of logic circuits.</p>
<p>The best article I have found that explains this in much more detail is here: <a href="http://nobelprize.org/educational/physics/integrated_circuit/history/">http://nobelprize.org/educational/physics/integrated_circuit/history/</a></p>
<p>Inside a logic gate IC you&#8217;ll usually find an arrangement of 4 gates of the same type e.g an IC NAND chip:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Figure1_18-QuadNandIC.gif"><img class="alignnone size-full wp-image-884" title="Figure1_18-QuadNandIC" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/03/Figure1_18-QuadNandIC.gif" alt="" width="454" height="329" /></a></p>
<p>This shows the arrangement of inputs and outputs on this chip, when you need a NAND gate you just hook your inputs up to the correct pair of pins and connect what ever you want driven by your output up to the corresponding output pin.</p>
<p>Wow, that was quite a journey, now to look at the sort of chips I&#8217;m likely to come across in my travels, what they do and how to use them&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=672</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
