Activity › Forums › Questions & Troubleshooting › I2C communication problem › Reply To: I2C communication problem
-
Hello Louis_kortel,
In order to help you, i did the following:
I modified the I2C scanner and I downloaded it to my maxi-power.
Then i measured the voltage with my Fluke 117.
I saw varying voltages (around 3V) comming out of the pins SDA and SCL.
I would suggest you try the same and see if there is life on these pins.
If not i think your device might be broken.
#include <Wire.h>
void setup()
{
Serial.begin (9600);
} // end of setup
void loop()
{
Serial.println ();
Serial.println (“I2C scanner. Scanning …”);
byte count = 0;
Wire.begin();
for (byte i = 8; i < 120; i++)
{
Wire.beginTransmission (i);
if (Wire.endTransmission () == 0)
{
Serial.print (“Found address: “);
Serial.print (i, DEC);
Serial.print (” (0x”);
Serial.print (i, HEX);
Serial.println (“)”);
count++;
delay (100); // maybe unneeded?
} // end of good response
} // end of for loop
Serial.println (“Done, restarting.”);
Serial.print (“Found “);
Serial.print (count, DEC);
Serial.println (” device(s).”);
}
Good Luck,
johi.