The Ardupilot documentation says I can connect the lidar to the pixhawk 6 pin serial port but I only have the 4 pin I showed before. Benewake TFmini / TFmini Plus lidar — Copter documentation (ardupilot.org)
Noticed that the pixhawk “USB” or simply called “I2C” has 4 pins, can I use that instead of the serial 4/5?
or can I use the other connectivity such as using the pins that can connect to the serial raspberry pi?
You can directly connect to the Pixhawk or RPi I2C connector, but I would recommend using a splitter as in the video since you might want to add other devices.
The RNGFND parameters should appear once you select the type as described in the course video.
Also :
understood, Ended up just cutting in half one of the 6 pins connectors I had leftover from the kit.
the connectivity to pixhawk is exactly as the picture now. I do see a little red light inside the lidar so assume got it right.
enabled i2c in RPI raspi config, rebooted,
when I run i2cdetect -y 1 I get zero connectivity. is all: – -- – --
how can I enable or test the lidar connected to pixhawk inside rpi?
sorry everyone,
I found that I pulled too hard in one of the little cables that came out the plastic ensemble connecting to the pixhawk. After changing it, I configured the mission planned and seems to be working.
noticed that for my telemetry measurements I should now start reading altitude from “sonar range” parameter instead of “altitude” as it doesn’t overtake the “altitude” parameter. That one keeps using the barometer.
that said, when I run the i2c detect in RPI is still clear of results. is it because I am using a UART connection via serial 4 port in pixhawk?
If you decide to go the I2C route, the attached post & corresponding link below, helped a lot.
Since I don’t have an I2C Splitter yet, I just used the Pixhawk’s I2C Port (removing the GPS-I2C cable of course).
The rangefinder provided the applicable data (via Mission Planner) without the GPS. Now I’m happy to order another I2C Splitter. The previous one that I ordered was the wrong size; I had no idea that there were various sizes …