Smart Alarm Clock

I always thought it would be cool to have a smart alarm clock, so I decided to build one for my kids rooms. I'm still working on this project, but I thought I would share it with the community.

I eventually plan on building it into some sort of cool case, like a toy t-rex or something.

I've used a few external libraries, and in some cases I had to modify them. Below are the links to the source, and I've attached my edited files to this project:

History:

  • v0.0.2 === Small updates to functionality ( updated ClockRebuild.ino file )

Planned features:

  • Time Display | [DONE]
  • Time update from controller plus onboard RTC | [DONE]
  • Alarm | [DONE]
    • Set from controller | [DONE]
    • Set locally (using 3 buttons) | [IN-PROGRESS]
    • Turned on/off locally or remotely | [DONE]
    • Play music | [PART 1 DONE, PLAYS TONES. PART 2 WILL PLAY ACTUAL MUSIC]
    • Wake-up light | [DONE]
  • Night light (locally or remotely) | [DONE]
  • Bed Occupancy Sensor | [NOT STARTED] Source: https://www.openhardware.io/view/65/Bed-Occupancy-Sensor
  • Smart snooze | [NOT STARTED]
  • Control room lights | [NOT STARTED]

Example video of some of the functionality:

Wiring diagram (to-date) enter image description here

Images

Source Code

NameSize# Downloads
ClockRebuild.ino17.21 kB2388
pitches.h1.97 kB2451
AnalogMatrixKeypad.cpp4.36 kB2449
AnalogMatrixKeypad.h1.19 kB3506
DS3232RTC.h5.94 kB3921
DS3232RTC.cpp13.97 kB2001
TimeAlarms.cpp8.97 kB2284
TimeAlarms.h6.83 kB4463

Bill of Material

QtyValueDevicePackagePartsDescriptionMFMPNAliexpress or Ebay link
14.28Arduino Unohttps://www.aliexpress.com/item//32656985498.html
11.80NRF24L01+https://www.aliexpress.com/item//32584314773.html
20.10Resistor - 100
10.10Resistor - 220
10.10Resistor - 680
10.10Resistor - 1000
10.10Resistor - 2200
10.10Resistor - 4700
10.39N-channel MOSFETpack of 10https://www.aliexpress.com/item//2025804061.html
50.466*6*4.3mm Switch Push Button Tactilepack of 30https://www.aliexpress.com/item//32631542760.html
11.050.36" LED 4-Digit Displayhttps://www.aliexpress.com/item//32533714278.html
11.5960mm White 15 LED 1210/3528 SMD DC12Vset of 2https://www.aliexpress.com/item//32469907846.html
13.08AC 100-240V to DC 12V 1A Power Supply Converter Adapterhttps://www.aliexpress.com/item//32599654361.html
10.82DS3231 High Precision Real-Time Clock Module (3.3~5.5V)https://www.aliexpress.com/item//1812409775.html
10.10Capacitor - 4.7uFhttps://www.aliexpress.com/item//32326602415.html
11.45Speaker - 0.5w/8ohmset of 3https://www.aliexpress.com/item//32615785330.html

Gateways

Sensors & Actuators

Related Content

Comments