Introduction: Rotating LED Clock
Hello, in this project I will show you how to make an led rotating clock.
What you will need:
1: BO motor 3volt / 12 volt, 500rpm motor
2: 2 12 V batteries
3: wire
4: a wheel for the motor
5: screws and nuts
6: block of wood
7: tape
8: aluminum sheet
9: 5 leds
10: 5 resistors
11: sponge
12: ziptie
13: arduino pro mini
14: perfboard
15: female socket pins
16: SparkFun FTDI Basic Breakout - 5V
17: Lithium ion battery
18: Adafruit PCF8523 Real Time Clock Assembled Breakout Board
Step 1: Building the Base
Drill a hole into your block of wood about 4.5 cm deep and the width of your motor. You want the motor to be snug, so if there is wiggle room, add a little wooden shiv next to it inside. By the side drill another hole 1 cm in diameter and stick out the wire from the hole. Have a battery on standby and connect the wires to the battery whenever you want the motor to spin.
Step 2: Wheel + 1 Side of Spinner
Put 4 screws in the middle of your wheel and attach nuts on the other side . Get two more nuts and screws and put them in upside down on an edge of the wheel. Put the nuts on top of the screw when they are through. Tighten. Get your aluminum sheet and cut out a 1.5 x 11 inch sheet. At the 6 inch mark bend the aluminum 90 degrees facing up. Put the wheel on the motor.
Step 3: Board
Follow this fritzing / my implementation diagram. Solder everything in the diagram and be very careful not to overlap any solder. At the battery part I got some more wire and soldered those together as an extension for the clip for the battery. Hook up the lithium ion battery to the real time clock. Hook up the led's to pins 2-6. Hook up the RTC to A0 and A1.
Step 4: Code
Code is here.
Step 5: Other Side of the Spinner
Do the same on the other side. Cut out a 11 by 1.5 inch piece of aluminum and fold it at the 6 inch mark. Screw it in as well from the second step. Tape the 9 V battery to the arm. Take your perfboard, put a sponge on the back to prevent short circuiting and attach a zip tie to it. Hook the cable up to the battery. That should be everything. Enjoy :)