LW20/C Laser altimeter

Hi Thomas,

I have confirmed that the LW20/B (1.8.0) is compatible with Pixhawk 2.1 Ardupilot 3.6.9 (ChibiOS).

Can you confirm you have set the RNGFND_ADDR to 102 and the RNGFND_TYPE to 7 (LightWareI2C)?

It is also possible that there is a power draw issue. Can you try powering your LW20 with an external 5V power supply?

Yes. The esettings are as indicated. From reading this forum, I was led to believe that the power draw theory had been debunked. I’ll try that.

I added a 5 volt BEC to power the sensor. Now I only have the yellow and white connected to Pixhawk I2C and black and red to 5 volt power. I checked and there is continuity from the black lead to I2C ground.

Still zero Sonar Range.

Hi Thomas,

Is it possible for you to try the NuttX version of Ardupilot 3.6.9? I’ve been speaking with and Ardupilot developer about possible issues with the ChibiOS version.

It works with Serial 4. I don’t think that’s going to be helpful since I ultimately intend to use it with a Pixhawk mini using I2C. Also intend to use it with Hereflow sensor which will require 3.7.0. I’ll try it. How do I get the NuttX version 3.6.9?

Hi Thomas,

The NuttX version of ArduCopter 3.6.9 for Pixhawk 2.1 can be downloaded here: http://firmware.ardupilot.org/Copter/stable/PX4/ArduCopter-v3.px4

We have found (and fixed) a bug in the LW20 Serial driver that can lead to the reported distance dropping to 1m if the lidar goes out of range. This only happens if the serial interface is being used, if the I2C interface is used there is no problem.

Really sorry about this bug and a fix will go out with Copter-3.6.11 which we plan to start beta testing no later than next Monday.

1 Like

That change is usefull for SF11 too? I have in analog port.

1 Like

Hi @cala2,

The issue is only with the Lightware serial driver so no change if the lidar is connected using I2C or analog.

1 Like

Hi~ @RobGowans
i want to use mutil-lightware by i2c bus,
LW20/C version is 1.6.4 i2c addr 105
SF20 version is default addr 102 and ArduCopter V4.1.0 , pixhawk4 mini
i use single SF20 or single LW20/C is work.
but use SF20 and LW20/C at the same time, sometime is work ,sometime isn’t work.
I have Connected pixhawk4 mini RC_IN port +5v to i2c bus, ensure sufficient current,
Do you have any suggestions? thanks~

1 Like

Hi @WangLouis,

Please can you forward this query to support@lightwarelidar.com

They will run with some troubleshooting steps with you there.

ok, Thank you for your assistance.