Search This Blog

Powered by Blogger.

Translate

Home » , , » [TC] Arduino Based Sunrise Alarm Clock

[TC] Arduino Based Sunrise Alarm Clock

So We Want To Make Sunrise Alarm Clock Based On Arduino Board

Part List:
  1. Arduino
  2. Real Time Clock Module (http://www.sparkfun.com/products/99)
  3. 24xAssorted LEDs (In my case: 3UV, 2 Blue, 4 Red, 3 Yellow, 12 White)
  4. 24xResistors, 220ohm
  5. Solderless Breadboard
  6. Assorted wires
  7. 3x74HC595 shift registers
  8. A Shadow Display Box
  9. Frosting Spray
To put this thing together I used Elco's ShiftPWM Library to control the 24 LEDs. You could go bigger, but I wanted this to all fit into the box.
Personally, I had some PCBs from a previous project that I could fashion to make the LEDs easier to mount.
Everything is hooked up like in the schematic:

The "To SCL" and "To SDA" lines go to the Real Time Clock Module.
The parts are all mounted to the backing board of the shadow display box like so:

Load the program below in and you can set the time on the clock with the following command in serial monitor:
T(00-59)(00-59)(00-23)(1-7)(01-31)(01-12)(00-99)
T(sec)(min)(hour)(dayOfWeek)(dayOfMonth)(month)(year)
You can then set the alarm with a command:
A(00-59)(00-23)(0-1)(0-1)(0-1)(0-1)(0-1)(0-1)(0-1)
A(min)(hour)(sun)(mon)(tue)(wed)(the)(fri)(sat)
The alarm will attempt to be done with the cycle at the appropriate time set, so it will start with the UV LEDs and move through the progression fading the LEDs in and out as indicated in the arrays at the top of the program.

Arduino Code:

Share this on your favourite network

0 comments:

Post a Comment

Page Rank

google pagerank

Write For Us

Submit a Guest Post

Find us on Facebook

Categories

555 Timer IC 7 segment Display 8051 Project AC Circuits Adafruit Alarms Amplifier Circuits Analog Circuits android Arduino arm processor Assembly Languange Atmel Atom Size Audio Circuits augmented reality Automotive Circuits avr Battery Circuits Bicycle Gurad bluetooth Cable TV Circuits Cambridge University Camera Technology Circuit Boards Clipping And Clamping Circuits Clocking And Timer Circuits Computing contact lens Contact Us Form Contests Controller Circuit Conversion Circuits Counter Circuits Digital Electronics diy circuits Downloads EFY EFYTimes Electronic Books Electronic Components Electronic Locks And Keys Engineering Fan Circuits Filter Circuits Fire Alarm free Frequency Fun And Game Circuits future Google Hack n Mod Ham Radio Circuits heart rate monitoring High Voltage Circuits Home Circuits IC Guide ieee Industrial Circuits Infrared Instructables Inventions ipad lcd Led Circuits Light Related Lighting Circuits Medical Circuits Meter Clocks Microcontrollers Microprocessors Mini Projects modules Movie maker NatGeo Navigation Notice Optical Fiber PC Circuits PCB Boards Physics pnp transistor Power Supplies Printing Projects Programmer Project Ideas Projectors Protection circuits Proximity Detectors Radar Radio Circuits Radio Transmitters Raspberry Raspberry Pie Remote Circuits Retis Lab RFID Robot Cars Robotics Science Science Alert Security And Safety Sensor Circuits Servo Motors Smallest Smartwatches sms Software solar cell sound application Spectram Switch Technology News Telephone Related Television Related Test And Measurement Circuits Thermal Projects Tone generator circuits Touch Screen Tutorials Wearables Wi-Fi Wireless
Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS