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

Authors

.

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,

.

.

.

 

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s