I create a serial binary clock.
I did pwm on pin13, and it drives out the led in binary serially
- low pwm for zero
- high pwm for one
LSB to MSB
- hour: 4 bits
- 10 minute digit: 3 bits
- 1 minute digit: 4 bits
I did this as a quick project since it required no external circuit.
Of course I put the 100ohms between reset and Vcc so I don't reset the circuit if I turn on the Arduino software or access the serial port
The program also dumps to the serial port including the time in milliseconds (more of a debug for me).
Time can be set through the serial port.
But setting the is a little hard since I display the time 3times a minute (of course that can be hardcoded) and waits until the display is done.
I thought this is a good beginner's project for people starting off.
Also allowed me to validate my own time keeping program.
Measuring the gain/loss right now. Want to see how accurate I can get it. Right now losing 100ms/hour.
Next stop an Ambient Orb (with a clock/hour signal feature).