Complete Digital Clock including Alarm and Motion Sensor

I have done several designs of digital clocks for Arduino using LEDs and LCD displays, but this one is more special because I added other features like alarm and motion sensor (PIR).

Main features

  • PIR (Presence Infrared Sensor)
  • RTC (real-time clock)
  • Alarm
  • Temperature
  • Humidity
  • Water dew point
  • Encoder to set the time and alarm
  • Permanent memory for time and alarm data even when the power supply is offDigital Clock including Alarm and Motion Sensor

Main functions of the PIR

  • Activates the display only when movement is detected around the clock.
  • Turns off the alarm if any movement is detected.

If you or your children have a deep sleep and it is difficult to wake up in the morning, this last function is perfect for you because the alarm remains activated with a noisy buzzing until the sensor detects the movement of your body.

You should definitely get out of bed and keep moving!

Shake your body !!

Digital Clock including Alarm and Motion Sensor

  • Arduino UNO
  • Arduino NANO (optional)
  • Display CATALEX 4 digits x 7 segments (TM1637)
  • PIR sensor module
  • RTC module (DS1307)
  • Temperature & Humidity sensor module (DHT11)
  • Rotary Encoder Decoder module (KY-040)
  • Buzzer 5V
  • Sensor Shield for Arduino UNO (optional)
  • Sensor Shield for Arduino Nano (optional)
  • Wires
  • Protoboard (optional)

2) Assembly

 Assembly

The assembly of these components is very easy.

Just follow the assembly diagram and pay attention to the connections between the components.

Here is the summary of the main signal pins of the sensors and modules to be connected in the Arduino:

Components X Arduino Pin

  • Display DIO X Digital Pin #2
  • Display CLK X Digital Pin #3
  • Encoder SW X Digital Pin #4
  • Encoder DT X Digital Pin #5
  • Encoder CLK X Digital Pin #6
  • PIR X Digital Pin #7
  • Buzzer X Digital Pin #8
  • DHT11 X Digital Pin #10
  • RTC SDA X Analog Pin #A4
  • RTC SCL X Analog Pin #A5

Note: In the diagram is shown the Arduino Nano for an application in a more compact size, but in the photos you can see my prototype using an Arduino Uno and a Sensor Shield to facilitate the whole assembly, but of course you can use protoboards to connect All Components.

Read More:  Complete Digital Clock including Alarm and Motion Sensor


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top