Questions tagged [esp32]
A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.
199
questions with no upvoted or accepted answers
3
votes
0answers
67 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 ...
3
votes
0answers
34 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 ...
2
votes
1answer
112 views
Changing address of MPU 9250 connected to ESP32
Can I change the I2C address of a device (MPU9250) connected to ESP 32 using int pin. I understand that in arduino board if we connect the int pin to A0 the default I2C address of MPU 9250 changes ...
2
votes
2answers
53 views
Connect 5V relay to ESP32 WROVER B board
I need to use a ESP32 WROVER B based MCU board with a standard (cheap) one-channel 5V relay (e.g. to switch on a mains-power appliance). Attempted removal of excess solder around the headers ...
2
votes
1answer
33 views
IMU (MPU9250) and Ticker on ESP32
I want to read the data from an IMU (MPU9250) periodically. To do that I use a ticker as shown in the following code:
#include <Ticker.h>
#include "MPU9250.h"
constexpr int ...
2
votes
0answers
64 views
Crash when disabling bluedroid
i have an ESP32 and i want to use deepsleep when it's not used. Before sending it to sleep i clean up everything, so disconnect, deinitialize and disable everything i build before. But i get a crash ...
2
votes
0answers
32 views
USB-C as power input and analog audio out
I currently use USB-C to charge an arduino with a battery. I also use a headphone jack to output audio.
I would like to combine those two and output the analog audio through USB-C (when it is not ...
2
votes
0answers
31 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 ...
2
votes
0answers
33 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 ...
2
votes
0answers
39 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
1answer
544 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 ...
2
votes
0answers
304 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
288 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
305 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
0answers
302 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
684 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
852 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
607 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
9k 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
31 views
How to connect a thermal printer to an ESP32?
I want to attach my GOOJPRT Thermal Printer (I believe model QR701, communication RS232) to my ESP32 but I cannot seem to get them working.
I tried all the Adafruit Thermal Printer library examples ...
1
vote
0answers
41 views
how to clear heap memory in esp32?
I am using Free RTOS on esp32 in my program.
However at some point of time when I execute xTaskCreate() it returns -1 , which error is could_not_allocate_required_memory. In my program, each time i ...
1
vote
0answers
47 views
ESP32 - Social distance detector - code
I recently got an ESP32-CAM for a project of mine. I was planning to attach an ultrasonic sensor to it, and when the ESP32 CAM detects a face, it would send a signal to the ultrasonic sensor to start ...
1
vote
0answers
22 views
ESP32 Compile Error - Face tracking Pan and tilt camera Arduino
I have been working on a code for a project of mine. I am making an face tracking Pan and tilt camera using the ESP32, but I am getting some errors that I do not know how to solve.
#include <...
1
vote
1answer
54 views
couldn't connect to MQTT broker via esp8266/32 and pub/sub client
I want to use hiveMQ public broker in my project that's the same broker as what available in PubSubClient esp8266 examples but when I change WiFi SSID and password in example and upload it I got this ...
1
vote
0answers
26 views
Trouble using 1.8" TFT with esp32 dev module and adafruit GTX lib
I am trying to set up an esp32 dev module with a 1.8" TFT display using the adafruit GTX ST7735 arduino library. So far i've not had anything other than a white screen. I know the screen itself ...
1
vote
0answers
35 views
Getting Trouble in multiple ST7789 SPI LCDs (without CS) with ESP32
I am developing a product in which i have to use 5 LCDs. The LCD i am using does not contain CS pin. SO i had to use MUX for muxing of complete SPI bus from one LCD to other.
But the issue i am facing ...
1
vote
0answers
22 views
ESPTOOL not recognizing ESP32-S2 chip for SPIFFs transfer
I have a spiff file that uploads fine using a regular esp32, but when I try on the esp32-32, with a fresh installation, I get:
esptool.py v3.0-dev
Serial port COM3
Connecting....
A fatal error ...
1
vote
0answers
21 views
How can I rewrite my Bluetooth Classic Arduino code into Bluetooth Low Energy Arduino code (and have everything working the same)
My original code for BT Classic
My Work in Progress BLE Code
I am trying to take all I did in BT Classic and have it working exacly the same in BLE but the Rssi keeps returning 0's in the BLE code and ...
1
vote
0answers
36 views
Error downloading package_esp32
I've been trying to install esp32 on Arduino IDE for days now but I keep getting 'error downloading package' message. I checked the over and over again, it's correct. I even tried installing it ...
1
vote
1answer
52 views
trying to connect to WiFi on ESP32 using credentials from SD card
Am trying to connect to Wi-Fi on an ESP32 using credentials i stored on an sd card, am able to read and parse the credential and printing it to the serial monitor shows that the ssid and password is ...
1
vote
0answers
133 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
42 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
0answers
39 views
legality of streaming data on 868 or 915 Mhz in EU/US
From what I read about duty cycles in the EU there is a 10% limitation (even less in some sub bands).
The modules I found have a max. rate of 300 kbps. Even if you max out the duty cycle that would ...
1
vote
1answer
49 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
31 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
81 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
54 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
94 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
42 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
31 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
18 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
36 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
50 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
18 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
42 views
Neo 6M + ESP32 unable to take a fix on battery but works fine with laptop USB
I am using Neo 6M GPS module with ESP32 and 2 X 3.5V(7 v in series) 18650 lithium ion battery stepped down to 5V using LM2596 buck converter.
Problem which I am facing is when I power ESP32 using 5V ...
1
vote
0answers
75 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
110 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 ...