Skip to content

ADS1115 - pi4jV2 #201

Answered by jveverka
nujabness asked this question in Q&A
Mar 1, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi
You need a piece of code which uses pi4j 2.1.1 library and talks to ADS1115 chip. Than you will be able to read A0 input. You can use rpi-driver library i just created.
I just succesfully tested ADS1115 and pi4j 2.1.1 here are the links:

The rpi-driver library (includes ADS1115 java driver):
https://github.com/jveverka/rpi-projects/tree/pi4j-v2/rpi-drivers

ADS1115 driver implementation:
https://github.com/jveverka/rpi-projects/blob/pi4j-v2/rpi-drivers/src/main/java/one/microproject/rpi/hardware/gpio/sensors/impl/ADS1115Impl.java

ADS1115 example of use:
https://github.com/jveverka/rpi-projects/blob/pi4j-v2/rpi-drivers/src/main/java/one/microproject/rpi/hardware/gpio/sensors/tests/ADS111…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nujabness
Comment options

Answer selected by nujabness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants