ok thx
hm i tried to run the prog but even it looks somehow not so well
i run this as you posted the link:
// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011
#include <Wire.h>
void setup()
{
Serial.begin (9600);
Serial.println ();
Serial.println ("test");
Serial.println ("I2C scanner Scanning ...");
byte count = 0;
Wire.begin();
... (same as on posted link)
but at the first serial println it doesnt print the last letter of "test"
what could that mean ?
i only get
"tes"
and not even the second line
causes the (maybe broken) sensor modul troubles with the serial communication ?
------------------------------------------------------------------------------------------------------------------------------ add
modified it a bit and now i can see that it got stuck at adress 6:
with this changed code
// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011
#include <Wire.h>
void setup()
{
Serial.begin (9600);
// Leonardo: wait for serial port to connect
//while (!Serial)
//{
//}
//
Serial.println ();
Serial.println ("test");
Serial.println ("I2C scanner Scanning ...");
byte count = 0;
delay(1000);
Wire.begin();
for (byte i = 1; i < 120; i++)
{
Serial.println(i);
delay(300);
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 (1); // maybe unneeded?
*/
} // end of good response
} // end of for loop
Serial.println ("Done.");
Serial.print ("Found ");
Serial.print (count, DEC);
Serial.println (" device(s).");
} // end of setup
void loop()
{
}
this is the serial output
test
I2C scanner Scanning ...
1
2
3
4
5
6
also when i change the range it got stuck at those adresses i tested so far: 6,9,14,17,19,....
dont know what it means or if there is just an loop checker who stops when recognizing that there is an error ... ^^