Prearm: Rangefinder 1 was not detected

HI,there
I am trying to enable my lidarlite v3 connected with pixhawk4mini via i2c.
I set the parameters accroding to wiki https://ardupilot.org/copter/docs/common-rangefinder-lidarlite.html
I set RNGFND1_TYPE = 15
RNGFND_1_MAX_CM = 3500
RNGFND_1_MIN_CM = 20

But I get message on MP Prearm: Rangefinder 1 was not detected
and the sonarvalue is 0.

Here is my connection photo

Firmware in px4mini and MP is the latest version

Thanks!

1 Like

Good day, you need customize you cable… add a 680uF cap to the power lines of the sensor… pin3 from the sensor is SDA and pin4 is SCA
Don’t exceed the 5.5 volts on the sensor

It should have it’s own bec and not powered from the flight controller.
I use to have that same problem with TF minis. Not anymore…they have their own juice now

@rickyg32 Thanks for replying
So, I need to give lidar individual power supply instead of using power pin on flight controller.Just connect sda and scl Pin to flight controller?
like the photo below


I will use other cable to connect

yes at least in my experience and that of a few others, the power needs to be separate. Only because the lidar pulls more then the FC can properly handle. Yes the SCL and SDA connect to the FC. My drones I use a 9am power module that feeds the FC and it’s tapped for other devices to keep the load of the fc. Weird things happen when the flight controller is not properly powered.
I think you have it.

Hi, i am having the same issue but unlike here i have right connections for lidar. I have a BEC which supplies 5v to lidar other than cube. So, what should i do ?

Some lidar are in UART mode and need to be changed to I2C.
I am no expert on TF Mini’s but I did write up some directions to get it to work if this helps.
So here is how to get the TF Mini Plus working on Pixhawk I2C.
Connect your TF Mini via the supplied cables to a TTL to USB adapter.

Connect via the USB cable to your PC.
If you have not already downloaded the TFMini Gui…do so from 北醒
Open the Gui

Set the product type to TFMini Plus

Select the correct Com Port

Click connect.

You should start seeing distance information on the graph in the gui.
image

Using the command line function issue the following two commands by pasting each in the command line and pressing send

5A 05 0A 01 6A
5A 04 11 6F
The first sets the device to I2C and the second forces a save.
Nothing should appear on the graph from this point on.
Next you need to connect it to your Pixhawk or I2C hub.
Please note that the pinout on the supplied connector has the SCL and SDA reversed. You need to pull out the pins and swap them.

Please note the SCL and SDA are reversed.

You need to configure a few settings in Arducopter.
RNGFND1_ADDR,16 This is the I2C address for the Lidar
RNGFND1_GNDCLEAR,34 This the distance from the Lidar to the ground…easiest way to set it is to have the drone report the distance to the ground when sitting on your workbench and then enter that distance.
RNGFND1_MAX_CM,600 Set this as the max distance the device will be used.
RNGFND1_MIN_CM,30 This is the minimum distance for the lidar.
RNGFND1_ORIENT,25 This is telling Arducopter that the lidar is pointing down
RNGFND1_TYPE,25 This sets the lidar type to TFMini I2C
It should be working now.
Good luck

Thanks for your answer. My lidar works fine now.

Hey I’m using ZHT 24Ghz drone altimeter radar . I’m facing a problem that is “rangefinder 1not detected” .
What will be the solution?
Please help to solve this problem