ATECC608 not detected by ESP32

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mathteus
 
Posts: 1
Joined: Mon Jun 27, 2022 9:34 am

ATECC608 not detected by ESP32

Post by mathteus »

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...");
    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);
}

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: ATECC608 not detected by ESP32

Post by adafruit_support_mike »

It looks like you haven't soldered pins to the ATECC608 breakout.

You need to do that, or use connectors that have some kind of spring to apply seating force between the wire and the PCB. Male pin header and jumper pins don't create reliable electrical connections on their own. The solder joint provides both mechanical and electrical connections.

For non-soldered options, we have pogo pins and test points:

https://www.adafruit.com/?q=pogo+pin&sort=BestMatch
https://www.adafruit.com/?q=test+points&sort=BestMatch

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”