Multiple Scanning LiDAR Robot

By Jered Tupik and Sam Webster - Fall 2019 4180

Overview

We set out to design and build a robot to demonstrate a scanning LiDAR collision warning and avoidance system. The system will support both remote bluetooth user-control and fully autonomous operation. During user-controlled movement the robot will provide visual and audio feedback of nearby obstacles via an on board LCD screen and speaker.

Design Description

We utilized the robot frame and drive train included in the robot kit and added our own custom scanning LiDAR system consisting of 4 Time of Flight Distance Sensors (VL53L0X, used in lab) mounted on a single servo with a custom tower system. The whole system is based on the mBed LPC1768 running mBed RTOS (additional components and connections listed below).

User Instructions

After downloading the Adafruit Bluefruit LE Connect app and connecting to the Bluefruit module, select the controller option from the menu options. By default the robot will be in user controlled mode. The operator can use the arrow keys to drive the robot; multiple keys can be pressed at the same time to achieve a full range of movements. Pressing the "1" button will launch the autonomous driving mode. User control mode can be restarted by pressing "1" again. The "4" button is reserved as a special emergency shut off.

Video Demonstration

Implementation

Primary Components

Bluefruitgndgnd
Vin (3.3-16V)Vu 5V
CTSgnd
TXOp14mBed Serial RX

https://cdn-shop.adafruit.com/310x233/2479-00.jpg

H-BridgeVmVu (5V)
VccVout
gndgnd
A01Red of Left Motor
A02Black of Left Motor
B02Red of Right Motor
B01Black of Right Motor
PWMAp21
AI1p23
AI2p24
STBYVm
BI1p29
BI2p30
PWMBp22

https://cdn.sparkfun.com/r/140-140/assets/parts/1/2/4/8/2/14450a-01.jpg

ServoRed (5V)5V
Black (gnd)gnd
Yellow (cntrl)p26

https://cdn.sparkfun.com//assets/parts/8/3/0/8/11884-Servo_-_Hitec_HS-422__Standard_Size_-01.jpg

uLCD5vVu
RXp27
TXp28
gndgnd
RESp15

https://cdn.sparkfun.com/r/140-140/assets/parts/7/1/2/3/11377-01a.jpg

5V RegulatorVin5V
Commongnd
Output+ of Class D Amp

https://cdn.sparkfun.com/r/140-140/assets/parts/9/9/00107-1.jpg

Class D AmpPwr ++ on 5V Reg
Pwr -gnd
Vol (x3)to potentiometer
In +p25
In -gnd
Out+Spkr +
Out -Spkr -

https://cdn.sparkfun.com/r/140-140/assets/parts/6/4/0/0/11044-01a.jpg

Lidar (x4)VinVout
gndgnd
SHDNp17 (front), p18 (back), p19 (left), p20 (right)required to assign I2C addresses
SCLp10
SDAp9

*More information on setting I2C Addresses found here* https://cdn-shop.adafruit.com/1200x900/3317-04.jpg

Code

The complete code can be found here


Please log in to post comments.