MCP342x
MCP342x copied to clipboard
Addressing more than one IC
Hi Steve
Thanks a lot for this good library, I helped me a lot. But I have an issue: on my board, there are two MCP3423, one has the address 0x68, the other one 0x69. When I try to read the ADC values from those ICs the ADC value from that one which was initialized later:
adc1.begin(0x68); adc2.begin(0x69);
--> reading from adc1 gives the values from adc2
When I change the initialization order:
adc2.begin(0x69); adc1.begin(0x68);
--> reading from adc2 gives the values from adc1
I would be very happy if you can fix this.
Best regards Simon
That does not look like valid code for the MCP324x
library. Are you sure you have the right library? Please take a look at the examples.
This library was written specifically to support multiple devices, typically 3 MCP3424 ADCs. I have successfully used the library with a board I made that contained 8 MCP3424 ADCs, all of which were sampling simultaneously.
No response so closing this on the assumption that the reporter is referring to a different library.