I want to operate MPU6050 and BMP280 using I2C communication. I broke the existing board while playing with a Chinese pro micro, so I tried to use another board I had. But I2C doesn't work! Just in case, I connected the sensor to the Uno board and ran the I2C scanner example, and it worked normally. And when I connected the sensor to the pro micro again and ran the scanner example, I confirmed that the operation stopped in Wire.endTransmission(). I don't know what the problem is.
Sorry for my lack of writing skills. I used a translator.
The Wire.endTransmission() stops if SDA is shortcut to GND or SCL is shortcut to GND or SDA is shortcut to SCL.
Instead of a shortcut, it could also be wrong voltage levels, missing power to the module, wrong voltage to the module, bad designed modules, and so on.
Perhaps the hardware is the same. It is possible that it just barely worked before and suddenly it does not work anymore without changing something. It happens.
@UKHeliBob
Pin D2 acts as SDA and pin D3 acts as SCL.
@Koepel
There is no problem with the wiring condition. There are no shortcuts. It's probably a problem with the pro micro. When I went through Sparkfun's schematic and investigated why the board was failing before the replacement, I found that the capacitors were different. And the replacement Pro Micro is the same product.
I tried to measure the value using Arduino Uno. The output function of D2 and D3 pins as well as the PWM function of D3 pins seem to work normally. But when I run the I2C Scanner example, the voltage fluctuates. When I uploaded the same example to the Arduino Uno and measured it, I could see the voltage dropping intermittently in the middle of silence. The voltage fluctuations in the two cases are very different.