Hi there!
I have an CO2 meter, which I wanted to connect to Homeassistant, so I soldered wires to everything Important, disabled the original chip and installed an D1 mini esp8266.
The device has an SCD30 sensor installed. My problem is, that the sensor is not recognized by the ESP, it says:
[20:01:00][C][i2c.arduino:053]: I2C Bus:
[20:01:00][C][i2c.arduino:054]: SDA Pin: GPIO13
[20:01:00][C][i2c.arduino:055]: SCL Pin: GPIO16
[20:01:00][C][i2c.arduino:056]: Frequency: 50000 Hz
[20:01:00][C][i2c.arduino:062]: Recovery: failed, SCL is held low on the bus
[20:01:00][I][i2c.arduino:069]: Results from i2c bus scan:
[20:01:00][I][i2c.arduino:071]: Found no i2c devices!
I have analysed the signal a bit:
In the very moment i power the ESP a burst of data gets send out on the SDA and SCL lines. After that nothing happenes.
I just tried it with a “clean configuration”.
the same ESP but with only the bare minimum connected and all unecesary code removed and the sensor on GPIO4 and GPIO5.
And it worked!
I guess I have some soldering to do in order to change the pins…
Maybe something to do with the esp8266_pwm driving your lights. That’s a software PWM implementation and maybe it’s stuffing up the I2C timing enough to mess with detections.