crgarcia
(Carlos Garcia Lalicata)
May 15, 2022, 11:55am
1
HI,
I have this home-made (JLCPCB) PCB with an SHT41I connected to GPIOs 21 and 22
Full project/schematics/layout/etc: electronics-homeassistant-lightscontroll/PCB/schematics-v17-safety-jlcpcb at main · crgarcia12/electronics-homeassistant-lightscontroll · GitHub
I am using this configuration:
i2c:
id: bus_a
sda: 21
scl: 22
scan: true
sensor:
- platform: sht4x
id: temp_sensor
i2c_id: bus_a
temperature:
name: "Temperature"
humidity:
name: "Relative Humidity"
But in ESPHome I see Unknown:
Do you have any ideas on where I could start the troubleshooting of this?
Thanks!
crgarcia
(Carlos Garcia Lalicata)
May 15, 2022, 7:03pm
3
Thank you Tom!
When I restart the device, this is what I can see related to I2C:
[20:59:10][C][i2c:028]: I2C Bus:
[20:59:10][C][i2c:028]: I2C Bus:
[20:59:10][C][i2c:029]: SDA Pin: GPIO21
[20:59:10][C][i2c:030]: SCL Pin: GPIO22
[20:59:10][C][i2c:031]: Frequency: 50000 Hz
[20:59:10][I][i2c:033]: Scanning i2c bus for active devices...
[20:59:10][I][i2c:049]: Found no i2c devices!
...
[20:59:49][W][i2c:070]: Received NACK on transmit of address 0x44
[20:59:49][W][i2c:086]: Requesting 6 bytes from 0x44 failed!
[20:59:49][D][sht4x:083]: Sensor read failed
Is there anywhere else I can search for more logs?
Thanks!
JulianDH
(Julian Hall)
May 15, 2022, 7:39pm
4
The log is quite clear. The ESP is looking for the device on those pins but can’t find them. So either you have wrong pins ( all boards can have different and confusing number systems), device is broken or power. First you need to check the pins
1 Like
crgarcia
(Carlos Garcia Lalicata)
June 7, 2022, 8:37pm
5
I replaced the component and now it works (I think) - temp is not as accurate as I was expecting, but that is a different problem
Thanks!!
PS: I have no clue how can i probe the pins of such a small component, will have to do some research