opendata-stuttgart / sensors-software

sourcecode for reading sensor data
575 stars 313 forks source link

SHT30 Wemos D1 Mini Shield "check wiring" #958

Closed moridin1138 closed 2 years ago

moridin1138 commented 2 years ago

Hello,

I am attempting to get the airRohr firmware working a Lolin/Wemos D1 Mini. It appears to load fine (using latest.bin) and I can configure sensors. The problem is reading temperature/humidity using the SHT30 Shield, it doesnt work. I am using this shield here.

I noticed in the airRohr code that for the SHT30 the firmware is using the Adafruit_SHT31 library. Thinking this was my problem I loaded that library and ran the the example code. It reads the temperature just fine.

For some reason the airRohr does not specify the i2c address in the begin statement. Could this be why? I've tried using the shield using both the 0x44 and 0x45 address, both return the "Check SHT3x wiring" message.

Why would the adafruit library work on it's own, but not the airRohr firmware?

moridin1138 commented 2 years ago

Well, I figured it out. It's the static GPIO mappings. The firmware insists on the D3,D4 pins being used rather than the default D1, D2 on the microcontroller. Mystery solved!