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
7
votes
2answers
14k views

How to choose alternate I2C pins on ESP32?

I'm a begginer with Arduino and this may be a basic question but I'm facing an issue. I'm using a HTU21D sensor with an ESP32. This sensor use I2C communication. Inside the Arduino library, there is ...
4
votes
2answers
9k views

Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain? [closed]

I use ESP8266 and ESP32 with arduino toolchain rather than pure arduino hardware. Arduino IDE is standard and proven but what are the other IDE and advantage/disadvantage ?
3
votes
1answer
627 views

Anyone have example code for ESP32 as media controller for Android/iPhone Media Apps

There's actually another post with this very same topic but no answers on that post. Back in January of 2020, the last commenter said he had sample code and then he went dark without posting the ...
3
votes
1answer
286 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....
3
votes
1answer
6k 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 ...
3
votes
1answer
75 views

How to restart ESP32 on any exception?

While developing a lot of projects (In Arduino IDE) for ESP32 one common issue I am facing is termination of program execution on unhandled exceptions. There are various exception I get. For example: ...
3
votes
1answer
89 views

I2C communication between Arduino Uno and Nodemcu32-s (ESP32)

I want to send data between an ESP-32 (NODEMCU-32S) and an Arduino Uno but I haven't found any source on how to do that, so I tried this code: ESP-32 code: #include <Wire.h> void setup() { ...
3
votes
2answers
50 views

ESP32 softAP SSID not const

I would like to be able to set the wifi SSID in the setup(), so I can customize it based on the MAC address or something similar. (avoiding to ESP's with the same code having the same SSID). However ...
3
votes
4answers
4k views

Convert String to IPAddress

How can i convert a String to IPAddress on arduino / esp ? etc. "192.168.1.2" -> IPAddress(192, 168, 1, 2) Tried this void setup() { Serial.begin(115200); IPAddress apip; const char *...
3
votes
1answer
936 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 ...
3
votes
0answers
76 views

ESP32 HTTP Server request interrupts Telnet session

I have an ESP32 application that uses a web server as a user interface. For auditing and debugging during development I use Serial; however, that is impractical in the installed system. So, I decided ...
3
votes
0answers
36 views

Two sensors on same ESP-32 board

Need some help on the project I'm currently developing. I have 3 YF-B2 sensors that I need to connect to the same ESP-32 board and read the data from the sensors and send it via MQTT. I had it working ...
2
votes
3answers
2k views

Calling I2C functions inside an ISR

I have an Adafruit 2.8" cap touch display, which has an interrupt pin (IRQ). I tried to use this with my Arduino Nano, but encountered a problem: When trying to get the touched point from the display ...
2
votes
2answers
2k views

No programmers available for this board - Programming ESP32 Cam with Ardunio IDE

This is my first time working with ESP32 Cam boards. I have followed the instructions as given in this site https://technoreview85.com/how-to-program-esp-32-cam-using-arduino-uno-board/ However my IDE ...
2
votes
1answer
940 views

Using c_str() on String for IPAddress with NTPClient provides wrong values

Libraries NTPClient Board Olimex ESP32-POE board Behaviour I have written a code that connects the board to a local NTP Server (which is an embedded board). I tried assigning the IP Address of ...
2
votes
2answers
1k views

Is it possible to increase the voltage on 3.3v output to 5v on an ESP board to power a DC motor? [closed]

I am trying to use an ESP32s controller connected to an RC car DC motor. I found that when using my Arduino this is easily accomplished, and I can see that my output pin produces 5v for the motor to ...
2
votes
1answer
8k views

How do I set a 25 kHz PWM signal on an ESP-WROOM-32?

I want to control a single pin of an ESP-WROOM-32 to have a 25 kHz PWM signal. How do I do that in Arduino Studio? I compiled a "hello world" program for such a device successfully in Arduino Studio, ...
2
votes
1answer
2k views

How to detect water presence with only 2 wires

I don't know if this question belong here or on electronics SE. A manufacturer just sent me a personalize device which include an ESP-32 and a Water Sensor. My problem is that I don't know how to ...
2
votes
1answer
793 views

ESP32 open “captive portal” on connected

I am using the default example SimpleWiFiServer that comes as an example from the ESP32: #include <WiFi.h> #include <WiFiClient.h> #include <WiFiAP.h> #define LED_BUILTIN 2 // Set ...
2
votes
1answer
280 views

Error in defining Ticker in ESP32 library

I'm using the exact piece of code in my ESP8266 library (which works OK ), but when used in a ESP32 library- I got an error: This is the relevant code snip: void myIOT32::_feedTheDog() { ...
2
votes
2answers
66 views

Best buffering practice for continuous SD card writing

In a simplified example, I have a microcontroller functioning as a data acquisition device - sensor data is received over UART, and then saved to an SD card. This received data is in the form of a 12 ...
2
votes
1answer
213 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 ...
2
votes
3answers
1k views

Why doesn't OTA work with the Ai-Thinker ESP32-CAM board?

I have working code on an Ai-Thinker ESP32-CAM board, programming over serial. I would like to reprogram using OTA, but adding in the functionality from the BasicOTA sketch (which I have done on ...
2
votes
2answers
671 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 ...
2
votes
1answer
300 views

Function pointer call results in InstrFetchProhibited (ESP32)

I have the following issue which I'm unable to resolve by myself. Perhaps one of you could point me to issues in my code which I don't see. There is a class called communicator which handles an MQTT ...
2
votes
1answer
2k 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 ?
2
votes
1answer
2k views

How to receive and process a long string sent over serial?

I want to receive about 5kb of data in Base64 format. The following code does not work. Only a few characters are received, sometimes CPU crashes. String content = ""; char character; while (Serial....
2
votes
3answers
52 views

How can I have different routines fire off at different intervals

So i'm making an interface that will have a digital clock....once a secondd.. i'd like to do other things at different intervals but if I delay(1000) then I have to wait that second which is now the ...
2
votes
1answer
51 views

How to read an analog value on ESP32-CAM with the SD card reader enabled?

I use an ESP32-Cam module for a project for which I need both the SD card and the cam. According to this page, the only pins that are not in use by either the camera or the SD card reader are GPIO0, ...
2
votes
1answer
39 views

MQTT connection not being recognised in void loop()

I am trying to publish MPU 9250 readings in the Adafruit IO sending the data from ESP32. The WiFi connection is being established, but the code is not going inside the if(mqtt.connected()) inside the ...
2
votes
1answer
63 views

Reading Multiple MPU 9250 Sensors using TCA9548A Multiplexer

I am trying to read multiple MPU 9250 sensors using TCA9548A multiplexer in ESP 32 and Arduino IDE. Has anyone done that successfully? I am new to the area of Arduino coding. I am trying to edit the ...
2
votes
2answers
468 views

ESP32: How to run two independent PID controllers, one per core?

I want to control 2 independent processes with 2 PID controllers. Is it possible to run each controller on a separate core? I'm using this PID library. According to its documentation, the PID::Compute(...
2
votes
1answer
81 views

EEPROM: managing address mapping between firmware versions

Is there a common way to handle changes in the mapping between eeprom addresses and variables between firmware versions? It's not about the eeprom memory to survive the update, but to be(come) ...
2
votes
2answers
262 views

Connecting to MQTT causes DHT11 Sensor to stop working?

I have a project I am working on, based on an ESP32 from NodeMCU. I have a bunch of sensors connected to said ESP32 - they all work and the code itself "works" with a minor quirk. The issue in ...
2
votes
2answers
1k views

Esp32 Https Problem

I am working on a project in which i have to send GET request to my Company's Https server. I have successfully sent the GET request using NodeMCU v 1.0 (ESP 12E). The NodeMCU 1.0 (ESP 12E) Arduino ...
2
votes
2answers
45 views

Can i store a SqlLite DB into an (old) ESP32? (not using SD card)

I would like to know if it is possible to store a (little, basic) SqlLite DataBase (or of any other type) into the (old) ESP32. I don't want to use an SD card for that (for which I already know it is ...
2
votes
1answer
113 views

Changing address of MPU 9250 connected to ESP32

Can I change the I2C address of a device (MPU9250) connected to ESP 32 using int pin. I understand that in arduino board if we connect the int pin to A0 the default I2C address of MPU 9250 changes ...
2
votes
2answers
56 views

Connect 5V relay to ESP32 WROVER B board

I need to use a ESP32 WROVER B based MCU board with a standard (cheap) one-channel 5V relay (e.g. to switch on a mains-power appliance). Attempted removal of excess solder around the headers ...
2
votes
1answer
65 views

ESP32 AsyncWebServer SPIFFS problem loading page

I can load spiff docs, but I get a 404. Wireless works, IP addressing works and I can load other examples successfully. This simple image load ino is giving me fits! #include <WiFi.h> #include ...
2
votes
1answer
34 views

IMU (MPU9250) and Ticker on ESP32

I want to read the data from an IMU (MPU9250) periodically. To do that I use a ticker as shown in the following code: #include <Ticker.h> #include "MPU9250.h" constexpr int ...
2
votes
0answers
65 views

Crash when disabling bluedroid

i have an ESP32 and i want to use deepsleep when it's not used. Before sending it to sleep i clean up everything, so disconnect, deinitialize and disable everything i build before. But i get a crash ...
2
votes
0answers
32 views

USB-C as power input and analog audio out

I currently use USB-C to charge an arduino with a battery. I also use a headphone jack to output audio. I would like to combine those two and output the analog audio through USB-C (when it is not ...
2
votes
0answers
36 views

Is it possible to use CCMP as cipher type on ESP32's softAP mode?

Currently I'm starting softAP mode on ESP32 with WPA2_PSK as auth type(as WPA3 is not supported for softAP). When I am trying to connect my iPhone to the softAP, iOS gives a warning that WiFi security ...
2
votes
0answers
36 views

Problem with a class? SHT21 library

I am using ESP32 and SHT21 temp+humidity sensor but while compiling the code I get the following error: variable "SHT21" is not a type name I see an SHT21 class defined in the SHT21.cpp ...
2
votes
0answers
39 views

Get deceleration (negative acceleration when apply brake force)

I want to build a device to measure deceleration force when a car brakes. I am using a MPU6050 for get data and I read from it acceleration on X,Y,Z axes in m/s2 and also it gives me gyro in degrees/...
2
votes
1answer
568 views

AsyncWebServer giving wdt reset

I am using 3 Esp32 modules. One being master and other two being nodes. Nodes are connecting to the master's AP. Master is connected with GSM module to execute the web api. Master esp is having a ...
2
votes
0answers
309 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/...
2
votes
0answers
294 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 ...
2
votes
1answer
89 views

GPS Module don't provide full data

I connected my gps module (NEO-6M) with esp32doit-devkit-v1 board. The module provided data but many data are missing. My pin configuration: GPS ------- ESP32 VCC ------- 3v3 GND ------- GND TX -...
2
votes
0answers
3k 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 ...

1
2 3 4 5
10