/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock
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
Why can't I use a potentiometer to get a different voltage?
===========================================================

Suppose that you have 12V and you need 6V. Why can't you use an
arrangement like this to get your 6Vs?

    +12V -------+---------
                |
                [] R
                |
                +--------o  6V, yes?
                |
                [] R
                |
      0V -------+---------

You *do* get 6V, but it isn't actually practical to do this. The
problem is that, when R is suitably high, you've limited the current
so much that it isn't really useful.

And when R is suitably low, there isn't enough resistance between the
+12V and 0V rails to prevent a lot of current flowing. Lets work this
out (lets suppose that R is 1 ohm).

	V = IR, therefor I = V/R
	P = VI = V(V/R) = RV^2 = 1 * 12 ^ 2 = 144W
	P = VI, therefor I = P/V = 144/12 = 12A

That's a lot of current and a lot of power, flowing continuously, just
to provide 6V!

Also, fluctuations in resistance and current drawn on the 6V pin would
actually change the ratio of the potentiometer, so you wouldn't get 6V
anyway.

The solution is to use a voltage regulator. The 7805 will give out 5V
(so long as you can supply it with at least 7V). But the arduinos
already have something similar on-board and so can take an input
voltage in the range 6-20V (although 7-12V is recommended).