Questions tagged [esp32]
A cheap and low-power microcontroller family using Tensilica Xtensa LX6 CPU cores with integrated WiFi and dual-mode bluetooth.
32 questions
4
votes
1
answer
9k
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 ...
4
votes
1
answer
10k
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 ...
2
votes
1
answer
3k
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 ...
6
votes
4
answers
20k
views
Arduino ESP32 Import Error No module named serial
I googled and couldn't find a solution to my nice problem:
I have Ubuntu and I want to program a ESP32 ...............
I tried a lot of pip commands ... but it didnt work.
You have any idea how to ...
4
votes
1
answer
5k
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 ...
3
votes
1
answer
4k
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 ?
3
votes
1
answer
4k
views
How to avoid electromagnetic interference on ESP32 input
I've realized a simple circuit like the following, in order to implement a rain gauge that I can access via HTTP:
With the following sketch:
#include <WebServer.h>
#include <WiFi.h>
#...
3
votes
0
answers
730
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 ...
3
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....
2
votes
1
answer
659
views
Why SSD1306 OLED display get scrambled text when printing messages from separate tasks in RTOS? (revised)
ESP32 with RTOS, test app with 2 independent tasks. Each prints a message to OLED display.
Why text gets frequently scrambled? Mutex have been used to share display resource.
#define DEBUG_ESP ...
2
votes
1
answer
3k
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-...
2
votes
1
answer
3k
views
No "Huge APP partition scheme" (ESP32)
I recently downloaded the expressif ESP32 library and I'm trying to run the CameraWebServer example. Attempting to compile it results in the following error:
Sketch uses 2529577 bytes (192%) of ...
2
votes
1
answer
13k
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 ...
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
1
answer
6k
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 ...
1
vote
2
answers
3k
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 is ...
1
vote
2
answers
19k
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 ...
1
vote
1
answer
4k
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 ...
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>
#...
1
vote
1
answer
1k
views
What's is the best way to convert std::string to String?
Pardon me, I am a novice programmer. I was trying to use the toInt() function for a std::string but I noticed that toInt() only works for the String class. So, I have an std::string sliderValue and ...
1
vote
1
answer
2k
views
ESP32 Partition size and maximum program size
From an ESP32 example code, I extracted the following part, that just prints the flash partition list to the console.
#include <string.h>
#include <assert.h>
#include "esp_partition.h&...
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& ...
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 ...
0
votes
1
answer
3k
views
esp32 http client response only 200 didn't receive the data after that
i am using esp32 as a client and using following example. So here i am getting header response only that is 200. I am not getting any response after that. here is the example
#include <WiFi.h>
#...
0
votes
0
answers
68
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. ...
0
votes
1
answer
128
views
WiFi credentials pulled from an SD card fail, but work hard-coded?
I'm trying to move my hard-coded wifi SSID/password credentials to an SD card so they can be more easily changed, but when passing the SSID to the WiFi.begin() function, I'm getting a status code 1 - &...
0
votes
3
answers
508
views
ESP32 Partition size and maximum program size #2
re. ESP32 Partition size and maximum program size
Further to the above issue:
The above is a neat little program. However, is there any way I can reference/extract the "app0” “partition->...
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 ...
0
votes
3
answers
6k
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()
{
...
0
votes
1
answer
154
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 ...
0
votes
1
answer
376
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:
...
0
votes
1
answer
5k
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-...