Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.25 KB

Analog to digital converter ADS1115 with Raspberry Pi

Go to full tutorial in portuguese about ADS1115 at Portal Embarcados and learn how to use ADS1115 with Raspberry Pi and C language.


Instructions for compiling and running ads1115_example.c

1 - Clone this repository to your Raspberry Pi

$ git clone  https://github.com/giobauermeister/ads1115-linux-rpi.git

2 - Go into the cloned folder

$ cd ads1115-linux-rpi/

3 - Run gcc to compile the example

$ gcc ads1115_example.c ads1115_rpi.c -o ads1115_example

4 - Run the example

$ ./ads1115_example

The example reads from analog inputs A0, A1, A2 and prints the voltage values to the console. You can use the following circuit with this example:

Schematic