Skip to content

ArthurAllshire/lidarLite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

Then:

cd lidarLite

cmake

sudo make

gpio load i2c # this command loads the wiringpi i2c stuff

sudo ./lidarTest

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

Languages

  • C 91.6%
  • CMake 8.4%