Questions tagged [esp32]

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

122 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
2k views

ESP32 IR remote

my board is a firebeetle esp32 that I am using as an IR remote. After using the Ken Shirrif IRremote library for about 6 months successfully, then the time came to change a few things on the web ...
2
votes
0answers
5k views

How do I interpret the esp8266 “boot mode” message?

Everytime the chips resets, we get the reason and the next boot mode. ets Jan 8 2013,rst cause:XXX, boot mode:(YYY,ZZZ) For XXX we can check the meaning here. For YYY and ZZZ I am not sure but I ...
1
vote
0answers
57 views

Using ESP32 to measure vbat

I'm using ESP32 to read an analog value of a liPo battery (3.7v-4.2v). Since ESP32 DAC's is 3.3v I'm using a voltage divider ( 2x10K resistors ), to split bat's voltage into ESP's GPIO36. So far ...
1
vote
0answers
28 views

Lolin D32 Pro board with OLED SH1106

Just starting a project and wanting to connect Lolin D32 Pro board with OLED SH1106. The screeen works with my Arduino Nano no problem however I can't seem to get it working on the D32 Pro. I tried ...
1
vote
0answers
91 views

ESP32: Share I2C bus among multiple freeRTOS tasks - do I have to expect synchronization issues?

I recently inherited some firmware with weird problems in regards to the duration of reading sensor values. The board is based on the ESP32 Wrover MCU and has multiple sensors connected via the I2C ...
1
vote
0answers
130 views

ESP32 HCI command for setting BLE TX Power

Does anyone know if there's an HCI command for setting the TX and the advertising power for BLE on an ESP32? I have a Nano 33 IoT and a MKR 1010, and it has its power set annoyingly low for ...
1
vote
0answers
237 views

pulseIn on ESP32 return 0 regularly

I'm using pulseIn on an ESP32 for measuring a frequency between 500 Hz and 10 KHz. I measure both the HIGH and the LOW time, as all simple examples suggest. 95% of the time the result is correct, but ...
1
vote
0answers
213 views

esp32 and the esp32-cam (agoal)

Is it considered possible to use the esp32 code on an esp32 cam board? Do they use the same hardware? I am having difficulty using this sketch https://gist.github.com/wybiral/...
1
vote
0answers
443 views

HC-05 Bluetooth fails AT+LINK

I'm trying to get a HC-05 connected as master to a Bluetooth ELM327 OBD scanner. The HC-05 is accepting AT commands, no problem. This is the sequence I use: AT+RMAAD (Clear any paired devices) AT+...
1
vote
0answers
193 views

OTA updating the ESP32 from a separate server

I have an ESP32 project which I'd like to be able to update OTA. The trouble is that it is in deep sleep for approximately 15 minutes before waking up, connecting to WiFi sending an MQTT packet then ...
1
vote
0answers
103 views

Low voltage security

I'm building a circuit with a GPS sensor and an esp32. My input voltage is designed to be 5V but I experienced some issues where people put lower charger in input (<4V). As a result my esp32 will ...
1
vote
0answers
2k views

Send file from ESP to server via FTP

I've a code which records sound to SD, then starts an FTP connection for a limited time. I want to make an automatic system which records then sends the sound file continuously. Now I'm recording ...
1
vote
0answers
64 views

Reducing json upload time

I'm using an ESP32 WROOM board to capture some data in the field and send it over using arduino json. However, the complete process of sending and receiving confirmation takes up around 12 seconds and ...
1
vote
1answer
1k views

Arduino Uno & ESP32 communication using RS485

I am trying to establish a communication between Arduino Uno ( Master) and ESP32 (Slave) using RS485 protocol (using MAX485 module). I have successfully done this between two Arduino Unos. ...
1
vote
0answers
629 views

Arduino HTTP post image to external server

I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
1
vote
0answers
116 views

Clock cycle count count for the same command is not equal in ESP32

I am using ESP32 Pico Kit with Arduino Ide. I want to measure operation cycle for a few commands. The code is so simple as below: void setup() { Serial.begin(9600); } void loop() { unsigned ...
1
vote
1answer
377 views

WindowsError(31, 'A device attached to the system is not functioning.') in arduino

Having board esp32 devkit v1, to get started with arduino ide (installed recommended boards for esp32) I marked board asDOIT ESP32 DEVKIT V1 (as no other options as like ESP32 DEVKIT V1 ) so upload ...
1
vote
0answers
101 views

Is NVS storage reset during an OTA update? (ESP32)

I plan to save some settings in the NVS repository of my ESP32, which will also be implemented OTA update. The question arose, will the data in the NVS storage be reset when the OTA update is ...
1
vote
0answers
231 views

Reading data from SPI on ESP32-WROOM-32

I'm newbie with Arduino and need to do a short task: read data from SPI (sent by another microcontroller) and send to WiFi (by ESP32-WROOM-32). I can't understand how to initialize and read data from ...
1
vote
0answers
432 views

Passing non-static member function using bind

I'm using the GxEPD2 library to communicate with an E-Paper display. I now wanted to use the drawPaged method of this library with an object display. I also have written my own class from which I ...
1
vote
0answers
540 views

HTTPS POST method fails in esp32

I was trying to connect with server but, I was unable to post the data. I have added the SSL key to connect with server that is happening but HTTPS POST is not. I tried the same method with http, I am ...
1
vote
0answers
539 views

LED strip with 12v power connected to ESP32

I'm looking at controlling a ws2811 strip and I have seen mention that you should share the same ground between the strip and the controller, which does make sense. I do not currently have a proper ...
1
vote
0answers
234 views

SerialBT.begin(“name”) now causes brownout in ESP32

I'm attempting to run the example sketch SerialToSerialBT.ino. It's a pretty commonly used sketch. I successfully loaded it on one of my ESP32 chips last week, and was able to use a tablet serial ...
1
vote
0answers
515 views

Use ESP32 as a secure socket

I have a board without network connection, then I bought an SP-WROOM-32 dev kit because it has network connection ability. Is there any way that I use esp32 as a secure socket (just like calling ...
1
vote
0answers
8k views

ESP32 in Arduino-IDE with FS.h and SPIFFS

I'm working on a webserver on ESP32 in Arduino IDE and would like to load an html-file. Tried to use SPIFFS.open from the library FS.h from github. Errormessage says SPIFFS was not declared in this ...
0
votes
1answer
17 views

Why doesn't pin 19 work when powering the EzSBC Esp32 board from batteries?

I recently got an ESP32-01 Breakout and Development Board from EzSBC.com. It is advertised as a board specifically designed for use with batteries because of it's low current draw when in sleep. As ...
0
votes
0answers
28 views

Esp32(Arduino Core) + Blynk Wifi Connection Problems

So I am making a football playing robot which consists of 3 servo motors. Currently,i am only checking only a single servo(myservoKicker)which is operated via button in the blynk app and trying to ...
0
votes
0answers
15 views

How to change the OUI (Organizationally Unique Identifier) of the WiFiNINA module

There are only examples for ESP32 wifi modules to change the mac address of the device, but I don't know if I can use the same library for the WiFiNINA module. Is it possible to change the OUI of the ...
0
votes
1answer
41 views

SIM800L LED is not blinking

I am using a SIM800L Module with esp32. I am using a 3.7V 2800mAh lipo battery to power the sim800L but the LED is not blinking. I am lookng for answers in web but evryone seems to have a different ...
0
votes
0answers
39 views

Can ESP 32 use the wire library exactly like that was in Arduino?

Compare the YouTube video and this webpage, the former one made programming very different in ESP32 and that was in Arduino nano, while the webpage seemed to imply that they work exactly the same. ...
0
votes
1answer
44 views

ESP32 - NTP inaccuracy after deep sleep

I'm trying to create a sensor sampling project using ESP32 ( battery, solar panel and temperature affects are not part of test right now to reduce external effects that may cause/ increase such ...
0
votes
0answers
41 views

How to get the body of an HTTP request?

I want to read a binary body datas from an HTTP POST request. The context is that I'm making a LED strip controller and I'm currently using this code : #include <WebServer.h> #include <...
0
votes
0answers
30 views

ESP32 - Html link

I'm programming a ESP32 modue and I have a code that generates an Access Point and displays an html with two buttons that changes the state of 3 leDs. I want to insert a button that calls a second ...
0
votes
0answers
37 views

ESP32 WIFI and BLE power status

Regarding the esp32, I am wanting to understand a couple of things related to both wifi and ble power control. 1.) How can I do a status check on whether both the ble and wifi radios are powered/...
0
votes
0answers
35 views

OTA update for ESP32 in Arduino ide from a different nework

I am trying to use the OTA to update my code in esp32. I have used Web updater so far and it has worked perfectly. But I want to update the code even when I am not connected in the same network with ...
0
votes
0answers
21 views

Record stereo audio from two Bluetooth headsets

I've been playing with Arduino for a few years, but I'm new to Bluetooth and streaming audio. I'd like to develop (or assemble or buy) a device for recording stereo audio from a pair of Bluetooth ...
0
votes
1answer
43 views

How to make BLE data accessible to a particular app?

I used the BLE example from here. But any device can read and write to the advertised characteristic. Is there a way to make the data inaccessible to other devices except for my app somehow. What I ...
0
votes
0answers
129 views

esp32 arduino wifi disconnect

I have this code running on ESP32 connected to SVM30-J #include <WiFi.h> #include <PubSubClient.h> #include <Arduino_JSON.h> #include <svm30.h> // Replace the next variables ...
0
votes
0answers
78 views

SPIFFS file append does not work when adding data in JSON format (ESP32. ArduinoJSON v1.6)

There is a file "/transact.txt", which stores the following data: { uid: 123456789 time_start: 2019-12-22 10:35:00 time_stop: } The challenge is to replace the contents of time_stop without ...
0
votes
0answers
30 views

Overflow while working with SD library

i am currently working on a Project with an SD card. I want to open a .csv-file on my sd card (later it should be the last file) and then read the ID that is at the start of the .csv-file. Yesterday ...
0
votes
0answers
202 views

ESP32 Hardware Serial Flow control and full espressif/arduino-esp32 support

I have a similar issue. I want to use the ESP32 with RS485. I have used the Arduino and this works well assigning pins, but it seems not to allow full use of the UART. I see the new uarts in the ...
0
votes
0answers
25 views

Program the Arduino Due with the ESP32

I'm trying to do OTA firmware updates for the Arduino Due with the ESP32. Now so far I'm able to get the firmware from a website and transfer it over UART. Now I'm looking to get the firmware and ...
0
votes
0answers
98 views

ESP32 CAM sending a file via POST method

I'm using HTTPClient.h for sending the image file that taken by ESP32-cam, but it sends just headers. the important part of code : File fsUploadFile2 = SPIFFS.open("/picture.jgp", "r"); ...
0
votes
0answers
64 views

esp32 with Neo6M gps gives no data

I am simply using the following code void setup() { // put your setup code here, to run once: Serial.begin(115200); // set the data rate for the HardwareSerial port Serial2.begin(115200); } ...
0
votes
0answers
167 views

GY-91 nightmare (MPU9250 + BMP280)

I have a GY-91 breakout board, like this one: https://www.amazon.com/-/es/ARCELI-MPU9250-BMP280-GY-91-10DOF/dp/B07DN173BM/ It is supposed to have a MPU9250 and a BMP280 The BMP280 works without ...
0
votes
0answers
28 views

ESP32 doesnt save every string to SD Card

My code initializes, the header (the ID; Value string) for the .csv file gets saved, but the dataString which is the most important part doesnt save to the .csv file. I get an arraypointer to the ...
0
votes
0answers
81 views

Sparkfun ESP32 WROOM Thing Plus Deep Sleep & Interrupts codes “marriage” problem

Would like to ask for assistance. Tried several routes. My knowledge is lacking and unable to progress further. I think I am very close to the solution (maybe couple of lines of codes away), but the ...
0
votes
0answers
17 views

detect a dropped tcp connection

Is it possible to detect a dropped connection using WiFi server? Example: Windows disables the Ethernet connection to the ESP during an active connection. After re enabling the connection it is not ...
0
votes
0answers
70 views

ESP32 using APSTA mode and LR simultaneously

I'm currently playing around with the LR mode for the ESP32. This lowers the data rate and increases the range apparently. But according to the sketch I use: void init_wifi(wifi_mode_t mode) { ...
0
votes
0answers
120 views

esp32, brownout on 3.3v?

I'm using a powerbump, input: 3.7v-6v Outputs: 3.3v, to provide the power I'm using 2 CR2025 coin cell batteries(3v each), meaning the powerbump gets 6v, the esp gets the exact 3.27v(I've measured ...