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
6
votes
2answers
9k 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 ...
3
votes
2answers
7k 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
4k 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
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
1answer
576 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
1answer
5k 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
1k 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
1answer
367 views

ESP32 CAM failed to get frame in time

So I think the title says it all. I recently purchased an ESP32 CAM in India for a pretty cheap price. It looks like an AI Thinker but doesn’t have the tag on the chip itself. Nonetheless, to get it ...
2
votes
1answer
36 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
147 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
898 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
3k views

Duplicate libraries while compiling for ESP32 in the Arduino IDE

I have just added the ESP32 toolchain to the Arduino IDE (v1.8.0) on Windows 10. To get the IDE to allow me to select ESP32 chips I had to place the Espressif folder in "D:\Program Files(x86)\Arduino\...
2
votes
1answer
53 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
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
438 views

NPN transistors level shifter [closed]

I'm going to use this for Arduino Pro Mini (5v version) to communicate with ESP32 via UART so I need level shifting. I found this circuit which uses NPN transistor and I'm also going to use it. This ...
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
2answers
48 views

Two sensors using I2C

We have two sensor one of them(MPU6050-gyro) is communicating using I2C, the other is via SPI(SD card reader). Now, we need an additional component as a sensor that the barometer which communicates ...
1
vote
2answers
182 views

Two floating point values do not get added and printed on ESP-WROOM-32

I have a Olimex ESP32-PoE board which has a ESP-WROOM-32. I just found out a strange behaviour for printing floating point numbers on the board. Sketch void setup() { // put your setup code here,...
1
vote
2answers
99 views

Merge two Arduino projects (change build process)

I'm working on a big software project consisting of several Arduino sketches. I have one Arduino project providing general functionality, such as TCP/IP communication, parsing queries, handling errors,...
1
vote
1answer
1k 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 ...
1
vote
1answer
5k views

How do you convert a formatted print statement into a string variable?

I'm using the following routine to print the current time on the com port. I would like to capture this as a string so I can display it using ePaper. void printLocalTime() { time_t rawtime; ...
1
vote
2answers
49 views

Is there an alternative to strtok_r in extracting words from char?

The task, in char, I get some data that I have to parse into parts. In this case, I use strtok_r, which finds identifiers like "=", " ", "&" Code: char payload[70] = "GET /wifi?ssid=MyWiFi&...
1
vote
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 ...
1
vote
1answer
40 views

Webpage values wont update

I've been trying to run the following esp32 LED PWM code to change the LED's brightness, and show the current PWM duty on the webpage, but the PWM values on the webpage won't change until I hit the ...
1
vote
1answer
387 views

String does not name a type

I'm using Arduino IDE for ESP32 WROOM board. I am testing the OTA feature with the ESP32httpUpdate library. I am using the example sketch of the library with the name httpUpdate.ino However, as soon ...
1
vote
1answer
375 views

How arduino boards eliminate the need to press buttons to flash?

I've come across many Arduino shields for various boards like the Uno, ESP8266, and ESP32 which sometimes have a button for flashing and other times they do not because the flashing is automatic. ...
1
vote
1answer
1k views

Increase sample rate in ESP32 board

For my final project on the university as a Systems Engineer, I'm working on a "electronic stethoscope", which is giving me a lot of headaches. I bought a Adafruit Feather ESP32 Huzzah (https://learn....
1
vote
1answer
123 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
1answer
43 views

test for wrong wifi password?

maybe this is a dumb question, but is there a way to test for wrong wifi password, I know you can do WL_CONNECT to check if the password works, but is there a command for checking if the password is ...
1
vote
1answer
109 views

Programming ESP32 MCUs for production

Before committing to learning about the ESP32 and how to program it, I would like to know if the ESP can be programme the same way for production as it can on évaluation boards (with the Arduino IDE). ...
1
vote
1answer
114 views

PUT request: PHP code to Arduino HTTPClient

I'm uploading a file to Azure blob storage using REST API request. The file uploaded successfully using PHP curl request. But when I transfer the code into ESP32 HTTP client I'm getting an ...
1
vote
1answer
42 views

WiFi Connection With a Enterprise WLAN

I have an ESP32 and want to connect it to the WLAN at my office. Based on my current knowledge of the Arduino, we use the WiFiClass to connect to a WLAN and then use a WiFiClient to use the WiFi for ...
1
vote
1answer
83 views

Reading text line by line from SD

Why does the following code return this error? How can I make this work? Error: exit status 1 invalid conversion from 'const char*' to 'char' [-fpermissive] #include "FS.h" #include "SD.h" #...
1
vote
1answer
235 views

Differing Serial Values Between Arduino Uno and TTGO ESP32 SX1276

I'm wanting to analogRead the value off a MQ-135 gas sensor. I have tired this with both an Arduino Uno and an TTGO ESP32 SX1276. When reading the value of the sensor off the Uno, I get values ...
1
vote
1answer
245 views

ESP32-Cam No Response and Unable to Program - Timed out waiting for packet header

I recently purchased an ESP32-CAM but have had no luck in programming the board or getting any response whatsoever. I first tried to program it using the an FTDI programmer and the Arduino IDE (...
1
vote
1answer
99 views

Publish chipid to mqtt using ESP32-CAM

I have been trying to push the data of temp, humidity, and pressure from a sensor to MQTT using ESP 32Cam, and was able to do using the following code: pressure = bme.readPressure(); //Convert the ...
1
vote
1answer
145 views

ESP32 WiFiClient request missing response

I am facing problem with ESP32. I use basic example for WiFiClient and making request to my server. The problem is that the response should be 15000 bytes long, but very often I got only 2750 or less. ...
1
vote
2answers
904 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 *...
1
vote
1answer
204 views

Impossible to connect ESP32 with Mosquitto on Raspberry using certificates

I installed Mosquitto broker in Raspberry in my local network. I generated certificates in Raspberry as follows: sudo openssl genrsa -out ca.key 2048 sudo openssl req -new -x509 -days 3600 -key ca....
1
vote
1answer
212 views

ESP32 Pins won't fit in solderless breadboard

I bought an Adafrut Huzzah32 ESP32 for an IoT project. When the ESP32 arrived, I attempted to fit it into my existing breadboard, but I immediately noticed that no matter how hard I pushed, the pins ...
1
vote
1answer
397 views

Firmware backup and restore

I need to have the firmware stored somewhere on the board in order to get back to it after flashing a new firmware. Is there a way to store a backup of the firmware somewhere, and use a button to ...
1
vote
2answers
149 views

How is better to store html / java script / in code or in flash on esp32

I have an esp32 which is running a web page together with a java script and using socket I update some values on the web page. I am doing this very fast (like each 50ms). Now I am serving all the html/...
1
vote
1answer
256 views

Can't connect to my ESP32 board via serial

I'm completely new to electronics work. Today I've received the ESP32 board that I ordered. (It's a WROOM-32.) I followed the instructions here. I connected the board to my computer via USB and I ...
1
vote
1answer
399 views

Adafruit esp32 Feather Failing to compile

So yesterday, I was able to upload/compile given example code to the Esp32 Huzzah board. Today I couldn't even compile. Even carefully using the tutorial adafruit provides. I was getting errors as ...
1
vote
1answer
2k views

How to convert jpeg byte stream into jpeg image and display on 1.8 inch TFT display

I have an ESP32 having a cam and it is transmitting compressed JPEG stream. TTGO T-Journal ESP32 Camera Development Board OV2640 SMA WiFi 3dbi Antenna 0.91 OLED Camera Board I have an ESP32 ...
1
vote
1answer
1k 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
1answer
1k views

remove weird chars from char array ESP32

When I'm converting a string to a char array there are always some weird chars at the end. I have to do it manualy because the convertTochar function crashes my ESP. String sssid = module.getCssid()...
1
vote
1answer
6k 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& ...
1
vote
1answer
102 views

Confused between which arduino to use for project? [closed]

I am planning to build a smarthome working model with arduino. I will also need to connet to wifi(not ethernet). So I was wondering which setup would be the best:- Arduino Uno + ESP8266 Arduino Yun ...

1 2 3 4 5 6