0

I bought this Wemos S2 Mini three-pack from Amazon last week and I've been pulling my hair out trying to get them to connect to WiFi. I have the Ardiuno IDE 1.8.19 set to a LOLIN S2 Mini from Espressif 2.0.3 as directed, with Arduino WiFi 1.2.7, and am running this code:

#include <WiFi.h>

void setup() {
  WiFi.mode(WIFI_STA);
  WiFi.begin("ssid", "psk");
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.print(".");
  }
  Serial.println("Connected to WiFi network with IP Address:");
  Serial.println(WiFi.localIP());
}

void loop() {
  //
}

All I get is endless ........ in the Serial Monitor. I've tried:

  • running the esp32 WiFi Scan samples and all I get is "no networks found"
  • attempting to rename my router's ssid to something without a space
  • connecting to my phone's hotspot
  • flashing all three boards
  • choosing other random ESP32-S2 dev boards in the Boards Manager
  • several different USB-C to USB-C and USB-C to USB-A cables into my computer

No dice. Bad hardware? What am I missing?

xd1936
  • 1,038
  • 2
  • 9
  • 27

4 Answers4

2

Purchased an actual LOLIN S2 Mini from AliExpress, ran the same code, worked immediately. Don't buy these shitty knockoffs from Amazon.

xd1936
  • 1,038
  • 2
  • 9
  • 27
  • Mine were exactly the same appearance, only without the trademark (wemos.cc) under the version number (V1.0.0). And of course, they don't work, so caution here! – oscarah Jul 03 '23 at 14:28
0
  1. enable "Verbose" in Arduino for compilation - you will get all the messages/errors to start with
  2. make sure your AP does not have white/black list for MAC addresses
  3. ssid/password ok? (sorry, but sometimes it happens)
Zygfryd Homonto
  • 151
  • 1
  • 3
  • Thank you for your response. I did enable verbosity (thanks for telling me about that, that's good to know!), but nothing helped. Turns out, it was just bad hardware from Amazon knockoffs. – xd1936 Jul 11 '22 at 14:20
0

Add Capacitor 1-10uF between EN and 3.3V It helps me

centur10n
  • 21
  • 1
0

i confirm that many of these lolin clone boards have problem with wifi connection...after buying 5pcs of these devices from aliexpress....(and a friend 3pcs from same supplier).. all have the same problem.....already tried to reload updated firmware..but nothing...still remains a card that can be used like any arduino..but WITHOUT POSSIBILITY TO CONNECT TO WIFI NETWORK !!!!