Skip to content

Arduino Real Time Alarm Clock with Temperature and LED lights. Remote controlled

License

Notifications You must be signed in to change notification settings

gavinlyonsrepo/Arduino_Clock_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

  • Name : clock_number_2
  • Title : Arduino Real Time Alarm Clock and Lamp.
  • Description : Arduino Clock with Battery backup (real time clock), Time, Date, Alarm, Temperature, LCD output, remote control input, Sleep mode, LED lighting (10X) with 10 light modes
  • Author: Gavin Lyons

Libraries

In src folder you will find the ino file with source code it includes a number of libraries.

  • <Wire.h> //I2C communications
  • <LiquidCrystal_I2C.h>// LCD
  • <DS1302.h> //Real time clock
  • <IRremote.h> //IR remote control
  • <Sleep_n0m1.h> //For sleep mode https://github.com/n0m1/Sleep_n0m1

All are standard libraries which can be found on Arduino website, site except "sleep_n0m1", see link.

Led mode

The modes are

  1. All Leds off
  2. All Leds on
  3. All red Leds on
  4. All blues on
  5. LEDs bargraph on based on temperature.(0-30C one LED = 3 degrees)
  6. Blink all LEDS on and off
  7. Fade in and out with PWM all LEDs attached to PWM pins
  8. Cylon display (led chaser)
  9. Blink all red , blink all blue.
  10. Random pattern

Parts List

See eagle diagram in "doc" schematic.

LCD module 16X2 with I2C module

NANO Arduino module or UNO rev 3

DS 1302 Real Time Clock module (with CR2032 battery)

LM35 temperature sensor

one active buzzer

One VS1838 NEC Infrared IR Wireless Remote Control Sensor Module

10 Leds( 5 red 5 bright blue) 10 current limiting resistors (5 220 ohms 5 150 ohms)

Remote control 38kHz carrier frequency NEC.(The Unit is designed for BEKO MODEL: B92187F or Chorus remote Model: Um4(AAA,r03) can easily be re-factored for others(which can communicate with Vs1838) by end user. The unit includes an option to scan remotes and give the codes on LCD. Remote control information

Some current calculations in this design:

Red Vd of 2V, Vcc-Vd/Rs = ~13mA. Bright Blue Vd 3, Vcc-Vd/Rs = ~13mA. Total current consumption of LED circuit in theory = ~130mA.

Measured Current Consumption figures:

  1. 55mA , normal mode
  2. 31mA , Sleep mode
  3. 38mA , normal mode + LCD off
  4. 171mA , normal mode + All LEDS on

Schematic

ScreenShot schematic