I have a problem with my ADC3 Click I bought at Mikroelektronika. I try to measure two voltages using the mcp3428.py-library.
the programm looks something like that:
# setup for measuring the first channel
mcp = mcp3428.MCP3428(I2C1, addr = 0x68)
mcp.set(cmode = 1, ch = 0, pga = 1, sps = 2)
# getting the raw data
value1 = mcp.get_raw_data()
# then there are some calculations I skip
# change the channel:
mcp.set(cmode = 1, ch = 1, pga = 1, sps = 2)
# get the data from the second channel
value2 = mcp.get_raw_data()
# then the same calculations I skiped before
The problem is that the first measurement is correct compared to a multimeter I connect to the pins. But the second measurement is 1V lower than the value showed at the multimeter.
So my question after reading the lib and the datasheet of the mcp3428 is if I got something wrong with writing the status byte or do I have to use another instance for the second channel?
Can anybody help?
Thanks in advance for your help!