Skip to content

ADS1115 library for Raspberry Pi and Embedded Linux, written in C language

License

Notifications You must be signed in to change notification settings

giobauermeister/ads1115-linux-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ADS1115 library for Raspberry Pi and Embedded Linux, written in C language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages