Clock using DS3231 RTC module

Clock using DS3231 RTC module

This project will display time and date on a 16x2 LCD.

For making this project you will need 

  • DS3231 RTC module
  • Arduino UNO
  • 16x2 LCD with i2c interference
  • Some jumper wires

Let's see What is RTC module

Top View


Bottom
View


These modules work on I2c Communication also called TWI (Two Wire interface) 
This module can :-
  • Store time
  • Store date
  • Store Day
  • Measure temperature
This module have a battery which run this module like a clock. If the battery is removed the time will be also reset.

What is I2c LCD?

This is a 16x2 LCD display this display usually need to be connected using 18 different wires. And that wirring is really a headache and also take too much of time.



But if we attach an I2c module on the LCD it change those 18 pin into 4 pins.
Here i am not going in detail if you want to know how I2c LCD work check it on my blog.


Wiring

Wiring for RTC module
  • Vcc to 5v arduino
  • Gnd to Gnd Arduino
  • SDA to analog pin 4
  • SCL to analog pin 5
Wiring for LCD
  • Vcc to D5(which I am now using as a 5v pin because Arduino Uno have a shortage of 5volt pin you can use any pin by making it high in the code)
  • Gnd to Gnd
  • SDA to analog pin 4 
  • SCL to analog pin 5
Now you must be thinking why we will attach both the pin in same pin slot we can use other analog or digital pins, but no you can't because Arduino have a fixed SDA(Standard Data Line) and SCL(Standard Clock Line) for every board like Arduino mega have it SDA on d20 and SCL on d21

If you want to know more about I2c or TWI then search for i2c or TWI on my blog 

So now how will you connect to pin in same slot so for that you can use a breadboard or you can also make a junction using male and female headers as i did it

Let's make the code 

JUST DOWNLOAD THE ZIP FILE BY CLICKING BELOW BECAUSE IT CONTAINS ALL LIBRARY JUST OPEN THE LIBRARY FOLDER AND COPY ALL TO  C:\Users\Username\Documents\Arduino\libraries

For More Detail Watch this Video on my Channel and subscribe it also 





Comments

Popular posts from this blog

How to use TV as Arduino display || Arduino TVout Library || Hindi

Arduino Keypad

diy relay module