Rangefinder 1: No Data on my pixhawk 2.4.8

Greetings

I am using Garmin Lidar lite v3 on my Pixhawk 2.4.8. I am getting no data from the range finder. I followed the wiki for the wiring. this what the way I set it up.

the lidar is powered by a separate UBEC with a 9 Volt battery connected to it. I can see that it is powered on.

the weird thing is when I connected the power the Lidar it gives me a single incorrect random reading then stops. If I disconnect the battery and reconnect it will give a different Singal incorrect random reading. Then OfCourse i see an error massage with PreArm: Rangefinder 1: No Data.

I think the wiring is correct otherwise it will give no reading at all.

image0
image1

these are the parameters I changed following the wiki

RNGFND1_TYPE type 5 (PMW)
RNGFND1_PIN = 54 (AUX5)
set BRD_BOOT_DELAY to 3000
RNGFND1_SCALING 1
SERVOx_FUNCTION_13 set to -1 as GPIO
RNGFND1_MAX_CM = 3500 (the maximum range the lidar can accurately report in cm)
RNGFND1_MIN_CM = 20

your help is much appreciated.

RangeFinder_No_Data.param (16.7 KB)

have you tried i2c mode?

No not yet

Because I am
using an airspeed sensor on the I2c port.
I could use an I2c splitter but I read in the wiki that using both airspeed sensor and lidar on i2c port creates an offset, so I decided to try the PMW method.

Thank you

try using telemetry i.e., UART communication and define serial protocol
like if you are using telemetry2 then define serial 2 protocol

I don’t know how to do that.

I would like to try though.

as telemetry use uart communication interchange tx and rx and give required power supply through splitter/bec/any other source.keep rngfnd settings same and use appropriate serial protocol and do check proximity 1 parameters too

I think I will try the I2c connection first. If it dose not work.

I will try the way you suggested.

So is there any other suggestion other than changing the wiring connection?

Greetings

I changed the wiring from PMW to I2c and currently connected by itself to the I2c Pixhawk port with no splitter.

I am getting no readings at all this time. The sensor has power, and the wiring is according to the wiki.

these are the parameters I changed

  • RNGFND1_TYPE = 3 “LidarLite-I2c”
  • RNGFND1_Pin to -1

in the massages tab it says PreArm: RNGFND1_PIN not set

The options to change the pin number is the following in mission planner ( -1 not used , 11 pixracer , 13 pixhawk ADC4 , 14 pixhawk ADC3 , 15 pixhawk ADC6/Pixhawk2 ADC, 50 AUX1, 51 AUX2 , 52 AUX3 53 AUX4 54 AUX5 55 AUX6 103 Pixhawk SBUS )

If I chose any of the selection, I get an error in massages tab

RNGFND1_PIN=15 invalid. ( or whatever number I use )

what pin number should I input?

any other suggestions?

thank you for your

I tried i2c
this time I am getting to reading at all

1 Like