Full Binary Clock
What I did:
-Because controlling 20 LEDs individually for this cube would be messy, I multiplexed.
-I used an ATtiny84 and a SN74HC164N to control the clock. This makes the clock cheaper and smaller.
-I built it all on two PCB boards and affixed a stand, power plug, and buttons.
Step 1: Parts List
-20 LEDs, any color I used 5mm I wouldn’t recommend 10 unless you have the space
-6 PN2222 transistor, or any that you have that are simmilar
-2 push buttons, any flavor of interface you want to try would work buttons are easy
-2 1K resistors, for the buttons
-10 resistors for LEDs, i used 470ohm you could use as low 100ohm but they would be very bright at night
-various wire for connections
-I used ATtiny84 and SN74HC164, I choose it because it was small, cheep, and easy to use with this option you will use the shift register to control one side of the LED matrix
-ATmega, any of this series would work as long as you have a programmer and the space
-Arduino Board, I don’t recommend spending the money on this option and it also takes up a lot of space
-ATtiny with only 6 I/O if you use two shift registers
-The library is written for arduino and feels free to use anything else that you would re-code
*Use a DIP socket for whichever controller you choose to use.
-I used USB charger and cable to power it
-any 5V power supply would work, just make sure it works with your controller
-Some type of board is needed. I used two small boards, 4cm x 6cm and 3cm x 7cm. I have seen cardboard used for the LEDs but i do not recommend cardboard for the controller.
-I used polymorph, it’s cool stuff to have around
-origami would work
Step 2: My Multiplexing
When a the transistor emitter is connected to ground the transistor will provide ground, from collector, if the base is connected to Vcc.
Step 3: Wiring
1. Solder your LED matrix as in the diagram, note it is drawn from the back make sure the cathode and anodes are corrected to ground and Vcc, respectively
2. Connect the LEDs ground to the emitter of the transistor
3. Solder the push buttons and DIP sockets on the board
4. Connect power and ground to all the right parts
5. Connect the 1K resistor to ground and the resistor, connect Vcc to the push button, and connect an input of the ATtiny to the push button
6. Solder the 470ohm resistors next to the DIP sockets, 6 go to the SN74HC164 and 4 the outputs of the ATtiny
7. Connect the 6 resistors to the base of each transistor, they need to be in order of A-F so they multiplexing works
8. Connect the 4 resistors to each anode layer
9. Connect 2 outputs of the ATtiny to the clock and data of the shift registor
Step 4: Build a Stand
Step 5: Programming the ATtiny84
1. Connect the following:
Vcc to pin 1 on ATtiny
Gnd to pin 14 on ATtiny
D10 to pin 4 on ATtiny
D11 to pin 7 on ATtiny
D12 to pin 8 on ATtiny
D13 to pin 9 on ATtiny
2. For the rest follow instructions here
(If that site is down then here is a different instructional on it with the file attached to this step.
Or here as a third backup
The instructions are great and easy to use.
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w
This Post / Project can also be found using search terms:
- full binary clock circuit diagram
- sn74hc164n in circuit diagram
- binary clock code arduino
- sn74hc164n stepper motor circuit diagram