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 -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login