/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: edam
  • Date: 2012-01-14 16:54:49 UTC
  • Revision ID: edam@waxworlds.org-20120114165449-dkgjun2pb5tr9g2a
updated schematic (switched to PNP) and added info about transistors

Show diffs side-by-side

added added

removed removed

153
153
             |             ¯``
154
154
             |             |
155
155
    Arduino  |    ___    ,-|
156
 
            o----|___|--(|< ) T
 
156
            o----|___|--(|↘ ) T
157
157
             |     R1    `-|
158
158
             |             |
159
159
             |             '----- GND
185
185
             |             +-------+-------'
186
186
             |             |
187
187
    Arduino  |    ___    ,-|
188
 
            o----|___|--(|< ) T
 
188
            o----|___|--(|↘ ) T
189
189
             |     R1    `-|
190
190
             |             |
191
191
             |             '----- GND
234
234
 
235
235
    T = RC
236
236
 
 
237
 
 
238
TRANSISTORS
 
239
===========
 
240
 
 
241
When using an NPN transistor as a switch, a typical set up might look
 
242
something like this:
 
243
 
 
244
    o--------------+---- 5V
 
245
                   |
 
246
                   []
 
247
                  (  )  some load
 
248
                   []
 
249
                   |
 
250
         ___     ,-|c
 
251
    o---[___]--b(|↘ ) T (NPN)
 
252
          R      `-|e
 
253
                   |
 
254
               ----+---- GND
 
255
 
 
256
You would typically connect the pin to 5V to turn on the transistor.
 
257
The current between the emitter and base turns on a larger current
 
258
between the emitter and collector.  The resistor, R, limits the
 
259
turn-on current and prevents a short (effectively) across the
 
260
transistor (and whatever the pin is connected to, such as an
 
261
arduino!).
 
262
 
 
263
PNP transistors were used in the days when a -5V rail was typical
 
264
instead of a 5V rail.  In this case, a typical set up would be exactly
 
265
the same as above, but with -5V used for the top rail and a PNP
 
266
transistor.  The thing to note here is that the direction of the
 
267
current would also have changed. Now imagine flipping this diagram
 
268
up-side-down and offsetting both rails by +5V (so that -5V becomes GND
 
269
and GND becomes 5V, respectively).  Then you'd have this set up, which
 
270
is a modern-day typical usage scenario for a PNP transistor.
 
271
 
 
272
               ----+---- 5V
 
273
                   |
 
274
         ___     ,-|e
 
275
    o---[___]--b(|↙ ) T (PNP)
 
276
          R      `-|c
 
277
                   |
 
278
                   []
 
279
                  (  )  some load
 
280
                   []
 
281
                   |
 
282
    o--------------+---- GND
 
283
 
 
284
In this set up, as before, a current is required between the base and
 
285
emitter to turn on a larger current between the collector and emitter.
 
286
But the difference this time is that the pin must be connected to
 
287
ground to achieve this.
 
288
 
 
289
 
 
290
CAPACITORS
 
291
==========
 
292
 
 
293
Two capacitors in parallel are equivelant to one capacitor whose
 
294
value is the sum of the two.
 
295
 
 
296
 
 
297
COMMON PARTS LIST AND USEFUL VALUES
 
298
===================================
 
299
 
 
300
NPN transistors
 
301
        BC548/BC547, 5V switch
 
302
 
 
303
PNP transistors
 
304
        BC327/BC328, -5V switch
 
305
 
 
306
LEDs
 
307
        ~1.5V, ~10mA
 
308
        With 5V across them, a 560Ω resistor is required.