I am probably just being lazy and impatient here but I wanted to confirm that I can use pyserial in a python script to read the 1-Channel 4-20mA Current Loop Receiver 16-Bit ADS1115 I2C Mini Module?
import serial
import time
with serial.Serial ('/dev/ttyUSB2', 115200) as ser:
w = bytearray.fromhex('AA 02 C1 00 6D') #Bus Scan
s = bytearray.fromhex('AA 03 FE 21 BB 87') #Stop I2C
ser.write(w)
r = ser.read(4)
print(r)
ser.write(s)
This is what it returns b'\xaa\x01U\x00'
I will keep digging on this but if anyone has some quick tips I would appreciate it!
Sorry, but I don’t have any resources for this combination.
The best way to test is to use AnyI2C software on windows, you can then copy the communication bytes into Python.
The USB to I2C converter is mostly supported in Windows.
Thanks,
Ryan
I am actively building example control panels in Alpha Station for many customers, let me know if you need me to put a sample together for the next version (https://ncd.io/alpha).
Thanks,
Ryan