Information found in this document is used entirely at the reader’s own risk and whilst every effort has been made to ensure its validity, neither LightWare Optoelectronics (Pty) Ltd nor its representatives make any warranties with respect the accuracy of the information contained herein.
The LW20 is also available as an open frame module for OEMs using part code SF20. 2. What can the LW20 do? The LW20 can be used as an altimeter on multi-copter drones to measure the exact height above ground level or to set off alarms when the ground gets too close.
LW20 / SF20 LiDAR sensor Product manual Used on autonomous vehicles, the LW20 can be a forwards looking obstacle sensor or can be used to create “SLAM” maps to aid in navigation. Figure 3 :: Autonomous vehicle navigation What’s your application? 3.
LW20 / SF20 LiDAR sensor Product manual The LW20 is able to measure the first and last return signals when there is more than one object in the laser beam. Measuring the distance to the nearest object and the furthest object allows a drone to get information about potential collisions with trees while simultaneously following the terrain at a known height above ground.
5. How to communicate with the LW20 using the graphical interface To use the graphical interface to setup and test the LW20 you will need to connect the serial port of the LW20 to the USB port on a PC. This is done using a serial-to-usb converter such as the TTL-232R-3V3-WE converter cable from FTDI (http://www.ftdichip.com/ Products/Cables/USBTTLSerial.htm).
LW20 / SF20 LiDAR sensor Product manual There are four tabs at the top of the home screen. Each one provides a visualization of the settings inside the LW20 and guides you through the setup process as follows: The “Home” tab shows the welcome screen with shortcuts to other screens shown near the bottom •...
6. How to communicate with the LW20 using a terminal emulator To use a terminal emulation application to setup and test the LW20 you will need to connect the serial port of the LW20 to the USB port on a PC. This is done using a serial-to-usb converter such as the TTL-232R-3V3-WE converter cable from FTDI (http:// www.ftdichip.com/Products/Cables/USBTTLSerial.htm).
Product manual Pressing the “ESC” key switches the LW20 into human-to-machine mode providing data and menus in an easy to read format. You can navigate between the menus and live data streams using the arrow keys. There are four screens available, two show the LW20 setup and two show the setup of the servo if it is attached.
The I2C interface is designed for machine-to-machine communications with multiple devices over a small network. In order to test the I2C interface on the LW20 an I2C to USB converter can be connected and a limited number of commands can be sent to the LW20 using the LightWare Terminal application.
The serial port is a one-to-one protocol that lets a single LW20 talk to a single host controller. The serial interface uses 3.3 V logic to transmit results and receive commands. 5 V logic should also work without any level shifters.
8. How to do an initial setup of the LW20 Using the GUI, Terminal or machine commands the measuring characteristics of the LW20 can be tailored to suit different applications. The primary settings can be found by pressing the “Laser” button under the “Setup” tab of the GUI or on the main menu screen of the terminal.
LW20 and servo power supplies. Communications to the LW20 and the servo can be made through either the serial port or via an I2C bus depending upon the model of the LW20. In this guide we will use the serial port and the GUI interface to set up the servo parameters and configure automatic scanning.
Note that settings will only be saved to the LW20 once the “Save” button in the bottom left corner of the screen has been pushed. Once the electrical characteristics of the servo have been entered using the method above, the servo can be used to aim the LW20 in a specific direction or autonomously scan the LW20 to produce LiDAR maps and provide collision warning alarms.
Figure 22 :: Setting up the servo’s scanning characteristics The speed of the scan is determined by how fast the LW20 updates and the number of steps that the servo moves with each reading. The “Steps per reading” box increases or decreases this speed as does the update rate setting in the “Laser” section. Running the servo faster increases its power consumption but provides a faster response to changes in measurements.
10. How to set up the alarms The LW20 has two alarms, A and B, that be can used to warn when objects get too close. The alarm changes from a 0 state to a 1 state when an object is detected closer than the set distance. The alarms are updated every time a new distance measurement is taken.
No regular maintenance is required for the LW20 but if the lenses start to collect dust then they may be wiped with suitable lens cleaning materials. Make sure that the LW20 is switched OFF before looking into the lenses.
Appendix C :: Complete command set for machine-to-machine communications The LW20 has either a serial or an I2C communication port depending upon which model number is ordered. Commands can be sent that read values, change settings or alter the performance of the LW20. Distances are in meters and temperatures in degrees celsius.
Authors Comments Rev 2 2017/04/10 Include new section “6.1 How to communicate with the LW20 using the Devantech USB to I2C module” (pages 11, 12). Rev 1 2017/03/03 Updated “4. Specifications of the LW20 / SF20” to include the approval “FDA: 1710193-000 (2017/02)”...