Home        Store        Docs        Blog

Using Multiple Ping Sensors for Object Detection

Hi there,

I’m looking to use multiple ping sensors at once for object detection on the blueROV. Is it possible to change frequencies for each to mitigate crosstalk between sensors? Haven’t looked through the code much, but didn’t want to mess around with it if there’s an easy way to do it.

This is not possible, Ping1D only transmits a single frequency.
The only way to use multiple Ping1Ds is to enable and disable each sensor while requesting for data.

Is there example code on how to do this? I’m assuming I should be using the class "ping1D_ping_enable’?

I’m planning on using 2 Pings with an Arduino Mega.

Thanks,

Is there example code on how to do this?

not in particular. Check the examples folder for the examples.

I’m assuming I should be using the class "ping1D_ping_enable’?

you could, but it will be easier to just call Ping1D::set_ping_enable(true) http://docs.bluerobotics.com/ping-arduino/class_ping1_d.html#ac37eecd0ef3c4c6e6d5813e6e89d5b2c