Questions tagged [arduino-esp32]

491 questions
10
votes
14 answers

How to fix Failed to connect to ESP32: Timed out waiting for packet header error?

I tried to flash an ESP32 but I didn't succeed, I tried with esptool.py and Arduino IDE. I tried to press the boot button and reset but it didn't work. Here is the error: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for…
ri1_
  • 117
  • 1
  • 1
  • 6
6
votes
2 answers

ESP32 Core 1 panic'ed (Interrupt wdt timeout on CPU1)

I am using Arduino IDE with ESP32. Hardware is simple: ESP32 dev board + led and reed switch. I want to detect reed switch inputs (1Hz to 40Hz frequency) and blink a LED for now. Code is simple: const int button = 27; const int led = 25; unsigned…
Joe
  • 185
  • 1
  • 2
  • 11
5
votes
2 answers

exec: "python": executable file not found in $PATH

since the last update to Mac OS Monterey 12.3 I get the following error message when compiling my Arduino sketch: exec: "python": executable file not found in $PATH Unfortunately, I have not yet been able to find out how to solve this problem. I…
hmars
  • 147
  • 1
  • 2
  • 13
5
votes
0 answers

ESP32 acting as BLE server, cannot pair cyclocomputer

I'm trying to create a cycling power service on the ESP32 using PlatformIO and the NimBLE-Arduino library. Connecting, bonding, subscribing to the notifications and receiving the power data all work when the client is the nRF Connect Android app,…
4
votes
1 answer

No serial data received: ESP32 CAM

I keep getting error as I upload my code to my AI thinker esp 32 cam. I connect it using microusb and it always has this error: A fatal error occurred: Failed to connect to ESP32: No serial data received. For troubleshooting steps visit:…
me-hapi
  • 69
  • 1
  • 4
4
votes
1 answer

What are the files boot_app0.bin and bootloader_dio_80m.bin for? (ESP32 - Arduino IDE)

The ESP32 flash command, as executed by the Arduino IDE, seems to flash two bootloader files: boot_app0.bin at offset 0xe000 and bootloader_dio_80m.bin at offset 0x1000. I wonder what these two bootloader files actually do, and why there are two of…
K.Mulier
  • 8,069
  • 15
  • 79
  • 141
3
votes
0 answers

ESP32 Interrupt jitter at 20kHz

I would like your help to solve the following problem. I'm using an ESP32 Dev Kit V1 connected as follows: Pin 4 (input) is connected to a 20kHz and 3.3V signal and to channel 1 of the oscilloscope; and Pin 2 (output) is connected to channel 2 of…
Jose Silva
  • 139
  • 6
3
votes
2 answers

ESP32 Arduino upload java.lang.NullPointerException error

I am trying to build the simplest example (blink project) on Arduino 1.8.16 using a ESP32 based board (Espduino compatible). It builds correctly but I am not able to upload to the board. I verified that the CH340 driver is loaded and works (I am…
Massimo Manca
  • 385
  • 1
  • 2
  • 15
3
votes
1 answer

Store char arrays address in new array

I have an included file in an Arduino program. MCU is ESP32. included file is: const char bitmap_1587[] PROGMEM = {248,254,254,230,241,231,247,199}; const char bitmap_1604[] PROGMEM = {249,254,254,254,0,191}; const char bitmap_1575[] PROGMEM =…
3
votes
2 answers

ESP32 httpd: Header fields are too long for the server to interpret

I want to stream to WebView inside a Anrdoid App. My code is: WebView cam = (WebView) findViewById(R.id.Cam); cam.getSettings().setLoadWithOverviewMode(true); cam.getSettings().setUseWideViewPort(true); …
Rachid Id
  • 31
  • 1
  • 3
2
votes
1 answer

How to manage a slow callback function in the ESPAsyncWebServer library

I understand that delaying or yielding in the ESPAsyncWebServer library callbacks are a no-no. However, my callback function needs to query another device via the Serial port. This process is slow and will crash the ESP32 as a result. Here is an…
Zapho
  • 87
  • 9
2
votes
2 answers

How to define a lambda function to be able to capture the 'this' pointer of a class?

I have a time class which tracks the time. I want my other classes to be able to register a callback function if the day changes. I have this working snippet: #define MAX_CB_CHANGE_FUNCTIONS 50 typedef void (*dayChangeFunc)(int prevDay,int…
Dr.Random
  • 430
  • 3
  • 16
2
votes
0 answers

How to Get the RSSI value for Multiple devices while scan by ESP32

I am using the below code to get the RSSI value. I am able to get the value successfully for one Device at a time. But I am confused about how to get the RSSI value for multiple devices while scanning by ESP32. The below code snippet I am using. …
2
votes
1 answer

ESP32 Arduino-ide how to get unique id

I'm trying to set a unique id to each esp32 automatically. Before I was programming the devices using the ESP-IDF Framework that provides the method esp_efuse_mac_get_default() this will return a 8 byte value unique over all devices I had my hands…
gxor
  • 335
  • 3
  • 11
2
votes
1 answer

Should I use Bluetooth Classic or Bluetooth LE to communicate with my mobile application?

I'm making a project with ESP32 that involves communication with a mobile application. Currently I'm using BluetoothSerial(built on Classic) just for debugging, but I plan to make a dedicated mobile application to have all kinds of data related to…
1
2 3
32 33