i have apm 2.6 with quadcopter configuration .. it flies perfectly. but i wanted to add sonar to it for better altitude hold capabilities.. i have made the connections all right and also enables the range finder parameters correctly .. but no luck.. still shows 4.8 v

i thought sensor is bad so i gave the separate 0 v and 5 v respectively to the A0 pin of apm and the range was shown correctly .. thus i checked the sensor with arduino uno and the sensor is also working fine ...

so now i dont know what is the problem please help me out guys

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

Join diydrones

Email me when people reply –

Replies

  • very cool and thanks for the update as it may well help the next person who runs into that issue.

  • Hi there ...  i figured it out .. the problem was with the A0 pin of apm.. i changed the settings to make use of A1pin and its working now.. 



  • Craig said:

    Make sure sonar is still supported on APM:Copter for APM boards. I seem to remember it is disabled by default in source code after 3.x. Also if you're using the horrible SR-04 then you're better off without it as they blow chunks.

    First of all thank you for your reply. I have been wandering from forum to forum posting this question, but no one replied. Thank you.

    I am using the "MB1040(LV-EZ4)" sonar from Maxbotics.

    3702276142?profile=original 

    I have done the following connections and parameters tuning for this specific sensor as said in guide by ardupilot.

    HERE

    3702276504?profile=original

    3702276483?profile=original

    After these connections and settings i got these readings

    3702276557?profile=original

    Here it is always showing 10 meters and 5 Volts, no matter how far i keep the sensor pointed. So i tried to debug it . I did following things.

    1.I gave 5v and 0V to A0 pin of apm respectively and i got the following readings

    3702276519?profile=original3702276496?profile=original

    And then i made a setup where i can give variable voltage to the pin through arduino and i got these readings.

    3702276570?profile=original

    3702276620?profile=original

    Therefore i thought that the sensor might be bad. So i checked the sensor using arduino , but it was working perfectly. 

    3702276543?profile=original3702276643?profile=original

    So now i am completely confused. The sensor is right , apm pins are also fine and all the setting in parameters are correct... Still it does not work for me... 

    As you said it might be disabled in Arducopter 3.x how do i check it??

    Please help me OUT!!! 

  • Make sure sonar is still supported on APM:Copter for APM boards. I seem to remember it is disabled by default in source code after 3.x. Also if you're using the horrible SR-04 then you're better off without it as they blow chunks.

This reply was deleted.

Activity