Skip to content

answer17/lidarLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This provides a simple C interface to the LidarLite. It is based on the WiringPi interface. lidarTest.c is a simple test version. If you have any issues, please post to the issues tab.

Usage

Install the Wiring library for your board:

Download the Zipfile and extract to a directory

  • run cmake
  • run make

Library interfaces

  • int lidar_init(bool debug); // Initializes system. Param indicates whether to log debug messages.
    Returns file descriptor

  • int lidar_read(int file_desc); // Returns distance. First param is file descriptor from lidar_init

Pin Connections

Double-check these with your latest hardware documentation.

Svr is RaspberryPi or ODROID C1

Svr Desc LIDAR
2 5V 1 (Red)
3 SDA 5
|       | 

5 | SCL | 4 6 | GND | 6

About

Interface to Lidar Lite for RaspberryPi and ODROID C1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published