Thanks a lot - IΒ΄ll go with the UART version L042MT to see whatΒ΄s below - a range of 6 m should be good enough for my purposes - I let you know the result
the GL042MT is only 3m you need the GL041MT
We have done a lot of testing, and there is a drawback to sonar sensors.
The object detected by the sonar must be exactly flat to the direction of the sonar sound wave.
If the angle is even slightly tilted, data will not be transmitted.
Iβll test it again later this week.
Did you connect via i2C?
no i converted it to mavlink. are you trying to detect an object or the bottom?
Iβm having a big problem right now.
Iβm currently trying to use TF02-Pro LiDAR sensor and GL042MT (Arduino / Mavlink) together.
TF02-Pro LiDAR to CUAV V5 Nano FC Telemetry 2 port.
GL042MT to CUAV V5 Nano FC UART4 port.
I connected and set it up, but it only reads sonar sensor data.
However, when I disconnect the sonar sensor, TF02-Pro LiDAR data comes in.
It seems like thereβs some kind of data conflict.
How can I fix it?
is it the mavlink adapter you are using? how are you powering the lidar? it should be connected to a different 5v source, not the telemetry port 5v.
https://ardupilot.org/copter/docs/common-benewake-tf02-lidar.html
I linked to the document by referring to this link.
how are you powering the pixhawk?
We use CUAV HV PMU.
Are you saying that I need to configure a separate 5V/GND for TF02-Pro, not the 5V/GND of the UART4 port?
I had not seen the page from the tf02, it does say connect it to the telemetry port. Im thinking of the lidar lite that needs separate power.
is it the mavlink adapter you are using on the sonar? is the lidar configured as rangefinder 2? if you try and set it as rangefinder 1 then it will conflict with the sonar.
is it the mavlink adapter you are using on the sonar? is the lidar configured as rangefinder 2? if you try and set it as rangefinder 1 then it will conflict with the sonar.
I set the parameters.
RNGFND 1 β TF02-Pro
RNGFND 2 β Arduino + GL041MT
that wont work, the rangefinder mavlink adapter is set as rangefinder 1. you would need to change the adapter code to 2 for it to be rangefinder 2.
uint8_t id = 1; /*< Onboard ID of the sensor*/
I think Iβve tried this too.
it wont work in its current configuration, you have the lidar set to rangefinder 1 and you have the sonar sending data to rangefinder 1.
int sysid = 1
uint8_t id = 1
Should I change both to 2?
Meanwhile I got the GL042MT (UART) - Iβd like to try the MAVlink version first - the Arduino Uno is to bulky to fit inside the pressure hull - I have an Arduino Nano Every at hand - do I need to make adjustments in the .ino file because its got a different processor (ATmega 4809) instead of the ATmega 328 on the Uno or Nano?