Skip to content

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

@houssemFat

Description

@houssemFat

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions