I have found the problem. It's due to setting the board type as ESP32-WROOM-DA when it is not a dual antenna board. The dual antenna boards use gpio 2 for antenna 1 so selecting this board causes the on board LED to go crazy.
The fix is to change the board to "ESP32 Dev Kit".
Search found 12 matches
- Wed Feb 12, 2025 11:20 am
- Forum: General Discussion
- Topic: ESP32 WiFi.h Constantly Blinking Onboard LED
- Replies: 3
- Views: 3807
- Wed Feb 12, 2025 11:16 am
- Forum: ESP32 Arduino
- Topic: Built in LED blinks when using WiFi.h
- Replies: 7
- Views: 9294
Re: Built in LED blinks when using WiFi.h
Thanks 
That was indeed the problem. I had not realised that the DA stands for Dual Antenna, and with dual antenna gpio 2 is used for antenna 1. Changing the board to "ESP32 Dev Kit" has indeed fixed the problem.
That was indeed the problem. I had not realised that the DA stands for Dual Antenna, and with dual antenna gpio 2 is used for antenna 1. Changing the board to "ESP32 Dev Kit" has indeed fixed the problem.
- Thu Aug 08, 2024 5:01 am
- Forum: ESP32 Arduino
- Topic: Built in LED blinks when using WiFi.h
- Replies: 7
- Views: 9294
Re: Built in LED blinks when using WiFi.h
Thanks, but the LED flashes in the same way even if I use this program:
#include <WiFi.h>
#define MY_SSID "foo"
#define MY_PWD "bar"
void setup() {
WiFi.begin(MY_SSID, MY_PWD);
}
void loop() {
delay(1000);
}
I have uploaded a video to show how the LED starts flashing as soon as WiFi.begin ...
#include <WiFi.h>
#define MY_SSID "foo"
#define MY_PWD "bar"
void setup() {
WiFi.begin(MY_SSID, MY_PWD);
}
void loop() {
delay(1000);
}
I have uploaded a video to show how the LED starts flashing as soon as WiFi.begin ...
- Wed Aug 07, 2024 3:58 pm
- Forum: General Discussion
- Topic: ESP32 WiFi.h Constantly Blinking Onboard LED
- Replies: 3
- Views: 3807
Re: ESP32 WiFi.h Constantly Blinking Onboard LED
A rather late reply, but I have a similar problem. I haven't found any way to stop WiFi.begin() from messing with the builtin LED, but I managed to get the WiFi enabled using just the ESP API. This code enables the WiFi without affecting the built in LED:
#include <WiFi.h>
#include "esp_system.h ...
#include <WiFi.h>
#include "esp_system.h ...
- Wed Aug 07, 2024 2:56 pm
- Forum: ESP32 Arduino
- Topic: Built in LED blinks when using WiFi.h
- Replies: 7
- Views: 9294
Re: Built in LED blinks when using WiFi.h
Thanks, but that is not what I'm asking.
It seems like the WiFi object already does does something similar to what you suggest. If I turn on the WiFi using:
void connectWiFi() {
WiFi.begin(MY_SSID, MY_PWD, 6);
int loopcnt = 0;
while (WiFi.status() != WL_CONNECTED) {
Serial.printf("%d WiFi ...
It seems like the WiFi object already does does something similar to what you suggest. If I turn on the WiFi using:
void connectWiFi() {
WiFi.begin(MY_SSID, MY_PWD, 6);
int loopcnt = 0;
while (WiFi.status() != WL_CONNECTED) {
Serial.printf("%d WiFi ...
- Tue Aug 06, 2024 9:42 am
- Forum: ESP32 Arduino
- Topic: Built in LED blinks when using WiFi.h
- Replies: 7
- Views: 9294
Built in LED blinks when using WiFi.h
I have a generic ESP32-WROOM-32D dev board that I'm using to learn ESP32 programming using the Arduino IDE. I've noticed that when I use the WiFi object from WiFi.h the built in LED illuminates to show the state of the connection. When I call WiFi.begin() the LED turns on solid, then once the WiFi ...
- Wed Jul 17, 2024 3:38 am
- Forum: ESP32 Arduino
- Topic: Can we use WiFiServer to accept connections in blocking mode?
- Replies: 4
- Views: 3666
Re: Can we use WiFiServer to accept connections in blocking mode?
Thanks again.
It turns out you can use sockets even in Arduino mode. If anyone is interested, this code works:
#include <lwip/sockets.h>
#include "WiFi.h"
void ConnectWiFi() {
WiFi.begin("myssid", "mypassword", 6);
int loopcnt = 0;
while (WiFi.status() != WL_CONNECTED) {
Serial.printf ...
It turns out you can use sockets even in Arduino mode. If anyone is interested, this code works:
#include <lwip/sockets.h>
#include "WiFi.h"
void ConnectWiFi() {
WiFi.begin("myssid", "mypassword", 6);
int loopcnt = 0;
while (WiFi.status() != WL_CONNECTED) {
Serial.printf ...
- Tue Jul 16, 2024 4:59 am
- Forum: ESP32 Arduino
- Topic: Can we use WiFiServer to accept connections in blocking mode?
- Replies: 4
- Views: 3666
Re: Can we use WiFiServer to accept connections in blocking mode?
Thanks 
A delay will certainly stop the task calling WiFiServer.available() from using 100% CPU so that would be a solution, but is there no way to make WiFiServer.available() block?
A delay will certainly stop the task calling WiFiServer.available() from using 100% CPU so that would be a solution, but is there no way to make WiFiServer.available() block?
- Mon Jul 15, 2024 3:32 pm
- Forum: ESP32 Arduino
- Topic: Best Frequency Meter ever made with ESP32 - awesome!
- Replies: 100
- Views: 209139
Re: Best Frequency Meter ever made with ESP32 - awesome!
Solved. I needed to #include "esp32/rom/gpio.h". Apparently this changed going from v2 to v3.
-------------------------------------------------------------------------------------------------------------------
Thanks for posting this :-)
When I try to compile it I get errors:
D:\rhs\ESP32 ...
-------------------------------------------------------------------------------------------------------------------
Thanks for posting this :-)
When I try to compile it I get errors:
D:\rhs\ESP32 ...
- Sun Jul 14, 2024 10:18 am
- Forum: ESP32 Arduino
- Topic: Can we use WiFiServer to accept connections in blocking mode?
- Replies: 4
- Views: 3666
Can we use WiFiServer to accept connections in blocking mode?
In unix we would typically code a server using something like:
listen(sock_srv, 1);
while (true) {
sockaddr addr_client;
int sock_client = accept(sock_srv, &addr_client, NULL);
The call to accept() blocks until a connection is received, at which point it springs back into life and returns a ...
listen(sock_srv, 1);
while (true) {
sockaddr addr_client;
int sock_client = accept(sock_srv, &addr_client, NULL);
The call to accept() blocks until a connection is received, at which point it springs back into life and returns a ...