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?
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
r = ser.read(4)
This is what it returns
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 for the input. I think I have decided to go with MCP3428 4-Channel 4-20mA 16-Bit Current Receiver with IoT Interface for my project.
I will continue to work with it sometime in the future.
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).
Yes, pyserial works. Here is what I used:
ser = serial.Serial(‘COM13’, baudrate=115200, timeout=1)