If you are asking a question, please follow this template:
Hi all, my goal is to build an humidity and temperature sensor using esp8266 with I2C sensor.
-
bought some GY-21 boards with HTU21D on board
-
connected to a NodeMCUv2 just to make a first test (SDA to pin D6 - GPIO12 and SCL to pin D5 - GPIO14)
-
cloned an empty project
-
configured mos.yaml
-
built
-
flashed.
Now, from MOS tool, using “mos call I2C.Scan” nothing is found:
$ mos call i2c.scan
[
]
I tried to add anothe i2c chip on the same bus (a PCF8574AP) and, the same command returns its address as expected:
$ mos call i2c.scan
[
56
]
Also, to be sure it is not a sensor problem, I tried a couple of things:
-
on the same board I downloaded a bin created through ESPHOME, and all is working so, the sensor is found and correctly read
-
always on the same board, downloaded ESPEasy and configured the sensor … all is working fine
So, it seems to be something related to i2c … signaling ?
Have anyone had the chance to do smething like that, or have any idea ?
This is my MOS.yml