Giter Club home page Giter Club logo

xv_lidar_controller's Introduction

XV Lidar Controller

Copyright 2014-2018 James LeRoy getSurreal.com

v1.4.0

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:

  • Doug Hilton mailto: six.speed (at) yahoo (dot) com

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

  • ShowConfig - Show the running configuration
  • SaveConfig - Save the running configuration to EEPROM
  • ResetConfig - Restore the original configuration
  • SetAngle - Show distance data for a multiple angles (Ex: SetAngle 0, 15-30, 45-50, 10)
  • SetRPM - Set the desired rotation speed (min: 180, max: 349)
  • MotorOff - Stop spinning the lidar
  • MotorOn - Enable spinning of the lidar

Data commands

  • ShowRaw - Enable the output of the raw lidar data (default)
  • HideRaw - Stop outputting the raw data from the lidar
  • ShowDist - Show angles with distance data
  • HideDist - Hide the distance data
  • ShowErrors - Show all error types (CRC, Signal Strength, and Invalid
  • HideErrors - Hide angles with errors
  • ShowRPM - Show the rotation speed
  • HideRPM - Hide the rotation speed
  • ShowInterval - Show time interval per revolution in ms, at angle=0
  • HideInterval - Hide time interval
  • ShowAll - Show the distance, errors, RPMs and interval data
  • HideAll - Hide the distance, errors, RPMs and interval data

PID commands

  • SetKp - Set the proportional gain
  • SetKi - Set the integral gain
  • SetKd - Set the derivative gain
  • SetSampleTime - Set the frequency the PID is calculated (ms)

Output comma-separated format:

  • A,{Angle},{Distance in mm},{Signal Strength}
  • C,CRC
  • R,{RPMs},{PWM value}
  • T,{Time interval in milliseconds between each angle 0}

Errors:

  • CRC = Data id not pass CRC check
  • I = LIDAR reports Invalid data for this angle
  • S = LIDAR reports Poor signal strength for this angle

xv_lidar_controller's People

Contributors

getsurreal avatar tescalada avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.