Laser vs Ultrasonic – TOF10120 vs. HC-SR04
It’s the Battle of the Distance Sensors with the tiny TOF10120 Laser versus everyone’s favorite HC-SR04 Ultrasonic. I’ll compare the two sensors and test their accuracy on the DroneBot Workshop Distance Sensor Testbed!
Accompanying article at https://dbot.ws/disttest
More projects and tutorials at https://dronebotworkshop.com
Join us on the Forum at https://forum.dronebotworkshop.com
Keep in touch with the newsletter, sign up at https://dbot.ws/dbnews
I recently obtained a few TOF10120 Laser time-of-flight sensors and I wanted to see how they stacked up against the old faithful HC-SR04 ultrasonic range sensor. So I decided to put them both to the test. In fact, I even built a custom testbed to do the job!
The TOF10120 is a very tiny sensor that uses VCSEL (Vertical-Cavity Surface-Emitting Laser) technology to measure distance. It communicates using I2C and also has a serial connection. It is available from many vendors, including Amazon and eBay.
The HC-SR04 is an ultrasonic sensor that I’ve used many times before, I even did a video and article about it a couple of years ago. It uses pulses of ultrasonic sound and measures the time it takes for them to be reflected back from a target. You then use the speed of sound to determine the distance to the target.
I helped out my HC-SR04 by adding a DHT-22 temperature and humidity sensor, as the speed of sound is affected by both variables.
After testing out both sensors I put them on my testbed, constructed from the finest quality scrap wood. Nothing is too good for you folks!
The results were a bit surprising in some senses, although I was limited by the confines of my workshop and that proved to be a problem with the ultrasonic sensor.
Here is a breakdown of today’s exciting competition:
Sensor Comparisons –
TOF10120 Hookup and Sketch –
HC-SR04 Hookup and Sketch –
Testing the TOF 10120 –
Testing the TOF HC-SR04 –
I’ll be testing a few other laser-based distance sensors in the future, so be sure to subscribe if you haven’t already. That way you won’t miss out.
I hope you enjoy the video!
source