summaryrefslogtreecommitdiff
path: root/sample/objects/com.tangiblebit.drawdio/how-it-works/index.html
blob: 552a25d180db06ed8eb652322dcb323447d40994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class=" __noscriptOpaqued__"><head>

<!-- InstanceBegin template="/Templates/make/drawdio/drawdio.dwt" codeOutsideHTMLIsLocked="false" -->

<link rel="alternate" type="application/rss+xml" title="ladyada.net blog  RSS Feed" href="http://www.ladyada.net/feed/">
<link rel="stylesheet" href="make.css" type="text/css">
<link rel="stylesheet" href="skeleton.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Drawdio!</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
</head><body class=" __noscriptOpaqued__">

<div class=" __noscriptOpaqued__" id="content">
  <!-- InstanceBeginRepeat name="texts" --><!-- InstanceBeginRepeatEntry -->
  <div class="textblockheader"> <!-- InstanceBeginEditable name="Header" -->How does it work?<!-- InstanceEndEditable --> </div>
  <div class="textblock"> <!-- InstanceBeginEditable name="text" -->
    <p>The Drawdio kit is pretty simple compared to most electronic projects.</p>
    <p>We will go through it one section at a time, please refer to the schematic</p>
    <p align="center"><img src="drawdiosch.png" height="494" width="665"></p>
  <!-- InstanceEndEditable --> </div>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <div class="textblockheader"> <!-- InstanceBeginEditable name="Header" -->Power supply<!-- InstanceEndEditable --> </div>
  <div class="textblock"> <!-- InstanceBeginEditable name="text" -->
    <p>The
first part to understand is the power supply, which keeps everything
running. The power source is a single AAA battery which is held in a
plastic container that is soldered to the PCB. There is also a switch <strong>S1</strong> which can connect or disconnect the battery from the rest of the circuit. Finally there is a large electrolytic capacitor <strong>C4</strong>,
which is used as a 'bypass capacitor'. This means that it goes across
the AAA battery and smooths out any ripples that are caused from power
surges (like when the drawdio makes noise!)</p>
    <!-- InstanceEndEditable --> </div>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <div class="textblockheader"> <!-- InstanceBeginEditable name="Header" -->The Oscillator<!-- InstanceEndEditable --> </div>
  <div class="textblock __noscriptOpaqued__"> <!-- InstanceBeginEditable name="text" -->
    <p>The heart of the kit is a TLC551 chip, which is a low voltage version of the famous <a href="http://en.wikipedia.org/wiki/LM555">LM555</a>
timer chip. This integrated circuit is specifically designed for
creating timers and oscillators. The original LM555 needs at least 5V
to run (which is more than 3 1.5 batteries!) so we are using the 551
which can run as low as 1V. Its a little more expensive but makes the
whole thing fit on a pencil.</p>
    <p>One of the more popular ways
that '555s are used is as a 'mono stable multivibrator' which is anothe
way of saying an oscillator. The frequency of the oscillation is set by
2 resistors and a capacitor. The chip slowly feeds current into the
capacitor until it is full and then, likewise, slowly drains it out.
The resistors set how fast to fill and drain the capacitor and the size
of the capacitor indicates how long it takes before it fills.</p>
    <p>This system is pretty much identical to Japanese water fountains, as this video shows:</p>
    <p class=" __noscriptOpaqued__" align="center">
    <object width="425" height="344">
    <param name="movie" value="http://www.youtube.com/v/NsovmPV-oWo&hl=en&fs=1">
    </param><param name="allowFullScreen" value="true">
    </param><param name="allowscriptaccess" value="always">
    </param><embed src="http://www.youtube.com/v/NsovmPV-oWo&hl=en&fs=1"
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
    </embed></object>
    </p>
    <p align="left">Except its all with electrons instead of water molecules and capacitor <strong>C1</strong>
is the 'bucket'. The water fountain oscillates maybe once a minute
(1/60 Hz). But electrons are so much faster, a '555 can oscillate at
thousands of Hertz, which means it can make audible sound. (Human
hearing tends to range from 20Hz to 20000 Hz)</p>
    <p align="center"><strong>f = 1.44 /(C3 * (RA + 2 * RB))</strong></p>
    <p align="center"><strong>C3 = 680 pF = 0.00000000068 F<br>
    RA = 10000 ohms<br>
    RB = 300000 ohm to 1000000 ohm (1 Mohm)</strong></p>
    <p align="left">In this case, we use two resistors <strong>RA</strong> and <strong>RB</strong>
but also have an 'open connection': two tabs at the end of the PCB. If
the two tabs are shorted with a piece of wire, then the frequency of
the oscillation is 3500 Hz, if instead there is a resistor of 1
Megaohms between the two tabs, the frequency of oscillation is about
1000 Hz. You can use a calculator to do the math yourself using the
formula above</p>
    <p align="left">Instead of a 'everyday' resistor
between the tabs, however, we use something else - the conductivity of
the human body and graphite! The human body has a resistance similar to
a 200,000 ohm resistor. Graphite has resistance of about 1 ohm per inch
when its in the form of a pencil lead. When its spread out on a piece
of paper, the resistance goes up a lot, up to a megaohm for a few
inches of 'drawn resistor'</p>
  <!-- InstanceEndEditable --> </div>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <div class="textblockheader"> <!-- InstanceBeginEditable name="Header" -->Amplifier<!-- InstanceEndEditable --> </div>
  <div class="textblock"> <!-- InstanceBeginEditable name="text" -->
    <p>The
551 can create audio-frequency oscillations but it is not powerful
enough to play them on a speaker, just like an MP3 player needs an amp
to play music on large speakers. That's because the 551 was designed
mostly for digital logic, not for low impedence (8 ohm) audio outputs.
So we will use a <a href="http://en.wikipedia.org/wiki/Electronic_amplifier#Class_B_and_AB">Class B 'pushpull' amplfier</a>, which uses two seperate transistors to amplify the sound.</p>
    <p align="center"><img src="Electronic_Amplifier_Push-pull.png" height="257" width="372"></p>
    <p align="left">This is pretty much the same thing in your stereo, except your stereo has <em>enormous</em> transistors with gigantic heatsinks so that it can drive large speakers.</p>
</body></html>