Hello, i have
MCP3428 4-Channel 4-20mA 16-Bit Current Receiver
with
IoT Interface with ESP8266 IoT Communication Module with Integrated USB
I could not read any 4-20mA input signal. When I run the code to read the I2C port I can’t find any connected.
This is the code:
#include “Wire.h”
void setup(){
Serial.begin(9600);
while(!Serial){} // Waiting for serial connection
Serial.println();
Serial.println(“Start I2C scanner …”);
Serial.print("\r\n");
byte count = 0;
Wire.begin();
for (byte i = 8; i < 120; i++)
{
Wire.beginTransmission(i);
if (Wire.endTransmission() == 0)
{
Serial.print(“Found I2C Device: “);
Serial.print(” (0x”);
Serial.print(i, HEX);
Serial.println(")");
count++;
delay(1);
}
}
Serial.print("\r\n");
Serial.println(“Finish I2C scanner”);
Serial.print(“Found “);
Serial.print(count, HEX);
Serial.println(” Device(s).”);
}
void loop() {}
I get the following on the serial monitor:
Start I2C scanner …
Finish I2C scanner
Found 0 Device(s).
I have put the jumpers in all possible positions and I do not read anything either
Help me, what I can do ?
What is the appropriate code for this card? … I am using this