Rangefinder to Cube Serial Cable
Cable Build
The Benewake TFMini-S rangefinder connector is a 4-pin JST-GH. The port availabe on the Airbot Mini Carrier Board is the 8-pin JST-GH GPS-1/Serial 3. We will build a 4 inch harness beteen these two connections. The pinout for the mini carrier board can be found here. The pinout for the Benewake TFMini-S rangefinder can be found here
The pins on the Serial 3 connector that we need are:
+5V
Serial_3 - TX
Serial_3 - RX
(Not needed) I2C1-SLC
(Not needed) I2C2-SDA
(Not needed) Safety Switch
(Not needed) Safety Switch LED
GND
The pins on the rangefinder connector that we need are:
GND
+5V
RXD
TXD
We have to connect the RX each connector to the TX on the other. The connections should be:
Serial 3 |
RangeFinder |
|---|---|
|
|
|
|
|
|
|
|
The result harness will look something like this:
After building the cable, connect the range finder and enable the rangefinder by the flight controller by setting SENS_TFMINI_CFG to GPS1. You can then test the rangefinder using MAVLink Inspector in QGroundControl as discussed here.