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
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
yesterday
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
More…