190 likes | 582 Views
Spinning LED Clock. By Nick Bigelow. System Diagram. Electrical Concept. Optic Sensor. HC12 Microcontroller. LED. Push Buttons. Serial Port. The Full Schematic. The HC12 Microcontroller.
E N D
Spinning LED Clock By Nick Bigelow
Electrical Concept Optic Sensor HC12 Microcontroller LED Push Buttons Serial Port
The HC12 Microcontroller • The microcontroller blinks the LED’s at the right time to flash the time as the board spins on the motor
Optic Sensor • This sensor measures the speed of spinning board
The Push Buttons • These push buttons allow the user to set the time of the clock
The Software for the HC12 • Reading inputs from optic sensor and buttons. • Keeping time. • Calculating motor speed. • Blinking the correct pattern. • Create correct delays to make clock readable.
Code • PTT = 0xFF;//toggles pt2 • DELAY_DMS(1000);//delay • PTT = 0x20;//toggles pt2 • DELAY_DMS(1000);//delay • PTT = 0x10; • DELAY_DMS(1000); • PTT = 0x08;//toggles pt2 • DELAY_DMS(1000);//delay • PTT = 0x04;//toggles pt2 • DELAY_DMS(1000);//delay • PTT = 0x02; • DELAY_DMS(1000); • PTT = 0xFF;//toggles pt2 • DELAY_DMS(1000);//delay
How I Got Power To The Board • A problem that I had to overcome was getting power to the board and still allow it to move freely.
Future Revision • I eventually want to program the board so that no matter what speed the motor is running at the HC12 will adjust the time delays and still display correctly.
Impact on the World • My product impacts the world because people need to know what time it is. • It could help get somebody to work on time saving them from being fired.
Reference • I got the idea for this project from the following website: • http://www.bobblick.com/techref/projects/propclock/propclock.html