LRF10VB UART protocol and integration
LRF10VB Single-Point 9 m DToF LiDAR Sensor for Camera Focusing, Security Monitoring and Smart Devices
Typical applications: Camera autofocus, Security monitoring, Smart devices.
At a glance
| Protocol family | Family B (5C, streaming) |
| Default baud | 460800 bps, 8N1 |
| Frame | 4 bytes |
| Distance unit on the wire | millimetres |
| Measurement range (datasheet) | 0.05–9 m (90% refl.) · 0.05–5 m |
Specification
Values come from the ERDI datasheet for this model. Where the datasheet gives a condition, it is shown.
| Parameter | Value | Condition |
|---|---|---|
| Laser wavelength | 940 nm | |
| Ranging range | 0.05–9 m (90% refl.) · 0.05–5 m | 10% refl. |
| Ranging accuracy | ±5 cm (<5 m) · 1% (≥5 m) | |
| Measurement frequency | 50 Hz | |
| Interface | UART | |
| Supply voltage | 4.5–5.5 V DC | |
| Dimensions | 12 × 7.5 × 9.1 mm | |
| Weight | 1 g | |
| Laser safety class | Class 1 | |
| Operating temperature | -20 to +60 ℃ | |
| Field of view | 3° | |
| Repeatability | ±10 mm | |
| Ambient light immunity | 2 m | 70 kLux |
| Peak current | 4.5 mA | 5 V |
| Average current | 4 mA | 5 V |
| Average power consumption | < 0.1 W (low-power mode supported) | |
| Wire specification | 4-pin 1.25 mm terminal, 10 cm tinned stranded wires | |
| Customization | Available in appearance / structure / output protocol |
Pinout and wiring
| PIN | Definition / Wire Color | User Interface |
|---|---|---|
| 1 | TX | RX |
| 2 | RX | TX |
| 3 | GND | External Power - |
| 4 | 5V | External Power + |
Cross TX and RX (module TX to host RX), share ground, and power the module from a supply that matches the supply voltage in the specification table. See Wiring and power.
Protocol summary
- Data frame: 4 bytes,
5C <dist_lo> <dist_hi> <check>, free-running. - Default baud: 460800 bps, 8 data bits, 1 stop bit, no parity.
- Distance: 2 bytes, little-endian, unit millimetres. The VB series reports millimetres and the H series centimetres, so
5C 02 11 ECis 4.354 m on a VB module and 43.54 m on an H module. - Out-of-range marker: the module outputs 65535 when there is no valid target. Treat it as no target, not as a distance.
- Checksum: bitwise inverse of the 8-bit sum of all bytes between the header and the check byte.
| Command | Request frame |
|---|---|
| Start ranging | 5A 0A 02 02 00 F1 |
| Stop ranging | 5A 0A 02 00 00 F3 |
The full frame description is in Family B protocol. Try it without installing anything in the browser serial monitor.
Code examples
- Python
pip install erdi-lrf # PyPI, MIT
erdi-lrf --port /dev/ttyUSB0 --model LRF10VB stream --count 20
from erdi_lrf import ErdiLRF
# COM3 on Windows, /dev/ttyUSB0 or /dev/serial0 on Linux
with ErdiLRF("/dev/ttyUSB0", "LRF10VB") as lrf:
for r in lrf.stream():
print("out of range" if r.out_of_range else f"{r.metres:.3f} m", "raw", r.raw)
Platform status
Only rows with evidence say Verified. See the compatibility matrix for what that means and where the evidence is.
| Platform | Status | Guide |
|---|---|---|
| Python (erdi-lrf) | Untested | Python / Raspberry Pi / Jetson |
| Arduino / PlatformIO | No driver yet | Arduino / PlatformIO |
| ESPHome / Home Assistant | No driver yet | ESPHome |
| ROS 2 | No driver yet | ROS 2 |
| ArduPilot (Lua script) | Untested | ArduPilot |
| ArduPilot native driver | In review (PR #34983, not merged) | ArduPilot |
Known issues
- UART logic level is not stated as a separate field for most models. Supply voltage is not the UART voltage: check the module's TX level against your host before wiring, or ask us.
Resources
- Model page with datasheet download: https://erdilrf.com/models/lrf10vb/
- Datasheet and specification page: LRF10VB datasheet and specs
- Interactive 3D view: LRF10VB 3D viewer
- STEP model: available on request, Request STEP
- Drivers and protocol notes: ErdiTech/erdi-lrf-drivers
- Questions: tommy@erdimail.com, +86 133 0819 5790