Sonar ALT_Hold Issue

3689478046?profile=original

Hello there,

Yesterday, i added a new senor onto my quad, MaxSonar MB1260 XL for better altitude hold. Before attaching and re-uploading the ArduCopter 2.7.3 onto the APM 2. I erased and reset the board. And then attached sonar as described in the wiki manual. And uploaded the code and followed all initial steps (Of course i enabled the sonar). Everything went smooth. 

Next step, time for test fly. It flew great in Stable mode. However, as soon as i toggled the ALT_Hold switch ON. Quad started acting strange. It kept climbing higher n higher and suddenly dropped out of nowhere. Luckily i managed to control by toggling the switch back to stable mode.

I have checked everything couple of times now. All connection looks good. Mission Planner looks ok. I don't know what the problem. Your help would be so much helpful. I have attached couple of videos below. Please take a look at them. If you need any other information let me know. Thank you.

Quad Setup:

  • DJI F450 Frame
  • HackerStyle 20-22L Motors
  • Turnigy TY-P1 25Amps ESC (Flashed with SimonK firmware)
  • ArduCopter 2.7.3
  • MB1260 XL - Sonar 
  • 4000mah 20C 3Cell Battery
  • DX7 with AR7000 
  • Using one of four ESCs to provide power to the APM 2. 

3689478046?profile=original

3689477939?profile=original

3689478154?profile=original

3689478123?profile=original

  

Cheers,

-Keyur

E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Here are couple of pictures of my home-made shielded cable and Power Filter (10Ohm Resistor and 100uF Capacitor 10V).

    Let me know, if you spot something fishy. Or suggest me your ideas. Thanks. Enjoy. :)

    3692517729?profile=original

    3692517667?profile=original

    3692517753?profile=original

    3692517693?profile=original

    3692517780?profile=original

    3692517857?profile=original

    3692517906?profile=original

    3692517886?profile=original

    3692517819?profile=original

  • I have done the power filter as well as used homemade shielded cable (Wrap alu foil around the servo cable and used shrink tube). I don't see any difference in the ALT_Hold. Sad to say but It even got worst. :( 

    I have tried everything now and almost ready to give up on this.

    Here is a short test: VIDEO (or Below)

    trans.gif?width=480

  • Developer

    @Bill,

        Yes, hiding it all inside a cable would be nice.  I was actually going to get the cable attached to the little pcb as well so it would be a complete solution.  People would still need to solder one side of the pcb onto the sonar itself but the holes are in just the right place so it's pretty straight forward.

  • i didnt find the name of "sonar" status meter reading or graphic this?  anyone can advise me, thank you.

  • Actually, instead of a board, can't a proper "cable" be made, shielded with the two components built into the cable? Since users still need to locate and build their own cable even if they buy the board, why not kill two birds with one stone?

  • I would put my hand up for a few of these boards.

    It's becoming obvious that electrical interference is a big problem with the Sonar, having had many issues and have finally identified the Sonar as the culprit.

    Has anyone given any thought to using more than one Sonar? 

    Just asking as I notice a lot of Sonar dependant machines (ARDrone for one) use two.

  • Randy,

    This would be a wonderful idea. It will be a lot more easier and helpful for/to the hobbyist. :) It makes sense to sell these Sonar Filters from DIYDrones store rather than buying from somewhere else. 

    Thanks. :)

  • Developer

    Kur,

         I think I'm going to try and get someone to manufacture these and then maybe Jordi & co will be happy to sell them in the 3dr store.  As you say, for just one board, once you add in the costs of shipping the pcb and parts and it becomes an expensive item.

  • I just have made few changes to my quad. Moved receiver to other side, added rubber washers between the sonar and carbon fiber (since GND and +5 were touching the carbon plate, Thanks to airmamaf for pointing that out), i also changed all four motors and props as well. Now i am getting pretty good results. I will post video later on to show you guys how steady it holds its alt now.

    But still i would like to make few changes, such as add Sonar filter, change cable to shielded cable and may be heater elements (since winter is coming). ;)

    @ Randy, I am very impressed with the Sonar Filter you suggested. By looking at the screenshots you posted. You can tell that It did make deference. I already added into my cart but the only thing is holding me is the shipping cost. :) The filter costs $2.50 and the shipping is almost five times the price of the filter. $10. :(

    @ Ervine, Where did you buy your resistors and capacitors from? 

  • Developer

    Boston UAV,

         The 4th (the green wire) is for the heating element.  So for people who tend to take their copters from a warm room into the cold out doors you plug that green line into a 5v source on your apm2 and it'll keep the sonar free from condensation.  Now on in that pic I don't have the heating element attached..on my quad copter i just use the regular 4 resistors attached in series and then wrapped around the base of the sonar but if I were to turn this little cable into a commerical product, I'd replace that with those wire heater elements.

This reply was deleted.