Lidar (XY data)
The currently used lidar is the LDROBOT LD19, though it no longer seems to be sold anywhere. Multiple types of lidar use the same housing, but their specs and communication protocols vary. These modules tend to use a 4 wire cable, 5V (red), Ground (black), and two data wires (yellow, white). Data wires are either bidirectional serial (RX/TX), or unidirectional (TX), with the other wire for direct motor speed control. As the LD19 is no longer available, the plan is to extend compatibility to another lidar module, likely the YDLIDAR T-mini Plus as it’s sourcable affordably through TinyTronics.
LD19
The LD19 is unidirectional serial, transmitting a constant stream of data packets (TX on white wire). The yellow wire can be used to control the motor speed; it defaults to 10Hz (600rpm).
The serial communication is at 230400 baudrate, sending fixed length packets containing the motor speed, scanner orientation angle at the start of the batch, 12 scanned points (distance, intensity), angle at end of the batch, timestamp, and CRC8 checksum.
Updates happen at 379Hz (with 12 scanned points in every packet, so new points at ~4500Hz).
Some more information is available on the Waveshare wiki page .