Picture of Build yourself a clock and thermometer

Hello Guys,
In this step by step instruction,
I want to share my experiment on creating a clock and thermometer with
Arduino Mega 2560, LCD 16 x 2, thermal resistor sensor and DS1307 real time clock

More projects :

Remove these adsRemove these ads by Signing Up

Step 1: Preparing the material

Picture of Preparing the material
Prepare all the needed materials :
1. Arduino Mega 2560
2. LCD 16x2
3. RTC DS1307 module
4. NTC ( Negative Temperature Coefficient ) thermistor
I used 10K with lug
5. USB cables for PSU, you can use your own connector too...
6. Some male to male breadboard wires
7. Some female to female breadboard wires
8. 10 K 1/4W resistor
9. 1 K Trimpot
10. Arduino compiler, you can find it on arduino website
I used Arduino 022

Step 2: Connect your arduino to LCD,RTC and NTC

Picture of Connect your arduino to LCD,RTC and NTC
Here're the connection list to Arduino Mega 2560 for this project :

* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground

* ends to +5V and ground
* wiper (1K Trimpot) to LCD VO pin (pin 3)

RTC module :
connect to pin
pin 20 Arduino = pin SDA on RTC module
pin 21 Arduino = pin SCK on RTC module

Thermistor connection :
connect thermistor to A0 on arduino board series with 10K 1/W resistor.
Please see the schematic for thermistor
arick (author) 6 months ago

More projects..

Can you help me using your code? The first screen using buttons and this would not shield the menu with more options as an alarm and etc. Thank you very much.

arick (author)  curitiba.designers10 months ago

Which code ?

hello and thanks! For this project clock and thermometer, but with your code in first screen and menu options , like, option 2, adjust alarm to day, hour, option 3 another code. Thank You very much, and sorry for my Bad English, i'm try learn more, lol.

Milen1 year ago
Hi Arick,

Would you provide a download link for the DS1307 Arduino library, which you use?. I have found a lot of versions and implementations, but I would like to try with something which is proven on Arduino Mega 2560.

Best Regards