adafruit_ads1x15
¶
CircuitPython driver for ADS1015/1115 ADCs.
- Author(s): Carter Nelson
-
class
adafruit_ads1x15.adafruit_ads1x15.
ADC_Channel
(adc, channel)[source]¶ Provides per channel access to ADC readings.
-
value
¶ ADC reading in raw counts.
-
volts
¶ ADC reading in volts.
-
adafruit_ads1x15.differential
¶
Differential driver for ADS1015/1115 ADCs.
- Author(s): Carter Nelson
-
class
adafruit_ads1x15.differential.
ADS1015
(*args, **kwargs)[source]¶ ADS1015 12-bit differential analog to digital converter instance.
-
class
adafruit_ads1x15.differential.
ADS1115
(*args, **kwargs)[source]¶ ADS1115 16-bit differential analog to digital converter instance.
-
class
adafruit_ads1x15.differential.
ADS1x15_Differential
(i2c, address=72)[source]¶ Base functionality for ADS1x15 analog to digital converters operating in differential mode.
-
read_adc_difference
(differential, gain=1, data_rate=None)[source]¶ Read the difference between two ADC channels and return the ADC value as a signed integer result. Differential must be one of: - 0 = Channel 0 minus channel 1 - 1 = Channel 0 minus channel 3 - 2 = Channel 1 minus channel 3 - 3 = Channel 2 minus channel 3
-
read_volts_difference
(differential, gain=1, data_rate=None)[source]¶ Read the difference between two ADC channels and return the voltage value as a floating point result. Differential must be one of: - 0 = Channel 0 minus channel 1 - 1 = Channel 0 minus channel 3 - 2 = Channel 1 minus channel 3 - 3 = Channel 2 minus channel 3
-
start_adc_difference
(differential, gain=1, data_rate=None)[source]¶ Start continuous ADC conversions between two ADC channels. Differential must be one of: - 0 = Channel 0 minus channel 1 - 1 = Channel 0 minus channel 3 - 2 = Channel 1 minus channel 3 - 3 = Channel 2 minus channel 3 Will return an initial conversion result, then call the get_last_result() function continuously to read the most recent conversion result. Call stop_adc() to stop conversions.
-
adafruit_ads1x15.single_ended
¶
Single-ended driver for ADS1015/1115 ADCs.
- Author(s): Carter Nelson
-
class
adafruit_ads1x15.single_ended.
ADS1015
(*args, **kwargs)[source]¶ ADS1015 12-bit single ended analog to digital converter instance.
-
class
adafruit_ads1x15.single_ended.
ADS1115
(*args, **kwargs)[source]¶ ADS1115 16-bit single ended analog to digital converter instance.
-
class
adafruit_ads1x15.single_ended.
ADS1x15_SingleEnded
(i2c, address=72)[source]¶ Base functionality for ADS1x15 analog to digital converters operating in single ended mode.
-
read_adc
(channel, gain=1, data_rate=None)[source]¶ Read a single ADC channel and return the ADC value as a signed integer result. Channel must be a value within 0-3.
-