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 kB3046
pitches.h1.97 kB3216
AnalogMatrixKeypad.cpp4.36 kB3132
AnalogMatrixKeypad.h1.19 kB4214
DS3232RTC.h5.94 kB4870
DS3232RTC.cpp13.97 kB2589
TimeAlarms.cpp8.97 kB3009
TimeAlarms.h6.83 kB5199

Bill of Material

QtyValueDevicePackagePartsDescriptionMFMPNAliexpress or Ebay link
14.28Arduino Unohttps://www.aliexpress.com/item/Best-prices-high-quality-UNO-R3-MEGA328P-for-Arduino-UNO-R3-NO-USB-CABLE/32656985498.html?ws_ab_test=searchweb0_0,searchweb201602_2_10091_10090_10088_10089,searchweb201603_1&btsid=33ca7187-32b5-4e79-8ad7-6f266cc24ef9
11.80NRF24L01+https://www.aliexpress.com/item/1pc-NRF24L01-2-4GHz-Antenna-Wireless-Transceiver-Module-For-Microcontrollers-Top-Sale/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/10PCS-FQP30N06-FQP30N06L-30N06L-30N06-60V-N-Channel-MOSFET/2025804061.html
50.466*6*4.3mm Switch Push Button Tactilepack of 30https://www.aliexpress.com/item/High-Quality-Arrival-6-6-4-3mm-30-Pcs-for-Tact-Switch-Push-Button-Tactile-Pushbutton/32631542760.html
11.050.36" LED 4-Digit Displayhttps://www.aliexpress.com/item/4-Bits-Digital-Tube-LED-Display-Module-With-Clock-Display-TM1637-for-Arduino-Raspberry-PI/32533714278.html
11.5960mm White 15 LED 1210/3528 SMD DC12Vset of 2https://www.aliexpress.com/item/High-Quality-2X-60mm-White-15-LED-1210-3528-SMD-Car-Auto-Motorcycle-Angel-Eyes-HeadLight/32469907846.html
13.08AC 100-240V to DC 12V 1A Power Supply Converter Adapterhttps://www.aliexpress.com/item/J34-Free-Shipping-New-AC-100-240V-to-DC-12V-1A-Switching-Power-Supply-Converter-Adapter/32599654361.html
10.82DS3231 High Precision Real-Time Clock Module (3.3~5.5V)https://www.aliexpress.com/item/20pcs-lot-DS3231-AT24C32-IIC-Module-Precision-Clock-Module-DS3231SN-for-Arduino-Memory-module-Free-Shipping/1812409775.html?ws_ab_test=searchweb0_0,searchweb201602_2_10091_10090_10088_10089,searchweb201603_1&btsid=545a8356-a770-451f-b33d-f955b8468135
10.10Capacitor - 4.7uFhttps://www.aliexpress.com/item/Free-shiiping-50pcs-Aluminum-electrolytic-capacitor-4-7uF-400V-8-12-Electrolytic-capacitor/32326602415.html?ws_ab_test=searchweb0_0,searchweb201602_2_10091_10090_10088_10089,searchweb201603_1&btsid=e48ab772-d2ff-4877-8cc7-2f0345e64b41
11.45Speaker - 0.5w/8ohmset of 3https://www.aliexpress.com/item/3Pcs-0-5W-8-Ohm-Internal-Magnet-Mini-Music-Loudspeaker-Speaker-40mm-Dia/32615785330.html

Gateways

Sensors & Actuators

Comments