RSS

Tag Archives: temperature

First Steps with the Arduino-UNO and NANO | Maker, MakerED, MakerSpaces, Coding | Temperature & Humidity monitor using Arduino NANO + DHT22 + 0.96 inch 128X64 I2C OLED

First Steps with the Arduino-UNO and NANO | Maker, MakerED, MakerSpaces, Coding | Temperature & Humidity monitor using Arduino NANO + DHT22 + 0.96 inch 128X64 I2C OLED

.

.


Temperature & Humidity monitor using Arduino NANO + DHT22 + 0.96 inch 128X64 I2C OLED

WE were playing around a lot already with I2C-LCD displays <===> https://gustmees.wordpress.com/?s=i2c+lcd <===> but not yet with I2C-OLEDs. In this tutorial WE will create a <===> Temperature & Humidity monitor using Arduino NANO + DHT22 + 0.96 inch 128X64 I2C OLED <===> which displays the temperature in °F AND °C, as well as it displays the “Heat Index“.

FIRST of all, let us talk about the Heat Index“, what it is and WHY it could be important to display it:

.

Heat-Index in °C

.

Click the image, please, to access the article

.

Heat-Index in °F

.

Click the image, please, to access the article

.


NO more Theory now, the PracTICE!

Let us have a look on the wiring and check the below Fritzing, please. It shows a DHT11 Sensor instead of a DHT22 Sensor, but the wiring is the same. It shows ALSO a 220 Ohm resistor instead of a 10K resistor!! Use a 10K resistor please!!

.

.

Once finished the wiring, WE will need to go for the coding by using a Sketch, we will use a already done Sketch, which WE can transform to our needs from:

IF you use “°Fahrenheit” you can use it without any changes, but IF you use “°Celsius” in your country WE will need to make some changes in the code, which WE will discuss the How-To here below.

First step: you can change the text, IF wanted: Original says "DHTxx test!", I changed it to what you see below; GET creative ;)

.

 

Click image, please, to enlarge

.

SO, here below the changes to make to display in “°Celsius“:

 

Click image, please, to enlarge

.

 

You might need to add certain libraries, see below please which ones will GET needed, please.

.

.

 

IF a newbie, please check the below tutorial for the How-To:

.

Well, that ISN’T difficult folks 😉

.


Check the video below, please, to see it in action (Fahrenheit version).

.

.

Check out ALSO, please, the tutorial below about DHT 11, DHT22 Sensors on Arduino and Raspberry PI:

.


Prices and where to order

 

128 x 64 Pixel 0.96 Inch I2C OLED Display

 

Click image, please, to enlarge.

Arduino NANO

ARDUINO NANO

Click image, please, to enlarge.

 

LCD2004-I2C

Click image, please, to enlarge.

 

 Temperature/Humidity SensorsDHT11

.

L’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)..


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).


.

Stay tuned for next blog post(s) 😉

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , ,

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

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

.

 

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,…

.

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , , , , , ,