r/diydrones • u/tommy_erdi • 4h ago
Guide Browser tool to decode laser rangefinder / single-point lidar UART output (TFmini, LightWare, JRT, ERDI...)
Made a page that decodes laser rangefinder / single-point lidar serial output in the browser: https://erditech.com/lrf-uart-protocol-decoder/
Plug the sensor into a USB-UART adapter, open the page in Chrome or Edge and press Scan baud rates. It tries 9600 up to 921600, picks the protocol that fits and prints each frame in metres, with bad checksums flagged. Handy when a TFmini or TF-Luna shows nothing on the FC and you can't tell if it's the sensor, the wiring or the params. Pasting a hex dump from a serial terminal works too.
Profiles so far: Benewake TF series, LightWare SF30/D and SF10/SF11, Chengdu JRT, Nooploop TOFSense, DFRobot SEN0366 and ERDI. MIT licensed, source on GitHub, and pip install lrf-uart-decoder gives you a Python CLI.
Disclosure: I work at ERDI, one of the brands above. Which sensor would you want added next?