Pixhawk & Sonar

My pixhawk came in the mail today for my APMRover!

I have 2 MB1240 Sonars and was wondering where I can find a cable to hook them up to the PixHawk. I am assuming I will need to power it one way and then connect the other pins 2-5 to the I2C bus. 

Has anyone done dual sonar with Pixhawk yet?

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

Join diydrones

Email me when people reply –

Replies

  • Admin

    @theclam,

    Try here Link

    As far as I know, the MB1240 is an analog output sonar and not an I2C output sonar.

    Regards,

    TCIII AVD

  • Hi LouDogg,

    My "buddy" Dave is not answering to my emails anymore, so I did not go forward (yet), but I'm still eager to do it this year. Would you make a "developing team" with me ? I know roughly the method, but do not even have a pixhawk yet. I will not start such a project alone.

    Kind Regards,

    Guillaume Fabre
  • Have you tried it without the sonar?  I was using sonar on my custom hex with APM2.6 and auto landings were very shaky.  I think it was because of the sonar signals going a little crazy as it approached the ground.  I upgraded to the pixhawk and the sonar was not supported.  I flew without sonar and auto landings are a smooth as melting butter now.  I won't be putting the sonar back on unless I can find a good reason.

    • On the APM 2.6 I used the sonar properly filtered and it worked great. On the pixhawk apparently the sonar is not implemented yet on the current 3.1.5 code, it will be on the 3.2 when it will be released.

      The landings with the barometer only are spot on, amazing how precise, so we might not need sonars for this at all.

  • Admin

    @Oxxy Fx,

    You can start here for a single sonar Link and here for dual sonars Link 

    I used CDROM shielded audio cables to connect the sonars to the Pixhawk.

    Here is a blog post concerning filtering the sonar power Link

    My dual sonar is used on a rover. 

    Regards,

    TCIII AVD   

    • Thanks Thomas. I used sonar before on the APM 2.6 with success. I filtered the cable and added the cap and resistor. However all your links seems to refer to a rover setup - while I am trying to fly a copter.

      Is it possible that as according to the post from David above the sonar code is not working on the arducopter?

      • Hi !

        Stupid question (not at all in fact), but can I use a sonar and APM / Pixhawk not in front of the ground but relatively to a wall instead ? (so as to respect a certain distance).

        Thanks in advance ;-) 

        • Newtoon, 

          Did you figure out a good way to use the sonar as a proximity sensor?  I might try messing with the config etc. because I would like the copter to slowly approach the wall.

          Any help apreciated,

          LouDogg

          • Hi LouDogg,

            My "buddy" Dave is not answering to my emails anymore, so I did not go forward (yet), but I'm still eager to do it this year. Would you make a "developing team" with me ? I know roughly the method, but do not even have a pixhawk yet. I will not start such a project alone.

            Kind Regards,

            Guillaume Fabre

  • I am trying to use te sonar for the arducopter (quad) configuration.

    I tried connecting the Maxbotix 1240 to all available ports on the Pixhawk but I get no response from the sonar. I have the latest firmware, updated September 20th.

    While all the documentation talks about setting the sonar pin to x or y - there is no Sonar_Pin parameter in the advanced parameter list.

    What am I missing?

This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…