Hello. I’m develop for WiFi LoRa 32 (V2) module.
And the following i2c scanner source was executed. And I got the following log:
i2c_scanner.c :
#include <Wire.h>
void setup()
{
Wire.begin();Serial.begin(9600);
while (!Serial); // Leonardo: wait for serial monitor
Serial.println("\nI2C Scanner");
}void loop()
{
byte error, address;
int nDevices;Serial.println(“Scanning…”);
nDevices = 0;
for(address = 1; address < 127; address++ )
{
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();if (error == 0) { Serial.print("I2C device found at address 0x"); if (address<16) Serial.print("0"); Serial.print(address,HEX); Serial.println(" !"); nDevices++; } else if (error==4) { Serial.print("Unknown error at address 0x"); if (address<16) Serial.print("0"); Serial.println(address,HEX); } Serial.println("Finding I2C Device");
}
if (nDevices == 0)
Serial.println(“No I2C devices found\n”);
else
Serial.println(“done\n”);delay(5000); // wait 5 seconds for next scan
}
and Serial Log :
14:34:08.931 -> Scanning…
14:34:08.931 -> Unknown error at address 0x01
14:34:08.976 -> Finding I2C Device
14:34:08.976 -> Unknown error at address 0x02
14:34:09.022 -> Finding I2C Device
14:34:09.022 -> Unknown error at address 0x03
14:34:09.068 -> Finding I2C Device
14:34:09.068 -> Unknown error at address 0x04
14:34:09.114 -> Finding I2C Device
14:34:09.114 -> Unknown error at address 0x05
14:34:09.159 -> Finding I2C Device
14:34:09.204 -> Unknown error at address 0x06
14:34:09.204 -> Finding I2C Device
14:34:09.249 -> Unknown error at address 0x07
14:34:09.294 -> Finding I2C Device
14:34:09.294 -> Unknown error at address 0x08
14:34:09.340 -> Finding I2C Device
14:34:09.340 -> Unknown error at address 0x09
14:34:09.384 -> Finding I2C Device
14:34:09.384 -> Unknown error at address 0x0A
14:34:09.431 -> Finding I2C Device
14:34:09.431 -> Unknown error at address 0x0B
14:34:09.476 -> Finding I2C Device
14:34:09.521 -> Unknown error at address 0x0C
14:34:09.521 -> Finding I2C Device
14:34:09.567 -> Unknown error at address 0x0D
14:34:09.611 -> Finding I2C Device
14:34:09.611 -> Unknown error at address 0x0E
14:34:09.656 -> Finding I2C Device
14:34:09.656 -> Unknown error at address 0x0F
14:34:09.703 -> Finding I2C Device
14:34:09.703 -> Unknown error at address 0x10
14:34:09.748 -> Finding I2C Device
14:34:09.795 -> Unknown error at address 0x11
14:34:09.795 -> Finding I2C Device
14:34:09.839 -> Unknown error at address 0x12
14:34:09.839 -> Finding I2C Device
14:34:09.885 -> Unknown error at address 0x13
14:34:09.930 -> Finding I2C Device
14:34:09.930 -> Unknown error at address 0x14
14:34:09.975 -> Finding I2C Device
14:34:09.975 -> Unknown error at address 0x15
14:34:10.020 -> Finding I2C Device
14:34:10.020 -> Unknown error at address 0x16
14:34:10.066 -> Finding I2C Device
14:34:10.111 -> Unknown error at address 0x17
14:34:10.111 -> Finding I2C Device
14:34:10.157 -> Unknown error at address 0x18
14:34:10.157 -> Finding I2C Device
14:34:10.203 -> Unknown error at address 0x19
14:34:10.248 -> Finding I2C Device
14:34:10.248 -> Unknown error at address 0x1A
14:34:10.294 -> Finding I2C Device
14:34:10.294 -> I2C device found at address 0x1B !
14:34:10.339 -> Finding I2C Device
14:34:10.385 -> Unknown error at address 0x1C
14:34:10.385 -> Finding I2C Device
14:34:10.431 -> Unknown error at address 0x1D
14:34:10.431 -> Finding I2C Device
14:34:10.477 -> Unknown error at address 0x1E
14:34:10.522 -> Finding I2C Device
14:34:10.522 -> Unknown error at address 0x1F
14:34:10.569 -> Finding I2C Device
14:34:10.569 -> Unknown error at address 0x20
14:34:10.613 -> Finding I2C Device
14:34:10.613 -> Unknown error at address 0x21
14:34:10.658 -> Finding I2C Device
14:34:10.705 -> Unknown error at address 0x22
14:34:10.705 -> Finding I2C Device
14:34:10.751 -> Unknown error at address 0x23
14:34:10.751 -> Finding I2C Device
14:34:10.797 -> Unknown error at address 0x24
14:34:10.842 -> Finding I2C Device
14:34:10.842 -> Unknown error at address 0x25
14:34:10.888 -> Finding I2C Device
14:34:10.888 -> Unknown error at address 0x26
14:34:10.933 -> Finding I2C Device
14:34:10.933 -> Unknown error at address 0x27
14:34:10.981 -> Finding I2C Device
14:34:10.981 -> Unknown error at address 0x28
14:34:11.025 -> Finding I2C Device
14:34:11.071 -> Unknown error at address 0x29
14:34:11.071 -> Finding I2C Device
14:34:11.116 -> Unknown error at address 0x2A
14:34:11.116 -> Finding I2C Device
14:34:11.162 -> Unknown error at address 0x2B
14:34:11.207 -> Finding I2C Device
14:34:11.207 -> Unknown error at address 0x2C
14:34:11.252 -> Finding I2C Device
14:34:11.252 -> Unknown error at address 0x2D
14:34:11.297 -> Finding I2C Device
14:34:11.297 -> Unknown error at address 0x2E
14:34:11.344 -> Finding I2C Device
14:34:11.390 -> Unknown error at address 0x2F
14:34:11.390 -> Finding I2C Device
14:34:11.435 -> Unknown error at address 0x30
14:34:11.435 -> Finding I2C Device
14:34:11.481 -> Unknown error at address 0x31
14:34:11.527 -> Finding I2C Device
14:34:11.527 -> Unknown error at address 0x32
14:34:11.573 -> Finding I2C Device
14:34:11.573 -> Unknown error at address 0x33
14:34:11.618 -> Finding I2C Device
14:34:11.618 -> Unknown error at address 0x34
14:34:11.663 -> Finding I2C Device
14:34:11.710 -> Unknown error at address 0x35
14:34:11.710 -> Finding I2C Device
14:34:11.755 -> Unknown error at address 0x36
14:34:11.755 -> Finding I2C Device
14:34:11.800 -> Unknown error at address 0x37
14:34:11.846 -> Finding I2C Device
14:34:11.846 -> Unknown error at address 0x38
14:34:11.892 -> Finding I2C Device
14:34:11.892 -> Unknown error at address 0x39
14:34:11.937 -> Finding I2C Device
14:34:11.937 -> Unknown error at address 0x3A
14:34:11.982 -> Finding I2C Device
14:34:12.027 -> Unknown error at address 0x3B
14:34:12.027 -> Finding I2C Device
14:34:12.072 -> Unknown error at address 0x3C
14:34:12.117 -> Finding I2C Device
14:34:12.117 -> Unknown error at address 0x3D
14:34:12.161 -> Finding I2C Device
14:34:12.161 -> Unknown error at address 0x3E
14:34:12.206 -> Finding I2C Device
14:34:12.206 -> Unknown error at address 0x3F
14:34:12.251 -> Finding I2C Device
14:34:12.296 -> I2C device found at address 0x40 !
14:34:12.296 -> Finding I2C Device
14:34:12.341 -> I2C device found at address 0x41 !
14:34:12.386 -> Finding I2C Device
14:34:12.386 -> Unknown error at address 0x42
14:34:12.431 -> Finding I2C Device
14:34:12.431 -> Unknown error at address 0x43
14:34:12.476 -> Finding I2C Device
14:34:12.520 -> I2C device found at address 0x44 !
14:34:12.520 -> Finding I2C Device
14:34:12.565 -> I2C device found at address 0x45 !
14:34:12.610 -> Finding I2C Device
14:34:12.610 -> Unknown error at address 0x46
14:34:12.655 -> Finding I2C Device
14:34:12.655 -> I2C device found at address 0x47 !
14:34:12.700 -> Finding I2C Device
14:34:12.745 -> I2C device found at address 0x48 !
14:34:12.790 -> Finding I2C Device
14:34:12.790 -> I2C device found at address 0x49 !
14:34:12.835 -> Finding I2C Device
14:34:12.835 -> I2C device found at address 0x4A !
14:34:12.881 -> Finding I2C Device
14:34:12.930 -> I2C device found at address 0x4B !
14:34:12.930 -> Finding I2C Device
14:34:12.972 -> I2C device found at address 0x4C !
14:34:13.018 -> Finding I2C Device
14:34:13.018 -> I2C device found at address 0x4D !
14:34:13.063 -> Finding I2C Device
14:34:13.108 -> I2C device found at address 0x4E !
14:34:13.108 -> Finding I2C Device
14:34:13.154 -> I2C device found at address 0x4F !
14:34:13.199 -> Finding I2C Device
14:34:13.199 -> I2C device found at address 0x50 !
14:34:13.244 -> Finding I2C Device
14:34:13.244 -> I2C device found at address 0x51 !
14:34:13.289 -> Finding I2C Device
14:34:13.335 -> I2C device found at address 0x52 !
14:34:13.381 -> Finding I2C Device
14:34:13.381 -> I2C device found at address 0x53 !
14:34:13.428 -> Finding I2C Device
14:34:13.428 -> Unknown error at address 0x54
14:34:13.473 -> Finding I2C Device
14:34:13.519 -> I2C device found at address 0x55 !
14:34:13.519 -> Finding I2C Device
14:34:13.564 -> I2C device found at address 0x56 !
14:34:13.610 -> Finding I2C Device
14:34:13.610 -> I2C device found at address 0x57 !
14:34:13.655 -> Finding I2C Device
14:34:13.655 -> Unknown error at address 0x58
14:34:13.699 -> Finding I2C Device
14:34:13.746 -> I2C device found at address 0x59 !
14:34:13.746 -> Finding I2C Device
14:34:13.793 -> I2C device found at address 0x5A !
14:34:13.837 -> Finding I2C Device
14:34:13.837 -> I2C device found at address 0x5B !
14:34:13.883 -> Finding I2C Device
14:34:13.928 -> Unknown error at address 0x5C
14:34:13.928 -> Finding I2C Device
14:34:13.973 -> I2C device found at address 0x5D !
14:34:14.019 -> Finding I2C Device
14:34:14.019 -> I2C device found at address 0x5E !
14:34:14.065 -> Finding I2C Device
14:34:14.065 -> I2C device found at address 0x5F !
14:34:14.112 -> Finding I2C Device
14:34:14.158 -> Unknown error at address 0x60
14:34:14.158 -> Finding I2C Device
14:34:14.203 -> I2C device found at address 0x61 !
14:34:14.248 -> Finding I2C Device
14:34:14.248 -> I2C device found at address 0x62 !
14:34:14.293 -> Finding I2C Device
14:34:14.293 -> I2C device found at address 0x63 !
14:34:14.339 -> Finding I2C Device
14:34:14.386 -> I2C device found at address 0x64 !
14:34:14.386 -> Finding I2C Device
14:34:14.432 -> I2C device found at address 0x65 !
14:34:14.477 -> Finding I2C Device
14:34:14.477 -> I2C device found at address 0x66 !
14:34:14.522 -> Finding I2C Device
14:34:14.570 -> I2C device found at address 0x67 !
14:34:14.570 -> Finding I2C Device
14:34:14.613 -> I2C device found at address 0x68 !
14:34:14.659 -> Finding I2C Device
14:34:14.659 -> I2C device found at address 0x69 !
14:34:14.704 -> Finding I2C Device
14:34:14.704 -> I2C device found at address 0x6A !
14:34:14.751 -> Finding I2C Device
14:34:14.797 -> I2C device found at address 0x6B !
14:34:14.842 -> Finding I2C Device
14:34:14.842 -> I2C device found at address 0x6C !
14:34:14.888 -> Finding I2C Device
14:34:14.888 -> Unknown error at address 0x6D
14:34:14.934 -> Finding I2C Device
14:34:14.934 -> I2C device found at address 0x6E !
14:34:14.982 -> Finding I2C Device
14:34:15.028 -> I2C device found at address 0x6F !
14:34:15.070 -> Finding I2C Device
14:34:15.070 -> I2C device found at address 0x70 !
14:34:15.115 -> Finding I2C Device
14:34:15.115 -> I2C device found at address 0x71 !
14:34:15.160 -> Finding I2C Device
14:34:15.205 -> I2C device found at address 0x72 !
14:34:15.252 -> Finding I2C Device
14:34:15.252 -> I2C device found at address 0x73 !
14:34:15.296 -> Finding I2C Device
14:34:15.296 -> I2C device found at address 0x74 !
14:34:15.342 -> Finding I2C Device
14:34:15.387 -> I2C device found at address 0x75 !
14:34:15.433 -> Finding I2C Device
14:34:15.433 -> I2C device found at address 0x76 !
14:34:15.479 -> Finding I2C Device
14:34:15.479 -> I2C device found at address 0x77 !
14:34:15.525 -> Finding I2C Device
14:34:15.569 -> I2C device found at address 0x78 !
14:34:15.569 -> Finding I2C Device
14:34:15.616 -> I2C device found at address 0x79 !
14:34:15.661 -> Finding I2C Device
14:34:15.661 -> I2C device found at address 0x7A !
14:34:15.707 -> Finding I2C Device
14:34:15.707 -> I2C device found at address 0x7B !
14:34:15.753 -> Finding I2C Device
14:34:15.800 -> I2C device found at address 0x7C !
14:34:15.844 -> Finding I2C Device
14:34:15.844 -> I2C device found at address 0x7D !
14:34:15.891 -> Finding I2C Device
14:34:15.891 -> Unknown error at address 0x7E
14:34:15.936 -> Finding I2C Device
14:34:15.980 -> done
14:34:15.980 ->
My chip is not connected to any i2c device.
Why are i2c devices found between 0x40 and 0x7d?