Forums Technical Articles Developer Docs 中文区 UART Decoder Module Database Models Quotes & Orders EN · 中文 · 日本語 · DE · ES

My single-point laser rangefinder shows nothing (or garbage) on the UART. What should I check first?

Viewed 2

A question seen in public engineering discussions this week, answered by ERDI Engineering.

Engineers keep asking why a single-point laser rangefinder or lidar connected to a flight controller or microcontroller UART prints nothing, or prints random bytes, or the values are rejected. What is the fastest checklist to find the cause?

1 Answers

This checklist uses ERDI modules as concrete examples. Always read the datasheet of the exact model, because settings differ by model.

1. Baud rate. It is model specific. LRF22VB and LRF600H default to 460800 (adjustable); LRF3000A1 defaults to 115200 (9600 also listed). A wrong baud rate gives garbage, not silence.

2. TX/RX crossed. The module TX goes to your RX. On the LRF22VB pin list, pin 3 is the module TX and pin 4 the RX, and these pins are shared with I2C SCL/SDA.

3. Voltage on the supply pin. LRF22VB is specified for 3.0-3.6 V only, so do not power it from a 5 V port such as a flight-controller TELEM header. LRF3000A1 takes 3.3-5 V and LRF600H takes 9-36 V. A module that is not powered inside its range may print nothing.

4. Signal level. LRF3000A1 TX/RX are 3.3 V TTL and LRF600H TX/RX are fixed 3.3 V regardless of its 9-36 V supply. For a 5 V UART use a level shifter.

5. Start state. LRF22VB can be stopped and started with commands (start: 5A 0A 02 02 00 F1). LRF3000A1 has an enable pin that powers the module on at low level. Check these before assuming a fault.

6. Match the frame to the protocol. Frames starting with 5C are 4 bytes (header, 2 distance bytes little-endian, check byte), as on LRF22VB and LRF600H. Frames starting with 55 AA are 8 bytes, as on LRF3000A1. If neither header appears, return to step 1.

7. Checksum. 5C family: sum bytes 2 to second-last, then invert. Example 5C 02 11 EC: 0x02 + 0x11 = 0x13, inverted = 0xEC. 55 AA family: the reply checksum is the low 8 bits of the sum of bytes 1 to 7.

8. Units. LRF22VB reports millimetres (example 4354 mm) and LRF600H reports centimetres (example 4354 cm). Never carry a unit from one family to another: that is a 10x error. For LRF3000A1 the datasheet does not specify the unit; email us and we confirm in writing.

Open-source Python and Arduino drivers for these models are on GitHub; they handle frames, units and checksums.

For price and delivery please use https://erdilrf.com/contact/ or [email protected].

Sources:

ERDI Verified Answer — checked against the datasheet by ERDI Engineering.

ERDI Engineering Community is run by ERDI TECH LTD (Chengdu, China) · erdilrf.com · GitHub · Civil applications only · Questions about modules from any brand are welcome.