getSurreal / XV_Lidar_Controller

Arduino code for controlling the Neato XV Lidar
Apache License 2.0
128 stars 47 forks source link

XV Lidar Controller

Copyright 2014-2021 James LeRoy getSurreal.com

v1.4.1

Control the Neato XV Series and Botvac Series Lidars with an Arduino compatible board.

Used as an interface board to connect directly to the Neato XV/Botvac Lidar and control the rotation speed through Pulse Width Modulation (PWM).

Based on work by:

Code contributors:

Description

The XV Lidar Controller receives the serial data from the XV/Botvac Lidar looking for the RPM data embedded in the stream and uses a PID controller to regulate the speed between 200 - 300 RPMs. The data received from the Lidar is relayed to the USB connection for some upstream host device (PC, BeagleBone, Raspberry Pi) to process the data.

Requirements

Hardware

Software to build from source

Usage

Connect to the USB port at 115200 baud. When sending commands use the newline character to signify the end of a command.

Commands

Control commands

Data commands

PID commands

Output comma-separated format:

Errors: