Skip to main content

LRF3000A1 UART protocol and integration

LRF3000A1 905 nm Laser Rangefinder Module

Typical applications: Handheld optics, Survey instruments, UAV payloads, Embedded EO systems.

At a glance​

Protocol familyFamily A (55 AA, polled)
Default baud115200 bps, 8N1
Frame8 bytes
Distance unit on the wiremetres x 10
Measurement range (datasheet)see specification

Specification​

Values come from the ERDI datasheet for this model. Where the datasheet gives a condition, it is shown.

ParameterValueCondition
Laser wavelength905 ± 10 nm, Class 1 (IEC 60825-1)
Ranging accuracyd ≤ 100 m: ±0.7 m · d > 100 m: ±(0.7 + 0.003·d) m
Measurement frequencyNormal 3–10 Hz adaptive · Long-range 1–10 Hz adaptiveAdaptive
InterfaceUART (TTL 3.3 V)
Baud rate115200 bps default / 9600 bps
Supply voltageDC 3.3–5 VRipple < 0.1 V
Operating power≤ 1.8 W @25℃ · ≤ 2.1 W @70℃ · ≤ 1.6 W @-20℃
Dimensions13.5 × 25.1 × 27.8 mm
Weight12 ± 0.5 g
Protection ratingIP67
Operating temperature-20 to +60 ℃
Storage temperature-25 to +75 ℃
Maximum ranging distance≥ 3,000 m @ 70% reflectivity, building target (clear weather, visibility ≥ 4 km)70% refl. building target (clear, visibility ≥ 4 km)
Minimum ranging distance1 m90% refl. white board
Valid measurement rate≥ 98%
False alarm rate≤ 1%
Typical beam divergence≤ 10 mrad
Average laser power7.63 mW
Receiver field of view≈ 8 mrad
Standby power≤ 1 mW (enable high) / ≤ 350 mW (enable low)
Response time≤ 160 ms + 100–517 ms (start-up + first ranging)
Shock / vibration1000 g/ms · 5–50–5 Hz, 2.5 g
ReliabilityMTBF ≥ 1500 h

Pinout and wiring​

PINSOURCE DEFINITIONSOURCE DESCRIPTION
1GNDGround
2Power Supply3.3 V–5 V DC Power Supply
3NCReserved Pin
4TTL_TXDSerial TX, TTL_3.3 V level
5TTL_RXDSerial RX, TTL_3.3 V level
6Enable PinPower ON at low level

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​

  • Frame: 8 bytes, header 55 AA, then function code, four data bytes, checksum.
  • Default baud: 115200 bps, 8 data bits.
  • Transmit checksum: lower 8 bits of function code + D1..D4 (the header is not included).
  • Reply checksum: lower 8 bits of header H + header L + function code + D1..D4 (the header is included). The two formulas differ on purpose.
  • Reply to a ranging command: 55 AA <fn> STA FF DIS_H DIS_L SUM. STA = 1 means the measurement succeeded.
  • Distance: DIS_H:DIS_L is the measured value in metres multiplied by 10.
CommandRequest frame
Single-shot ranging55 AA 88 FF FF FF FF 84
Continuous ranging55 AA 89 FF FF FF FF 85
Stop ranging55 AA 8E FF FF FF FF 8A
Angle measurement55 AA 8A FF FF FF FF 86

:::caution Continuous ranging For this model the manual's continuous-ranging request uses function byte 0x89 while the recorded reply uses 0x88. Poll with single-shot (0x88) until ERDI confirms the behaviour for your batch. :::

The full frame description is in Family A protocol. Try it without installing anything in the browser serial monitor.

Code examples​

pip install erdi-lrf # PyPI, MIT
erdi-lrf --port /dev/ttyUSB0 --model LRF3000A1 measure
from erdi_lrf import ErdiLRF

with ErdiLRF("/dev/ttyUSB0", "LRF3000A1") as lrf: # COM3 on Windows
r = lrf.measure() # single-shot (0x88)
print(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.

PlatformStatusGuide
Python (erdi-lrf)UntestedPython / Raspberry Pi / Jetson
Arduino / PlatformIOUntestedArduino / PlatformIO
ESPHome / Home AssistantUntestedESPHome
ROS 2UntestedROS 2
ArduPilot (Lua script)UntestedArduPilot
ArduPilot native driverNo driver yetArduPilot

Known issues​

  • The datasheet notes that the send and receive checksums are computed over different bytes (see Protocol). Use separate functions for the two directions.
  • 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​