I need to add a cheap sonar like a a02 sensor to have a distance data.
The idea would be to then use this data to keep a distance from the bottom.
This sensor works with RS485, I think it’s possible as other modules also work in rs485.
The controller used is a Pixhawk 2.4.8. Is it sufficient to connect the module to the Pixhawk’s serial port and set the serial speed? Or is it easier to connect to the raspberry’s GPIO port?
I haven’t found a project to draw inspiration from and I don’t really know where to start. Thank you in advance for your help.
Hi @Alex_TryTT -
I agree with Larry - that sensors IP67 rating suggests that while it may be splash-proof, it is not a sensor that is intended for underwater range finding.
That said, if yo u’re able to make it work without filling with water, and by adjusting it’s assumption of sound speed in the medium, an RS485 signal is not going to be compatible with a Pixhawk directly. A USB converter may be the easiest way to get it into a connected companion computer, where you could develop code to log it, or a Node-RED flow.
@ljlukis it’s intented to work underwater, It’s to try this model, sorry I don’t have reference when I write 1 first message, but it looking it’s the same .
@tony-white I will try first with an arduino to see what are the range and the limits, but’s it’s an idea.
it couldn’t be easier to connect with a uart adapter to the raspberry’s serial port ?
ok I’ll have to give it a try then, are there any resources for programming in blueos, have there been any customization projects, from which it’s possible to draw inspiration?