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
4 votes
1 answer
9k views

ESP32 AP max connections: 4 or 10?

I am using the SoftAP feature of the ESP to create a central node, and connecting five or six clients in the final application. However, I don't know if i can connect that many clients. One of the ...
CharlieHanson's user avatar
2 votes
1 answer
2k views

ESP32 Access Point and HTTP Web Server, how to send multiple parameters?

I made this minimal example in order to figure out how to get requests (or whatever they are called) to display in the serial monitor. However, none of the query parameters (in the URL) can be seen in ...
Adam's user avatar
  • 47
3 votes
1 answer
2k views

ESP32 can not deep sleep longer than 35 minutes

I'm trying to get my Lilygo T5 4.7" epaper to deep sleep for 12 hours. But I only seem to be able to get about half an hour (2100s) of deepsleep on it. If I set the timer for longer, it just ...
Engberg's user avatar
  • 33
3 votes
0 answers
647 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 ...
Tanenthor's user avatar
  • 141
3 votes
2 answers
167 views

Set parameters after compilation

I am extremely new to Arduino and have searched for this on the web but have not found it. My project has 2 files, a .ino file with the sketch and another .h file with the secrets and configuration ...
Jaime Roman's user avatar
3 votes
1 answer
3k views

What is the tool to send file to SPIFSS on ESP8266/32?

Is there good tools (IDE, CLI or IDE addon) to send file via USB port to SPIFSS internal espressif ESP hardware SoC ?
E.Racineux's user avatar
2 votes
1 answer
10k views

Need help: Cast from 'char*' to 'uint8_t {aka unsigned char}' loses precision [-fpermissive]

I'm trying to convert the string that I receive from the Websocket to uint8_t that I can copy to the data bytes of CAN protocol frame. I'm using an ESP32 chip and programming it on an Arduino IDE. The ...
ObviousActivity936's user avatar
2 votes
1 answer
2k views

Why do ESP boards break out the SPI flash pins?

I have an ESP32 development board and a NodeMCU board here. Both breaking out the pins for the SPI flash of the ESP. These pins are mentioned in standard pinout descriptions as must/should not connect....
chrisl's user avatar
  • 16.1k
2 votes
1 answer
2k views

ESP-32 Upload Files to SPIFFS via browser

I am using ESPAsyncWebServer Library in a ESP32 DevKit. I want to make a form in the browser in order to upload files in SPIFFS. I have to notice that the whole device works perfectly. I connect to Wi-...
aris99's user avatar
  • 21
1 vote
1 answer
3k views

After restoring the BNO055 offsets to the sensor the calibration values are all 0

Board: ESP32 Script: restore_offsets.ino from Adafruit's BNO055 library The only difference is I am storing the information in ESP's NVS using the Preferences Library Code #include <Wire.h> #...
Shan-Desai's user avatar
1 vote
2 answers
2k views

Increasing ESP32 AP max connections

It has already been asked how many clients can connect to an ESP32 AP, but the answer is far from clear; the best one is from a year and half ago (ESP32 AP max connections: 4 or 10?) : The answer ...
stefanu's user avatar
  • 131
1 vote
2 answers
17k views

ESP32: Disable Brownout Detector

I have an ESP-WROOM-32 and I'm using Arduino IDE to push code on it. My ESP is powered via 2 AA batteries and got one power supply problem. It works well on new battery but after a bit, I will ...
Gazouu's user avatar
  • 273
1 vote
1 answer
8k views

How to pass JsonObject from ArduinoJson to ESP8266WebServer object?

I am learning the ArduinoJson.h library and creating jsonOject: JsonObject& prepareResponse(JsonBuffer& jsonBuffer) { JsonObject& root = jsonBuffer.createObject(); JsonArray& ...
Ciasto piekarz's user avatar
1 vote
1 answer
167 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 ...
Sunny Gavali's user avatar
1 vote
1 answer
3k views

How to close/end a Wire.begin()?

I have an ESP32 cam, and I attached an i2c light sensor to it. I need to read the light level at startup, then I don't need the i2c connection again. The problem is, the board uses 2 i2c connections I ...
Radu's user avatar
  • 113
1 vote
1 answer
5k views

ESP32 seconds from epoch

When using ESP8266 - getting seconds from epoch is done using NTP.begin(NTPserver, 2, true); delay(delay_tries); time_t t = now(); while t stores amount of seconds from 1-1-1970. When trying to do ...
guyd's user avatar
  • 1,033
0 votes
1 answer
5k views

Analog read not working while using WiFi

I have an ESP32, the current program running on it uses WiFi but, if I use WiFi and Analog read at the same time, Analog read does not work. Why does this happen and what's the way around it? Hardware ...
Coder9390's user avatar
  • 472
0 votes
0 answers
54 views

Improve SD logger - 0.02% of data isn't logged at desired rate

I'm working on a project to read data over CAN, display it on LCD and log data to SD card. LCD is on HSPI and SD card on VSPI. CAN and LCD code is working on core 1 and SD on core 0, there's no wifi. ...
JvJ's user avatar
  • 21
0 votes
1 answer
3k views

Set the wall clock time or change GMT offset without ntp server?

I have been able to get the current time from an NTP server and set what appears to be an internal clock using the configTime() function from the ESP32 core. I can then get the current time with the ...
John F. Miller's user avatar
0 votes
1 answer
1k views

Error passing a `time_t` and `struct tm`, ESP32

I need to create a converter from epoch time stored in a time_t variable, to a struct tm variable, in order to check / create a certain task every hour or a day. This function should get also a past ...
guyd's user avatar
  • 1,033
0 votes
1 answer
115 views

WiFi connection times out if credentials retrieved via serial terminal

I've implemented a small WiFi connection procedure into my ESP32 project. The available networks get printed with index, then I'm entering the index and retrieve the network name from it. The password ...
Julian F. Weinert's user avatar
0 votes
1 answer
4k views

esp32 cam and PIR sensor

I have tried all the GPIO pins listed here:I am following this tutorial to save a picture using the ESP32 cam board. I am trying to add a PIR sensor. https://randomnerdtutorials.com/esp32-cam-take-...
David Graff's user avatar
0 votes
1 answer
315 views

Stuck with bad sketch

How can I get my programmer board/windows computer to recognize my board again. I am using the esp32 cam and have put two boards in a state where I am unable to flash them anymore. here is the error: ...
David Graff's user avatar
0 votes
3 answers
5k views

SPI Digital Potentiometer not working on ESP32

I have an MCP4151 digital potentiometer chip. I have managed to get it to work using and Arduino Uno using the code below: #include <SPI.h> byte address = 0x00; int CS= 5; void setup() { ...
Christos Mitsis's user avatar