Тёмный

VL53L0X vs HC-SR04 experiment (Part 1) 

Robotics Weekends
Подписаться 6 тыс.
Просмотров 53 тыс.
50% 1

This is the first part of experiment with optical range sensor from STMicroelectronics VL53L0X. I used popular ultrasonic sensor HC-SR04 to compare basic properties.
Links:
Video transcript: / vl53l0x-vs-hc-sr04-ran...
Arduino sketch: gist.github.co...
VL53L0X library: github.com/ada...
HC-SR04 library: github.com/jaz...
VL53L0X datasheet: www.st.com/cont...
HC-SR04 datasheet: www.micropik.co...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@GRDwashere
@GRDwashere 5 лет назад
Very well presented methodology and data.
@erikas6874
@erikas6874 6 лет назад
That's cool. But it's very important to note that the light intensity from the laser is MUCH more than visualised in this video. The reason is very simple - the laser pulse is very very short, much faster than the optical sensor in the camera. I haven't found any documentation for the pulse power output. But the sensor is classified as a class 1 laser. So it is considered safe without any special precautions.
@firstdev1653
@firstdev1653 2 года назад
professional work
@williamhall5893
@williamhall5893 6 лет назад
Excellent as always! Great to see another Robotics Weekend video.
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
+William Hall Thank you! I'm very happy that you enjoyed my videos! Hope next video I will release soon. Stay tuned😉
@UReasonIt
@UReasonIt 5 лет назад
I think a lot of the "noise" from the laser module, is due to its sensitivity. Small changes in the target surface will have more effect on the light than on the sound. Movement of air molecules in this case. You could smooth it out a bit by doing a few reads per measure and average it. I find that settles it down a good bit doing four per measurement.
@UReasonIt
@UReasonIt 5 лет назад
A side note, transparent and opaque objects to cause a good deal of erroneous data with laser detectors.
@naveenchandra8324
@naveenchandra8324 3 года назад
this was really helpful, thanks for making this video.
@RoboticsWeekends
@RoboticsWeekends 3 года назад
Glad to hear it!
@maxwellhawk
@maxwellhawk 3 года назад
seems like VL53L0X is a total crap. HC-SR04 has twice longer range and it has to be calibrate properly. Since it use sound wave not light, it accuracy depends from speed of sound u use in formula. Even with cheapest sensor DHT11 u can calculate speed of sound in particular environment so accuracy of hc-sr04 will be up to few mm. Haven't tried it on maximum range though...
@dave-in-nj9393
@dave-in-nj9393 4 года назад
If you do another part, please use water and also oil like heating oil to show what it can do with different materials. I would also like to know if I could put the sensor on a piece of glass as a vapor barrier to see the oil level in a fuel tank.
@RoboticsWeekends
@RoboticsWeekends 4 года назад
Thank you for ideas. The second part will be mostly about how the sensors work with different types of material and in different conditions. Not sure that I will have a chance to experiment with oil, but I will make it with water
@dave-in-nj9393
@dave-in-nj9393 4 года назад
@@RoboticsWeekends : I see a lot of people what to see the level in their heating oil tank. my car backup sensor gives an a genera idea, but is not accurate near the top.
@robinbravenboer6243
@robinbravenboer6243 6 лет назад
Did you remove the protective layer from the vl53l0x? It's still on the chip in the beginning of your video and it influences accuracy greatly.
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Thanks for a comment, you are very observant😉 After installation I've removed protection. I'm pretty sure that after calibration sensor will be more precise. In the second part I plan to dive deeper into API to see what it really can. Stay tuned!
@AnonYmous-gu4nr
@AnonYmous-gu4nr 6 лет назад
I really enjoy your content, please keep making videos!
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Thank you! I'm glad that my videos are useful for people, and it really inspires me!
@refusneant
@refusneant 5 лет назад
Thanks ,this is a nice demonstration
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Thank you. I'm going to publish the next part soon
@davidbarradine7902
@davidbarradine7902 6 лет назад
Also need to test against different materials, ultrasonic is not very good off soft material and I/R is bad reflecting of dark matt surfaces.
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Thanks for a comment. I will try to cover this in the second part
@sramctc
@sramctc 6 лет назад
Good Job and thanks
@methaqali9147
@methaqali9147 5 лет назад
Thank you for sharing this excellent video
@Meneboyz
@Meneboyz 6 лет назад
One of the main difference between the two of them is that Sonar can measure through water while the ToF sensor can't :)
@seungyunsong2798
@seungyunsong2798 4 года назад
Really cool video! How were you able to view the IR spectrum @1:34? I'm trying to do something similar. What equipment did you use? Thanks!
@RoboticsWeekends
@RoboticsWeekends 4 года назад
Thank you. To see the IR spectrum I used a cheap web camera with removed IR filter and added visible light filter. The visible light filter is made of two pieces of polarised plastic, rotated by 90 degrees, from 3d movie glasses.
@kieranbaly2913
@kieranbaly2913 2 года назад
Great stuff there, can it detect things with a thickness less than 1mm, like a piece of paper (sideway)?
@Bonjour-World
@Bonjour-World 4 года назад
Is there a convenient way to narrow the laser bean to something useful ? Perhaps a small diameter tube in mounted in front of the laser ?
@RoboticsWeekends
@RoboticsWeekends 4 года назад
I'm afraid that you will get reflected Ray from tube
@pritesh725
@pritesh725 5 лет назад
Nice Video,what is power consumption comparison?
@saikrishnality
@saikrishnality 6 лет назад
Hi, wonderful video it is. Can you tell me how does the VL53L0X work with respect to glass?
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Hi, thank you! Seeing through glass is one of advantages of VL53L0X ;)
@cinibar
@cinibar 4 года назад
@@RoboticsWeekends How about 1/8" clear plexiglass? If it works through real glass, I would think plex would be okay also. Thanks!
@autocad5392
@autocad5392 4 года назад
how many angle detected. please reply and this sensor i am using for round bumper measuring.
@RoboticsWeekends
@RoboticsWeekends 4 года назад
Specs of both sensors are mentioned in the post I created for current video: link.medium.com/jJ0GLwQxI2
@pedrohmr22
@pedrohmr22 4 года назад
waiting for part 2
@itxach
@itxach 4 года назад
What software did you use to visualize the graph of the results? Its very interesting!!
@RoboticsWeekends
@RoboticsWeekends 4 года назад
I just printed to serial port distance values from both sensors, separated by comma and then copied the result to Google spreadsheet. Also there are free software that can convert comma separated values to graph in real-time. For example ArduinoPlot, arduino-plotter, etc. Check this link for more information: arduino.stackexchange.com/questions/1180/serial-data-plotting-programs
@gabrielmendez999
@gabrielmendez999 6 лет назад
Since beam profile.Seems that are a IR led instead a laser,
@emreyilmaz9384
@emreyilmaz9384 3 года назад
great tutorial, could you send me a link for a tutorial on how to send the data to excel?
@TomTom-rd3iy
@TomTom-rd3iy 6 лет назад
iam wondering about the highest (repeatable) accuracy and how you could rise the accuracy up to 0.1 mm ... i would have some applications for this range...
@noran4581
@noran4581 6 лет назад
Very helpful! When is the second part going to be up?
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Thanks! Unfortunately I have no time to prepare second part. One thing I can tell for sure it will not be this month 😞
@noran4581
@noran4581 6 лет назад
Too bad! Thank you anyway, it really helped me a lot with my project :)
@redreska6311
@redreska6311 4 года назад
Hello mate ! I need your help in this case ! I want to detect distance between 0 to 30 mm with variation of 1 mm. I tried Sharp GP2Y0A02YK0F and GP2Y0A41SK0F etc .. but they are even non linear as mentioned in datasheet ! or sensibility is low ( 1V / 30 mm ) ! I want to see these curve of this sensor ( Voltage / distance ) to know is there a linear part of the curve with good sensibility ( expl 2 V / 30 mm ) ? Please answer my question, thanks !
@KhusnulHidayat
@KhusnulHidayat 5 лет назад
Thanks
@landaravi
@landaravi 5 лет назад
where is part 2
@ProfessorMassola
@ProfessorMassola 6 лет назад
Congratulations on your video. very complete indeed. I'm starting my tests with this sensor and got good measurement results up to 1250mm, however, for distances above this value the result is always the same: 8190mm. I think I should tinker with the sensor.setTimeout (); and sensor.startContinuous (); would you have any suggestion of the values to be placed and if this would solve my problem? I'm using the library
@ikedaclaudio
@ikedaclaudio 6 лет назад
I have a question...is it possible to measure distance from a non-flat (rounded) object? Thank you!
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
As you can see from my experiment, obstacle angle does not affect measurements critically. So rounded obstacles should be detected fine as well
@LEDO1518
@LEDO1518 5 лет назад
I use the same library in my VL53L0X... Does anyone know why it prints "out of range" in distances up to 1.10 m?
@RoboticsWeekends
@RoboticsWeekends 4 года назад
It's almost sensor's measuring limit in normal mode (which is used in Adafruit library). Sensitivity can depend on color and texture type of the reflected surface.
@JoshFlorii
@JoshFlorii 5 лет назад
did you bend the pins on the HC-SR04 90 degrees?
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Sorry can't remember that:( But why are you asking?
@ibnunaufal7880
@ibnunaufal7880 4 года назад
Its good video and so informative, btw can u give me some solution. what is the best sensor for measuring with thinnest measuring angle? we know that hcsr04 have 30 degree and vl53l0x have 25 degree, any other sensor that have thinner angle? thanks before
@RoboticsWeekends
@RoboticsWeekends 4 года назад
In your case I'd recommend you something like TFMini LiDAR
@ibnunaufal7880
@ibnunaufal7880 4 года назад
@@RoboticsWeekends thanks for your advice, I'll try to use it 👍🏻
@Shimishix
@Shimishix 4 года назад
Will it work the same with VL53L1X? Is it possible to add few sensors?
@RoboticsWeekends
@RoboticsWeekends 4 года назад
Yes for vl53l1x works the same. For more than one sensor you have to set different i2c addresses for every sensor. It's a bit tricky as far as I know, because you have to set address at every device during boot. You can find the details in documentation. In few words, on boot you have to shut down all the vl53 sensors(there is a special pin), then enable one by one and set addresses for them.
@MrNikhilSmart
@MrNikhilSmart 6 лет назад
I want a human body detection sensor for the range of maximum 160 cm and viewing angle not more than 35 degree, which sensor would you recommend from infrared, pir, ultrasonic or any other?
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Hi. It depends on what kind of application are you planning. Do you need just to count people passing, or you need to measure distance, or calculate trajectory a person moves, etc? Sensors described in video are simple range sensors - they measure distance to obstacle. If you need to detect human bodies, it would be better to use IR sensors, because some clothes (fur or knitted wear) can absorb ultrasonic wave. PIR sensor do not measure distance, but can detect only moving bodies - if a person stands still sensor won't detect anything. Most of sensors can cover range 160 cm and have ~35 degree coverage
@bojanmilojkovic3770
@bojanmilojkovic3770 6 лет назад
I guess i'll use a combination of these two sensores for my robot then.
@kostasspectra4903
@kostasspectra4903 5 лет назад
is there any way to make the fov of the VL really narrow? I want to measure a telescopic tube, internal diameter 5-8mm
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Good question. Let me check tomorrow.
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
OK. I'm afraid that is is not possible to change fov easily:( With additional optics I had no any luck to get stable range data. I'd recommend you to check out TfMini Lidar for your purpose.
@eloymartin8970
@eloymartin8970 5 лет назад
Hi, is it possible to detect the distance of a 3mm thick string?
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Let me check it
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
I tried to measure a distance for ~3mm string. I wasn't be able to get stable information for distances greater than 25-30cm
@itsyigitersoy
@itsyigitersoy 6 лет назад
Hi, VL53L0X can work behind glass window?
@RoboticsWeekends
@RoboticsWeekends 6 лет назад
Yes, this is one of its advantages. Measuring beam is emitted in IR range
@TheCablebill
@TheCablebill 6 лет назад
You might want to experiment. My experience with IR illumination for cameras indicates that glass can reflect a significant amount of IR light, possibly confounding measurements. I'm also wondering if the beam can be focused with a lens for applications that require distance measurement to a more precise point. If we could have sub-mm measures, I might use it to detect stepper motor slippage in 3D printing applications to avoid wasted time and filament. Anyway, thanks for posting this. It's a great reference.
@soapkkk
@soapkkk 3 года назад
@@RoboticsWeekends I doubt IR can pass through glass. Glass are well-known for IR reflectance.
@awaisahmed7033
@awaisahmed7033 4 года назад
Bro where is part 2🙄
@RoboticsWeekends
@RoboticsWeekends 4 года назад
That's a good question indeed
@edism
@edism 5 лет назад
You mean "What the beam looks like" not "how the beam looks like".
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Yep, you're right. Thanks:)
@edism
@edism 5 лет назад
@@RoboticsWeekends you're welcome, thanks for uploading a useful comparison!
@igotsth
@igotsth 5 лет назад
part 2 takes really long...
@RoboticsWeekends
@RoboticsWeekends 5 лет назад
Yeah :(
@mamber1100
@mamber1100 5 лет назад
VCL is a shit. Precision of this toy is verry bad. On distance 30mm sensor red from 15 to 45mm and still changing (flowing). This is not good sensor to make a ruller.
Далее
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 428 тыс.
Much bigger simulation, AIs learn Phalanx
29:13
Просмотров 2,7 млн
Entfernungsmessung mit ToF-Sensor - HIZ373
11:21
Просмотров 3,7 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
How accurate are time of flight sensors?
6:55
Просмотров 20 тыс.
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 428 тыс.