Skip to content

garmin/LIDARLite_Arduino_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIDAR-Lite Arduino Library

This library provides quick access to basic functions of LIDAR-Lite via the Arduino interface. Additionally, it can provide a user of any platform with a template for their own application code.

For detailed specifications, pinout, and connection diagrams, see the manuals linked at the above product pages.

A Note on Compatibility: Minor interface changes have occurred between LIDAR-Lite v3, v3HP, and previous versions. Backwards-compatibility of this library is largely preserved, though support is not directly provided for v1 and v2.

Installation instructions

To install, download this repository and place in your Arduino libraries folder or use the Arduino Library Manager. If you need help, follow the instructions here: http://arduino.cc/en/Guide/Libraries.

Example Sketches

v3/GetDistancePWM

This is the simplest demonstration of LIDAR-Lite. It shows how to read a distance using the PWM interface.

v3/GetDistanceI2c

This demonstration shows how to read distance using the I2C interface and choose preset configurations.

v3/ShortRangeHighSpeed

This example shows a method to run LIDAR-Lite at high speed for short range applications. It combines a variety of settings to trade off range and accuracy for very fast measurements.

v3HP/v3HP_I2C

This example shows various methods to run LIDAR-Lite v3HP.

v3HP/v3HP_MONITOR

Use the MODE pin to monitor STATUS of the LIDAR-Lite v3HP.

v3HP/v3HP_PWM

Use PWM output to read distances from LIDAR-Lite v3HP.

v4LED/v4LED

Various operation examples for LIDAR-Lite v4 LED.

v4LED/v4LED_fast

High rep rate example using the optional GPIO pins or I2C port to trigger measurements.

v4LED/v4LED_lowpower

Take single distance measurements using the I2C port in a lower power state.

Version History

  • 3.0.6 - Copy alt requestFrom() to LLv4LED library
  • 3.0.5 - v3HP library updated for alternate requestFrom()
  • 3.0.4 - v4 LED and v3HP library updates. New v3HP PWM example.
  • 3.0.3 - Add v3HP library function to read peak stack
  • 3.0.2 - Add v4 LED examples and link to ANT Library
  • 3.0.1 - v4 LED example clean up and library fixes
  • 3.0.0 - Support for LIDAR-Lite v4 LED
  • 2.0.6 - Add v3HP library function to reset the reference filter
  • 2.0.5 - Add v3 library function to set alternate I2C addr
  • 2.0.4 - Update short-range, high-error configuration
  • 2.0.3 - New example using MODE pin for STATUS output of v3HP
  • 2.0.2 - Updates to v3HP library
  • 2.0.0 - Support for LIDAR-Lite v3HP
  • 1.0.3 - Fix version convention
  • 1.0.2 - Library Manager Update
  • 1.0.1 - Release to Library Manager
  • 1.0.0 - Initial release

Raspberry Pi Library for LIDAR-Lite v3

ANT Library for LIDAR-Lite v4 LED

License

Copyright (c) 2018 Garmin Ltd. or its subsidiaries. Distributed under the Apache 2.0 License. See LICENSE for further details.