Questions tagged [esp32]
A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.
937 questions
1
vote
1
answer
115
views
Where to store struct used for driver initialization
I'm doing a small project with ESP32 board. When initializing a driver, multiple structs are passed to initialization functions. I know that there are two ways to store such structs:
Storing structs ...
2
votes
1
answer
1k
views
Unable to upload sketch to Lolin S3 Pro (ESP32-S3)
I'm trying to upload a simple sketch to the new Wemos Lolin S3 Pro but unfortunately I can't seem to get it to work. I get the following error message:
Connecting......................................
5
votes
1
answer
1k
views
ESP32 SocketIO Client is not connecting to Flask-SocketIO Server
I'm trying to connect a ESP32 client using SocketIO with a Flask-SocketIO server and it's not getting connected.
The server uses SSL. The local server address is https://192.168.1.137:3000.Is the ...
1
vote
1
answer
1k
views
USB OTG and ESP32-S2
I have an ESP32-S2-DevKitM-1 which is supposed to able to act as USB HID device.
But whatever I try using either ESP-IDF or Arduino-IDE, I can't get any data from it.
I ran this esp-idf example.
I ...
0
votes
1
answer
94
views
Copy Uno Analog Input Configuration To ESP32
I started a project using the arduino uno and as a challenge I'm attempting to make it work with the esp32 but I've run into a roadblock. I may not describe it in proper terms, but I noticed that the ...
1
vote
1
answer
150
views
Pass typedef to a function
I'm working with a ESP32S3 that will manage 2 I2S ports, so for the cleanness of my code and also because i'll work multiple I2S installations - deinstallations, i want to move all the functions to ...
1
vote
0
answers
635
views
ESP32 - TWAI Timing Problems (cant receive messages below 5ms period)
I am currently trying to read an existing canbus (Car) with my ESP32 Rev3.
I got it to work fine with an external MCP2515 shield using a default library.
But when i connect an transceiver and trying ...
4
votes
2
answers
855
views
How to change partition scheme with arduino-cli?
I'm using arduino-cli to program an ESP32-S2. If I compile my sketch using the default partition scheme
> arduino-cli compile -b esp32:esp32:esp32s2 sketch
a lot of space is allocated for SPIFFS ...
2
votes
0
answers
630
views
Scrambled Text on SSD1306 Using ESP32-S2
SSD1306 OLED display connected to an ESP32-S2 over hardware I2C. I noticed that the text will sometimes get scrambled or lag during a screen update. When left running long enough, the screen will get ...
1
vote
1
answer
565
views
Can't mount microSD card with Freenove ESP32 WROVER Module and Sparfun MicroSD module
I'm using Freenove's ESP32 WROVER Module with their GPIO expansion board as shown in the image below:
I'm trying to integrate Sparkfun's microSD module in the circuit. Here's my sketch. However, I'm ...
1
vote
1
answer
2k
views
How to pass AT commands to LoRa from ESP32 UART?
I have connected a Reyax RYLR998 LoRa module to an ESP32's UART2, but AT commands passed through Hardware serial are not working.
#define RXD2 16
#define TXD2 17
void setup() {
Serial.begin(...
1
vote
1
answer
580
views
unable to program esp32cam via cloned esp32-cam-mb
I bought a couple of ESP32CAMs from aliexpress... althought the listing shows them with two buttons, I got the ESP32-CAM-MB boards with just the reset button...
I have my computer set up to dual boot ...
1
vote
0
answers
152
views
How to set OTA on ESP 32
I am currently using an evalkit Nina W106-00B board that incorporates an ESP32.
I am desperately trying to implement OTA (Over-The-Air) updates.
I started by modifying my partitions.csv file, which ...
1
vote
0
answers
155
views
ArduinoJson buffer corruption
I have a very wierd behavior using two different ArduinoJson (6.17.3) objects on my ESP32. I was not able to reproduce it in a small example but could track it down to some extent.
From MQTT I receive ...
1
vote
1
answer
98
views
Program work when used Delay() but same program doesn't work with millis()
I'm running a dc motor using esp32 and mosfet by taking readings of IR.
Program works fine when used delay() but same program doesn't work when uploaded using millis().
//This uses fixed delay()
// ...
1
vote
0
answers
322
views
What is the most simple sketch to confirm the DAC works for audio on a speaker with it's own amplifier for an ESP32?
I have a PC speaker with it's owner power supply (no amplifier needed). It just uses a standard AUX jack.
Most examples sketches use an amplifier like the MAX98357A. I have explored some libraries too,...
1
vote
1
answer
359
views
ARDUINO DC Motor Control over IR Sensor INPUT
I'm working on a school project where I'm building a small convyeor belt using an ARDUINO, DC motor and IR sensor for moving object detection so my color sensor can read color value.
I'm using single ...
1
vote
0
answers
305
views
Using library functions in timer ISR ESP32
I'm trying to use a library function in my ISR function that uses the internal timer to trigger every 1 ms. The chip that I'm using is an ESP32-C3-MINI. Here is my current code:
main.cpp
#include <...
3
votes
1
answer
2k
views
How to configure I2S with ESP32 and MAX98357A to reproduce wav files?
I have configured I2S to reproduce files with an ESP32 and a MAX98357A from and SD card. The problem is that it reproduces the files way too fast, like they are sped up * 100. Here is my (simplified) ...
0
votes
1
answer
200
views
FreeRTOS is not solving my problem to run tasks parallelly
I'm pretty new to esp32 and I'm trying to combine two codes in one, they are simple codes from projects that I found online, the first one uses PIR sensor to send message to telegram each time motion ...
1
vote
0
answers
137
views
Connect ESP32 cam to the Nodemcu motor shield
Is it possible to connect ESP32 cam to the Nodemcu motor shield? I already have a ESP8266 chip connected to the Nodemcu motor shield.
In get this error after connecting this ESP32 cam to the Nodemcu ...
1
vote
0
answers
536
views
ESP32-CAM not sending base64 string as HTTP post request
in my recent project, I'm trying to detect motion and capture an image using the esp32 cam module and send it to the server via HTTP.
Once the image is captured it is converted to a base64 string and ...
1
vote
0
answers
217
views
Pool pump man-in-the-middle SDA/SCL with ESP32
Hey all I have found some code on GitHub that works with my pool pump but it seems my model is a little newer than the one they used on on their GitHub. Most things seem to work but what doesn't is ...
2
votes
0
answers
437
views
Implementing very slow external drive using ESP32 and TinyUSB
I want to implement a simple external drive with ESP32-S3 that would act like a normal USB enabled flash drive when connected to a computer.
The actual storage of the data is done mechanically (for ...
0
votes
0
answers
74
views
channels on logic level shifter outputs high
so I have a logic level shifter which is TXS0108E ,I use it to shift the eps32 ouput volatge to 5v to be used with motor driver ,when I test it with multimeter , all the channels on the B side outputs ...
0
votes
1
answer
84
views
Same Bin file to similar ESP32 boards yields different results
Sorry for the confusing title. It is a bit hard to explain.
We have a remote developer who compiles his code into a bin file and sends it to all of us. He loads it onto his ESP32 boards and they work ...
1
vote
0
answers
428
views
How to query data from my ELM327 via BLE?
I have a HM-10 module connected to my Arduino Nano that I want to use to get data from a ELM327 OBDII.
I have been able to successfully connect to the ELM327 via:
AT
AT+RESET
AT+BAUD2
AT+ROLE1
AT+...
-1
votes
1
answer
432
views
If I reduce ADC sample rate, do I get an average over the time period?
I am working with a ESP32-C3 devkit. I am using the internal ADC on that chip to read from an analog microphone. I initialize the ADC like this:
adc_continuous_config_t dig_cfg = {
.sample_freq_hz ...
5
votes
0
answers
2k
views
How to set ESP32 RTC clock source
According to the manufacturer's link below, the default RTC timekeeping in the ESP32 is supposedly based on Internal 150 kHz RC oscillator.
Apparently, there is another option called Internal 8.5 MHz ...
0
votes
1
answer
95
views
Potential difference across the same wire [closed]
This issue may be weird, and I'm not sure if this is because of my wiring, but it would seem that I do not have the same voltage (or approximately the same voltage) between the VCC(3.3V) and the VCC ...
1
vote
1
answer
321
views
esp based smart light system over alexa malfunctioning
i made a home automation system using esp 32 and 8 channel relay but within 2 or 3 months my relay automatically turns off after sending the signal to it through esp32 but if i connect directly ...
0
votes
1
answer
438
views
Issues getting WPS working on ESP32 [closed]
I am trying to implement WPS on ESP32. A WT32-SC01 Plus to be exact.
It seems to working so far that I'll get the WPS connection but then it takes around 5 minutes [!!!] to get IP address from the ...
1
vote
1
answer
861
views
ESP32 - BLE does not connect/restart after light sleep
noob in arduino here.
I'm trying to connect via BLE after the ESP32 wakeups from light sleep. I have tried many different things, but none of them work. Everything works fine before the device sleeps ...
3
votes
1
answer
2k
views
How to use ESP_LOGx?
I can't get the logging to work on the ESP32.
Here is my example:
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#include <esp_log.h>
void setup() {
Serial.begin(115200);
ESP_LOGE("Test",...
1
vote
0
answers
298
views
Choosing a good RF library for transmissions
I am trying to send information from an Attiny85 to an ESP32, through RF.
I am using the most popular 433mhz transmitter on the market.
I know various existing libraries to send and receive data ...
-1
votes
1
answer
3k
views
ESP32 restart each minute with SW_CPU_RESET
running an ESP32 (ttgo), I get strange behavior. The unit restarts each minute, around 00 seconds.
I get
12:31:02.861 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
as reason.
I checked ...
1
vote
0
answers
124
views
Looking for FOTA to update firmware with wi-fi over internet (ESP32)
I have tried ArduinoOTA and AsyncElegantOTA and they work, but only when you are in the same wi-fi as ESP32.
I need to update ESP32 firmware "remotely" meaning when I'm not in the same local ...
3
votes
1
answer
18k
views
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode. [upload] Error 2
I have seen so many people complain about this same error and they were given a multitude of answers to help with this error, but nothing so far has worked for me.
Everything was working fine until I ...
1
vote
0
answers
271
views
Save sensors data on PC
I am working between an esp8266 and esp32 (I still have some doubt on what to use), and I would like to save sensors data permanently somewhere on my PC. I don't have a SD shield and I am new on this ...
1
vote
1
answer
2k
views
LVGL v8.2 on ESP32-S3 colour issue ILI9341 TFT LCD Arduino IDE
I have ILI9341 320x240px TFT LCD screen which I am using with ESP32-S3-wroom-1 module.
I have tested with TFT_eSPI and works fine, but when using LVGL, I am seeing weird artefacts on the edges.
I am ...
2
votes
0
answers
530
views
MAX30102 doesnt show data when it's interfacing with other sensors MLX90614 and MPU6050
The hardware I am using is ESP32 with MAX30102, MLX90614 and MPU6050 sensors and Using Blynk to show my data from the sensors. The issue I am facing is when I ran the code with all three sensors only ...
1
vote
1
answer
492
views
AA alkaline batteries on firebeetle?
I would like to power a dfrobot firebeetle 2 using 3 alkaline batteries. I tried connecting the battery pack to the GND and VCC, but the board does not seem to react. What pins should i connect the ...
1
vote
0
answers
6k
views
Baud rate above 115200 don't work for esp32
I have equipment transmitting data via uart with a baud rate of 1382400 and I would like to read this information through the Serial2 port of the ESP32.
I've tried to set this high baud rate using ...
2
votes
2
answers
4k
views
Need ESP32 to use 3 serial ports
I have a project that needs 3 serial ports on my ESP32 Dev 38-pin MCU. Two of them are for Nextion touch displays and the other is for a GPS.
The problem from what I understand is that the ESP32 has 3 ...
0
votes
1
answer
1k
views
integer overflow in expression of type 'int' results
i need to wake up my ESP every 60 min to read some data and post it to server, all process working fine when i use numbers of minute below 60 (converted in microsecond x 1000000) but when i use 60 min ...
1
vote
0
answers
122
views
Empty message parse using ArduinoJSON from aedes MQTT server
I'm using aedes as my custom MQTT broker and PubSubClient at the ESP32 side, together with the ArduinoJSON package.
My server test code:
import Aedes from "aedes";
import net from "net&...
2
votes
3
answers
3k
views
WiFiClient.cpp:517 flush(): fail on fd 48, errno: 11, "No more processes" what it mean?
Hello i wrote this sketch that upload a temperature reading of a DHT22 sensor to a phpMyAdmin server in localHost, the sketch work fine, the data been upload every 5 min to the server than ESP go t ...
1
vote
0
answers
468
views
Dump data check failed on a TinyPICO using ESP32
I use the TinyPICO microcontroller with ESP32 and I program it using the Arduino IDE. I recently got a new error on my Serial Monitor:
E (113) esp_core_dump_�^X.K�ɕ�dump data check failed:
Calculated ...
2
votes
0
answers
223
views
ESP & Servo not communicating well
I have a mystery I was unable to solve and would greatly appreciate it if anyone could shed some light on this.
I have a servo DSS-M15S 270 which I managed to run perfectly fine with Arduino Uno (code ...
2
votes
1
answer
1k
views
Esp32 fails to read MH-Z19C sensor
I'm trying to read CO2 data from a MH-Z19C sensor with an ESP32 board but I'm not getting anything. The error code from the library is 2 indicating a timeout (no data received).
Did I get the wiring ...