
.
.
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:
.
.
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).
.
.
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:
.
.
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:
.
.
Once change that code line upload it to the Arduino IDE and see WHAT happens on the LCD-Screen. See PIC below please.
.
.
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.
.
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!
.
.
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!
.
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,
.
.
.