The resulting map where the peripheral is addressed. Once that is installed you can test it using the i2detect utility.
#Install sonarr on raspberry pi 3 install#
In the terminal type: sudo apt-get install -y i2c-tools
Next you need to install the i2c tools to get the command line tools needed to interact with i2c. This should return something like this: ‘/dev/i2c-1’ if you see that then you are good. This should turn on the I2C pins on the RPi to test whether or not it worked in your terminal window type this command: ls /dev/*i2c* Open up a terminal window and type: sudo raspi-config.
Of note, that tutorial is a bit dated as far as the raspi-config menu goes, but the rest works. If you want to read more on it follow the link. There’s a pretty good write-up on I2C and Raspberry Pi here, but I’ve condensed it down to the steps below. As mentioned earlier, this was done with a basic Raspberry Pi 3 running Pixel installed via Noobs from .įirst you need to make sure that I2C is enabled on the Raspberry Pi. Since we are using I2C to talk to the Lidar unit there are a few thing that need to be setup on the RPi to make this happen. This is done by connecting them to the I2C SDA/SCA pins on the RPi.Īnd that’s it, the board is all wired and you can connect the board to the RPi without hurting anything. The only other connections from the Lidar unit that you need to worry about are the SDA (Blue) and SCA (Green) connections. Then you simply run the red power line and black ground line from the Lidar unit and connect them to their respective power/ground rails. Next you need to make sure that the capacitor is in-between the RPi power/ground and the Lidar Lite 3 connection.įor the capacitor the long connectors is on the power rail and the short connector is on ground. The Lidar Lite 3 requires the 5v power out to run so I’ve made the power and ground connections along the bottom rail. On the Raspberry Pi 3 and my GPIO extension the I2C SDA and SCA connections are pins 3 & 5 in the top right just under the 3v power connection. Using the diagram above I made the connections to the breadboard using the GPIO extension like so (The Raspberry Pi is not connected yet, wire it up and then connect it so you don’t accidentally fry something): The setup is pretty simple just remember that you need the Capacitor between the 5v/Ground from the Raspberry Pi and the Power/Ground cables of the Lidar unit otherwise you may fry one or both of them. In addition I used the following setup:Īccording to the Garmin documentation the Lidar Lite 3 can be connected using I2C or or PWM I used I2C to make the connection following the below diagram from the Garmin manual. I used a Raspberry Pi 3 running Pixel installed via Noobs. This assumes that you already have a Pi up and running.
Setting up the Raspberry Pi to talk to the Lidar unit was pretty straight forward. Since there’s no official Garmin Raspberry Pi libraries, this one worked well for me to get the basic functionality up and running. ( Manuals & Software: C Library for Arduino (No RPi Specific Library from Garmin…) Garmin’s documentation for the Lidar Lite 3 can be found here. It is generally more accurate than using other techniques like Sonar to ‘see’ objects, but there are any number of applications for it. The unit is commonly used to things like range-finding, and object sensing/avoidance in robots and drones. Lidar Lite 3 is an optical distance measuring unit that uses lasers to calculate distance. This is a simple post documenting what I had to do to get it up and running.
I got a Garmin Lidar Lite 3 for Christmas this year.