Laser vs Ultrasonic - TOF10120 vs. HC-SR04

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ค. 2024
  • 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 dronebotworkshop.com/laser-vs...
    More projects and tutorials at dronebotworkshop.com
    Join us on the Forum at forum.dronebotworkshop.com
    Keep in touch with the newsletter, sign up at dronebotworkshop.com/subscribe/
    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:
    00:00 - Introduction
    01:40 - Sensor Comparisons
    08:43 - TOF10120 Hookup and Sketch
    14:17 - HC-SR04 Hookup and Sketch
    18:23 - Test Bed Setup
    21:08 - Testing the TOF10120
    24:12 - Testing the 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!
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 213

  • @davidgapp1457
    @davidgapp1457 3 ปีที่แล้ว +46

    I've spent time with the TOF10120. You can change several parameters inside the device by transmitting (on the serial interface) a message with the format 'sR-xxxx#' where R is the number of the register in the range 0 to 8 inclusive, and xxxx is a numeric, decimal value (which varies in size depending on the register to which you are writing). Conversely you can read any register by sending 'rR#' where R is the number of the register. So to read register 3 you send 'r3#' across the serial interface.
    Deviation (register 1) allows you to change a scaling value. Changing this value you can calibrate the device at a given range. So, for instance, I can set an object exactly 200mm from the sensor and modified the deviation until the reported distance is 200mm or thereabouts. As an example, I send the command 's1-02#' on the serial port which reduces the deviation by 2mm. Reading back the register (by sending 'r1#') you will notice the 's1-02#' command is a decrement of 2 - you are NOT setting an absolute value! So conversely, if you send the command 's1+02#' you will see the value of the register increments upwards by 2. The ONLY time this command sets an absolute value is when you send 's1-0#'. The maximum range for the register value appears to be -100 to 99. For my device I found the best value for register 1 was D=-17mm. I'm not sure why it's return in millimeters. I suspect this implies there is an ideal calibration distance. One thing for sure, you can massively improve the accuracy of your device by playing with this value!
    There are other useful things you can set including filtering, on or off (I suspect this is kalman filtering) which is register 3. You can also set the measurement periodicity over serial which is set, by default to 100ms. This is set via register 2. You can also tell the device to stop continuous transmission of readings (the passive mode) using register 5. This is set by sending 's5-1#' for passive or 's5-0' to return to continuous streaming. If you DO set for passive reads, you can either read across i2c or by reading register 6 ('r6#'). Note this will ONLY return the distance when the device is in passive mode.
    Finally there is another value, register 8, which is the calibration command. To be honest I haven't played with this register (yet) but I suspect that using a combination of register 1 and register 8 you can actually get decent accuracy out of this device.
    Next up we have the i2c interface (which I prefer to use as the serial connection is a 1 to 1 interface)
    If you read 2 bytes from device 82 (aka top seven bits of address 0xA4), register 0, you will always get the range (in mm). That applies to both active and passive modes on the serial interface. However you can also read and write the other registers! This is where things get strange. I've spent time mapping i2c byte addresses to their equivalent registers. Here's what I've come up with so far: i2c byte address 0 corresponds to distance (2 bytes). byte address 6 is the deviation (2 bytes) and corresponds to r1. The serial send interval (default 100ms) is found at byte address 10. The maximum distance measurement (max value 2000) is found at byte address 12. The active/passive flag for serial measurement transmission is found at byte address 9 (1 byte). The distance measurement is found at byte address 4 (2 bytes). The 8 bit device address is found at byte address 14 (2 bytes) or byte address 15 (1 byte). The filtering on/off flag is at byte address 8 (1 byte).
    I hope this helps. If you spot any errors or have additional information, please rely to this comment and I'll either make corrections or confirm your observations!

    • @lebronjames2864
      @lebronjames2864 ปีที่แล้ว

      so actually you can get good readings below 100mm? How low?

    • @davidgapp1457
      @davidgapp1457 ปีที่แล้ว +1

      @@lebronjames2864 I am out of country until July 7th. I will take a good look at readings below 100mm when I return to my lab and update here.

    • @AwestrikeFearofGods
      @AwestrikeFearofGods ปีที่แล้ว

      @@lebronjames2864 I haven’t used one yet, but it probably depends on your definition of accuracy. Assuming it functions by measuring round-trip delay of a brief laser pulse, I see no reason why it couldn’t measure distances as short as 1 mm. At these ranges, constant error would have more effect than proportional error, so I imagine it might read 3mm instead of 1mm. This would be “only off by 2mm”, while also being “200% off”.

    • @davidbernfeld2609
      @davidbernfeld2609 10 หลายเดือนก่อน

      Great info thanks!!! Is it possible to change the i2c address to use several of them?

    • @aboverobotics
      @aboverobotics 5 หลายเดือนก่อน

      Thank you. 2 years passed. Do you still continue to use this laser sensor? Any additional info on it? Going to use it in a small RC car.

  • @preetamsingh147
    @preetamsingh147 3 ปีที่แล้ว +17

    Thank you so much for the amount of hard work you did in this single video, just to make everybody understand things pretty easily. Hats off Man!

  • @scottwood1143
    @scottwood1143 4 ปีที่แล้ว +2

    Great presentation. I like the consistent camera angle/view and more meaningful transitions. Bravo!

  • @caiofreitas3750
    @caiofreitas3750 3 ปีที่แล้ว +1

    Recently started into the microcontrollers world and I learn a lot on your channel. Thanks for the uploads. Hugs from Brazil.

  • @Felipe-53
    @Felipe-53 4 ปีที่แล้ว +4

    Thank you so much for sharing! Helped me a lot decide wich would be appropriate for my project! Huge thanks!

  • @peterwooldridge7285
    @peterwooldridge7285 4 ปีที่แล้ว +1

    Thanks Bill, yet again another great presentation

  • @raedbishtawy1
    @raedbishtawy1 ปีที่แล้ว

    Thank you so much for the effort you put into this test, I'm very appreciative of the knowledge I gained from your work thank you again.

  • @d74g0n
    @d74g0n 4 ปีที่แล้ว

    I have been pondering which sensor to go with; but the i2c factor for this project of mine made the choice for me. Thank you universal coincidences.

  • @thehappycoder3760
    @thehappycoder3760 2 ปีที่แล้ว

    Brilliant as usual, I was also a little surprised by the result

  • @kapowbalw
    @kapowbalw 4 ปีที่แล้ว +1

    Thanks. Great as always!

  • @tinkmarshino
    @tinkmarshino 4 ปีที่แล้ว

    Very interesting find Bill.. thanks for sharing this.. carry on..

  • @aberateklehaimanot9804
    @aberateklehaimanot9804 4 ปีที่แล้ว

    Thanks mate,superb video.

  • @abuwaleed1191
    @abuwaleed1191 3 ปีที่แล้ว +1

    Sir Your way of teaching is very perfect with very good details. thanks you for sharing.

  • @JerryEricsson
    @JerryEricsson 4 ปีที่แล้ว +2

    Glad to see that, I have a half dozen of the old sound sensors that I got once when I thought about robots but never went forward. Now I don't have the funds to buy the laser anyhow. Thanks for the entertainment and knowledge!

  • @RobertoColi
    @RobertoColi 3 ปีที่แล้ว +3

    Very good and useful video. I am working with the HC-SR04 sensor and I realized that I should imagine A WIDE CONE exiting from it. In your case, to have a real idea of the cone, stating to your measures, you had to put a long ruler bar starting from the centre of the sensor and hit around the 50cm lower bar on the table (the max distance of meaningful detection) and see the real angle.
    Another thing that you could do, was to raise the sensor to increase the distance from the table and avoid the sound cone to hit the table and bounce back.

  • @matthewfelgate
    @matthewfelgate 3 ปีที่แล้ว

    Good job. Informative experiment.

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z 4 ปีที่แล้ว +7

    This will be useful for picking the appropriate sensor for projects. Thanks. 👍
    Maybe in a future video, you can compare PIR and microwave motion detectors. 🤔

  • @matiassoriamonge9911
    @matiassoriamonge9911 4 ปีที่แล้ว

    Thanks for the video. It was a very usefull information.

  • @happysprollie
    @happysprollie 4 ปีที่แล้ว +9

    Would be interesting to know how they cope with reflective surfaces (eg, gloss paint) and angled surfaces. In my experiences, few distance sensors cope well in either case, but I'm intrigued to know what the limits might be.

  • @ovidiurosu6632
    @ovidiurosu6632 4 ปีที่แล้ว

    great job, thank you

  • @EsotericArctos
    @EsotericArctos 4 ปีที่แล้ว +10

    This was an interesting comparison.
    I am wondering if the sensors may have been picking up your supporting timbers that you used at each set point. Are they even needed with the way this is designed? Might be better to replace the timber supports with just lines to align each measurement point and see how it goes with that.
    It was an interesting comparison. I had high hopes for the TOF laser sensor. Apart from the speed of the readings, the two sensors were quite similar in accuracy, given you couldn't go further than 50cm with the ultrasonic one.

  • @serdardemirbas3371
    @serdardemirbas3371 2 ปีที่แล้ว

    Thank you so much

  • @charlesaol
    @charlesaol 3 ปีที่แล้ว +3

    Thanks for this. Confirms the problem I've been having with my TOF sensor. This, unfortunately, makes it much less practical for my project. I'll have to do what I can with the HC-SR04

  • @saptoarin6630
    @saptoarin6630 ปีที่แล้ว

    great test

  • @AhmadAsmndr
    @AhmadAsmndr 4 ปีที่แล้ว

    thank you very much very helpful.

  • @phrankus2009
    @phrankus2009 3 ปีที่แล้ว +3

    The accuracy of the sonic receptor might benefit from a shroud, such as a short toilet tissue tube or other exclusion/rejection barrier, which would limit the angle of echo-return waves.

  • @aminnima6145
    @aminnima6145 4 ปีที่แล้ว

    you are amazing teacher

  • @gunterpietzsch3995
    @gunterpietzsch3995 4 ปีที่แล้ว +1

    Great stuff. I'm more than impressed of the quality of your videos. Have you ever thought about using the LIDAR stuff together with the jetson nano?
    Which tool are you using to create your beautiful animations? This might be something useful for my class room presentations.

    • @randallblake1213
      @randallblake1213 4 ปีที่แล้ว

      I don't know if he is using it, but Fritzing is somewhat similar for the circuit presentation.

  • @cdfairchild
    @cdfairchild 4 ปีที่แล้ว +2

    Great video DroneBot! Can either of these be used behind a sheet of protective glass/plastic? Or will the sound/light reflect off a see-through surface? I'm trying to find devices that can be placed at multiple levels inside a canister of dry goods (e.g., dog food), and am thinking I'll need to separate the sensor from the stored material by a sheet of glass or plexiglass.

  • @argcargv
    @argcargv 4 ปีที่แล้ว +5

    It would be useful to test measuring distance to an angled surface. I have found that the ultrasonic sensors don't sense objects when at an oblique angle, but in robot applications you may need to sense a wall that you are not pointing at right angles. It seems like optical sensors are better in this regard.

  • @electronic7979
    @electronic7979 4 ปีที่แล้ว +1

    Helpful video 👍

  • @climbeverest
    @climbeverest 6 หลายเดือนก่อน

    Incredible

  • @ndgoh67
    @ndgoh67 4 ปีที่แล้ว +1

    It would be perfect if an infrared sensor can be added to the test... thanks for the incredible effort to make these videos. Thank you. Btw, I have doubts the ultrasonic sonic spec max distance sensing is 400cm...

  • @bugradegirmenci1259
    @bugradegirmenci1259 3 ปีที่แล้ว

    very usefully video, thanks

  • @ser7ser7i
    @ser7ser7i 4 ปีที่แล้ว

    Thank you.

  • @sawyer303
    @sawyer303 ปีที่แล้ว

    Thanks, I learned a lot. I would like if in tests you could do speed as well, to see how fast they react. Thank you again

  • @emadabuhagag222
    @emadabuhagag222 3 ปีที่แล้ว

    thank you

  • @farshadbagheri
    @farshadbagheri 4 ปีที่แล้ว

    Hello. Thank you very much for another great video. Could you please let me know what application you use for the wiring schematic, where you show connections between the board and sensors?

  • @mandog2142
    @mandog2142 4 ปีที่แล้ว

    Hey there Dronebot,
    Would the orientation of the sensor change the results, for instance orientating the device 90 degrees from tested pin placement? Or tilting the sensors slightly off the perpendicular axis (up, down)? Also I'm curious if you covered the rungs on your test bed from sensor to target might improve the results. I've played around with the HC-SR04 and looking to use it in a home application. Thanks for producing these informative videos!

  • @rbrtck
    @rbrtck 4 ปีที่แล้ว +2

    Have you tried the US-100 ultrasonic distance sensor? In my limited experience, it seems to be both faster and more accurate than the HC-SR04, and compensates for temperature on its own in serial UART mode.

  • @CXensation
    @CXensation 4 ปีที่แล้ว

    For optimum accuracy you must know the angle of transmission cone pattern on the sensors
    Often you will pick up the ground suface too early in most applications with low mounted sensors, which gives false readings.
    The sensors TX pattern is not that narrow as you may think.

  • @NewAgeDIY
    @NewAgeDIY 4 ปีที่แล้ว

    Great demonstration. I wonder if the LASER was designed for close range work?
    Due to the fact that it's very small it could be mounted inside a device and the LASER could be used to adjust a electrical / mechanical component.
    For example elevator door. Measuring the distance to close the door, slowing it down or speeding it up.

  • @tonyfremont
    @tonyfremont 3 ปีที่แล้ว +1

    I suspect the ultrasonic sensor was responding to the reflection received from the sticks on the board. That ultrasonic sensor has a small pic on it and you're at the mercy of the embedded firmware. I can assure you that it received the reflection from the further distance, it just ignored it. I did a pic project in the early 2000s using some transducers obtained from a surplus electronics store. I was able to receive reflections from over 8' away reliably. It does have a broad cone of sensitivity, but that can be handled with a literal waveguide to narrow it considerably. I was driving the sending transducer solely by connecting it to two output pins and toggling one low and the other high simultaneously, with a slight delay then reversing the drive, effectively putting 10v peak to peak on the sender, for 6 cycles spaced to generate a 40kHz signal. Using a single opamp on the receiving transducer, it could easily measure to the far wall in the room I was using. Using an oscilloscope I could see other reflections arriving early. I suspect the sensor you are using is picking the first one above a hard set threshold, without regard to any stronger ones received later. Outside of convenience and cost, these mass produced sensor modules are just not that good. I don't believe they have any ability to measure relative strength of the reflections, just a simple comparator aided by a gradual increase in sensitivity (by lowering the threshold) as time elapsed after there transmission, eventually giving up after a preset limit. They're fine for what people use them for, simple to use, but fairly crude technology wise. They're built to a price point, and it shows.I haven't dug through the Arduino library code, but I'm confident that the pulse widths measurements are equally as crude, influenced by random inaccuracies caused by interrupt handling routines. I would think that by using the capture feature of the atmega chip, consistency would greatly improve.
    I have no experience with the TOF module.

  • @EcoHamletsUK
    @EcoHamletsUK 4 ปีที่แล้ว +3

    I thought I might be able to use the TOF10120 for an application where I'd previously tried an HC-SR04, but was disappointed its apparent lack of accuracy. Then I found the VL53L0X laser board, and wondered if you'd tried that. It's supposed to work up to 2m, so seems to serve a similar function to both these devices, and it's cheaper than the TOF10120. Has anyone tried comparing them?

  • @wishicouldarduino8880
    @wishicouldarduino8880 4 ปีที่แล้ว

    Awesome ! I've been waiting on this I need to hook up dht 22 into the distance sensors on the duce robot .......in about a week when the 3d printer is refined....... I'll have to back up to these videos when I can get a chance .👍 PS this might be a bit much but is there a way to hook this to LCD to display data ?😁

  • @AmbachtAle
    @AmbachtAle 4 ปีที่แล้ว +8

    Could the distance be off for the long because of your mounting brackets, the right angle at the leading edge might be the problem. Put in a triangular leading edge taller than the square rear spacer or remove the rear entirely.

    • @DerrickBommarito
      @DerrickBommarito 4 ปีที่แล้ว

      This is likely it. It's sound. It's not super directional and it will read any echo that comes back.

  • @qozia1370
    @qozia1370 6 หลายเดือนก่อน +2

    I 3d printed some shades and managed to reduce the detection angle of hcsr04!

  • @ottisseaborn
    @ottisseaborn 3 ปีที่แล้ว

    Thanks for the video... do you think a motion sensor or break beam could be made by using one these? Im looking for a simple result as either an open circuit or closed circuit.

  • @to1704
    @to1704 ปีที่แล้ว

    SUPER!

  • @Hephaistos51413
    @Hephaistos51413 3 ปีที่แล้ว

    It is possible to improve the HC-SR04 by decreasing it's measuring angle. To do this one can simply roll up some card stock into a tube and slip it over the transceiver/receiver cylinders. Longer card stock tubes result in a higher directionality of the measurement.

  • @richierich3135
    @richierich3135 3 ปีที่แล้ว

    fantastic explaination sir, i leaned so much new things from your vidios......i would like to tell you to please tell us how do u refer datasheets from your veiw , so could learn from your experience.... thank you so much

  • @venkatyalamati3285
    @venkatyalamati3285 2 ปีที่แล้ว

    Thank you so much for the video sir.. plz make a video on HC-12 433 SI4463 Wireless Serial Module

  • @johnhaythorpe206
    @johnhaythorpe206 4 ปีที่แล้ว +27

    Could the failure of the HC-SR04, have anything to do with the fact that it looks to be mounted pointing upwards and that the reflected waves are missing the receiver. I note the TOF10120 line of sight was parallel to the test platform, but it appears as though the HC-SR04 is inclined upwards by 10 to 15 degrees.

    • @MathiasBacher
      @MathiasBacher 3 ปีที่แล้ว +1

      I agree, I think that's the reason

    • @lloydrmc
      @lloydrmc 3 ปีที่แล้ว

      Disagree. I don't think the Time of Flight sensor "failed"

  • @zainalhas7416
    @zainalhas7416 4 ปีที่แล้ว

    Thanks.

  • @gerardvirgona5541
    @gerardvirgona5541 4 ปีที่แล้ว +3

    I've tested a M5stack tof vl53lox it's accurate to about 150cm after that it's readings start getting erratic.

  • @bulldogc8710
    @bulldogc8710 3 ปีที่แล้ว +2

    According to the article you are using "331.4 + (0.606 * temp) + (0.0124 * hum)" to calculate the speed of sound. Could you give a quick explanation where you found these numbers? I did find the .6*temp+331 in some other reference but have been unable to track down the humidity calculation.

  • @Magicman8508
    @Magicman8508 3 ปีที่แล้ว

    I own a HC-SR04 too and as far as i know those devices are rated up to 7 meters. At 26:13 the reading didn't even change if you go to 100mm. I would suggest trying another lib and check the calculations that are done with the temperature and humitiy sensor. Maybe there is some sort of mathematical maximum hidden in it. Another possibility could be that it catches the white place holder.

  • @albertsjoberg1200
    @albertsjoberg1200 4 ปีที่แล้ว

    You need to lift the sensor higher off the surface. The error appears to be exactly the distance to the quarter round behind the 500 mm Mark.
    Alternatively, put down a black or charcoal felt as acoustic damper. The Ultra-sonics are easily good to 200 cm

  • @nameerlatef2079
    @nameerlatef2079 2 หลายเดือนก่อน

    I like all of your videos. I just have one question. Why do all the videos measure distance for you or for others? They do not approach small or precise distances, i.e. from zero to five centimetres. Are there such sensors? Please explain. Thank you.

  • @yassineinsta7731
    @yassineinsta7731 ปีที่แล้ว

    thanks for share & full help
    Note: problem in the voltage/ current

  • @kionmahuermicio9860
    @kionmahuermicio9860 2 ปีที่แล้ว

    I love how you don't use any library, help a lot to work on serious devices instead of only Arduinos.

  • @frenchcreekvalley
    @frenchcreekvalley 4 ปีที่แล้ว

    A small point, but the HC SRo4 seemed to be pointing upward a bit on the test rig. Could be that it is shooting over the top of the board at the longer distance?

  • @McReaL87
    @McReaL87 3 ปีที่แล้ว

    Hey, nice video. I missing something about reflection details. Like u said, everyone is very familiar with these ultrasonic sensors but they bring some problems like reflection in specific angles with them. I try to make a rc car to drive autonomic and this issue brings me to gather new informations about other types of meassure tools like lidars or laser.

  • @qzorn4440
    @qzorn4440 2 ปีที่แล้ว

    very nice dimension sensor video...👍 do you have a video on line-scan cameras or document line-scan 8.5" wide sensors? would opencv work with these sensors? thanks...:)

  • @1boobtube
    @1boobtube 4 ปีที่แล้ว

    Would be interesting to use another. movable transducer and see if you can measure the beam pattern maybe sidelobes picking something off the bench that's bigger than the main return ?

  • @jorgeferreira6727
    @jorgeferreira6727 3 ปีที่แล้ว

    One thing we must take into account is that no sensor has a real linear response. Usually the manufacturer datasheet has a table or graphical representation of the readings versus the real values. That info should be included in the software, usually in the form of a lookup table, to compensate for the natural non linearity of the sensor.
    And, yes, a LASER based sensor will always out perform a ultra sound one, but not by $10.

  • @newburypi
    @newburypi 4 ปีที่แล้ว +5

    I haven't verified this, but it seems that many sensors will find "edges" and report their distance. The white pieces, you used to hold the target, could be causing that effect.

    • @rholt2
      @rholt2 4 ปีที่แล้ว +1

      I concur with this. basically, it's what you were saying about the field widening. i'm surprised you didn't try placing a piece of board or paper to cover the unused brackets between the sensor and the target.

  • @newburypi
    @newburypi 4 ปีที่แล้ว +4

    Just had another thought. I wonder if those edges were the cause of error of the TOF sensor. Might want to rerun the tests with the white guides removed.

    • @AwestrikeFearofGods
      @AwestrikeFearofGods ปีที่แล้ว +1

      I knew I'd find this comment. The readings were suspiciously close to 50 cm.

  • @thewuff66
    @thewuff66 5 หลายเดือนก่อน

    I would assume that the different reflectivity between foam and wood wall causes the different reading as it would change the amplitude of the reverse signal. Nice measurement though!

  • @padmalayarawal3091
    @padmalayarawal3091 4 ปีที่แล้ว +2

    Also please compare it with VL53L0X sensor too.😊

  • @queenidog1
    @queenidog1 4 ปีที่แล้ว

    What happens at the extreme, ie the 400 cm distance quoted for the SR04? I have the SR04 and an SR08 with supposedly double the distance, but can't get more than 6 feet in my shop. According to tech support it's because the sensor is seeing the floor or the ceiling, something I dispute because I have an 8 foot ceiling and my sensor is right on the edge of my desk, 32" off the floor. They work great at short distances but the divergence could be an issue. I'd like to see some experiments with cone reflectors and push the limits to the extreme. As a result of my own tests and these issues I decided to go with microwave (radar) and also laser (bouncing off a mirror and back) for vehicle detection on a busy highway.

  • @rizalardiansyah4486
    @rizalardiansyah4486 4 ปีที่แล้ว

    Now there's an infrared proximity sensor that is very similiar to the hc-sr04 in price (i don't know what's it's official name is) and seems quite easy to use (according to my little experience at least...). I wonder if you could review that sensor as it is quite responsive hence could be used for high speed sensing.

  • @colepdx187
    @colepdx187 4 ปีที่แล้ว +3

    Very interesting workshop today. Thanks Bill. It seems like these sensors are barely useful for anything more than proximity sensing. The laser module looks pretty much like what you see on automatic plumbing fixtures in public restrooms.

    • @banban8481
      @banban8481 3 ปีที่แล้ว +2

      In my University we create many robots using these sensors. From automatic book transporter to a self driving car.

  • @fransmulder9326
    @fransmulder9326 4 ปีที่แล้ว

    One of the disadvantages of the US sensor in practical use in robotics is that hard surfaces work as a mirror. If these are under an angle it measures the reflection rather than f.i. the wall itself.

  • @craigkirby9202
    @craigkirby9202 4 ปีที่แล้ว

    Nice to see you accurately reporting your preconceived bias. ie "I assumed the laser sensor would run circles around the ultrasonic sensor". I thought everything was just opinions these days, and reality or facts were a thing of the past :)

  • @jajwarehouse1
    @jajwarehouse1 4 ปีที่แล้ว

    It would be interesting to see how the sensors compare to measuring objects that are not directly facing the sensor. Say if the plywood is place 25 cm away and then slowly turned on the Y axis, how many degrees off could it reach before the sensor in not able to read it. Similarly, how well do the sensors detect rounded objects, like a garbage bin?

  • @drmosfet
    @drmosfet 4 ปีที่แล้ว

    Would it be possible to check the laser distances device light pattern that it emits with a solid state camera? Much like you would check to see if you're TV remote control is working, just incase something odd is happening.

  • @OsoPolarClone
    @OsoPolarClone 4 ปีที่แล้ว +2

    Can a tube be added to the transmitting ultrasonic transmitter in order to restrict the wide spread of the sound transmission and thus improve accuracy?

    • @rholt2
      @rholt2 4 ปีที่แล้ว

      This would be a worthy test!

    • @MrRfaass
      @MrRfaass 4 ปีที่แล้ว

      No, but if can tune it to the frequency, think cantenna

  • @SavageGoodsT
    @SavageGoodsT 4 ปีที่แล้ว

    Would not be a fair comparison but ive found the vl53l1x sensors to be accurate past 2 meters no matter the surface reflectivity

  • @donaldtodd2352
    @donaldtodd2352 2 ปีที่แล้ว

    A possible very useful application for the TOF10120 is in pressure tanks tipple used for spray painting. It is difficult to tell how close to empty the tank is. This sensor would seem ideal if it can tolerate air pressures around 100 PSI. Is there any information about pressure or can someone reasonable guess what might happen?

  • @alibugracetin9912
    @alibugracetin9912 3 ปีที่แล้ว

    Is important to placement of ToF sensor (Vertical or horizontal) to measure distance?

  • @michaelksiezopolski
    @michaelksiezopolski 4 ปีที่แล้ว

    Can any of these sensors detect a level of fluids in the tank? Let say I need to know how much fluid is in the tank and have an alarm if certain level is reached. Which of these two sensors will be better?

  • @thstring
    @thstring 4 ปีที่แล้ว

    More a question than comment, does the laser sensor work through glass, ie car windscreen?

  • @demiurgiac
    @demiurgiac 3 ปีที่แล้ว +1

    Consider this a 'heads up' to anyone getting their TOF10120 working for the first me. I found that the compile fails because of a reference to "fdevopen". ('fdefopen not declared in this scope'). I am not a seasoned Arduino coder and I really didn't know what to do to fix it. In researching it I couldn't 't even figure out just what it was supposed to do. Anyway, just for grins, I just deleted it and any references to it and what-a-ya-know... the sketch works just fine without it.

  • @Andreas-gh6is
    @Andreas-gh6is 4 ปีที่แล้ว

    Have you tried to figure out what the maximum read frequency is? And the actual angle of view?

  • @kristerripstrand2407
    @kristerripstrand2407 3 ปีที่แล้ว

    Would have been interesting to know how they behave with thinner objects, thinner or smaller in both vertical and horizontal direction

  • @DualDesertEagle
    @DualDesertEagle 3 ปีที่แล้ว

    *EDIT:* Nvm, I got the stuff mixed up somehow.

  • @jeremiahayres103
    @jeremiahayres103 2 ปีที่แล้ว

    Do you have a recommendation for a sensor that can be used to scan a 3d object. I need to be able to have accurate measurements to 0.1mm preverbally 0.05mm.

  • @youssefahourri3245
    @youssefahourri3245 4 ปีที่แล้ว

    Hey, I got DHT11 sensor should I just define DHTType to 11 instead of 22 or I have to use another adequate library??

  • @soldierp1101
    @soldierp1101 3 ปีที่แล้ว

    Nice great chanel and video ,helpful. what do you think which sensor is better for drones with flight controller pixhawk 4 than (anti collision)? tof10120 or sr04? and I want to use 4 times for all sides (Back ،front ،left right) is that? if so can you send me a link or any info pdf or so? I would also pay for it it is important to me! Plz answer my question! Danke schön 👍🏽

  • @prasannashevare2073
    @prasannashevare2073 3 ปีที่แล้ว

    Hi,
    I was wondering how does this sensor compare to VL53L0x? Does it work in sunlight unlike ST's VL53L0x?

  • @spassantechnik
    @spassantechnik ปีที่แล้ว

    The problem with the HC-SR04 is that you often have "outliers" in the measurements and have to recognise and filter them out yourself. There are also big problems when the measurement falls on a surface that is positioned at an oblique angle to the sensor. I had hoped to find out in this video whether the laser sensor performs better. But unfortunately not.

  • @christophemalvasio5569
    @christophemalvasio5569 4 ปีที่แล้ว +4

    next calculate distance with images of 2 cameras ;)

  • @BigTimeCharley1956
    @BigTimeCharley1956 ปีที่แล้ว

    I wonder if the stray hc-sr04 reflection at 50+cm is the vertical face of the quarter round making the slot at 50cm (I have not read the comments yet; maybe someone else already suggested this)?

  • @jozeflodeweyckx4009
    @jozeflodeweyckx4009 3 ปีที่แล้ว

    Moving the HC-SR04 upwards will show targets at 75cm and 100cm.Now false reflection on wood plank are the cause.

  • @hanspijpers2100
    @hanspijpers2100 3 ปีที่แล้ว

    I suspect the ultrasound sensor is picking up the white colored holders on the base board, if you had the sensor twice as high from the base, the sensor would miss the obstacles on the base board. it is a quit narrow vertical angle from the transducers.
    To me that is the most likely cause of the max measurement
    Kind regards Hans

  • @elvirredzepovic6898
    @elvirredzepovic6898 4 ปีที่แล้ว +2

    The test starts at 21.18, up to then this guy is TAAAAAAAALLLLLLLLKKKKKKIIIIIIIIIG. A lot !

  • @sargetester99
    @sargetester99 4 ปีที่แล้ว +4

    Can it see through glass?

  • @conget
    @conget 2 ปีที่แล้ว

    Could it be the power socket in front of the table? It is about at 52 cm mark if you can see

  • @dipakkhatawkar4230
    @dipakkhatawkar4230 4 ปีที่แล้ว +1

    Sir can you please make a tutorial on control of continuous servo motor clockwise-stop-countercw control with joystick on Arduino mega board. It will be really helpful for the learners. Im trying but not getting done. Kindly help sir. 🙏🙏🙏🙏🙏