Testing a SRF02 Sonar - partial FAIL

Hello All,

After plenty of testing I have concluded that the SRF02 sonar is NOT A VIABLE REPLACEMENT for the Maxbotics MB1200 series of sonars for the downward looking (alt hold) sonar on Arducopters.

R287-SRF02.jpgIt may however be OK as candidate for any future obstacle avoidance developments

The SRF02 was attractive to me for three reasons:

1) it is an i2c device (ie it sends its range signal back to the arducopter as a digital signal) and,

2) you can command a reading from it (ie it is not ranging all the time)

3) it is relatively low cost (less than £10 or approx $20)

One of the likely sources of sonar noise that a lot of people see in their arducopters is the analog signal, many people have lessened their noise problems by shielding the signal cable and moving the sonar and cables away from their ESCs - hence the digital (i2c) sonar was worth a look.

In the future I'd like to test some obstacle avoidance - to do this you need approximately five sonars operating (front , back, left, right + down). The sonar modules we use will interfere with each other if two are ranging at roughly the same time. Having a sonar module you could command to range was therefore worth a look.

So why is not a viable replacement?

Well  - It does work OK its just that the Maxbotics modules are better in a few important ways.

1) range the SRF02 is quoted at 6 meters in reality it is only able to do that over a hard surface. Over grass it is less than half that range reliably

2) it seems to be more sensitive to noise (or less sensitive to signal - hard to know which)  than the MB1200 series of modules. See the attached graph - The red line is the SRF02 sonar data , green is barometer and blue the commanded altitude. With a bit more filtering the noise could be reduced but this is not seen in an unshielded Maxbotics sonar mounted in the same location. This test included flying the copter in Alt Hold mode up and down over a mound about 2 meters high - this is why the Barometer graph does not follow the sonar. It also means the ground below the sonar was angled at up to 20 degrees. My interpretation of this is that the sensor is just not picking up some of the ultrasonic returns and giving bad range data for this reason.

3690898448?profile=originalI have written a SRF02 Library reasonably compatible with the Arducopter code if anyone is interested. When I get the time I will investigate using the SRF02 sonars and this library for obstacle avoidance.

Here is the Library: SRF02.zip

 Back to my I2C version of the Maxbotics sonar for now for me

-Andrew

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Admin

    agmatthews,

    Nice experiment and good analysis of the results. I have both of the sensors, but use them in a rover for obstacle avoidance.

    Regards,

    TCIII

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: To get ground truth I measured the rug, found the pixel coordinates of its corners, calibrated my phone camera with my standard…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: @DIYRobocars is back in December, but outside. Time to reinvestigate ConeSLAM! I rigged up a quick and dirty ground-truth captur…
Nov 5
More…