i have this 4 pin sensor ar home

, and i was wondering if it can be used in complement or instead the classic sensor.

Anybody succeed using these object avoidance?

anybody tried?

 thx for your time

Views: 18697

Reply to This

Replies to This Discussion

Thank You Richard,

Any updates on this?

hey i have two of these sensors is there ny way to integrate with the 2.5 yet?

did anyone ever get some resolution on implementing the HC-SR04 for altitude, landing, object avoidance.. any of the above?

any news about this ? 

any one had tried to implment the code ?

Hello. Did you solve it?

Hi i found a video in which an HC-SR04 is used with apm 2.6 and its working fine. https://www.youtube.com/watch?v=aNZLQPg6CEE

thank you!


Thanks for that, I will investigate this and hope to get these working on an apm 2.8.

Well, the APM doesn't have enough time waiting for feedback from the HC-SR04, yes it's the matter of timing and interupt. To make thing works as the video, it require another brain or controller to do the triggering and waiting for echo. The communication between the other controller with the APM could be done through I2C or more simple voltage level as shown on the video, so the APM simply read the voltage level plugged on it's analog input pin.

Hey did you get it working??

The one in the video seems to have a filter that the stock one doesn't have

found this.


don't know if it would work with APM 2.xx or PixHawk 2.4.6

çause I'm located in Germany, can't order one :/

Somebody advanced with this sonar HC-SR04 ??


DIY Drones Monthly


Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2016   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service