Questions tagged [esp32]

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

184 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
35 views

Get deceleration (negative acceleration when apply brake force)

I want to build a device to measure deceleration force when a car brakes. I am using a MPU6050 for get data and I read from it acceleration on X,Y,Z axes in m/s2 and also it gives me gyro in degrees/...
2
votes
0answers
3k 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 ...
2
votes
0answers
234 views

Clock cycle count count for the same command is not equal in ESP32

I am using ESP32 Pico Kit with Arduino Ide. I want to measure operation cycle for a few commands. The code is so simple as below: void setup() { Serial.begin(9600); } void loop() { unsigned ...
2
votes
1answer
633 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 ...
2
votes
0answers
280 views

Reading data from SPI on ESP32-WROOM-32

I'm newbie with Arduino and need to do a short task: read data from SPI (sent by another microcontroller) and send to WiFi (by ESP32-WROOM-32). I can't understand how to initialize and read data from ...
2
votes
0answers
648 views

HTTPS POST method fails in esp32

I was trying to connect with server but, I was unable to post the data. I have added the SSL key to connect with server that is happening but HTTPS POST is not. I tried the same method with http, I am ...
2
votes
0answers
715 views

LED strip with 12v power connected to ESP32

I'm looking at controlling a ws2811 strip and I have seen mention that you should share the same ground between the strip and the controller, which does make sense. I do not currently have a proper ...
2
votes
0answers
580 views

Use ESP32 as a secure socket

I have a board without network connection, then I bought an SP-WROOM-32 dev kit because it has network connection ability. Is there any way that I use esp32 as a secure socket (just like calling ...
2
votes
0answers
6k views

How do I interpret the esp8266 “boot mode” message?

Everytime the chips resets, we get the reason and the next boot mode. ets Jan 8 2013,rst cause:XXX, boot mode:(YYY,ZZZ) For XXX we can check the meaning here. For YYY and ZZZ I am not sure but I ...
2
votes
0answers
8k views

ESP32 in Arduino-IDE with FS.h and SPIFFS

I'm working on a webserver on ESP32 in Arduino IDE and would like to load an html-file. Tried to use SPIFFS.open from the library FS.h from github. Errormessage says SPIFFS was not declared in this ...
1
vote
2answers
26 views

ESP32 softAP SSID not const

I would like to be able to set the wifi SSID in the setup(), so I can customize it based on the MAC address or something similar. (avoiding to ESP's with the same code having the same SSID). However ...
1
vote
0answers
14 views

Adafruit IO + Esp-Now

So i am using adafruit io and esp-now on an esp32 to recieve voice commands from the internet and sensor values from another esp32. Independently, they both work quite fast but together the esp-now ...
1
vote
0answers
32 views

Designing Class Based Code on ESP32-8266

I have some questions about modular embedded systems codes and its usage. I am building an IoT Systems with esp32 now. To learn professional approaches for embedded systems, I have split codes to ...
1
vote
0answers
30 views

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 I am getting this error in my esp32 devkit v1 How to solve it? I am using arduino IDE for programming ...
1
vote
0answers
10 views

ESP32 BLE Send Receive Example

In my past projects I created tcp server-client architecture to communicate mobil apps. For instance, I created an AP on ESP8266, mobile phone connects to AP send some data then esp8266 send response ...
1
vote
1answer
24 views

ESP32 nodemcu serialbt sending data

I'm currently trying to send data from esp32 to my android app that I made. The sensor readings are showing in the serial monitor, however, what's showing on my app are either @ or &. Please help ...
1
vote
0answers
21 views

ESP32 SPI communication with MCP3903 not working

I am trying to read out the Microchip MCP3903 six channel ADC using an ESP32 via SPI communication. The MCP3903 is powered with 5V and 3,3V and is connected with an external 3,57 MHz crystal. The ...
1
vote
1answer
77 views

Counting to 1000 In Both cores execution time problem in esp32?

I am trying to count to 1000 with single core and dual core with esp32 but the output(run time) dose not make sense, the time which takes a single core should be doubled compared to dual core in ...
1
vote
1answer
247 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 ...
1
vote
0answers
586 views

Using ESP32 to measure vbat

I'm using ESP32 to read an analog value of a liPo battery (3.7v-4.2v). Since ESP32 DAC's is 3.3v I'm using a voltage divider ( 2x10K resistors ), to split bat's voltage into ESP's GPIO36. So far ...
1
vote
0answers
46 views

Lolin D32 Pro board with OLED SH1106

Just starting a project and wanting to connect Lolin D32 Pro board with OLED SH1106. The screeen works with my Arduino Nano no problem however I can't seem to get it working on the D32 Pro. I tried ...
1
vote
0answers
272 views

ESP32: Share I2C bus among multiple freeRTOS tasks - do I have to expect synchronization issues?

I recently inherited some firmware with weird problems in regards to the duration of reading sensor values. The board is based on the ESP32 Wrover MCU and has multiple sensors connected via the I2C ...
1
vote
0answers
176 views

ESP32 HCI command for setting BLE TX Power

Does anyone know if there's an HCI command for setting the TX and the advertising power for BLE on an ESP32? I have a Nano 33 IoT and a MKR 1010, and it has its power set annoyingly low for ...
1
vote
0answers
805 views

pulseIn on ESP32 return 0 regularly

I'm using pulseIn on an ESP32 for measuring a frequency between 500 Hz and 10 KHz. I measure both the HIGH and the LOW time, as all simple examples suggest. 95% of the time the result is correct, but ...
1
vote
0answers
1k views

Using ESP32-CAM (with ov2640 camera image sensor) to send image via USB

I was trying to obtain image from ESP32-CAM (with ov2640 camera image sensor). I obtained the image through camera web server by connecting the ESP32-CAM and PC to same wifi network. A USB to TTL ...
1
vote
0answers
92 views

How to count and list number of all UDP clients to WiFi softAP or event if new available?

I have simple ESP32 app (server, soft access point): WiFiUDP Udp; .... void setup() { WiFi.softAP(ssid, password, WiFi_chennel); Udp.begin(portServer); } .... void loop() { .... for(byte i=0;i<...
1
vote
0answers
173 views

Cannot import library file from ESP32 sdk library in “Eclipse C++ IDE for Arduino” project

I have successfully installed "Eclipse C++ IDE for Arduino" and the Plugin works fine. Now I installed a custom board (ESP32) by adding package_index.json URL in windows>prefrences>C/C++>Arduino. The ...
1
vote
0answers
285 views

esp32 and the esp32-cam (agoal)

Is it considered possible to use the esp32 code on an esp32 cam board? Do they use the same hardware? I am having difficulty using this sketch https://gist.github.com/wybiral/...
1
vote
0answers
210 views

Can I use the NodeMCU ESP12 5v pin and control it with a relay?

This question might be a little esoteric, but I cannot find any answer for it. Situation: I want to have more than 8 Analog sensors on a NodeMCU ESP32. Unfortunately due to SPECTACULARLY poor design ...
1
vote
0answers
56 views

SPI - different implementation / timing

I'm a little bit confused. I'm running the same code on a ESP32 (Adafruit Huzzah32) and an Arduino (SparkFun Pro Micro). It works on the ESP32 but not on the Arduino. Are there different API ...
1
vote
0answers
112 views

How to read voltage value from arduino to esp32

I am learning Arduino(uno)-ESP32 basics for a hobby project. In Arduino sketch, it's writing some random value(mimicking a sensor) to Arduino analog pin 9. const int analogInPin = A0; // NOT ...
1
vote
0answers
790 views

HC-05 Bluetooth fails AT+LINK

I'm trying to get a HC-05 connected as master to a Bluetooth ELM327 OBD scanner. The HC-05 is accepting AT commands, no problem. This is the sequence I use: AT+RMAAD (Clear any paired devices) AT+...
1
vote
0answers
260 views

OTA updating the ESP32 from a separate server

I have an ESP32 project which I'd like to be able to update OTA. The trouble is that it is in deep sleep for approximately 15 minutes before waking up, connecting to WiFi sending an MQTT packet then ...
1
vote
0answers
168 views

Low voltage security

I'm building a circuit with a GPS sensor and an esp32. My input voltage is designed to be 5V but I experienced some issues where people put lower charger in input (<4V). As a result my esp32 will ...
1
vote
0answers
2k views

Send file from ESP to server via FTP

I've a code which records sound to SD, then starts an FTP connection for a limited time. I want to make an automatic system which records then sends the sound file continuously. Now I'm recording ...
1
vote
0answers
120 views

Software serial and port expanders

On my ESP32 project I've run out of pins and have incorporated using a MCP23017 port expander. I need to run multiple slow serial connections (9600 baud) thru the port expander. Are there any ...
1
vote
0answers
69 views

Reducing json upload time

I'm using an ESP32 WROOM board to capture some data in the field and send it over using arduino json. However, the complete process of sending and receiving confirmation takes up around 12 seconds and ...
1
vote
0answers
1k views

Arduino HTTP post image to external server

I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
1
vote
0answers
952 views

Esp32 sending a wav file to API via POST

I'm trying to send a .wav file to an API with an ESP32 using a HTTP Post request with a multipart/Form-data content type. I can already send the API Key as it is a plain key and get a return from the ...
1
vote
0answers
188 views

Adafruit Feather ESP32 - GPIO power drain during deep sleep

I have an Adafruit Feather ESP32 whose GPIOs I use to control an external device. I don't want the device to drain the power of the ESP32 sometimes, so I set the GPIOs to INPUT. When I go into deep ...
1
vote
0answers
107 views

Is NVS storage reset during an OTA update? (ESP32)

I plan to save some settings in the NVS repository of my ESP32, which will also be implemented OTA update. The question arose, will the data in the NVS storage be reset when the OTA update is ...
1
vote
0answers
46 views

Wire doesn't work between Uno & ESP32S & ESP8266

I think i've reached my limit. I can't get Wire to work between an Uno or ESP8266 or ESP32S. On the Uno I had them connected like SDA via Uno SDA -> ESP32 GPIO21 SCL via Uno SCL -> ESP32 GPIO22. I ...
1
vote
0answers
604 views

Passing non-static member function using bind

I'm using the GxEPD2 library to communicate with an E-Paper display. I now wanted to use the drawPaged method of this library with an object display. I also have written my own class from which I ...
1
vote
0answers
1k views

Configuring I2S with ESP32 and WM8978

I'm trying to get I2S audio working with an ESP32 and WM8978 codec, using the TTGO TAudio dev board. Currently, I'm trying to implement the I2S example code provided by Espressif (link below) using ...
1
vote
1answer
420 views

Read Multiple Sensors Data from a text file located in SD Card in Arduino/ESP32

I am working on a small home project 'glucose meter' via non invasive techniques. I am using four sensors like RGB color sensor, two multi-wavelength photo diodes (A & B) and temperature sensor (K-...
1
vote
0answers
182 views

256 (8x32) LED Matrix via ESP32-Pico-Kit_V4 possible? (Daft Punk Helmet)

I am currently planning on a Daft Punk Helmet. But the available kits are terribly expensive. I am looking forward to using a 8x32 LED-Matrix(with 256 separate 5mm LEDs) and having a few different ...
0
votes
0answers
12 views

Problem with a class? SHT21 library

I am using ESP32 and SHT21 temp+humidity sensor but while compiling the code I get the following error: variable "SHT21" is not a type name I see an SHT21 class defined in the SHT21.cpp ...
0
votes
0answers
13 views

Two sensors on same ESP-32 board

Need some help on the project I'm currently developing. I have 3 YF-B2 sensors that I need to connect to the same ESP-32 board and read the data from the sensors and send it via MQTT. I had it working ...
0
votes
1answer
11 views

ESP32 send UDP packets from both cores

Im using AsyncUDP in an ESP32 project, where I initialize AsyncUDP udpSender and call udpSender.write(sendbuffer, sendbuffer_size) from both cores, with different buffers on each core. One core is ...
0
votes
0answers
9 views

Get client information on BLE

So I'm working on a personal project using bluetooth abilities to start a BLE server and want to automatically retrieve a client's information after it's connected: ID so I can keep track of clients, ...