RSS

Tag Archives: Measuring Temperature and Humidity

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, NANO | Displaying Time, Date, Temperature and Humidity on a LCD2004 Display | Maker, MakerED, Maker Spaces, Coding

First steps with the Arduino UNO, NANO | Displaying Time, Date, Temperature and Humidity on a LCD2004 Display | Maker, MakerED, Maker Spaces, Coding

.

.


Displaying Time, Date, Temperature and Humidity on a LCD2004 Display

We were already playing around with a LCD2004 display in a previous tutorial where we displayed the temperature and the humidity <===> First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | I2C LCD Temp./Humidity displaying, now we will add as well Time and Date with a DS3231 module.

We will use the tutorial from <===> Arduino datalogger with SD card, DS3231 and DHT22 sensor, where we will NOT use the datalogger for our project to make it as easy as possible; courageous ones, once the project is working for them, may add the datalogger 😉 In that tutorial you will find also the code…

Please check video tutorial below:

.

.

Check also the blog below, please:

.

Check the schematic above please to know how to wire it; first we will do it on a breadboard and later we could solder it… Do the wiring as shown, without the Datalogger-SDCard-Module. See PIC below, please.

.

.

In the above image you will see an DHT11 Sensor (blue case) as at the time I didn’t have it yet (was ordered…) a DHT22 Sensor (white case) as shown on the finished project. As the project works we can now solder everything together on a strip-board, choosing a case; I used a cardboard box with the dimensions of 140 mm X 130 mm X 60 mmm, fixing the LCD2004 and the DHT22-Sensor on the front of the cardboard box.

.

Components soldered on a Stripboard

Components soldered on a Stripboard

.

Soldering cables on the DHT22 sensor and isolating pins with heatshrink tube

Soldering cables on the DHT22 sensor and isolating pins with heatshrink tube

.

Soldering cables on the I2C adapter of the LCD2004 and isolating pins with heatshrink tube

Soldering cables on the I2C adapter of the LCD2004 and isolating pins with heatshrink tube

.

Fixing the LCD2004 display on the frontpanel and the distance bolts

Fixing the LCD2004 display on the frontpanel and the distance bolts

.

Final assembling of the parts

Final assembling of the parts

.


The finished project

.

 

.

As you can see in above image, I added some text with a Dymo tape, looks better 😉

 


The Sketch (Code) for the project

One thing missing, the sketch (code). Please find it below and open it , copy it and paste it to the Arduino IDE:

Read the comments in the sketch to understand the changes which I made to the original, it’s actual easy…

.


Prices and where to order

 

RTC DS3231

 

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 ESP8266 Wi-Fi Module | Maker, MakerED, Coding | Scrolling Text (Time, Temp., Humidity…) with 8×8 LED MATRIX

First Steps with the ESP8266 Wi-Fi Module | Maker, MakerED, Coding | Scrolling Text (Time, Temp., Humidity…) with 8×8 LED MATRIX

.

ESP8266 and Matrix LED MAX7219

.


First Steps with the ESP8266 Wi-Fi Module | Scrolling Text (Time, Temp., Humidity…) with 8×8 LED MATRIX 

In our previous blog post (Tutorial…), we were playing around with a LED MATRIX <===> First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Scrolling Text with 8×8 LED MATRIX  <===> and we will continue to use the LED MATRIX, but this time with a Wi-Fi connection. We will use the module “ESP8266” which you can purchase worldwide around as it is very popular and it costs ONLY 7.49 €. I ordered mine on Amazon in Germany:

Good to know is the PINOUT of the ESP8266

.

ESP8266-NodeMCU

Click the image, please, to access the source.

 

Before we can use the module “ESP8266” and before the wiring we need to do some preparation:

.

Check the video below please who explains the first steps with the ESP8266:

.

.

Now that we have configured the ESP8266 in the Arduino IDE we need some other information which are necessary to implement into the code. It is the name of the Wi-Fi Network (SSID) and the Password for the Wi-Fi Network.  AND a new device connecting to the router (the ESP8266) must GET allowed to do so, if your router is well configured for Cyber-Security! Thus meaning for Cyber-Security reasons: in the router security settings any device connecting to your Wi-Fi Network SHOULD NOT have access unless it is your own ones and unless you allow THEM to access!

.

My shown images from the Router are from a “FritzBox Router“, but it should be similar in other Routers!!

.

Router-1-corr

Click image, please, to enlarge.

In the above image you see which devices are connected to your Network, to do so: open your router with your login and/or password and look under “Radio Network” (or similar). IF you don’t see your “ESP8266” in the Network while you run the code and it isn’t working does mean that your Network is well secured as it doesn’t allow any other device connecting to the Network!

Router-2-corr

Click above image, please, to enlarge.

.

You need then to give permission to the device to connect. To do so: Open the Security settings in your Router and click on “Allow all new wireless devices“. NOW, you will see that the “ESP8266” is part of the Network! Note down on a piece of paper its “MAC Address” and protect your Network again by clicking on “Do not allow new wireless devices“!!

.

Router-3

Click on the image, please, to enlarge.

.

NOW, click on the button “Add Wireless Device” as shown in above image.

.

Router-4

Click image, please, to enlarge.

.

A new window opens where you can add the new devices “MAC Address” which you wrote down before. Do so please and then click the button “OK“. Go back and have a look if the device is now in the authorized devices in your Network.

Required:

  • SSID
  • WLAN Password
  • Acces authorization for the Wi-Fi

The Code for the ESP8266 and first try

I used a video tutorial in German from Switzerland as well as its Code for this project as it is very well explained. Even if you don’t understand German, you can follow step by step in the video:

.

.

While watching the video on YouTube, you will find the download link for the code, check below please:

.

Video Tutorial-2

Click image, please, to enlarge.

.

You can find another interesting code here on the blog as well as the wiring diagram and a GREAT description (in German):

Unzip the code and install it by following the video instructions; check @ 8.30 minutes and follow step by step…

After everything is installed and the code is in the Arduino IDE you need to adapt the code to your needs: check video @ 10.36 minutes

  • Entering your Network name, the SSID
  • Entering the Network-Key; Check above Router images…

.

1ibdy1vf6wghd-n05dgl-attenzionearchitettofr01When you run the code for the first time: disconnect the two wires for the power supply (GND and VCC) as the LED Matrix will light all the dots and the power consumption will be by 1.5 Ampere; thus meaning the components, especially the chips will become hot, even could get overheated!! Once the Arduino IDE shows you that the code is uploaded reconnect them and it should work.

.

That’s it folks; now you can run the code and have fun! I takes a bit time before the code runs: first “Compiling Sketch…“, followed by “Uploading…” and “Done Uploading…” and the ESP8266 tries to connect with the Wi-Fi Network…

Connecting

.

If everything was made correctly as described above you should receive now your personal weather data… FIRST the time will GET displayed for a couple of seconds (that period could GET changed by your settings in the code…)…

.

Time

.

Then the scrolling text starts displaying the temperature, humidity, air pressure, rain risk in % and wind speed…

.

Scrolling text: temp., humidity...

.

Stay tuned for next blog posts and enjoy it 😉

Have FUN with your “LEARNing-By-Doing project” and try out ALSO the other examples 😉

.

Keywords necessary for me to create this blog post: Arduino, Wi-Fi, wireless, ESP8266, Weather received through Wi-Fi, LED Matrix, Coding, Maker, MakerED, MakerSpaces, Learning By Doing, Learning To Learn, PracTICE,

.


.

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, MAX7219 LRD DISPLAY, Coding, Maker, MakerED, MakerSpaces…

 

.

.

.

 

 

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

First Steps with the Arduino-NANO | DHT22 Temperature/Humidity with Meter | Maker, MakerED, Coding

First Steps with the Arduino-NANO | DHT22 Temperature/Humidity with Meter | Maker, MakerED, Coding

.

DHT22-ARDUINO-NANO-PROCESS-METER

Click image, please, to enlarge it.

.


Arduino-NANO | DHT22 Temperature/Humidity with Meter

I was looking to find the most easy way to show people and to GET them interested into “Coding” with a minimum of components and expenses, as well as having directly a “success feeling” to be motivated to continue slowly but surely! Here it is; ONLY three (3) wires to connect and ONLY two (2) components to buy for a low budget as well. Temperature and humidity are words well known by everybody and so WE will use a Temperature/Humidity Sensor to run this project. By using terms which the learners know already (Temperature/Humidity) they will NOT GO into “Unknown Land”, makes them feel comfortable 😉

WE will use the tutorial shown below in the video, please check it:

.

.

The link for the tutorial blog is here, please check it:

YOU will find all the necessary information in it such as the how to connecting the components as well as the codes for the “Arduino IDE” and the “Processing code“.

As YOU will remark: there are ONLY three (3) wires to connect, you can count until 3, isn’t it 😉 SO, very easy…

Here below how I did wire it, and you will see how easy it is actually…

.

DHT22-ARDUINO NANO

Click image, please, to enlarge it.

.

You need to install now the Processing software, please check the link below; install it and open it:

Concerning the code for the “Arduino IDE” AND the “Processing IDE“, we will follow the steps on the proposed tutorial…

First copy the code for the Arduino, check below:

.

ARDUINO CODE

Click the image, please, to enlarge

.

Next step: Connect the USB cable to your computer, copy the code, paste it into the Arduino IDE and upload it.

Now copy the “Processing Code”  paste it into the Processing IDE and upload it.

.

PROCESSING CODE

Click the image, please, to enlarge it.

.

IMPORTANT: In the above code in “Line 14” is marked “COM4”! Check if it is the same PORT as in your Arduino IDE, else change the PORT number; for me it was “PORT 8”, but it depends on your computer… JUST change the number, e.g. “COM8”. Click now the button “RUN” on Processing and you will GET the shown result below…

.

PROCESSING-METER-TEMPERATURE-HUMIDITY-DHT22

Click the image, please, to enlarge.

.

Easy isn’t it? 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 NANO, coding, learning to learn, learning by doing, sensors, temperature/humidity sensor, DHT22, Processing Software, Meter, Analog Meter simulation with software, easy projects, Arduino NANO clones,

.

 

.

 

 

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

First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Super Starter Kit UNO R3 Project | LCD and Sensors Project

First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Super Starter Kit UNO R3 Project | LCD and Sensors Project

.

Temperature/Humidity Sensor DHT11 and LCD1602

.


Super Starter Kit UNO R3 Project | LCD and Sensors Project | Temperature/Humidity Sensor DHT11

SO, as I got my new Super Starter Kit UNO R3 Project I am playing around a bit with it. In my previous post WE were wiring and testing a LCD-Display and coding to display a bit text on the LCD. That was actually very easy, so lets try out now some “Sensors“, e.g. a Temperature/Humidity Sensor and a Ultrasonic Sensor to measure distances. The measured values of those sensors will get displayed on the LCD-Display.

Let us start first with the Temperature/Humidity Sensor DHT11 which is included in the Kit:

WE will use the following tutorial from Dejan Nedelkovski (How To Mechatronics) as it is very well documented and explained (no need for me to create a new one…). First we will check the video below, please, where we will get explained the How-To and some theoretical explications:

.

.

SO, now after knowing what will be necessary to do, we will first make the wiring of the LCD-Display, please check below:

.

LCD1602-Wiring with Arduino

Click the image above please to access the tutorial

.

As you can see in the above wiring diagram, there isn’t that much wiring to do. When following the tutorial <===> Arduino LCD Tutorial <===> you will get proposed some examples of code to play around with. Try them out to repeat the learned from previous blog post or just leave the wiring as it is to proceed to the next step, the wiring of the Temperature/Humidity Sensor DHT11.

We will continue to follow the tutorial <===> DHT11 & DHT22 Sensors Temperature and Humidity Tutorial using Arduino <===> where the Temperature/Humidity Sensor DHT22 is used. As we use DHT11, you need only to forget about the resistor as it is not needed, replace it by a connection cable (strip).

.

DHT22-Wiring Diagram

Click the above image please to access the tutorial

.

The wiring ready now, we go for the coding. The sketch is available here <===>  DHT11 & DHT22 Sensors Temperature and Humidity Tutorial using Arduino <===> Upload it into the Arduino IDE and give it a try. You will see the result as shown in the image below:

.

DHT22 Code for DHT11

.

There is something strange on the displayed values, isn’t!? WHAT happend!? Let us make some trouble-shooting: the wiring is OK, otherwise the wouldn’t be anything displayed, is the sensor defective!? If you have a second one, replace it to make sure. Same results again, hmmmm!? OK, it’s mysterious on some way, but there must be a solution for it… Let us check the sketch, the code, again to try to understand WHAT the Arduino is getting told to do and WHY the display shows something completely different, the problem is certainly then in the code. Let us review the video tutorial, perhaps we missed something (I did…). In the video, if really listened to, it get explained the two possibilities, using a sensor DHT11 or a DHT22. The code is written for a DHT22 sensor and we use a DHT11 sensor; so WHAT to change now in the code!? Please check the screenshot of the sketch below:

.

Sketch-DHT22-Arduino

Click the image please to enlarge it

.

Once change that code line upload it to the Arduino IDE and see WHAT happens on the LCD-Screen. See PIC below please.

.

Temperature/Humidity Sensor DHT11 and LCD1602

.

Well, that’s success!! It works correctly now 😉 Play around with it to see the difference on the LCD-Display while blowing on the sensor. Give it a bit time that the measured values go back again to the previous shown one. SO, as we had now a positive experience and where we can see WHAT is happening on the LCD-Display, let us try another project, we will measure distances with the Ultrasonic-Sensor. But befor we ared going for a NEW project we need to save our project, check the video tutorial below please.

.

 


Super Starter Kit UNO R3 Project | LCD and Sensors Project | Ultrasonic Sensor HC-SR04

We will keep exactly the same wiring diagram for the LCD-Display and taking away the Temperature/Humidity sensor with its wires from the Breadboard. Then we will have a look on the following tutorial, we will use the tutorial from  Dejan Nedelkovski (How To Mechatronics) again, check please <===> http://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/ <===> as the previous one was working well! SO, remember that you have to remove the DHT11 Sensor and the wires from it to the Arduino board and follow the next wiring diagram, please. First we will watch the video tutorial.

.

.

Here below the wiring diagram.

ULTRASONIC-HC-SR04-Wiring diagram-LCD-Display

Click the image please to access the tutorial

.

Next step is to load the code, follow <===> If you want to display the results from the HC-SR04 Ultrasonic Sensor on an LCD you can use the following source code from <===> http://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/ <===> and to upload it to the Arduino IDE. That’s it folks, check below please to see the result!

.

ULTRASONIC SENSOR-HC-SR04-and LCD-DISPLAY

.

It works up from the beginning, a success experience! Well folks, as you see it isn’t that much difficult to play around with the Arduino and Coding; don’t forget to save your project so that you can use it again if once needed and try out other projects as well, check the <===> Elegoo UNO R3 Project Super Starter Kit <===> PDF download to GO for NEW LEARNing-By-Doing adventures 😉

.

Was this post helpful for you!? Please let me know by your comments, thank you!


.

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, Super Starter Kit UNO R3 Project, LCD 1602, Sensors, DHT11, Temperature/Humidity Sensor, Ultrasonic Sensor, HC-SR04, coding, learning to learn, learning by doing, trouble shooting,

.

.

.

 

 

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