Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read I2C addresses 0x70 and 0x68 #69

Open
houssemFat opened this issue Mar 13, 2024 · 0 comments
Open

Can't read I2C addresses 0x70 and 0x68 #69

houssemFat opened this issue Mar 13, 2024 · 0 comments

Comments

@houssemFat
Copy link

Hello and thank you for the great work.

I recently purchased the esp rust board. As it is based on esp32 C3, i tried with some arduino sketches using arduino IDE and arduino-esp standard library. Codes are ok with RGB (WS2812), serial output and build in led (GPIO7) (using the LOLIN C3 mini as the board for arduino ide) .

I'm assuming that the board is arduino compatible (please correct me if i'm wrong).

Now, i'm trying to read values from the onboard sensors (SHTC3 and ICM-42670-P) using the given i2c addresses (0x68 & 0x70). I'm using a dummy I2C scanner, but it keeps getting error code 2.

I tried the many arduino library for SHTC3 (eg: Adafruit_SHTC3 with no luck.

Scanner code


/*********
  Rui Santos
  Complete project details at https://randomnerdtutorials.com  
*********/

#include <Wire.h>
void setup() {
  Wire.begin();
  Serial.begin(115200);
  Serial.println("\nI2C Scanner");
}
 
void loop() {
  byte error;
  delay(2000);     
  // replace with 0x70 for SHTC3
  // ICM-42670-P
  Wire.beginTransmission(0x68); 
  error = Wire.endTransmission();
  if (error == 0) {
    Serial.println("OK, Found");
  }else {
    Serial.println("NOT OK ");
     Serial.println(error);
  }
  delay(2000);          
}

Output

23:37:27.896 -> NOT OK 
23:37:27.896 -> 

Am I missing something ? Maybe using a wrong board definition ?
I appreciate any help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant