Questions tagged [esp32]

A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.

Filter by
Sorted by
Tagged with
8 votes
2 answers
26k views

How to choose alternate I2C pins on ESP32?

I'm a begginer with Arduino and this may be a basic question but I'm facing an issue. I'm using a HTU21D sensor with an ESP32. This sensor use I2C communication. Inside the Arduino library, there is ...
Gazouu's user avatar
  • 273
6 votes
4 answers
12k views

Arduino ESP32 Import Error No module named serial

I googled and couldn't find a solution to my nice problem: I have Ubuntu and I want to program a ESP32 ............... I tried a lot of pip commands ... but it didnt work. You have any idea how to ...
jento's user avatar
  • 65
6 votes
3 answers
12k views

Using esp-wroom-32 without a development board

There are lots of examples on the internet on how to build Arduino from scratch such as IN THIS LINK. I will like to do the same but with the esp32. I have this development board: And I am able to ...
Tono Nam's user avatar
  • 938
6 votes
2 answers
14k views

No programmers available for this board - Programming ESP32 Cam with Ardunio IDE

This is my first time working with ESP32 Cam boards. I have followed the instructions as given in this site https://technoreview85.com/how-to-program-esp-32-cam-using-arduino-uno-board/ However my IDE ...
AfiJaabb's user avatar
  • 219
6 votes
1 answer
5k views

Anyone have example code for ESP32 as media controller for Android/iPhone Media Apps

There's actually another post with this very same topic but no answers on that post. Back in January of 2020, the last commenter said he had sample code and then he went dark without posting the ...
anewsome's user avatar
  • 141
6 votes
1 answer
4k views

ESP32 IR remote

my board is a firebeetle esp32 that I am using as an IR remote. After using the Ken Shirrif IRremote library for about 6 months successfully, then the time came to change a few things on the web ...
user avatar
5 votes
2 answers
7k views

ESP32 open "captive portal" on connected

I am using the default example SimpleWiFiServer that comes as an example from the ESP32: #include <WiFi.h> #include <WiFiClient.h> #include <WiFiAP.h> #define LED_BUILTIN 2 // Set ...
Tono Nam's user avatar
  • 938
5 votes
4 answers
16k views

Convert String to IPAddress

How can i convert a String to IPAddress on arduino / esp ? etc. "192.168.1.2" -> IPAddress(192, 168, 1, 2) Tried this void setup() { Serial.begin(115200); IPAddress apip; const char *...
strange_esp's user avatar
5 votes
1 answer
1k views

ESP32 how to preserve RTC time during brownout

I want to use the ESP32 built-in RTC clock. In my situation, my ESP32 will not have access to an NTP server I do not want to use external RTC modules ESP32 provides a pin VDD_RTC will powers the RTC ...
mquevedob's user avatar
5 votes
0 answers
375 views

Internet in ESP32 is not working with IPv6

I am using ESP-WROOM-32D in STA mode with Arduino IDE(2.0.5) ESP32 board(2.0.9). I am trying to do http post request with ESP32. Router that provides internet supports only IPv6. Here I am getting ...
dharmikP's user avatar
  • 151
5 votes
1 answer
533 views

ESP32 SocketIO Client is not connecting to Flask-SocketIO Server

I'm trying to connect a ESP32 client using SocketIO with a Flask-SocketIO server and it's not getting connected. The server uses SSL. The local server address is https://192.168.1.137:3000.Is the ...
Shyam3089's user avatar
  • 165
5 votes
0 answers
1k views

How to set ESP32 RTC clock source

According to the manufacturer's link below, the default RTC timekeeping in the ESP32 is supposedly based on Internal 150 kHz RC oscillator. Apparently, there is another option called Internal 8.5 MHz ...
Randy's user avatar
  • 407
4 votes
2 answers
3k views

How to switch 12V with esp32?

Hello i want to switch electric door lock (12V, 170mA) with esp32(3.3V). If is it possible I want use tranzistor. I tried to use IRF520, but it only worked with 5V. My sugestion is use 2 tranzistors ...
Noobie's user avatar
  • 43
4 votes
1 answer
19k views

How do you convert a formatted print statement into a string variable?

I'm using the following routine to print the current time on the com port. I would like to capture this as a string so I can display it using ePaper. void printLocalTime() { time_t ...
Simon Markham's user avatar
4 votes
2 answers
11k views

Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain? [closed]

I use ESP8266 and ESP32 with arduino toolchain rather than pure arduino hardware. Arduino IDE is standard and proven but what are the other IDE and advantage/disadvantage ?
E.Racineux's user avatar
4 votes
2 answers
3k views

My ESP32-S3 DevkitC-1 has two USB micro ports labeled 'USB' and 'UART'. What are they for?

I'm new to micro-controllers. I've got an ESP32-S3-DevKitC-1 and I'm trying to do a simple hello world with the Serial. I'm using the Arduino IDE for flashing and serial monitoring. My code is: /** * ...
Spina's user avatar
  • 139
4 votes
1 answer
1k views

ESP32 Wifi not working when powered by battery

I'm quite new to ESP32 development. I've been using this devkit for a few small projects and everything was going smoothly until I decided to run it on battery. In particular, the ESP32 devkit I'm ...
luigi's user avatar
  • 63
4 votes
1 answer
735 views

Random access to SD card using SD.h or another library (ESP32)

I'm trying to use a SD card with my ESP32 in order to save some variables in a txt file. Each variable uses 1 byte, so they can be represented by an 8 bit extended ASCII character. The issue is it ...
AlexSp3's user avatar
  • 203
4 votes
2 answers
2k views

Code for ESP32 without Development Board

I'm very new to microcontrollers. I'd like to start developing for the esp32, as it has integrated wifi & bluetooth for quite cheap. This being said, i don't have a board yet. Is there a way i can ...
user76979's user avatar
4 votes
1 answer
9k views

ESP32 AP max connections: 4 or 10?

I am using the SoftAP feature of the ESP to create a central node, and connecting five or six clients in the final application. However, I don't know if i can connect that many clients. One of the ...
CharlieHanson's user avatar
3 votes
2 answers
2k views

Attach the Arduino ISR function to the class member

I intended to use a timer interrupt for limited instances of a class in my ESP32 Arduino project. My first code conception was as follows: portEXIT_CRITICAL_ISR(&lock0); } ...
Hamid s k's user avatar
  • 141
3 votes
2 answers
167 views

Set parameters after compilation

I am extremely new to Arduino and have searched for this on the web but have not found it. My project has 2 files, a .ino file with the sketch and another .h file with the secrets and configuration ...
Jaime Roman's user avatar
3 votes
2 answers
6k views

What are the correct pins for TWAI (CAN) on ESP32?

compared to the microchip's PICs: pic16f's does not have an onboard CAN peripheral. so you need an SPI - CAN controller (like MCP2515). some PIC18f's have an onboard CAN controller, and only need a ...
Fernando Ernesto's user avatar
3 votes
3 answers
4k views

ESP32 Pins won't fit in solderless breadboard

I bought an Adafrut Huzzah32 ESP32 for an IoT project. When the ESP32 arrived, I attempted to fit it into my existing breadboard, but I immediately noticed that no matter how hard I pushed, the pins ...
Brandon Avant's user avatar
3 votes
4 answers
4k views

Best buffering practice for continuous SD card writing

In a simplified example, I have a microcontroller functioning as a data acquisition device - sensor data is received over UART, and then saved to an SD card. This received data is in the form of a 12 ...
nuggetbram's user avatar
3 votes
5 answers
8k views

Why doesn't OTA work with the Ai-Thinker ESP32-CAM board?

I have working code on an Ai-Thinker ESP32-CAM board, programming over serial. I would like to reprogram using OTA, but adding in the functionality from the BasicOTA sketch (which I have done on ...
rolinger's user avatar
  • 204
3 votes
1 answer
22k views

Drivers for CH9102X serial port chip

Some ESP-family cheap boards manufacturers had recently moved to CH9102X serial port chip (from CP2102), and it seems the drivers for CH9102X are hard to find. Where can I download them?
finnan's user avatar
  • 292
3 votes
2 answers
1k views

Connecting a FireBeetle ESP32 to Arduino

I have a very basic question, because I struggle to upload files to my FireBeetle ESP32 Board. When I try to upload to the board I get an A fatal error occurred: Failed to connect to ESP32: Timed ...
Joern Boegeholz's user avatar
3 votes
1 answer
4k views

What is the tool to send file to SPIFSS on ESP8266/32?

Is there good tools (IDE, CLI or IDE addon) to send file via USB port to SPIFSS internal espressif ESP hardware SoC ?
E.Racineux's user avatar
3 votes
1 answer
2k views

ESP32 can not deep sleep longer than 35 minutes

I'm trying to get my Lilygo T5 4.7" epaper to deep sleep for 12 hours. But I only seem to be able to get about half an hour (2100s) of deepsleep on it. If I set the timer for longer, it just ...
Engberg's user avatar
  • 33
3 votes
1 answer
4k views

How to post image using Arduino HTTPClient

I am using arduino HTTPClient to do the post request in ESP32. Can anyone help me with the part where I will be able to post an image file along with some data. The below code works perfectly fine ...
Shidhartha Das's user avatar
3 votes
2 answers
64 views

Difficulties acquiring angle values from MPU6050

I'm attempting to acquire angle values from an MPU6050 IMU sensor using an ESP32-DevKitM-1 microcontroller. My setup contains the ESP32 board, the MPU6050 board, and an SD card reader to save the ...
Runsva's user avatar
  • 173
3 votes
1 answer
2k views

MD5 of File doesnot match data in flash Error with ESP32 S3

I am getting the fatal error MD5 of file not match data in flash. Below is the output of upload. [1/5] cmd.exe /C "cd /D D:\Users\INOMETRICS\espressif\workspace\blink\build\esp-idf\esptool_py &...
NINJA's user avatar
  • 45
3 votes
1 answer
125 views

How do I set the DHCP pool for an ESP-WIFI-MESH? [closed]

I'm building a mesh with ESP32 dev kits (ESP32-DevKitC V4) using the ESP-IDF VS Code extension and the ip_internal_network example project. The code for the example, common project components, and the ...
diomed's user avatar
  • 51
3 votes
1 answer
327 views

How to change partition scheme with arduino-cli

I'm using arduino-cli to program an ESP32-S2. If I compile my sketch using the default partition scheme > arduino-cli compile -b esp32:esp32:esp32s2 sketch a lot of space is allocated for SPIFFS ...
larsb's user avatar
  • 75
3 votes
1 answer
945 views

How to configure I2S with ESP32 and MAX98357A to reproduce wav files?

I have configured I2S to reproduce files with an ESP32 and a MAX98357A from and SD card. The problem is that it reproduces the files way too fast, like they are sped up * 100. Here is my (simplified) ...
Joaquin's user avatar
  • 51
3 votes
1 answer
7k views

A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode. [upload] Error 2

I have seen so many people complain about this same error and they were given a multitude of answers to help with this error, but nothing so far has worked for me. Everything was working fine until I ...
Bajer's user avatar
  • 31
3 votes
1 answer
418 views

Automate capturing photograph on ESP32-CAM

I want to capture photographs from the ESP32 camera, but not doing it manually. Specifically, when a signal is sent from a sensor, I want ESP32 to understand that, and start taking photographs ...
LoukasPap's user avatar
  • 131
3 votes
1 answer
697 views

ESP send string to Arduino

I'm trying to send a string from an ESP32 to an Arduino. I'm using a level shifter, where the Uno is now the Mega (since I couldn't get the Uno to work). RX0 is now RX1, connected to UART2 of ESP32. /...
Adamelli's user avatar
3 votes
1 answer
867 views

Arduino IDE for ESP32: Compilation Error: Exist status 255

Problem: I have a ESP32 and I've been trying to flash it with the Arduino IDE, however it's been giving me Python error messages :/ when I'm trying C/C++ code to flash the Arduino. Question: How can I ...
3kstc's user avatar
  • 221
3 votes
1 answer
559 views

Upload to ESP32-C3 fails

I have built a custom circuit board using the ESP32-C3-MINI-1-H4 module (datasheet). Here is a schematic: I have the GND, Tx, and Rx lines hooked up to an Arduino Uno without the ATmega. The 3.3 V ...
jb0's user avatar
  • 131
3 votes
1 answer
2k views

ESP32 ADC <-> WiFi issue

I'm using the ESP32's ADC1 (not ADC2, which conflicts with WiFi functionality) to capture some analog data received at IO36 (an ADC1 port). As soon as I uncomment the WiFi.mode(WIFI_AP_STA) line (even ...
AKTanara's user avatar
  • 191
3 votes
1 answer
2k views

Connect ESP32 via MQTT

For a project I am working on, I need to connect my ESP32 board to another server via MQTT protocol. I am using the Mosquitto MQTT Broker and it is presently on my laptop. Following is the test code I ...
P_K's user avatar
  • 57
3 votes
1 answer
794 views

How to restart ESP32 on any exception?

While developing a lot of projects (In Arduino IDE) for ESP32 one common issue I am facing is termination of program execution on unhandled exceptions. There are various exception I get. For example: ...
Androing's user avatar
3 votes
1 answer
5k views

I2C communication between Arduino Uno and Nodemcu32-s (ESP32)

I want to send data between an ESP-32 (NODEMCU-32S) and an Arduino Uno but I haven't found any source on how to do that, so I tried this code: ESP-32 code: #include <Wire.h> void setup() { ...
Ahmed Moustafa's user avatar
3 votes
2 answers
4k views

AsyncWebServer giving wdt reset

I am using 3 Esp32 modules. One being master and other two being nodes. Nodes are connecting to the master's AP. Master is connected with GSM module to execute the web api. Master esp is having a ...
java bee's user avatar
3 votes
1 answer
7k views

WindowsError(31, 'A device attached to the system is not functioning.') in arduino

Having board esp32 devkit v1, to get started with arduino ide (installed recommended boards for esp32) I marked board asDOIT ESP32 DEVKIT V1 (as no other options as like ESP32 DEVKIT V1 ) so upload ...
Muhammad Umer's user avatar
3 votes
1 answer
7k views

Speed controller for Ceiling Fan 220V AC 100W

I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W. Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? If not, kindly ...
Hira's user avatar
  • 41
3 votes
0 answers
291 views

How can I connect my ESP32-WROOM-32 to Arduino IDE?

I'm using this 'ESP32-WROOM-32' but I can't find the correct board in the IDE. I see the esp32-wroom-DA (edit, i took it to the store where i bought it and it worked fine with theirs. they were on ...
I-like-turtles's user avatar
3 votes
0 answers
546 views

Programming ESP32-S3 WROOM with a flexy pin board

I am using ESP32-S3-WROOM-1-N8 module https://www.digikey.de/de/products/detail/espressif-systems/ESP32-S3-WROOM-1-N8/15200089 . I have compared pinout of all Wroom modules ESP32 ESP32-S3 as well as ...
Anil Maharjan's user avatar

1
2 3 4 5
18