QT Py ESP32-C3 does not connect to wifi

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
yurtkuran
 
Posts: 18
Joined: Tue Apr 12, 2016 2:04 am

QT Py ESP32-C3 does not connect to wifi

Post by yurtkuran »

Repost of this topic.

I purchased 10 QT Py ESP32-C3 WiFi Dev boards. 9 of 10 will not connect to WiFi.

Code pasted below - Wi.Status() returns WL_DISCONNECTED on every attempt. After searching this appears to be a widespread problem with this version of the ESP32-C3. This is a good discussion on the issue including input from AdaFruit GitHub: https://github.com/espressif/arduino-esp32/issues/6430

Questions:
  • Is there an issue with the ESP32-C3 impacting WiFi?
  • Is there a firmware solution for this WiFi issue? Is so, what?
  • Does the -S2 or -S3 have the same issue?
  • Should I replace my C3 boards with S3?
Any help is greatly appreciated.

Code: Select all

boolean connenctToWiFi(int wifiMaxAttemps) {
    int wifiAttempts = 0;
    int wifiCounter = 0;

    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(100);

    WiFi.begin(ssid, password);
    
    while (WiFi.status() != WL_CONNECTED) {
        Serial.printf("%i.", WiFi.status());
        delay(100);

        if (++wifiCounter == 10 ) {
            Serial.println();
            wifiCounter = 0;
            wifiAttempts++;
        }

        if (wifiAttempts > wifiMaxAttemps) {
            Serial.println("\nMax connect attempts. Restarting.\n");
            delay(100);
            ESP.restart();
        }
    }
    return true;
}

User avatar
mikeysklar
 
Posts: 12454
Joined: Mon Aug 01, 2016 8:10 pm

Re: QT Py ESP32-C3 does not connect to wifi

Post by mikeysklar »

There are some mentioned work arounds in the github issue you linked to.

* WiFi.mode(WIFI_STA) after WiFi.useStaticBuffers(true) and before WiFi.begin(...) seems to be repeatedly working for the WiFiClientSecure sketch.

* CONFIG_ESP32C3_REV_MIN_0=y in tasmota

Adafruit have been swapping the C3 boards for S2 or S3 models if the issue cannot be worked around with your setup.

User avatar
yurtkuran
 
Posts: 18
Joined: Tue Apr 12, 2016 2:04 am

Re: QT Py ESP32-C3 does not connect to wifi

Post by yurtkuran »

Hello @mikeysklar,

Thanks a million for your response. Unfortunately I'm not able to get WiFi working. Here is what I tried without success:
  • updated code as recommended
  • reset AP
  • varied location of C3 board to AP
  • swapped out AP
  • used Android phone as hotspot
  • used iPhone as hotspot
How do I begin the RMA process for the QT PY ESP32-C3 boards?

Again, thanks a million for your help.

-Erol

User avatar
mikeysklar
 
Posts: 12454
Joined: Mon Aug 01, 2016 8:10 pm

Re: QT Py ESP32-C3 does not connect to wifi

Post by mikeysklar »

You may email [email protected] to start the process for a refund or replacement. The ESP32-S2 or ESP32-S3 do not have the same connectivity issue the ESP32-C3 has.

They will need your order# and a link to this forum thread as authorization.

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”