RSS

Tag Archives: Ultrasonic Sensor HC-SR04

First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Ultrasonic Radar

First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Ultrasonic Radar

.

RADAR-TEST-04-04-2018

.


Maker, MakerED, Coding | Ultrasonic Radar

On previous blog post I discovered “Processing Software” and I was such impressed about hat I was looking to find some other Coding tutorials with Arduino which use it; so I discovered this one using an Ultrasonic Sensor (HC-SR04) and a servo motor. As I had bought already a “Sensor-Kit“, please check my blog post,  First Steps with the Arduino-UNO | Maker, MakerED, Coding | Sensor-Kit SKA-36 so I have the necessary parts…

Please check the video tutorial below, to find out about yourselves about what incredible is possible.

.

.

.

You will remark that there is only a provisionally fixing of the “Ultrasonic Sensor” (HC-SR04); there one can do better! So, I had a look on Amazon to find a “Pan & Tilt Kit“, here it is:

As I didn’t know how to make the assembling, I was looking on YouTube and I found this video tutorial which helped me a lot, please check below.

.

.

The assembling wasn’t that difficult actually, a bit puzzle around with tiny screws and juggling… The “Pan & Tilt Kit” is delivered with two (2) servo motors which will get fixed, but we need only one of them for our project. Once everything assembled we fix the “Ultrasonic Sensor” with hot-glue on the top of the “Pan & Tilt” socket like shown on the images below.

.

Ultrasonic Sensor on Pan & Tilt Kit

.

Ultrasonic Sensor on Pan & Tilt Kit

.

SO, we have made the mechanical part, the most difficult in this project… Let us go now for the wiring, check the wiring schema below, please.

.

Wiring

Click image, please, to enlarge.

.

It doesn’t look that difficult, isn’t it 😉 SO, once finished we will have a look on the code, “Copy & Paste” it and upload it into the Arduino IDE. Please check the tutorial here step by step for the how to ===> https://howtomechatronics.com/projects/arduino-radar-project/

In the above mentioned tutorial we have the codes for the Arduino, as well as for the Processing software. For those who haven’t yet installed the software, here a reminder for download:

Once uploaded both codes you will be astonished about what is possible with coding and maker 😉 Have fun and stay tuned for next projects…

.

RADAR-TEST-04-04-2018

Click image, please, to enlarge

.


Advice for EDUcators, Teachers:

Using Coding, MakerED is THE perfect way to GET Students, LEARNers interested for Maths, Physics (e.g.) by using THEIR hands in Practice for understanding while guided by a (two, three…) Coach(es) ===> LEARNing-By-Doing and Team-TEACHing with FUN.

.

Synthesizing Mind-5 Minds for the future

.


.

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: Radar, Ultrasonic Sensor, HC-SR04, Arduino UNO R3, Processing Sowtware, Pan & Tilt Kit, Video Tutorials, Coding, Maker, MakerED, MakerSpaces…

.

.

.

 

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