Home        Store        Docs        Blog

PING Sonar integration with Pixhawk without companion computer help

(Karl Payne) #1

Greetings all;

We’re working on an autonomous boat using a PX4 and recently picked up a PING sonar to integrate. After doing a bit of research it seems we’ll need to run the sonar through a companion computer so that we can send messages through Mavlink to the Pixhawk.

I was wondering if there is any way to wire the sonar directly to the Pixhawk (or through some kind of serial converter box) so that it can be used and read without a companion computer? We currently do not have a raspi or similar on the rover and would be difficult to integrate this late into the project.

Any help is much appreciated, thanks all!

[When reporting issues, please post the product, a description of the issue, code if it’s a software issue, and pictures of the issue. That will help us resolve it quickly!]

(Patrick José Pereira) #2

Hi,

You could use our Arduino library for ping to create your own converter with an Arduino compatible microcontroller.
If you are aiming to use PX4 firmware, you’ll need to contact them to know the exactly output that your Arduino should provide.
ArduPilot has a project called ArduRover that supports boats, and ArduPilot already contains the driver for Ping, so the connection should be straightforward with the serial port.

(Karl Payne) #3

Thanks for getting back to me so quickly! We are running ArduRover (newest version) but I could not find any documentation / drivers for the PING. Maybe I’m looking in the wrong place, could you point me in the right direction?
Thanks for the help!

(Jacob) #4

bump @patrickelectric

(Patrick José Pereira) #5

Hi Karl,

It’s a WIP feature and it’s not in stable or beta version for both QGC and ArduPilot, but if you want to test it, I’ll put a step-by-step here of how to do it.

  1. Install ardurover master
    image
  2. Set range finder type to BlueRoboticsPing

Note: Configure the others parameters as MAX_CM and MIN_CM for your operation range.

  1. Configure your desired serial port to use Rangefinder protocol and 115200 as baud rate.
    image
  2. Enable rangefinder value in the instrument widget
    image

Remember, this can or not work for your case, this is still in WIP.