wayland/ads1115@0.0.3

License: BSD

Library for TI's ADS1115 16-bit ADC. Wraps https://github.com/adafruit/Adafruit_ADS1X15. Work in progress - limited testing!
NodeDescription
adc
Analog-to-digital converter. Outputs ADC readings (volts) from all four channels. One of two quickstart nodes in this library (see also adc-raw).
adc-raw
Analog-to-digital converter that outputs raw ADC data from all four channels. One of two quickstart nodes in this library (see also adc).
example-test-adc
Patch to test adc node. Run in debug mode.
ads1115-device
An ADS1115 device.
compute-volts
Converts ADC reading (raw counts) into volts.
example-test-adc-raw
Patch to test adc-raw node. Run in debug mode.
get-gain
Reads the gain setting.
read-adc-differential-2-3
Reads the conversion results, measuring the voltage difference between the P (AIN2) and N (AIN3) input. Generates a signed value since the difference can be either positive or negative.
set-data-rate
Set the data rate.
example-test-data-rate-config
Patch to test that all data rates can be set and read. Run in debug mode.
read-adc-differential-0-1
Reads the conversion results, measuring the voltage difference between the P (AIN0) and N (AIN1) input. Generates a signed value since the difference can be either positive or negative.
read-adc-single-ended
Gets a single-ended ADC reading from the specified channel.
set-gain
Set gain of the ADC.
get-data-rate
Read the data rate.
example-test-gain-config
Patch to test that all gain options can be set and read. Run in debug mode.
To use the nodes in your project you should have the wayland/ads1115 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.