Pages: [1]   Go Down
Author Topic: How to check the external I2C devices if they are connected  (Read 192 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 46
I just want to learn more :)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a Arduino Nano and 5 external I2C devices connected with I2C on pin 4 & 5.

When my sketch is starting up, it not detect if a external I2C device is connected. (i have to do this check only once at startup).

i want to create something like
Code:
Wire.requestFrom()

and when a external device is not connected, it return with a message
Code:
lcd.print("I2C Error Device 2");

I dont know if i am on the right way.
some help are appriciate.

thanks
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31436
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Look at the techniques here:-
http://playground.arduino.cc/Main/I2cScanner
Logged

Pages: [1]   Go Up
Jump to: