You have no items in your shopping cart.



Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

Iteaduino Mega with 2.8 LCD – DIY a Clock That Can Detect Temperature and Humidity

We've used LCD1602 to DIY a clock that can show temperature and humidity at the same time. However, some thought that character screen is too simple to show information, what if a TFT LCD is used instead? In this blog, we will use 2.8 TFT touch screen to DIY a clock with temperature and humidity detection.



Plug 2.8 touch shield into left side interface of Iteaduino MEGA 2560, and then connect DS1307 module’s SDA to D22 pin, SCL to D23 pin. Connect pin of DHT11 module to D25 pin, at last put CR2032 button cell into battery socket in the back of Iteaduino MAGA.

Pins pairing as follow:
// DS1307:  SDA pin   -> Arduino Digital 22
//          SCL pin   -> Arduino Digital 23
//          VCC pin  -> 5V
//          GND pin  -> GND
// DHT11:   S pin     -> D25
//          V pin     -> 5V
//          G pin     -> GND

2.Upload demo

Before uploading the demo in MEGA, users should download the following libraries first.



Extract them into the directory arduino/libraries, then open file: Arduino\libraries\UTFT\hardware\avr\HW_AVR_defines.h and uncomment the definition and save the file.


Download display_demo.pde and itead.c files, before uploading the demos, DS1307 should be set the time in your current time settings. Pay attention: in order to avoid time change when user re-power MEGA, the time in our demo can be modified only once. If users want to change the time set again, they should modify the parameters of eeprom_address or eeprom_value first, for example modifying eeprom_address to 0x01 or eeprom_value to 0x02.


After uploading demos, users can see the 2.8" touch shield showing information as below.

4.How to change the picture ?

We know users won't use our itead logo when they do this DIY clock. So, users can change the picture by the following steps.

Run software Arduino\libraries\UTFT\Tools\ImageConverter565.exe, click “open image”, then choose the picture you like, but remember that the pixel of the picture must be 100*104. At last, revise the name in Array Name option into itead, and save it.

Delete the original itead.c file, and put the new into IDE. Upload the demo again to see the new picture show.

PS: Doing with Iteaduino Mega and 2.4 touch shield

We offer another demo for users to get a ticking clock with temperature and humidity demonstration. The steps are in the same with using 2.8 touch shield, only with 2.4 touch shield instead. 2.8 and 2.4 have the same resolution, but 2.4 will be more smooth because of its smaller size.

You can download the ticking clock demo here. The final display effect will show as below picture. Have fun with this demo!