ATECC608 not detected by ESP32

mathteus35
Posts: 1
Joined: Mon Jun 27, 2022 1:56 pm

ATECC608 not detected by ESP32

Postby mathteus35 » Mon Jun 27, 2022 1:59 pm

Hi, I'm trying to use the adafruit attec608 breakout board with my esp32 dev-kit(esp32-wroom).
I connected the board using the pins: SCA with pin 21 from esp32, SCL with pin 22, GND with GND, VCC with my 3.3v power pin) but I'm unable to find the chip.
When I compile the following example using plafatorm IO, it returns an erro code 2 from all address.
link with photos https://imgur.com/gallery/0Aebu6m

Code: Select all

#include <Arduino.h>
#include <Wire.h>
 
void setup() {
    Wire.begin(21, 22, (uint32_t) 400000);
 
    Serial.begin(115200);
    Serial.println("\nI2C Scanner");
}
 
void loop() {
    byte error, address;
    int nDevices = 0;
 
    Serial.println("Scanning...");
 
    nDevices 
    for(address = 1; address < 127; address++ ) {
        Wire.beginTransmission(address);
        error = Wire.endTransmission();
        Serial.printf("ADDRESS=%d -- ERROR=%d\n", address, error);
 
        if (error == 0) {
            Serial.print("I2C device found at address 0x");
            if (address<16) {
                Serial.print("0");
            }
        
            Serial.print(address,HEX);
            Serial.println("  !");
 
            nDevices++;
        } else if (error==4) {
            Serial.print("Unknown error at address 0x");
            if (address<16) {
                Serial.print("0");
            }
            
            Serial.println(address,HEX);
        }    
    }
    
    if (nDevices == 0) {
        Serial.println("No I2C devices found\n");
    }
 
  delay(5000);
}

Who is online

Users browsing this forum: No registered users and 51 guests