ENV III M5StickC-Plus SHT3X issues
-
I bought both the M5StickC Plus and ENV III Hat from digikey, but I have not been able to get temperature from SHT3X in Arduino IDE. I keep getting
Wire.endTransmission()
return value of for NACK. How do I fix/debug this or is this HAT broken?#include <M5Unified.h> #include <Wire.h> void setup() { M5.begin(); Serial.begin(115200); Wire.begin(); } void loop() { // Start I2C Transmission Wire.beginTransmission(0x44); // Send measurement command Wire.write(0x2C); Wire.write(0x06); // Stop I2C transmission int result = Wire.endTransmission(); if (result != 0) { Serial.println("Failed"); Serial.println(result); } delay(5000); }
-
Hello @risingmoon
try
Wire.begin(0,26);
. (Note: Information taken from this example).If that doesn't help maybe try with UIFlow to figure out whether there is a hardware issue.
Thanks
Felix -
-