1 / 14

Spinning LED Clock

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.

miron
Download Presentation

Spinning LED Clock

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spinning LED Clock By Nick Bigelow

  2. System Diagram

  3. Electrical Concept Optic Sensor HC12 Microcontroller LED Push Buttons Serial Port

  4. The Full Schematic

  5. The HC12 Microcontroller • The microcontroller blinks the LED’s at the right time to flash the time as the board spins on the motor

  6. Optic Sensor • This sensor measures the speed of spinning board

  7. The Push Buttons • These push buttons allow the user to set the time of the clock

  8. Board Layout

  9. 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.

  10. 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

  11. 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.

  12. 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.

  13. 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.

  14. Reference • I got the idea for this project from the following website: • http://www.bobblick.com/techref/projects/propclock/propclock.html

More Related