650 questions
Best practices
0
votes
0
replies
33
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 ...
0
votes
0
answers
49
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 ...
-4
votes
1
answer
171
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 ...
1
vote
0
answers
92
views
PWM FSP code not working in ARDUINO UNO R4 WIFI
I decided to program a PWM using an ARDUINO UNO R4 WIFI. I tried to configure the RENESAS RA4M1 microcontroller with the FSP libraries through the Arduino IDE. What I want to do is generate a PWM and ...
1
vote
0
answers
104
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
vote
1
answer
102
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
143
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.
...
0
votes
2
answers
103
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
115
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
101
views
What does a "Guru Meditation Error: Core 1 panic'ed (StoreProhibited)" on an ESP32 mean?
I'm using an ESP32-based µC board (Olimex ESP32-SBC-FabGL) together with the Arduino 1.8.19 IDE. Now I'd like to access the GPIO and I²C pins on the CH32V003 on-board port expander. Using FabGL ad the ...
2
votes
1
answer
105
views
Does the Arduino library load its internal interrupts in IRAM on the ESP32
When I've developed for the ESP32, I've always included the linker attribute IRAM_ATTR when I've declared functions called from interrupts. This is based on https://docs.espressif.com/projects/esp-idf/...
0
votes
0
answers
82
views
can not set frequency or resolution for output pin
I try to setup a 10bit pwm with analogWriteResolution(LED_R, 10);
but I get the following output:
[esp32-hal-ledc.c:793] analogWriteResolution(): analogWrite resolution cant be set due to selected ...
0
votes
1
answer
68
views
Signed SPIFFS FS on ESP32C3 with secure boot
I have an ESP32C3 application based on platformio with secure boot enabled, i.e., after booting I read out the following information from the partition table:
Partition Name: nvs Type: 0x01 - Subtype:...
0
votes
2
answers
77
views
ESP32 and Fingerprint Sensor – Serial Monitor Shows Nothing
I'm trying to connect a fingerprint sensor (Adafruit type) to my ESP32 (DOIT ESP32 Devkit V1), but the Serial Monitor remains completely blank, even though I'm using Serial.begin(9600) and printing ...
0
votes
0
answers
90
views
Allow response 404 and serving compressed files without triggering the captive portal
ESP32, Arduino Framework, using these libraries:
lib_deps=
ESP32Async/AsyncTCP
ESP32Async/ESPAsyncWebServer
https://github.com/guestisp/ESP32AsyncDNSServer.git
here the relevant code:
#...
0
votes
1
answer
135
views
Multiple SPI ports usage on ESP32
I'm fighting with this code to make it work... The aim of it is to control a LoRa module from the hspi pins of the esp32 while the vspi pins will be used by an sd module (not provided in this code).
I ...
0
votes
1
answer
648
views
Resetting the Task Watchdog Timer on ESP32-CAM gives error task_wdt: esp_task_wdt_reset(705): task not found
I hope someone can help we with some errors I get from the ESP-IDF Watchdog Timer functionality.
What I'm trying to do
I'm trying to use an ESP32-CAM to post messages on the Mastodon social network.
...
0
votes
0
answers
209
views
LilyGO with a SIMCom A7670E suddenly returns errorcode 715 (Handshakefailed) when accessing an Azure Function App
My LilyGO TTGO T-SIM-A7670E R2 ESP32 - ESP32-WROVER sudddenly couldn't access my Azure Function App anymore.
It has been functioning non stop for more then 2 months. Without a problem.
And then, out ...
0
votes
0
answers
51
views
Mysterious delay on ESP32s
I have troubles with a mysterious delay on ESP32s. It makes my project work incorrectly.
For example, to exclude another reason, I show it on empty project.
This is the code:
loop() {
Serial.print(&...
0
votes
0
answers
89
views
How Can I Upgrade my VS Code IDE to Use the v 3.0 Arduino-ESP32 APIs?
I am trying to compile some C code for the ESP32-S3-DevKitC-1 using timers in VS Code. I am trying to use the new(?) hardware/timer code in version 3 of the Arduino ESP32 extension, but my VS Code ...
1
vote
1
answer
146
views
Need Help Getting a Hardware Timer on an ESP32 to Start and Stop and Then Restart on a Trigger
I am trying to get a hardware timer in an ESP32 to start and stop based on states in a FSM.I have read quite a few ESP32 Timer Howtos, and I am still not getting it to work.
The timer functions ...
0
votes
0
answers
121
views
Failed to connect to ESP32
I am trying to upload code to my ESP32, but I keep getting the following error:
A fatal error occurred: Failed to connect to ESP32: Download mode successfully detected, but getting no sync reply: The ...
2
votes
0
answers
64
views
How do I fix my brushless motor not reversing with my Arduino esp-32 nano?
I am coding an RC car in the Arduino IDE.
Here are the specs of what I use:
Arduino Nano esp-32
Wifi protocol: esp-now
Motor: AL-2835-10
The receiver and the sender are both the same Arduino and are ...
0
votes
1
answer
53
views
Same Arduino esp32 code doesn't work with ESP-IDF
I have a VFD display and I'm trying to control it via an esp32. The display manufacturer provided an official Arduino code that works well, but when I try to port this code to ESP-IDF I cannot make it ...
0
votes
0
answers
22
views
Some data is being skipped when writing to Arduino esp32 from Unity per frame
I'm currently getting an issue when sending data per frame, the last thing sent sometimes doesn't appear on the device. I have a feeling there might be something on the Arduino side of things that I ...
1
vote
1
answer
157
views
Button click event not fired
In the setup form of an ESP32 device the Update button works in one card only.
For the setup page jquery, ajax, bootstrap and arduino jsonformer libraries are used.
The dialog is mainly generated by ...
0
votes
1
answer
205
views
ESP32 Audio by Phil Schatzmann leads to Watchdog Reboot and other issues
like the title suggests, I am using an esp32 and want to output a mp3 file from an SD-card via the i2s-Amp MAX98357a.
To begin with, I was trying to get an example from the library running, but it ...
0
votes
0
answers
53
views
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). ESP32 using local Raspberry PI InfluxDB Database
I encounter this error whenever I try to connect to the InfluxDB Server Version 2.x that is locally hosted in my network. I've been looking for a solution but can't find any.
I use an ESP32 without ...
1
vote
0
answers
43
views
NittoBend Bendlab (ADS) 2-axis Sensor Code - ESP32 Feather Compatability
I am trying to initialize and use the NittoBend's 2-axis Bending sensor with the ESP32 Feather (coded in Arduino IDE).
I have the circuit setup correctly (GND to GND, VCC to 3.3V, nDRDY to GPIO 32, ...
0
votes
1
answer
95
views
Arduino C++ code won't compile because of valid #included JSON
I am writing a 'universal menu' for an ESP32 WROOM, with a Waveshare 240x240px round LCD and a rotary encoder. To ensure it is universal, I have externalised some JSON that describes the menu ...
2
votes
0
answers
96
views
ESP32-C3 Super Mini BLE: only the first defined characteristic of the service is visible
I'm using platform IO for my project. When I define my characteristics, only the first one defined and added to the service will be displayed by nRF. I did the tests by swapping the two features and ...
0
votes
1
answer
109
views
Error in BLE communication between ESP32 and Python
I am running a BLE server on an ESP32 which is sending the value of time periodically. This code is being run on Arduino IDE. On the other hand, I have a Python code running on my PC which needs to ...
0
votes
0
answers
65
views
Repeated calling WriteValue on BLERemoteCharacteristic with BLE hangs ESP32C3
I'm using the Espressif Arduino BLE library on an ESP32C3. The ESP32 acts as a central device and connects to a peripheral Raspberry PI running Linux. I am attempting to send a relatively large amount ...
0
votes
0
answers
114
views
Connection problem esp32 WROOM with ELRS PWM receiver
I have a problem with writing code for the ESP32 WROOM to process a signal from an ELRS PWM receiver and subsequently control two motors using a driver. The code compiles, but the system monitor shows ...
0
votes
0
answers
36
views
How to connect a XIA0_ESP32S2 seeed board to a mobile hotspot?
This is the code I have written to connect my Xiao Seeed ESP32-S3 board to a mobile hotspot
#include <WiFi.h>
const char* ssid = "rrrr";
const char* password = "rrrrrrrr";
...
0
votes
0
answers
89
views
How to make "pairing mode" (whitelist not working) with Arduino BLE and ESP32
I am trying to make a "pairing mode" with my ESP32 BLE server, where I want the previously paired device to be able to join whenever no devices are connected, but when the user presses a ...
0
votes
1
answer
251
views
Esp32-CAM camera streaming and websocket at the same time
I am trying to do a mini tank that is controlled by a webserver in my local WiFi (hosted by PC). I am fighting with one main problem - when camera stream is active websockets stops answering and after ...
0
votes
0
answers
290
views
ESP32 Webserver doesn't run Javascript file in HTML script tag
I am trying to use a pressure sensor on an ESP32 and then plot a live updating graph. The code I used worked perfectly when using my home network but when making the switch to creating my own network ...
1
vote
1
answer
161
views
Compilation error: unknown type name 'HardwareSerial'
I need to write a code to send data via UART. I wrote a test code on Arduino IDE in a .ino file and it worked perfectly. Now I trying to shift the code to a .c file. My code is as follows:
#include &...
2
votes
1
answer
599
views
esp32 with Arduino IDE not compiling
Got myself an esp32, compiled and flashed the first code with my laptop, everything worked fine. Tried to flash a different code on the same laptop, and it gave a pretty scary error, it doesn't want ...
1
vote
0
answers
345
views
Why does my Arduino IDE Serial Monitor output weird characters sometimes?
I’m working on an ESP32 project using the Arduino IDE, and occasionally, the Serial Monitor displays garbled characters instead of the expected output. The baud rate in the Serial Monitor is set to ...
1
vote
0
answers
40
views
Using NFC read and I2S audio output together causing issues in ESP32. Using them separately works fine. Libs: ESP32-audioI2S & Adafruit PN532
The wifi client returns no data when I add in print statements on the library.
The issue happens right after I add this line to the loop. success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, ...
-1
votes
1
answer
95
views
HTTP Get request does not work when ESP32 is in WIFI_AP_STA Mode
I am trying to get an ESP32 (sender) to send a http get Request to a second esp32(receiver) via WiFi. For that i want the sender to be in WIFI_AP_STA mode and connect to the receiver (AP-Mode) and ...
0
votes
0
answers
59
views
How to have Speed Control in an AC Fan using a GPIO AC Dimmer?
We are using a XIAO Seeed ESP32S3 board as a microcontroller. We have managed to make the fan run but it only runs in either 0 speed or 100% speed (the speed control is not working). The D2 Pin of the ...
0
votes
0
answers
173
views
Analog Reading Issue with MQ2 Sensor on ESP32 (Always 0)
I’m trying to use an MQ2 gas sensor with my ESP32, but I’m having some issues. I've already done the preheating process for the MQ2 sensor, but the analog reading from the sensor always shows 0 in the ...
0
votes
0
answers
61
views
Trying to connected logitech g27 with an ESP32-S3
i am trying to connect my logitech to g27 and configure it and read values from it but im have trouble doing so ,
i setup my esp32-s3 using platformIO espidf and the board be esp32OTG , tried the ...
0
votes
1
answer
96
views
I'm trying to use SPI and LoRa and when I initialize the SPI (with custom pins) I get a crash
I am using an ESP32-WROOM-32E with 2 MB PSRAM. If I comment out the begin of the vspi, the code will not crash. (Any help would really be appreciated!)
vspi = new SPIClass(VSPI);
vspi->setHwCs(...
0
votes
0
answers
127
views
LEDC PWM in RISC-V assembly on ESP32-C3 using ESP-IDF
I've started a personal project. The idea is to output PWM on pin 8 (GPIO8) of a ESP32-C3 using LEDC peripheral on an ESP32-C3 using assembly language (RISC-V) with ESP-IDF. I've started by ...
0
votes
0
answers
109
views
WebServer vs esp_http_server performance
I'm trying to make a small web server for my ESP32 using the Arduino environment. I would like to switch from Arduino's WebServer to ESP-IDF's esp_http_server because it has useful features like ...
0
votes
0
answers
31
views
integrating IMU with a 3 wheel omni drive
I am trying to integrate an imu with my 3 wheel omni drive. Individually the imu yaw correction part works and individually the drive movement part works but for some reason which I am not able to ...