In this video we give you an assignment to develop a portable distance sensor. This builds on the work done in Lesson 55, where you got the Ultrasonic Sensor connected and programmed. Now is the time for you to make your system portable. We will cover the homework solution in Lesson 59.
In this lesson we show you how to quickly and easily plot live data from the arduino using the Serial Plotter in the Arduino IDE. The nice thing about this feature is that it is very easy to use. The downside is you have absolutely no formatting options. I hope they will improve this feature in the future, but it is very useful, even with its limitations.
This lesson builds on the work done in Lessons 53 and 55. In this lesson we use the Ultrasonic Sensor to build a distance sensor. The HC-SR04 ultrasonic sensor can be programmed to send out a ping, and then measure the time it takes to hear the echo of the ping come back, after bouncing off a target. Knowing the speed of sound allows us to calculate distance to the sensor.
The sensor is part of our Elegoo Kit , so if you get this kit, you will be using the same hardware we are using. This project builds on the work we did in Lesson 53.
For this build we will be using an Arduino Nano, which allows the project to be built on a single breadboard. You can use the Arduino Uno if you do not have a Nano, and things will work out the same. The build neatness is also facilitated by using small straight jumper wires, which you can get HERE.
In this lesson we explore use of the HC-SR04 sensor to measure the speed of sound. The hookup and programming are pretty simple. The Elegoo Kit includes this sensor, so if you have the kit, you will be using the same hardware we are using. This project builds on the work we did in Lesson 53.
For this build we will be using an Arduino Nano, which allows the project to be built on a single breadboard. This allows cleaner build, and one less likely to have problems from intermittent connections. The build neatness is also facilitated by using small straight jumper wires, which you can get HERE.
You can connect the sensor up according to this schematic:
The connection pins are the same when connecting to a Nano.
The video below explains how to measure speed of sound from data coming from this sensor.
Code used in Today’s Lesson:
// put your setup code here, to run once:
// put your main code here, to run repeatedly:
Making The World a Better Place One High Tech Project at a Time. Enjoy!