<?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; Circuits</title>
	<atom:link href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;tag=circuits" 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>The Circuits</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1293</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1293#comments</comments>
		<pubDate>Fri, 06 May 2011 19:55:16 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Prototyping and Analysis]]></category>
		<category><![CDATA[Circuits]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=1293</guid>
		<description><![CDATA[My logic circuit is a nice, simple NAND gate to start this off:   The transistor circuit is one that I&#8217;ve not tried out before, I&#8217;ve simulated it using Circuit Wizard in my previous post so now time to bring it into the real world:  Next is the monostable: And lastly the beast&#8230; The binary to decimal [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>My logic circuit is a nice, simple NAND gate to start this off:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/Nand-circuit-to-fix.jpg"><img class="alignnone size-full wp-image-1712" title="Nand circuit to fix" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/Nand-circuit-to-fix.jpg" alt="" width="504" height="361" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/P1030477.jpg"></a> </p>
<p>The transistor circuit is one that I&#8217;ve not tried out before, I&#8217;ve simulated it using Circuit Wizard in my <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=740">previous post</a> so now time to bring it into the real world:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/transistor-circuit-to-fix.jpg"><img class="alignnone size-full wp-image-1709" title="transistor circuit to fix" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/transistor-circuit-to-fix.jpg" alt="" width="608" height="357" /></a></p>
<p> Next is the monostable:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/555-to-fix.jpg"><img class="alignnone size-full wp-image-1710" title="555 to fix" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/555-to-fix.jpg" alt="" width="572" height="389" /></a></p>
<p>And lastly the beast&#8230; The binary to decimal counter:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/binary-to-decimal-to-fix.jpg"><img class="alignnone size-full wp-image-1711" title="binary to decimal to fix" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/binary-to-decimal-to-fix.jpg" alt="" width="712" height="675" /></a></p>
<p>I&#8217;ve built and tested each one, they&#8217;re functional and ready to be maliciously tampered with <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  Steve has volunteered to be the saboteur and after handing over my lovingly put together breadboards *sob* he has made a total of 10 faults. Steve has kept a record of everything he&#8217;s done so I can compare notes with him once they&#8217;re all working again. On with my protocol then&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/P1030476.jpg"><img class="alignnone size-large wp-image-1714" title="P1030476" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/05/P1030476-768x1024.jpg" alt="" width="461" height="614" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=1293</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>Creating the PCB</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=42</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=42#comments</comments>
		<pubDate>Wed, 24 Nov 2010 21:43:00 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[The Basic Circuit]]></category>
		<category><![CDATA[Circuits]]></category>
		<category><![CDATA[PCB Etching]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=42</guid>
		<description><![CDATA[Right, Ok then, Eeeep&#8230; This originally sounded like Dean was asking me to something on par with &#8220;just run along to the nearest dragons lair and bring me back some rubies would you , oh and careful you don&#8217;t get scorched along the way&#8221;. Me? Make a PCB? From scratch? Right. First step, what is a [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Right, Ok then, Eeeep&#8230;</p>
<p>This originally sounded like Dean was asking me to something on par with &#8220;just run along to the nearest dragons lair and bring me back some rubies would you , oh and careful you don&#8217;t get scorched along the way&#8221;. Me? Make a PCB? From scratch? Right.</p>
<p>First step, what is a PCB? Well as I found out it stands for Printed Circuit Board and is the basis for almost every  electronic product out there.It serves two purposes, as a stable surface to fix components to and as a means of making an electrical connection between them. As someone who has been on the fringes of several PC builds I know what a PCB looks like but have no idea how you would actually go about creating one.</p>
<p>Turns out, not the crazy, complicated quest I first thought. The process is surprisingly simple as long as your artwork isn&#8217;t printed backwards! (more on that later). I&#8217;ve detailed the steps below, hope you find them as useful as I do:</p>
<p>Step 1 &#8211; Get your artwork, we picked up ours from <a href="http://www.picaxe.co.uk">www.picaxe.co.uk</a>. As some of us are relatively new to this we are making the basic PICAXE-08 circuit, designed for the smallest PIC chip they produce, details here <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/axe001_pcb1.pdf">axe001_pcb</a>.</p>
<p>Step 2 &#8211; Print (the right way round!) onto acetate using a laser printer. Our first attempt was printed from the component view rather than the track view, this meant that the numbers printed on the board appeared the right way round even though the tracks were wrong! Unfortunately we did not realise this until we had finished the process and were soldering components to them, note to self, always double check artwork!</p>
<p>Step 3 &#8211; Warm up the UV light box. Peel off the black backing on the board to expose the photo-reactive chemical film over the copper, place the acetate sheet making sure it&#8217;s the right way up (When you hold the printed sheet over the board you need to be able to read any numbers or text) onto the light box and cover with the board, film side down, and expose for 3 minutes. (The guy in the photos is my colleague Steve who very kindly ran the demo for us, thanks Steve!)</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Warming-up-the-Light-Box.jpg"><img class="alignnone size-medium wp-image-83" title="Warming up the Light Box" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Warming-up-the-Light-Box-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Setting-up-the-Light-Box.jpg"><img class="alignnone size-medium wp-image-82" title="Setting up the Light Box" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Setting-up-the-Light-Box-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Step 4 &#8211; You now need to develop the image  that has been transferred to the board. You need at make up a solution of (hmmm, can&#8217;t find my notes, will need to update tomorrow) in a shallow tray and place the board so it is entirely covered. Gently swish the solution over the board and you will see threads of blue running off the board, carry on until you can&#8217;t see anymore blue running off the board.</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Exposed-Board.jpg"><img class="alignnone size-medium wp-image-85" title="The Exposed Board" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Exposed-Board-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Developing-the-Image.jpg"><img class="alignnone size-medium wp-image-84" title="Developing the Image" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Developing-the-Image-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Step 5 &#8211; Now to insert the prepared board into the Rots-Spray etching machine to strip all of the unwanted copper away (H&amp;S info on this machine found here). This machine also need warming up so make sure to turn it on at the start of this process. Fix the board into the holder shown below and slot into the chamber to the right (this unit has the capabilities to develop the board as well in the chamber to the left but it was  not operational when we were using it) there is a notch in the bottom that the holder sits in. Make sure you close the lid! The chemical used to strip the copper is ferric chloride (COSHH info <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=97" target="_self">here</a>), it will stain just about anything and can eat through cloth. Set the machine to etch for 1.5 minutes and you will see it start to spray a brownish, yellow fluid at the board (be warned it smells!).</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Board-fixed-in-Frame.jpg"><img class="alignnone size-medium wp-image-86" title="Board fixed in Frame" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Board-fixed-in-Frame-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etching-Machine.jpg"><img class="alignnone size-medium wp-image-89" title="The Etching Machine" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etching-Machine-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p> <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Remember-to-Close-the-Lid.jpg"><img class="alignnone size-medium wp-image-87" title="Remember to Close the Lid!" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Remember-to-Close-the-Lid-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etching-Machine-at-Work.jpg"><img class="alignnone size-medium wp-image-88" title="The Etching Machine at Work" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etching-Machine-at-Work-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etching-Machine-at-Work.jpg"></a></p>
<p>Step 6 &#8211; Once the machine has finished, wash the board in the middle slot in the tank to get rid of any remaining ferric chloride and cut to shape using the board guillotine. Using a little PCB drill make all the holes needed in the board. Tip: the drill will naturally find the middle of the hole if you gently hold the board and lower the drill slowly, it feels a little strange at first, normally when drilling you don&#8217;t want your material to move but it does work!</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Nasty-Ferric-Chloride.jpg"><img class="alignnone size-medium wp-image-92" title="Nasty Ferric Chloride" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Nasty-Ferric-Chloride-225x300.jpg" alt="" width="225" height="300" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Washing-the-Board.jpg"><img class="alignnone size-medium wp-image-94" title="Washing the Board" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Washing-the-Board-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etched-Board.jpg"><img class="alignnone size-medium wp-image-93" title="The Etched Board" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/The-Etched-Board-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Cutting-the-Board.jpg"><img class="alignnone size-medium wp-image-90" title="Cutting the Board" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Cutting-the-Board-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Finished.jpg"><img class="alignnone size-medium wp-image-91" title="Finished!" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/Finished-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Right there you go. the lair was stormed, the dragon tamed (not slain, I think that&#8217;s mean) and the rubies gained and no longer shall I think of this as something beyond my capabilities. Now I just need to know how to use it&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/P1010856.jpg"></a> </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/P1010856.jpg"></a> </p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/P1010856.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=42</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Keypad</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=230</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=230#comments</comments>
		<pubDate>Sat, 20 Nov 2010 10:09:23 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Design Process]]></category>
		<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Soldering]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=230</guid>
		<description><![CDATA[Right, now I have decided on my product I need to purchase the keypad kit, put it together and make my alterations. The kit comes from a company called Tech Supplies (http://www.techsupplies.co.uk/epages/Store.sf/en_GB/?ObjectPath=/Shops/Store.TechSupplies/Products/CHI008) and contains the basics I need for making my safe. Before I received my kit I had assumed that the keypad would work by [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Right, now I have decided on my product I need to purchase the keypad kit, put it together and make my alterations.</p>
<p>The kit comes from a company called Tech Supplies (<a href="http://www.techsupplies.co.uk/epages/Store.sf/en_GB/?ObjectPath=/Shops/Store.TechSupplies/Products/CHI008">http://www.techsupplies.co.uk/epages/Store.sf/en_GB/?ObjectPath=/Shops/Store.TechSupplies/Products/CHI008</a>) and contains the basics I need for making my safe.</p>
<p>Before I received my kit I had assumed that the keypad would work by assigning an input to each number on the pad so the microcontroller would know which buttons had been pressed, this would take up the majority of pins on my 18 pin chip leaving very few to use for outputs such as lights and sounds. On arrival I found that the microcontoller used a surprisingly simple method of scanning that reduced the number of pins needed to 7. It manages this by breaking the pad up into 3 columns and 4 rows, assigning the columns to inputs and the rows to outputs. If all the outputs (rows) are switched off the signal to the microcontroller along the inputs is 0-0-0. if a button is pressed while the rows are switched off the signal remains 0-0-0, however if you switch one of the rows high and press a button in that row for example 1 the signal to the microcoltroller will be 1-0-0 telling it that button 1 has been pressed. if the signal had been 0-1-0 it would tell the microcoltroller that button 2 had been pressed. The PIC scans the keypad by continuously switching each of the output rows high in turn, waiting for an input signal back corresponding to the button pressed. The full description of the workings of the kit can be found here <a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/chi008.pdf">chi008</a>.</p>
<p>In putting it together I knew that I would need to reposition elements such as the LED and the keypad itself so I soldered it together using flying leads:</p>

<a href='http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?attachment_id=307'><img width="150" height="150" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/Flying-leads-150x150.jpg" class="attachment-thumbnail" alt="Flying leads" /></a>
<a href='http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?attachment_id=305'><img width="150" height="150" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/Almost-complete-150x150.jpg" class="attachment-thumbnail" alt="Almost complete" /></a>
<a href='http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?attachment_id=306'><img width="150" height="150" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/completed-board-150x150.jpg" class="attachment-thumbnail" alt="completed board" /></a>

<p>This means that I can easily fit the components into my case design and shorten/neaten the wires as required. </p>
<p>Time to test&#8230; (connects up battery pack with eyes squinched shut in anticipation of failure) It Works!! The bi-colour LED glows red to show that the circuit is in it&#8217;s locked position, as the code is entered the buzzer sounds for each button press and once the correct code is used the bi-colour LED changes to green and the output for the solenoid (just a connector block at the moment) registers a 4.5v signal when measured with a multi meter then resets after 5 seconds. So I have a working circuit, now all I need is to create my case, connect up a solenoid for my locking mechanism, add in any additional lights and sounds, re-programe my chip and test it all over again (not much to do then&#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=230</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Keypad &#8211; Malfunction!</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=241</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=241#comments</comments>
		<pubDate>Thu, 18 Nov 2010 20:59:22 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Design Process]]></category>
		<category><![CDATA[Analysing Circuits]]></category>
		<category><![CDATA[Circuits]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=241</guid>
		<description><![CDATA[Aahhhhhh! it&#8217;s stopped working! After painstakingly putting the kit together and testing it, my contrary PIC chip has decided to stop working. Today I plugged it in to find that only some of the keypad keys are working, the LED won&#8217;t flash and the buzzer is making a constant low level bzzzzzzzzzzzzzzzzzzzzzzzzzz (very annoying when [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Aahhhhhh! it&#8217;s stopped working!</p>
<p>After painstakingly putting the kit together and testing it, my contrary PIC chip has decided to stop working. Today I plugged it in to find that only some of the keypad keys are working, the LED won&#8217;t flash and the buzzer is making a constant low level bzzzzzzzzzzzzzzzzzzzzzzzzzz (very annoying when you&#8217;re trying to find out what&#8217;s wrong with it). None of my connections are loose, I&#8217;ve got no solder bridges and no crossed connections, time to ask for help from a higher power&#8230;. Dean, are you free?&#8230;.</p>
<p>OK, time to run some diagnostics, after discussing my problem with Dean he has reccomended that we use an oscilloscope (such a cool name) to try and see what is going on inside my circuit. The oscilloscope will track any signals being sent from the legs of my PIC to the outputs on my board, the blip on the screen should jump up for a live signal or remain flat for no signal. Or in the case of my key pad it should jump up and down rapidly to indicate the PIC is scanning each of the output rows in turn.</p>
<p>Once I had taped over the buzzer (there&#8217;s only so long you can listen to it going bzzzzzzzzzzzzzzzzz without having serious thoughts about destroying it in an inventive fashion) we got down to investigating. Using the circuit diagram (see below) we tested each output in turn, it didn&#8217;t take long to see that outputs 7 and 12 had swapped places, the constant high/low signal that was supposed to be scanning one of the keypad rows was what was causing the buzzer to be so irritating. We&#8217;re still not sure what caused this to occur as the only thing that had happened to the board is that I had carried it home and back to the workshop, the only explanation we can come up with is that it suffered a static shock from the box I was keeping it in and it scrambled the programme. Right, keeping it in a static proof bag now&#8230;</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/circuit-diagram.jpg"><img class="alignnone size-full wp-image-392" title="circuit diagram" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2010/11/circuit-diagram.jpg" alt="" width="543" height="253" /></a></p>
<p>One rapid reprogramme later and I&#8217;m back to having a working board, only 3/4 of a day lost&#8230; <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_sad.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=241</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final Circuit</title>
		<link>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=426</link>
		<comments>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=426#comments</comments>
		<pubDate>Sat, 30 Oct 2010 19:47:38 +0000</pubDate>
		<dc:creator><![CDATA[Lullabel]]></dc:creator>
				<category><![CDATA[Design Process]]></category>
		<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Construction]]></category>
		<category><![CDATA[Soldering]]></category>

		<guid isPermaLink="false">http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?p=426</guid>
		<description><![CDATA[Now that I have all my pieces cut and temporarily fixed together (thank you masking tape) I need to return my attention to my wiring. The flying leads I used when first putting the keypad together are far too long and are made from single core wire making them very stiff and prone to breaking [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Now that I have all my pieces cut and temporarily fixed together (thank you masking tape) I need to return my attention to my wiring. The flying leads I used when first putting the keypad together are far too long and are made from single core wire making them very stiff and prone to breaking at the soldering point if bent too often. After carefully removing the old wiring (scary even though I know I&#8217;m putting it back together again) I replaced it with a length of ribbon cable and some more flexible multi core wires (see before and after images below).</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/before.jpg"><img class="size-medium wp-image-444 alignnone" title="before" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/before-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/after.jpg"><img class="size-medium wp-image-445 alignnone" title="after" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/after-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Much neater <img src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  It makes such a difference when fitting it to the case as well:</p>
<p><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/case-before.jpg"><img class="size-medium wp-image-447 alignnone" title="case before" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/case-before-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/case-after.jpg"><img class="size-medium wp-image-446 alignnone" title="case after" src="http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/wp-content/uploads/2011/01/case-after-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Now that I&#8217;ve finished my alterations I can show you how it is going to work (please excuse the hiccup, my PIC must have been having a bad day&#8230;):</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/o8wLhE5aDv0" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/o8wLhE5aDv0"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.resistors-and-diodes-and-picchips-oh-my.co.uk/?feed=rss2&#038;p=426</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
