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 @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
1 hour ago
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
1 hour ago
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
1 hour ago
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
1 hour ago
DIY Robocars via Twitter
RT @DAVGtech: What a great way to connect why @diyrobocars community is so valuable and important! Have to start somewhere @IndyAChallenge…
1 hour ago
DIY Robocars via Twitter
RT @DAVGtech: https://t.co/GwkbSBjdGa
12 hours ago
DIY Robocars via Twitter
RT @DAVGtech: Good morning from @IndyAChallenge at @IMS. It was a late night, but worth it. Come see for yourself how the pass ended and ch…
12 hours ago
DIY Robocars via Twitter
RT @circuitlaunch: Robot fun this Saturday (23) at Circuit Launch! From 10am to 4pm. Lots of robots, autonomous car racing training, tech t…
yesterday
DIY Robocars via Twitter
RT @chr1sa: 10 of these autonomous racecars will be competing tomorrow at the Indianapolis raceway
yesterday
DIY Robocars via Twitter
RT @a1k0n: Sync'd @joshu's GoPro w/ my datalogging; video is 2.5X speed, Google imagery upper-right. Found out my track boundaries are WAY…
Tuesday
DIY Robocars via Twitter
RT @a1k0n: Also, at 45mph, the front tires literally blow up like a balloon and it doesn't have much front traction, so the car becomes fai…
Tuesday
DIY Robocars via Twitter
RT @a1k0n: Okay, some datalogs! Green dots are precalculated racing line (from my crummy optimizer -- it veers to the middle after 2 for Re…
Tuesday
DIY Robocars via Twitter
RT @a1k0n: Welp my @selfracingcars entry, hastily conceived heading filter and all, actually worked! Heading home, datalogs and videos to f…
Tuesday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
Oct 15
DIY Robocars via Twitter
RT @f1tenth: What can we learn from autonomous racing? Actually, a lot! To get an idea what you can do in this field and where the research…
Oct 11
More…