Question about sonar sensor(distance sensor) in voxl2
-
I’m trying to integrate a MaxBotix MB1242 (I2C sonar) with VOXL2 and use it in PX4, but I’m running into some issues and would appreciate your guidance.
Hardware setup:
VOXL2
VOXL 2 Ethernet and USB Hub Add-on (MDK-M0062-3-00)
MaxBotix MB1242 (I2C)
Connected via VOXL2 J19 I2C portCurrent situation:
voxl-rangefinder-server is disabled / not running
In QGroundControl, I cannot find the parameter SENS_EN_MBXX
As a result, PX4 does not seem to receive any rangefinder dataQuestions:
Does VOXL2 currently support MaxBotix I2C sonar sensors like the MB1242 through voxl-rangefinder-server?
Is additional configuration or driver support required to enable MB12xx sensors on VOXL2?
Are there any recommended steps to make the sensor visible (e.g., enabling specific services, modifying config files, where to connect)?
Any guidance or example setups would be greatly appreciated.Thanks in advance!
-
@Daehan-Won The mb12xx px4 driver is not in our build so you would need to add it to the voxl2-slpi build. Which pins are you attaching it to on J19?
-
@Eric-Katzfey
Thank you for your response. I would like to connect to pins 7 and 8 of J19.7: I2C3 SDA 3.3V
8: I2C3 SCL 3.3V -
@Eric-Katzfey Hi!
Are there any examples, case studies, or helpful resources on modifying or adapting VOXL2 to use a different sonar sensor? -
@Daehan-Won You would need to add the support to PX4 since you are using the DSP I2C pins and only PX4 can access those while it is running. There is some useful developer documentation here: https://docs.modalai.com/voxl-px4-dev-build-guide/. Also visit the PX4 documentation as well. At a high level you'll need to fork our repo, make a branch off of voxl-dev, add the driver to the default.px4board file for voxl2-slpi, build the image, and add a start command into the startup script voxl-px4-start