First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | 1.8 Inch TFT with DS3231 RTC and Arduino

Authors

.

 

Correct data displayed and enhanced displaying

.


1.8 Inch TFT with DS3231 RTC and Arduino

We were already playing around with LED MATRIX for time and temperature display with a Wi-Fi connection on an ESP8266, but we didn’t create yet a project with an RTC (Real Time Clock) module and an 1.8 inch TFT display; here we go. We will use again a ready to go code, but we will change it a bit for better looking. SO, we will learn How-To code rectangles and lines for a TFT screen, very easy… It is GOOD to try out different components to get used with coding, Maker, MakerED… Especially when we use displays, which ever ones, as one sees directly the results; sensation of direct success!!

The tutorial in the video shows an Arduino UNO, but we will use in this tutorial an Arduino NANO as it is less expensive (+/- 1/3 of the price of an Arduino UNO) and also it takes less place when integrating the components into a box.

Below you see how to connect the TFT-Display to the Arduino.

.

 

WIRING-1.8 inch TFT ST7735 on ARDUINO

Click image, please, to enlarge.

.

Check the video below, please:

.

.


Detailed parts list, supplier and prices

Please find below the detailed parts list as well as the supplier and the prices.

 

Item and quantity

Supplier and order number

Price

1x 1.8 inch Touchscreen  AMAZON (DE): AZDelivery 1,8 Zoll SPI TFT-Display mit 128 x 160 Pixeln für Arduino und Raspberry Pi inkl gratis eBook 9,99€
1x RTC DS3231 AMAZON (DE): AZDelivery Real Time Clock RTC DS3231 und gratis Batterie inklusive I2C für Arduino und Raspberry Pi sowie GRATIS eBook (3x Real Time Clock) 14,99€ / 3 pces 5€
1x Arduino NANO AMAZON (DE): AZDelivery Nano V3.0 CH340 Chip fertig verlötete, verbesserte Version mit USB Kabel, 100 % Arduino Nano V3 kompatibel 7,99€
  Total: 22,98€

.

As you can see it is a very cheap project, ONLY 22,98 € and easy to realize! ALL what YOU need is a bit time, passion and here we GO! 😉 Have FUN! I order my stuff on AMAZON.DE, but you can chose any other supplier as the parts are very popular…

Please follow the whole tutorial with connections (Wiring Diagram) and Code (Sketch) here:

When copying the code on the mentioned website <===>   http://educ8s.tv/arduino-real-time-clock/  <===> you must be aware of some TYPOS in it!!! Check below please where they are and how to correct them. Once corrected save the code in the Arduino IDE  and upload it. Here are the errors, check below please.

.

Bug in sketch-1

.

As you can see above the “Arduino IDE” shows an error and highlighted it in Line 1. The sign “<” is too much, delete it and save your sketch, then upload it again to the Arduino NANO. You might get a second error message again, check below please.

.

Bug in sketch-2

.

In above image you will see a new error message in Line 100. Check below please on how-to correct it.

.

Bug in sketch-3-correction

.

Same procedure as above, save it in the Arduino IDE and upload it again to the Arduino NANO (UNO). Here what will show up now.

.

Working sample without drawn rectangle

.

There are some problems with the time and day still… I didn’t follow step-by-step instructions on the video, OK let’s have a look in deep now!! Please check the video tutorial @ 03:15 for the settings and follow them strictly, otherwise your clock setting will NOT working!! Done so, it will be working great. I did some more changes in the coding such as changing the text colors and ALSO to draw a rectangle and some lines to make it look BETTER, please check below.

.

Draw Rectangle

.

As you can see, I added some new code snippet from lines 142 to 151, this will draw a rectangle around the TFT screen and it will draw white lines under the measured values. It will look BETTER, well that’s what I think and my wife as well; you just do the way as you want, up to you 😉 Here below the result…

.

Correct data displayed and enhanced displaying

.

.

Here below the version with the Arduino NANO.

.

DS3231 and 1.8 TFT on Arduino NANO

.

SO, that’s it folks, enjoy it and have fun 😉

.

 


 

GUST-AVRIL2014-800px-2L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

.

Stay tuned for next blog post(s) 😉..
.

Keywords necessary for me to create this blog post: Arduino UNO R3, Arduino NANO, TFT DISPLAY, Coding, Maker, MakerED, MakerSpaces, #RTC, Real Time Clock, Temperature, DS3231,…

.

.

.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.