Questions tagged [esp32]
A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.
938 questions
2
votes
3
answers
2k
views
Why does Serial.write() work but Serial.print() doesn't?
I am testing my GPS module with an ESP32 using the Arduino IDE. I'm asking because I usually don't fully understand the difference between Serial.write() and Serial.print().
This code is working ...
0
votes
0
answers
39
views
ESP32C6 + PN532 NFC Reader (HW-147C) SPI Communication Not Working - "Didn't find PN53x board"
I'm trying to get an NFC reader (PN532 module, HW-147C model) working with my ESP32C6 using SPI. I tried using multiple libraries (seeed-studio, Adafruit, and some on github, but nothing worked).
This ...
-1
votes
1
answer
432
views
Problem with ESP32 bluetooth [closed]
I am trying to connect ESP32 via bluetooth classic to my PC to transfer some data from a sensor.
As a first step, I am simply trying to send some random data over bluetooth serial. The code is at ...
2
votes
1
answer
860
views
Converting ESP32 SPI code to Arduino for MAX6921 IV-18 driver board
I purchased a IV-18 VFD tube driver module, which came with some example code for an ESP32 board. The driver module has a 20 output MAX6921 serial chip to drive the vacuum tube. I want to use this ...
1
vote
1
answer
62
views
Missing data when communicating over UART
So I am working on an Arduino project and have trouble communicating over UART.
I have a SIM7600G-H 4G Module from Waveshare and hooked it up to an Arduino Nano ESP32. The connections are as follows:
...
2
votes
1
answer
4k
views
Impossible to install the esp_camera library
I cannot install the esp_camera library. When I try to add the .zip, I get "does not contain a valid library.
Everything about this ESP-32 Cam seems to rely on that library, and I can't find a ...
1
vote
1
answer
164
views
AT command validation does not appear on the serial monitor
I can't validate an AT command. Would anyone have any suggestions as to what I might be doing wrong? It should be printing "Sending successful! or "Sending failed!", but it doesn't show ...
0
votes
2
answers
515
views
Is std::string (and ephemeral memory allocation in general) safe to use for ESP32 Arduino?
I know that with 8-bit AVR Arduinos, std::string is widely regarded as fundamentally unsafe due to problems with heap-fragmentation (partly due to limited ram, and partly because the WAY the ...
1
vote
1
answer
253
views
PubSubClient hanging on ESP32C3
I may have done some things incorrectly here, but this I what I have for publishing image that I read from serial camera to the MQTT broker:
void capturePicture() {
if (!cam.takePicture())
...
3
votes
1
answer
333
views
Common Ground Between Arduino and ESP32 - Can I Re-use the ESP32 GND Pin for a Potential Divider
I am trying to connect an ESP32 to an Arduino Mega via Serial Communication using the UART 2 ports on both microcontroller boards.
There needs to be a common ground between the ESP32 and Arduino. ...
1
vote
1
answer
155
views
ESP32-S3 Does not read BME680 Data
I build a PCB using ESP32-S3-WROOM-1-N16R2 Controller. I programmed a BME680 sensor with this MCU. My pinouts are,
BME_SCK 38
BME_MISO 19
BME_MOSI 15
BME_CS 5
This is my Arduino code,
#include <...
1
vote
1
answer
2k
views
Timer's interrupt is not working in ESP32S2 board
C:\Users\Admin\AppData\Local\Temp\.arduinoIDE-unsaved2024610-7740-sfbutd.e9d77\sketch_jul10a\sketch_jul10a.ino: In function 'void setup()':
C:\Users\Admin\AppData\Local\Temp\.arduinoIDE-unsaved2024610-...
2
votes
1
answer
234
views
ESP32 webserver with a loaded page fails to update data in elements after sending an Json file, the Json data is printed instead of the loaded page
I have a ESP32 with a web server. In the page where I show the sensor readings and the state of the system, right now the readings are showing themselves well. The problem comes when I want to show ...
1
vote
1
answer
218
views
Using WiFiServer in blocking mode
I am learning ESP32 network programming and I started by writing a simple telnet server. It uses a WiFiServer object to listen on port 23 and just log anything it receives to the serial monitor.
...
1
vote
1
answer
493
views
ESP32-CAM infinite boot loop
I am currently using an ESP32-CAM with an OV5460 camera, and I am interfacing it with my computer using an Arduino Nano. I am trying to run a camera web server using the Arduino example code. I have ...
4
votes
2
answers
851
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 ...
0
votes
1
answer
85
views
How to receive data from an Rasberry Pi on ESP32-Cam?
My use case is an ESP32-cam that serves two purposes:
HTTP feed (accessed by a Raspberry Pi 5 which processes stream and provides a response)
Servo Motor microcontroller: Receives response from ...
0
votes
0
answers
83
views
ESP32 - SIM7000G and TinyGSM response from server stuck/delayed with multipart/form-data POST request
I am experiencing a delay in receiving the HTTP POST request body when sending data over a TCP connection using the TinyGSM library with a SIM7000G and an ESP32 (LilyGo T-SIM7000G).
Below is my ...
1
vote
0
answers
71
views
Can't get ESP32C6 to work in PlatformIO. Error is "unsupported ISA substring '_zicsr_zifencei'"
I bought a few Waveshare ESP32C6 Touch LCD 1.47 boards and have had a hell of a time trying to get my sketch uploaded. I somewhat understand that PIO doesn't support esp32c6 because:
The ESP32 Core ...
1
vote
1
answer
564
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
105
views
Connect ESP32-CAM to L293D
Disclaimer: I'm a programmer, not an electronics expert. I built this car using an Arduino Uno, and now I want to add a camera to it. I’ve tried researching online, but I couldn’t find much ...
1
vote
2
answers
139
views
Trouble calibrating MMC5603 Magnetometer with MotionCal and Adafruit SensorLab – readings seem off
I'm trying to calibrate my MMC5603 magnetometer using MotionCal and the Adafruit SensorLab Jupyter notebook, but my readings seem off. The raw magnetometer values appear to be spread out oddly even ...
1
vote
1
answer
83
views
ESP32 scanNetworks compile error: call of overloaded 'BSSID(int)' is ambiguous
I am trying to run following code:
#include <WiFi.h>
void setup() {
//int16_t scanNetworks(bool async = false, bool show_hidden = false, bool passive = false, uint32_t max_ms_per_chan = 300,...
0
votes
0
answers
623
views
ESP32 Upload Fails: “Failed to connect to ESP32: No serial data received” (Worked Previously)
I’m trying to upload code to my ESP32 board using the Arduino IDE, but I’m consistently getting the following error:
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For ...
-1
votes
1
answer
210
views
Getting a WDT reset on ESP32
I have a project that uses a GY-53 BMP180 and ESP32.
Each time I connect ESP32 to USB after uploading, I get this error:
22:27:27.352 -> rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (...