3,338 questions
-2
votes
0
answers
27
views
Cannot flash/load MicroPython on ESP32S NodeMCU because of continuous garbage output on Serial port [closed]
I'm having a problem with connecting to my ESP32S dev board using Thonny. When I connect to the board using the board's USB-to-serial port, I get a whole lot of rubbish output (as shown in the below ...
0
votes
0
answers
76
views
ESP32 photodiode - LM358 - ADS1115 setup problems
I am having troubles with making this setup work consistently. Sometimes it gives a final reading of negative even though it theoretically should be positive. The values should read about 0.6 - 0.8 ...
-1
votes
0
answers
43
views
Bioimped module fails frequency sweep
Hi im using the AD5933 module to gather simple impedance, im using it on the skin. My code works almost perfectly initially when i had a pre-calibrated it through code. However, i added relays between ...
Best practices
0
votes
2
replies
93
views
How can I update a canvas drawing with data fed in continuously?
I want to preface this by saying I am a complete amateur to web development of any kind and this is my first foray into web development of any kind, so please forgive any dumb questions or assumptions ...
0
votes
1
answer
126
views
Corrupt object variables in C++ for ESP32 [duplicate]
I am creating a project for an ESP32. I'm quite new to ESP and C++ coding. I use PlatformIO inside VSCode.
It's a robot that will be driving around. It has Ultrasonic sensors to detect any obstacles. ...
Advice
0
votes
2
replies
46
views
How to change package library location on arduino ide
im trying to download the esp32 library on arduino ide for my laptop but is max storage, i have a 32gb that i store apps on it, how to change the esp32 package to the 32gb storage (i installed the ...
0
votes
0
answers
41
views
ESP32 Music using ESP32 bluetooth and PM8406 not working
I used this code, but speaker just playing some dont understandble sounds
I connected:
ESP32 → pin 26 → LIN PAM8406
GND ESP → GND PAM8406
PAM8406 L+ L- → speaker
PAM8406 VCC GND → POWER SUPPLY 5V ...
Tooling
0
votes
1
replies
54
views
Using 'make' instead of ninja with ESP32 IDF?
I am aware that the default build system of the IDF is Ninja, but out of curiosity, is it supposed be possible to be built when I have cmake generate Makefiles for traditional make, 'out of the box' ? ...
0
votes
0
answers
57
views
Flutter: WebSocketChannelException / HttpException when connecting to ESP32 AP on Android (Ping works, connection fails)
I am developing a Flutter app to communicate with an ESP32 acting as an Access Point (AP). The ESP32 has a static IP 192.168.1.1 and is running an HTTP server and a WebSocket server on port 80.
The ...
3
votes
1
answer
226
views
ESP32 device produces Guru Meditation Error (core panic)
I have a small microprocessor device called an M5Dial from M5Stack. It features a small 240px x 240px screen, though the visible area is circular, not square. It uses the ESP32S3 architecture.
I am ...
Best practices
0
votes
5
replies
146
views
Is this state machine designed correctly for a thermostat
Look at the following code for a smart thermostat state machine and tell me which coding practices have not been followed in the design of this state machine and what can be its fallouts?
What should ...
4
votes
0
answers
154
views
Instruction access fault on esp32-p4 boot
Im trying to make a smart clock with eez studio.
My board ist esp32p4 smart 86 box.
I have this simple code with lvgl adapter:
#include <esp_lcd_panel_dev.h>
#include <esp_lcd_panel_commands....
0
votes
0
answers
76
views
ESP32-S3 (Espressif IDE / esp-gdb) stepping enters code with "no source available"; GDB skip rules do not work
I am debugging an ESP32-S3 project using Espressif IDE (Eclipse) + ESP-IDF. I can attach, halt, set breakpoints, and disassemble, but stepping is painful because the debugger always enters functions ...
1
vote
0
answers
85
views
Issue initializing AXS15231B LCD via QSPI on ESP32-S3 with ESP-IDF v5.5.2
I am trying to initialize an AXS15231B display (model JC3248W535EN) connected via QSPI on an ESP32-S3 using ESP-IDF v5.5.2.
The backlight turns on correctly, but the display does not show anything. I ...
0
votes
1
answer
120
views
ESP32-C3 mini + wifi + ArduinoJson + GxEPD2 - weird data output
I am trying to build my own ESL to display item data on it. Got the Esp32-c3 working perfectly with a Weact 2.9 inch epaper display BUT I want to get the data out of a mssql database (data is being ...
Advice
0
votes
2
replies
61
views
Performing OTA on ESP32 via Google Sheets
I've got an ESP32 devkit 1 board connected to the wifi, reading data from a google sheet cell 1:1 every 10 minutes.
This gives a crude form of remote control, allowing to send data to the device ...
1
vote
1
answer
122
views
ESP32S3 Timer with IRQ, program flow control with WDT activated (arduino)
Trying to control my program time flow with a IRQ, all supervised from a WDT (watchdog) set at 1 min, if program doesn't reset the WDT, system resets.
After boot (NVS and FS data fetching), a TIMER is ...
Best practices
0
votes
1
replies
81
views
How to prevent an SD card from blocking the SPI bus
I am writing a system for esp32 with esp-idf that must communicate with an ADC and an SD card over the same SPI bus. Ideally, the ADC reads would be consistently timed, so that if the SD card stalls ...
1
vote
1
answer
150
views
OBDII requests (standard SAE J1979)
I want to make a device that will process the car's telemetry data in real time. I am using ESP32 DevKitC v4 + TWAI + SN65HVD230. Connected and unsoldered everything correctly.
I wrote the code on ...
0
votes
0
answers
51
views
Changing the frequency in VTX akk alpha via ESP32?
Maybe someone has a code example or knows how to switch the frequency on akk alpha via esp32. I currently have VTX akk alpha 25w.
I have already tried all possible options, but I got to the point that ...
Best practices
1
vote
0
replies
90
views
What is best solution to combine ESP32 & TUYA Cloud?
It is almost a week that I'm trying to find a ready to use cloud solution for my IoT projects which mostly are based on ESP32 hardware. My Ideal is that I develop the embedded system with Arduino ...
Advice
0
votes
3
replies
113
views
Arduino official website- Internal server error Error code 500
I'm facing Internal server error Error code 500 while running the arduino IDE or downloading any library.
Is it my system error or some error on the official website server.
Best practices
1
vote
3
replies
150
views
How to deal with an intense CPU consuming task triggering watchdog?
I am using esp-tflite-micro to make some inferences, but it is taking too much time to finish a single inference; enough to trigger the watchdog of the idle tasks.
I know I may increase the watchdog ...
0
votes
0
answers
91
views
ESP32 code crashes - gets data from an ADI using HTTPClient.h, parses it with ArduinoJson, displays it on P10 with DMD32. Can't work out the crash
I'm a bit stuck as I've written some code for an ESP32 which is supposed to do two things:
Retrieve some JSON from an HTTP source, and parse it with ArduinoJSON - this works in isolation;
Display ...
0
votes
0
answers
70
views
ESP32's crashes the if the SSID of the WiFi access point contains a ' symbol
ESP-IDF 5.3.4, No Arduino, Win10.
I've loaded an official "station" example which demonstrates how to connect ESP32 to a home wifi access point. Made only 2 changes: .ssid and .password in ...
-4
votes
1
answer
556
views
Serial USB communication on ESP32-S3 as host [closed]
I have an ESP32-S3-N16R8 devkit board with two USB ports and I have a device that communicates via Serial USB. I want to read serial data from ESP32 board and process it. So the ESP32 board should act ...
2
votes
1
answer
311
views
How can I use the PN532 with an ESP32-Wroom-32?
The ESP32 cant find the NFC module (Pn532). I used the I2C and SPI without any promising results.
I used the Example code and edited the Pins
Every time I only Get this result: Serial.print("Didn'...
0
votes
0
answers
126
views
OTAA join fails for ESP32 node using RadioLib (IN865)
I’m trying to connect an ESP32 + SX1262 node to my ChirpStack 1.1 server in IN865 region using RadioLib (LoRaWAN 1.1 OTAA), but OTAA fails with error -1116 (RADIOLIB_ERR_NO_JOIN_ACCEPT).
Setup
ESP32 ...
1
vote
1
answer
201
views
esp32 s3 creating dmx singal using rmt, timing is way off
I'm using an esp32 s3 (dual core) and I'd like to transmit DMX signals. The thing is that I have set the resolution as such that each tick is 4us (should be) but what I am getting is bits with way ...
0
votes
1
answer
260
views
code completion of Espressif plugin in VsCode
Is it possible that VSCode code completion only offers those elements in the list that I have already used, but does not read the header files of glibc and the given environment? I use the Espressif ...
-1
votes
1
answer
397
views
Waveshare ESP32-S3 7" LCD — SD Card + LVGL = Broken
I'm using the Waveshare ESP32-S3 7" LCD with GT911 touch and a built-in SPI SD card. The kit has fixed wiring for the display, touch, and SD, so I can't change the pin mapping.
Here's the issue:
...
0
votes
0
answers
97
views
ESP32 - how to switch from AP to STA mode, if configured WiFi becomes available
While serving a web interface on ESP32 controllers, I find it useful to fall back providing an on-device AP, if the configured WiFi AP is not available after some timeout.
This way the device can ...
1
vote
0
answers
81
views
Can't send data through UDP via Wi-Fi, Returning 0 Bytes sent
I want to send data to esp32 via WiFi using UDP, but it'S returning 0 bytes (as 0 bytes sent)
For Esp32 I tried with another device (different mobile app), and it's working fine.(Esp32 is OK)
Here is ...
0
votes
0
answers
73
views
Cannot Connect ESP32 to Google Cloud Run function
I have a google cloud run function that I need to connect to using my ESP32 so that I can obtain a token. But unfortunately, it always gives me connection refused error. I have added the google root ...
0
votes
1
answer
127
views
In ESP-IDF, why does changing interrupt type not affect button task execution in my code?
I am still quite new to microcontrollers and ESP-IDF so I am not familiar with the ins and outs of the framework. I wrote a fairly standard code for logging button press and release:
#include <...
1
vote
0
answers
171
views
ESP32 with WiFiManager does not reconnect properly after first connection
I’m working on an ESP32 project that uses WiFiManager (https://github.com/tzapu/WiFiManager).
The first connection works fine: when there are no saved credentials, the ESP32 starts an Access Point, I ...
-1
votes
1
answer
231
views
Compiled 16-bit literals use 32 bits on ESP32
I implemented a decision tree with if-else statements involving unsigned 16-bit variables (features) and constants (thresholds), as shown below:
static inline int16_6 tree(const uint16_t *input) {
...
0
votes
0
answers
104
views
ESP32 cannot connect to Arduino Uno via HC-05 Bluetooth module
I'm trying to connect an ESP32 (as Bluetooth master) to an Arduino Uno that has an HC-05 Bluetooth module attached. My goal is to send serial data between the ESP32 and the Uno.
Setup:
Arduino Uno ...
0
votes
0
answers
123
views
ESP32 SD card write error: errno 22 (Invalid argument) when using fopen
I am trying to write data to an SD card on an ESP32-WROOM. My function for file creation is:
bool create_file(const char *file_path, const char *data)
{
if (!file_path || !data) {
printf(&...
1
vote
0
answers
60
views
esp_wifi in module - borrow checker issue [duplicate]
It seems there was some confusion on what I was asking. The actual question is:
What can I do to build a WifiController and return it from a function without needing to create the init_handle outside ...
1
vote
1
answer
125
views
How to prevent analog clock hands from leaving trails on TFT LCD with ESP32
I’m building an analog clock on an ESP32 Wrover Kit with a TFT LCD using the TFT_eSPI library. The clock displays the correct time using NTP, but I have a problem with the hands:
When the hands move, ...
0
votes
0
answers
163
views
ESP32S3 SPI can not address 2 devices
I am currently facing a problem that I run out of idea.
I have a waveshare ESP32-S3-Touch-LCD-2 (https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2) that features a display, SD cardslot and camera.
...
2
votes
0
answers
158
views
ESP32-C3 sketch immediately resets with TG1WDT_SYS_RST on minimal code
I am using an ESP32-C3 Dev Module on Windows 11 with Arduino IDE (ESP32 package 3.3.0). Minimal sketches, such as the following, immediately trigger a watchdog reset during startup:
void setup() {
...
0
votes
0
answers
134
views
How to get i2c_dev to coexist with direct usage of i2c drivers?
I am building a project that uses esp_lcd,and the TSL2591 component from the component library.
To my knowledge these are both well maintained and commonly used in the idf, and should be able to ...
0
votes
0
answers
59
views
How do I select the right NAFE13388 channel to read data to/from in c++ with the esp32s3 dev kit?
I am fairly new to programming so I have no idea if what I am doing is right here. This is the datasheet page 71 is most helpful I think, or 71-75. Which I have been following, as well as some ...
1
vote
0
answers
207
views
Very slow startup of ESP-IDF monitor from VSCode after an update
Win10, Latest VSCode.
For quite some time, I've been on ESP-IDF 5.0.2 and VSCode version from 2023. 5.0.2 version was installed manually with an offline installer from Espressif. Used it to program ...
0
votes
2
answers
132
views
How to decouple a web server & MQTT on an ESP32 [closed]
I've got an ESP32-POE running a web server as well as publishing MQTT to a broker.
I want to publish MQTT every 60s but sticking that delay into void loop(void){} means server.handleClient(); is also ...
0
votes
2
answers
146
views
ESP32 with MQTT stops working after over 100 days [closed]
I built a custom PCB with an ESP32-WROVER-IE-N8R8 to read a pressure difference in a filtration system. The data is then send via MQTT to a MQTT Broker (Mosquitto) on a Linux Server. This happens ...
0
votes
1
answer
290
views
Debugging Zephyr RTOS MCUmgr SMP on ESP32: stack overflow and illegal instruction in Bluetooth thread
My application using Zephyr RTOS v4.1.0 on ESP32-WROVER-IE and ESP32-S3-WROOM-1 to implement MCUmgr over Bluetooth (SMP transport) based on the smp_svr sample builds successfully, but flashing results ...
2
votes
0
answers
70
views
ESP32 TaskReadTelegram() often hangs and triggers watchdog
I recently built myself a ham radio repeater and used ESP32 for its control unit. I added Telegram control capabilities to get some status info and force some actions remotely. Using FreeRTOS made ...