/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 Notes

  • Committer: edam
  • Date: 2011-12-02 19:57:07 UTC
  • Revision ID: edam@waxworlds.org-20111202195707-lko4ap3pfe1jrgd9
renamed code directories and updated the comments in the code

Show diffs side-by-side

added added

removed removed

1
 
DISPLAY
2
 
 
3
 
The display is split up in to seconds, each with 5 subdivisions
4
 
(segments).  That's a total of 300 segments per revolution.
5
 
 
6
 
If the propeller spins at 2000RPM, that's 33.3 revolutions per second,
7
 
or 30ms (30,000μs) per revolution.  That means we'll be drawing 10,000
8
 
segments per second, which is 100μs per segment.  With a clock speed
9
 
of 16MHz, this is 1600 cycles per segment, which is plenty.
10
 
 
11
 
 
12
 
SCEMATIC NOTES
13
 
 
14
 
The diode (D14) across the fan's power connections is there because if
15
 
the power acrss the fan breaks (due to the unreliable nature of the
16
 
brushes), the motor in the fan has coils, which act like an inductor
17
 
and will produce a back EMF (a huge negative voltage across the power
18
 
connections) as the magnetic field collapses.  This won't be good for
19
 
the arduino and could cause sparks on the brushes.  The diode simply
20
 
shorts the negative voltage.
21
 
 
22
 
The capacitor (C1) and resistor (R14) are there to smooth the power
23
 
supply from the unreliable brushes.  The capacitor would discharge
24
 
fairly slowly (due to the resistance of the circuit), but will charge
25
 
very quickly.  Potentially, it will charge so quickly that it'll pull
26
 
too much current from the power supply.  So the resistor limits this.
27
 
Unfortunately, the resistor will also have a potentiometer effect
28
 
(with the resistence of the main circuit).  10Ω was chosen as a value
29
 
due to these rough workings: Lets say the arduino circuit takes 100mA.
30
 
if we aim to lose 1V across the resistor, that's 1V / 0.1A = 10Ω (from
31
 
V=IR).  The 100μF was a guess!  The problem with the capacitor is that
32
 
if it's can only hold a small charge, it won't be able to maintain a
33
 
reasonable charge when the power breaks.  If it's too large, it will
34
 
take ages to charge (and effectively short the power, save for the
35
 
resistor, while it charges).  100μF seemed like a good value,
36
 
according to dad!
 
 
'\\ No newline at end of file'
 
1
Display:
 
2
60 divisions (1 for each second)
 
3
Each division has 5 segments (300 segments per revolution)
 
4
 
 
5
Assuming that the clock spins at 3000 RPM:
 
6
50 revolutions per second
 
7
20,000 microseconds per revolution
 
8
15,000 segments per second (display update speed)
 
9
66.666666666667 microseconds per segment
 
10
0.018 degrees per microsecond
 
11
1066.66666666666667 CPU clock cycles per segment