Questions tagged [esp32]

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

193 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
30 views

ESP32 HTTP Server request interrupts Telnet session

I have an ESP32 application that uses a web server as a user interface. For auditing and debugging during development I use Serial; however, that is impractical in the installed system. So, I decided ...
2
votes
0answers
38 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
288 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/...
2
votes
0answers
264 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 ...
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
246 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
695 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
285 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
664 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
751 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
590 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
0answers
13 views

ESP32 preferences library: casting byte array back to struct

I'm new to both C and the Arduino framework and having difficulty fully understanding casts. Using this code as an example, I'm attempting to store a struct locally into flash. Code for two functions ...
1
vote
1answer
32 views

Esp32 not connect with WiFi

I'm trying to connect WiFi at home in my esp32 but in the serial monitor shows a looping connecting to WiFi but never connect. look this The link that I followed. To my application. I want to connect ...
1
vote
1answer
40 views

Signal names HiFi

i'm not sure if this is the right address, but maybe you know about it. I currently integrate bluetooth to my car's radio using a esp32. First i wanted to insert the signal at the d2b cd player, but ...
1
vote
0answers
26 views

Error compiling to ESP32 using Arduino: Operand 2 of 'l32r' has out of range value

I was trying to follow this tutorial and ran into a problem compiling on the Arduino IDE with an ESP32 board. https://eloquentarduino.github.io/2019/12/how-to-do-gesture-identification-on-arduino/ I ...
1
vote
0answers
18 views

U-Blox Neo M8N GNSS-GPS interface with ESP32-TTGO-T-CALL

I have tried contacting the manufacturers as well as many Google searches. I have tried many different libraries to get this GNSS-GPS working. Libraries I've Tried: Arduino_GPS ...
1
vote
0answers
15 views

Is it possible to use CCMP as cipher type on ESP32's softAP mode?

Currently I'm starting softAP mode on ESP32 with WPA2_PSK as auth type(as WPA3 is not supported for softAP). When I am trying to connect my iPhone to the softAP, iOS gives a warning that WiFi security ...
1
vote
0answers
26 views

Use Arduino Uno as 5V Power Source for Sensors Connected to ESP32 Microcontrollers

I am using an ESP32 WROVER B based microcontroller, which has 3.3V and 5V outputs. Due to poor soldering of the header and attempted removal of the solder (permanently damaged PCB etching electrical ...
1
vote
0answers
37 views

Esp32 heating slowly

I made a small little IoT device to control my light chains from my phone, I'm using a MOSFET to turn the power on or off, using an esp32 connected to the MOSFET, both esp32 and light chain is ...
1
vote
2answers
70 views

Why does controlling power with a transistor interfere with MHZ19B's serial communication?

I've been trying to turn off an MHZ19B (datasheet and teardown photos: revspace.nl/MH-Z19B). I've used an Arduino, NPN, PNP transistors and mosfets as well as the diagram below for connecting the ...
1
vote
0answers
21 views

Bluetooth no COM port connection? ESP32

I am experiencing issues sending serial data via bluetooth with my ESP32. When the device is plugged in, I am able to call bluetooth, and connect to PC and even obtain the serial data via the ...
1
vote
0answers
27 views

Esp 32 keeps disconnecting from com port

I was trying to upload a blinking coding that was in Arduino IDE but the Arduino IDE can not detect my Esp32 but when i press "EN" i manage to get connection but when i letgo the esp32 ...
1
vote
0answers
20 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 ...
1
vote
0answers
24 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 ...
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
34 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
35 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
12 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
0answers
33 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
81 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
0answers
53 views

eps32 bad adc even with external adc (ADS1115)

Im trying to read an analog value with my esp32 and send it over wifi to another esp32. The wifi part works flawless, however when i try to read an analog value form the esp32 its not useable. It ...
1
vote
0answers
23 views

Esp32 NOW having truble exchanging data

So I'm trying to program a remote which is capable communicationg 2 ways. 1. I'm sending the motor throttle data to the receiver (esp32 to esp32) and send data back regarding its voltage and current. ...
1
vote
1answer
315 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
684 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
48 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
290 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
183 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
1answer
95 views

LED and MOTOR “ON” when A BLE DEVICE APPROACH ESP32 MICROCONTROLLER DFR0575

I have this code that is working perfectly but I want my device to start vibrating too (right now only the led is working) On a Wemos Battery Module I have simply connected the vibration motor on the ...
1
vote
0answers
874 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
99 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
176 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
216 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
116 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
823 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
172 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
56 views

Online Json Service for Esp32

I'm building a simple outdoor temp and humidity sensor with an esp32 I've aquired but I need a platform that I can submit the Json to so that then my laptop can make an http request to get the Json ...