ADS1015 - Voltage sensor

class pyserialsensors.devices.ads1015.ADS1015(*args, gain: int = 0, **kwargs)[source]

Analog digital converter ADS1015

alert_read()[source]

Get the last reading from the continuous measurement.

alert_start(rate=4, channel1=0, channel2=None, threshold_high=16384, threshold_low=0, latched=False)[source]

Start continuous measurement, set ALERT pin on threshold.

conversion_start(rate=4, channel1=0, channel2=None)[source]

Start continuous measurement, trigger on ALERT/RDY pin.

get_data()[source]

Acquire data from sensor and return result physical values

get_serial_number()[source]

Generate Pseudo serial number :return: [STRING] not supported :raises: Warning

raw_to_v(raw)[source]

convert raw data to voltage

read(rate=4, channel1=0, channel2=None)[source]

Read voltage between a channel and GND. Time depends on conversion rate.

read_rev()[source]

Read voltage between a channel and GND. and then start the next conversion.

sensor_exists()[source]

test if sensor is plugged in and works proper :return: [BOOLEAN] True if test was successful otherwise False

set_conv(rate: int = 4, channel1: int = 0, channel2=None)[source]

Set mode for read_rev