I am trying to connect the MCP 3428 to an M-Duino PLC module. I am trying to get a thermistor working.
The M-duino cannot read the data from the thermistor?
The data transfer from the board to the M-duino is the issue i think.
MCP 3428 : https://store.ncd.io/product/8-channel-i2c-0-24v-analog-to-digital-converter-adc-with-i2c-interface/
Code : ----------------
#include <Wire.h>
#include <MCP342x.h>
// 0x68 is the default address for all MCP342x devices
uint8_t address = 0x68;
MCP342x adc = MCP342x(address);
void setup(void)
{
Serial.begin(9600);
Wire.begin();
// Reset devices
MCP342x::generalCallReset();
delay(1); // MC342x needs 300us to settle, wait 1ms
// Check device present
Wire.requestFrom(address, (uint8_t)1);
if (!Wire.available()) {
Serial.print("No device found at address ");
Serial.println(address, HEX);
while (1)
;
}
}