I am attempting to use this device:
I am using the Pi Python code from: GitHub - ncdcommunity/Raspberry_Pi_ADS1115_16Bit_4Channel_ADC_Python_Library: ADS1115 16bit 4Channel Analog Digital Converter Interface With Raspberry Pi
I am using a simple 4-20ma signal generator: https://www.amazon.com/dp/B0991ZSBHJ?psc=1&ref=ppx_yo2ov_dt_b_product_details
The IN port on the NCD board is connected to AI+ on the generator and GND to GND.
The reading is consistently ~24000 regardless of the setting on the generator.
Thanks!
I also tried this:
import time
import board
import busio
from adafruit_ads1x15.ads1x15 import ADS
from adafruit_ads1x15.ads1115 import ADS1115
from adafruit_ads1x15.analog_in import AnalogIn
Create the I2C bus
i2c = busio.I2C(board.SCL, board.SDA)
Specify the I2C address
i2c_address = 0x49
Create the ADC object using the I2C bus and specified address
ads = ADS1115(i2c, address=i2c_address)
Create single-ended input on channel 0
chan = AnalogIn(ads, ADS.P0)
print(“{:>5}\t{:>5}”.format(‘raw’, ‘v’))
while True:
print(“{:>5}\t{:>5.3f}”.format(chan.value, chan.voltage))
time.sleep(1)