Questions tagged [esp32]

A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Flashing ESP32 under Linux - cannot determine device

I want to flash my ESP32 cam module using Ubuntu 22.04. I downloaded the python version of esptool plugged my esp cam in and tried to flash using the command $ esptool.py erase_flash esptool.py v4.3 ...
  • 101
0 votes
0 answers
12 views

How to get the scan duration below 1sec with ArduinoBLE?

I want to scan continuously for other Bluetooth devices with my ESP32 using BLE. The scan method only accepts integers larger than 0, such as scan->start(1, false). However I want the results to be ...
  • 101
0 votes
0 answers
36 views

Fail to upload files OTA, using ArduinoOTA on ESP32

Prolem: Fail to upload files stored in data library, when using OTA (more specifically - transmission fails the second it begins). Enviroment: Arduino IDE v1.8.19 ESP32 DEVKIT module. ESP32 LittleFS ...
  • 870
2 votes
0 answers
43 views

How to correctly synchronize time with NTP server?

I want to synchronize time with NTP server once in some time. I am using DOIT ESP32 DEVKIT V1, I tried with getLocalTime() function but it returned true even without wifi, but as I know without wifi ...
0 votes
0 answers
28 views

ESP32 connects yo PC, flashes but won't work

I have been using my ESP32 for 4 months now. Recently, it just won't work - It won't even blink an LED with the blink program. Observations: My esp has only 1 onboard LED. The onboard LED does not ...
1 vote
0 answers
17 views

Fedora 36 cannot find TTGO32 arduino board

I've been trying to solve this problem for a while now. Fedora 36 cannot recognise my arduino board. Well, not correctly at least. Arduino IDE v2 picks it up as ttyS4, but platformio only has an empty ...
0 votes
0 answers
32 views

Getting angles from MPU6050 on ESP32

I'm trying to build a 2-wheel balancing robot, but it is way to jerky to balance properly. Hardware: ESP32, MPU6050, L298N, two motors and a 9v battery. I've tried playing around with the PID settings ...
  • 135
-3 votes
0 answers
26 views

ESP32 Dir was not declared in this scope [closed]

On ESP8266 both LittleFS and SPIFFS come with class "Dir" that can be used to perform directory listing and traversing. Same code doesn't compile on ESP32 complaining that Dir is not ...
  • 103
0 votes
0 answers
28 views

ESP32: Is the networking stack running in separate thread? Can you safely block task executed from loop() for longer time? (>3s)

With ESP8266 there is a requirement to not block the CPU execution for longer than few ms and then yield to networking stack and internal functions that are executed after each iteration of loop(). If ...
  • 103
0 votes
0 answers
29 views

How to thread I/O in wESP32 MQTT loop

I have a simple Arduino program for a wESP32 Silicognition. I just want the program to publish an MQTT message when a button is pressed. My problem is that I have to keep the MQTT client loop running ...
1 vote
0 answers
42 views

ESP32 wifi server with multiple clients

I have a program where I configure my ESP32 as a server and it sent randomly generated data, the problem is that I can only connect 1 client at a time, what I want is that multiple clients can connect ...
0 votes
0 answers
24 views

json 5 to json 6 convert

please help me move this to jason 6 #include <FS.h> //this needs to be first, or it all crashes and burns... #include <ESP8266WiFi.h> //https://github.com/...
  • 1
0 votes
1 answer
23 views

Tasks in ESP32: guidelines rather than blink example

I'm using an ESP8266 for IOT devices. I wish to work with an ESP32 and harvest its benefits - for my uses managing WiFi and MQTT connectivity. Most tasks examples are very basic and quite the same (...
  • 870
1 vote
0 answers
46 views

Upload to ESP32-C3 Fails

I have built a custom circuit board using the ESP32-C3-MINI-1-H4 module(datasheet). Here is a schematic: I have the GND, Tx, and Rx lines hooked up to an arduino uno without the atmega. The 3V3 comes ...
  • 11
0 votes
1 answer
59 views

How to use the M117 temperature sensor from mysentech?

Anyone can help me decode the temperature of the M117 chip from mysentech.com? I tried things, but I get a constant raw value of 0xFFFF, which becomes 1 once 2's complemented is applied. The chip ...
0 votes
0 answers
36 views

String of raw data to Char Hex Array for Bitmap

I'm trying to transfer a monochrome ~4kb image file over WebBT to an ESP32 via BLE. The EPD display looks for an unsigned char array to represent a bitmap. So..it should be in the format of something ...
0 votes
2 answers
45 views

ESP32 - error when using `LITTLEFS.h` after core updated to 2.0.4

After updating ESP32 to core version 2.0.4 (file in Arduino IDE preferences was replaced tohttps://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to upgrade), I ...
  • 870
-1 votes
1 answer
22 views

Can't compile PN532 library with Visuino

having some trouble getting the PN532 library working. Using visuino and I'm getting this error: In file included from src/main.cpp:4: include/rfidModule.h: In function 'void read_card()': include/...
0 votes
0 answers
36 views

I can't read SHT21 sensor data with Wire

I am trying to interface an SHT21 sensor using the Wire library with an ESP32 board, however, I am facing some problems. I have already managed to communicate to the sensor and read the Serial Number ...
2 votes
1 answer
74 views

List of supported boards in Arduino IDE 2.0

Where can I find the list of supported boards in Arduino IDE 2.0 without installing the IDE? Googling it was not fruitful. Specifically, I'm looking for ESP32-S3 support.
-2 votes
1 answer
67 views

How to use DNS name in a local network to request my ESP32 web server from an Android device?

I would like to use a DNS name instead of an IP address when I am requesting my ESP32 server (which controls lights) in my local network rather than using thevIP assigned from DHCP. So I have tried a ...
  • 97
1 vote
0 answers
40 views

ESP32- Sporadic slow receive of MQTT messages

Problem description: Every ~20+ published messages (using terminal), MCU receives that message in a very noticeable delay (mostly ~10 sec, few time it got up to 1 min). Upon receive (printed in Serial ...
  • 870
-4 votes
1 answer
39 views

Error when compiling program for esp32 with Preferences.h

I'm trying to write a program for an Adafruit ESP32-S2 TFT Feather. I However cannot get it to compile my program involving any use of <Preferences.h>. I can't get Arduino IDE to compile even ...
0 votes
1 answer
64 views

ESP32, ArduinoOTA.h LittleFS.h and data file upload OTA

I'm having a sketch, that works perfectly fine - connects to WiFi, uploading files using Esp32 LittleFS data Upload using Arduino IDE (when still connected to my PC), and sketch updates via OTA (...
  • 870
1 vote
3 answers
65 views

LM7805 gets very hot with four servo motors

I'm making a robotic arm using three SG90s and one Futaba s3003 servo motors and an ESP32 dev_kit_V4. The problem is when I am controlling the arm, the voltage regulator gets so hot that I can't touch ...
0 votes
0 answers
40 views

Communication between two ESP32s using WiFi

I have two ESP32s. One is acting as webserver and the other is acting as a client that will send a GET request to the server ESP32. Both of the ESP32s are connected to the same WiFi AP. For sending ...
  • 116
0 votes
0 answers
35 views

BLE characteristic send over bytes instead of String

I'm looking to send over an Image from Web Bluetooth (JS app running on Mobile) to an ESP32. I've successfully been able to send over Strings and read them on Serial. My aim is to send over a full ...
0 votes
0 answers
51 views

Connecting two 9 V batteries in parallel to power an ESP32?

I'm stuck with using 9 V batteries for a project (now I know AA batteries are better). I need to power two DC motors and an ESP32. Would two 9 V batteries in parallel enable a longer life time? Or ...
-1 votes
1 answer
19 views

How to wire an ESP32-S2 Dev KitM-1 for power?

I'm putting an Espressif ESP32-S2 Dev KitM-1 into a project box. The box will have 12VDC power and a 5V buck converter for the Dev Kit. Do I need to use the USB port to power the Dev Kit or can I ...
  • 11
-1 votes
1 answer
77 views

ESP32 cam and MB code uploaded but nothing in Serial Monitor

The code works successfully but nothing happens in the serial monitor, what do I do as I've tried almost everything.
  • 11
0 votes
1 answer
79 views

Using ESP32 GPIO, Serial.printf(...) prints weird characters when input is larger than 12 characters

Learning C with the Freenove WSP32-WROVER starter kit and there's an issue I cannot find an answer to. Using the provided code to input some data with UART, it would seem to have a strange behavior ...
0 votes
0 answers
72 views

Switch power of PN532 on and off from ESP32?

I have a strange issue with PN532, by some reason it is not every time recognized, and it turns out that if I switch Off and On the power - it goes recognised , but I am trying no to switch the whole ...
-1 votes
1 answer
63 views

Trouble connecting barcode scanner to ESP32 devkit using UART - fails to connect over serial

I'm having trouble connecting a SparkFun 2D Barcode Scanner Breakout (effectively a DE2120) to a 30-pin ESP32 dev kit v1 (marked ESP-WROOM-32) and running the SerialScan sample application for this ...
1 vote
2 answers
54 views

SNMP Manager - Multiple IP address -issue

I have multiple SNMP devices on the same network and I am trying to request, via OID numbers, each SNMP device and assign the response into an array. When I request a single IP, I get the correct ...
0 votes
0 answers
93 views

ESP32-C3 - undefined reference to `esp_ble_gap_start_advertising'

I have a Bluetooth project for an ESP32 devkit and want to compile it for an ESP32-C3. I use the newest ESP32 Arduino core as a component with esp-idf and the following configuration for PlatformIO: [...
  • 103
-1 votes
3 answers
95 views

Arduino IDE EEPROM put() then read() returns different data on ESP32

I'm trying to understand how to read/write a UID struct from miguelbalboa to EEPROM to persist a card ID across system restarts on my ESP32-S3 through the Arduino IDE. I expected Put/Get/Read to be ...
  • 129
1 vote
0 answers
67 views

HTTP POST maximum speed at command SIMCom A7672

I'm trying to build a device for my startup IoT-related, using an A7672S. Here is the code: mySerial.println("AT+HTTPINIT"; checkresponse("OK\r\n"); mySerial.println("AT+...
0 votes
1 answer
39 views

ESP32, NTP and SW reset

After HW reset (button or power reconnect) I get the correct NTP shift, but when I use ESP.restart() via MQTT I get the correct time without 3 3 HRS shift due to Tz. What happens after SW reset that ...
  • 870
0 votes
0 answers
69 views

ESP32 http_parser.h error 'HTTP_PATCH' conflicts with a previous declaration

#include <Arduino.h> #include <WiFi.h> #include <AsyncTCP.h> #include <HTTPClient.h> #include <ESPAsyncWebServer.h> #include <DallasTemperature.h> #include <...
1 vote
0 answers
44 views

Cannot make https request on esp32

I have esp32 cam. I want to send https request to azure function. I have exposed https port via ngrok. HTTPClient http; if (http.begin("https://4b21-31-183-241-151.eu.ngrok.io/", ...
0 votes
2 answers
117 views

How often should we poll the 74HC165 if we wish to detect 'button' presses? [closed]

I am going to either chain 4 shift registers, or connect 4 shift registers to an ESP32 that is connected to a computer with bluetooth. I understand at 3.3 volts, the 74HC165 can run at a clock speed ...
  • 125
1 vote
0 answers
431 views

ESP32 access point with (ENC28J60) ethernet module

Does anyone know if the following is possible? Any advice would be much appreciated. I am programming an Ethernet connected Arduino to be a webserver. What would be ideal is a small portable "...
0 votes
2 answers
72 views

ESP32 AsyncWebServer with softAP does not serve pages

I'm trying to create a AsyncWebServer after enabling the SoftAP: #include <Arduino.h> #include <SPIFFS.h> #include <WiFi.h> #include <WiFiAP.h> #include <AsyncTCP.h> #...
  • 287
0 votes
2 answers
1k views

esp32, platformio A fatal error occurred: Packet content transfer stopped (received 8 bytes) *** [upload] Error 2

When i try to upload code to the esp32 the following error shows up in the command line: A fatal error occurred: Packet content transfer stopped (received 8 bytes). I use platformio in VScode the ...
  • 11
0 votes
1 answer
50 views

Wrong use of memory?

Probably I'm doing something wrong. I'm writing an Arduino sketch for ESP32. Among the others I have this function: #define HDR_MAX_LENGHT 4 #define CMD_MAX_LENGHT 5 #define ARG_MAX_LENGHT 5 #define ...
  • 287
0 votes
1 answer
72 views

How to get the name of connected device over BLE?

I am implementing a BLE peripheral in my firmware with Arduino ESP32. When the central gets connected to it, I'd like to log the name of the central & its address. How can I do that? #include <...
2 votes
0 answers
113 views

Same code working on Arduino IDE but not in PlatformIO IDE

I'm running into this weird problem. My code is working just fine when I upload it to an ESP32 from Arduino IDE. That same code is not working when I upload it using PlatformIO IDE. The same libraries ...
0 votes
1 answer
49 views

ESP32 Potentiometer issue: Resolution mismatch of the potentiometer with unlimited resolution and reading the values with Wire.h

I have the problem, that the potentiometer goes from the range of 0 Volts to 3,3 volts. But within this range the measured value goes from about 0 to 65535 multiple times (over 10 cycles). When I ...
1 vote
1 answer
125 views

Generalize webserver routing

I'm following the examples for ESP32: AsyncWebServer _server(80); _server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { request->send(SPIFFS, "/index.html", ...
  • 287
1 vote
1 answer
287 views

Arduino create Json Array with double values and 2 decimal point

How i can create a Json Array with double values and 2 decimal point using the ArduinoJson Library? https://arduinojson.org/v6/how-to/configure-the-serialization-of-floats/ In the folowing small ...

1
2 3 4 5
15