/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to electronics-information

  • Committer: Tim Marston
  • Date: 2012-03-10 13:04:29 UTC
  • Revision ID: tim@ed.am-20120310130429-310w5ejo968mc6mo
cleaned-up notes

Show diffs side-by-side

added added

removed removed

41
41
voltage in the range 6-20V (although 7-12V is recommended).
42
42
 
43
43
 
44
 
Wiring up multiple LEDs in series to a single arduino pin
 
44
Wiring up multiple LEDs in series to a single Arduino pin
45
45
=========================================================
46
46
 
47
47
First, lets think about a single LED.
52
52
             |      R       D
53
53
             |
54
54
 
55
 
The arduino pin, when raised high, is at 5V and no more than 20mA can
 
55
The Arduino pin, when raised high, is at 5V and no more than 20mA can
56
56
be taken from it.  The LED will take about 10mA and wants about 1.5V.
57
57
 
58
58
You can think of this as a potentiometer arrangement, with the
86
86
You can see that beyond three or perhaps, at a push, four LEDs you're
87
87
not going to get the required 1.5V across each LED. So three (or four)
88
88
is the limit to how many LEDs you can drive in series from one pin on
89
 
the arduino.
90
 
 
91
 
 
92
 
Wiring up multiple LEDs in parallel to a single arduino pin
93
 
===================================--======================
 
89
the Arduino.
 
90
 
 
91
 
 
92
Wiring up multiple LEDs in parallel to a single Arduino pin
 
93
===========================================================
94
94
 
95
95
Imagine we have this
96
96
 
119
119
             |   '---|___|----►|---+--- GND
120
120
             |         R2     D2
121
121
 
122
 
This is ok.  R1 and R2 are just the usual 340 ohms.  But we have to
 
122
This is OK.  R1 and R2 are just the usual 340 ohms.  But we have to
123
123
bare in mind that each LED requires 10mA.  So the total current drawn
124
 
from the arduino pin will be 20mA, which is the most you're allowed to
 
124
from the Arduino pin will be 20mA, which is the most you're allowed to
125
125
draw.  So two LEDs is the most that we can drive, in parallel, directly
126
126
from a pin.
127
127
 
129
129
Using a transistor to drive multiple LEDs
130
130
=========================================
131
131
 
132
 
In both of the following diagrams, the resistor on the arduino pin,
 
132
In both of the following diagrams, the resistor on the Arduino pin,
133
133
R1, just needs to be something suitably high to provide a small
134
134
current on the base of the transistor. So, R1 could be 1kΩ.
135
135
 
190
190
             |             |
191
191
             |             '----- GND
192
192
 
193
 
Here, R3 = R4 = R5 = 340Ω, as usual.  The numbher of LEDs is limited
 
193
Here, R3 = R4 = R5 = 340Ω, as usual.  The number of LEDs is limited
194
194
only by the current that can be drawn from the power supply.
195
195
 
196
196
 
197
197
RC CIRCUITS
198
198
===========
199
199
 
200
 
An RC (resistor capacitor) curcuit is a basic low-pass filter. Here
 
200
An RC (resistor capacitor) circuit is a basic low-pass filter. Here
201
201
we're talking about giving it a pulse wave signal (a voltage that
202
202
oscillates between 0V and approx. 5V).
203
203
              ___
258
258
between the emitter and collector.  The resistor, R, limits the
259
259
turn-on current and prevents a short (effectively) across the
260
260
transistor (and whatever the pin is connected to, such as an
261
 
arduino!).
 
261
Arduino!).
262
262
 
263
263
PNP transistors were used in the days when a -5V rail was typical
264
264
instead of a 5V rail.  In this case, a typical set up would be exactly
290
290
CAPACITORS
291
291
==========
292
292
 
293
 
Two capacitors in parallel are equivelant to one capacitor whose
 
293
Two capacitors in parallel are equivalent to one capacitor whose
294
294
value is the sum of the two.
295
295
 
296
296
 
313
313
Electrolytic Capacitor (Radial, 4700uF 16V)
314
314
        Maplin part no. VH57M
315
315
 
316
 
Adruikno-powerable relay (DPDT, gold contacts, 5V, 27mA)
 
316
Arduino-powerable relay (DPDT, gold contacts, 5V, 27mA)
317
317
        Maplin part no. N05AW