Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [esp32]

A cheap and low-power microcontroller family using Xtensa CPU cores.

0
votes
0answers
15 views

SPI - different implementation / timing

I'm a little bit confused. I'm running the same code on a ESP32 (Adafruit Huzzah32) and an Arduino (SparkFun Pro Micro). It works on the ESP32 but not on the Arduino. Are there different API ...
0
votes
0answers
9 views

ESP 32 Cam (diymore brand) and adafruit programmer FTPI friend “timed out waiting for packet header”

I am having trouble getting my recently purchased esp32 cam working. I am new to using a programmer board and really to Arduino in general. Could someone help me? Things I have done: installed the ...
0
votes
0answers
22 views

How to read voltage value from arduino to esp32

I am learning Arduino(uno)-ESP32 basics for a hobby project. In Arduino sketch, it's writing some random value(mimicking a sensor) to Arduino analog pin 9. const int analogInPin = A0; // NOT ...
1
vote
0answers
21 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
2answers
20 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
35 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 ...
2
votes
1answer
42 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 ...
0
votes
1answer
18 views

Change css form color from esp32 if statement

I am fairly new to arduino and ESP though am very familiar with css and javascript. I have an esp webserver that includes a button client.print("<button style='background-color: #F30C0C; color:#...
1
vote
1answer
31 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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
10 views

Code Optimisation in esp32

I need to optimise my code for a real time system using a esp32. What's a simple and accurate way to benchmarks and statistics on the Arduino platform?
1
vote
0answers
24 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 ...
0
votes
0answers
22 views

Online Json Service for Esp32

I'm building a simple outdoor temp and humidity sensor with an esp32 I've aquired but I need a platform that I can submit the Json to so that then my laptop can make an http request to get the Json ...
0
votes
1answer
25 views

ESP 32 changing frequency instead of duty cycle

Using this code on an esp32 allow to vary duty cycle of the PWM with a fixed 5000Hz frequency and is working fine. My question is how to vary frequency and keep duty cycle on a fixed value? // the ...
1
vote
1answer
23 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 -...
0
votes
2answers
68 views

ESP32 Alexa Integration; Cannot correctly control more than one device

I created a garage door opener recently that is controllable through Alexa, using this library: https://github.com/Aircoookie/Espalexa Everything is operating as expected, meaning I was able to ...
1
vote
0answers
15 views

Create file with timestamp

I have a code which creates a file then store relevant data. My first purpose was creating then rewriting (delete & write again) with same filename. However, now I have to log different data to ...
0
votes
1answer
37 views

How to stole/read data from an output serial port?

(Sorry, I'm not a native English speaker) I have a chip with Serial Input, Serial Output, and a Clock (used by both serials). I want to read the output with an Arduino or ESP-32. The device I want ...
0
votes
1answer
24 views

Sizes of the original ESP32-DevKitC-32U Wifi board

I know that this topic does not apply to Arduino, but for me it is important to find a solution to the problem. I know the consequences. I'm creating a pcb board into which the original ESP32-DevKitC-...
1
vote
2answers
41 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 ...
0
votes
1answer
43 views

Stack smashing protect failure ESP32 with Modbus RTU

I'm doing a project using an ESP32 TTGO with LoRa, the Max485 and a WELLPRO ADAM 8082 for Modbus communication. I'm trying to use the ESP32 as a master to and the ADAM as a slave. I'm also using Node-...
1
vote
1answer
61 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 ...
0
votes
0answers
37 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 ...
0
votes
0answers
10 views

Wroom 32 can't be recognized by Arduino 1.8.9 on a ubuntu 19.04 computer

I started by plugging my Wroom 32 into my Kubuntu desktop. I checked my /dev before and after, and found no changes. After opening Arduino IDE, I only found my other Arduino, the Arduino Due, in the ...
0
votes
0answers
24 views

Software serial and port expanders

On my ESP32 project I've run out of pins and have incorporated using a MCP23017 port expander. I need to run multiple slow serial connections (9600 baud) thru the port expander. Are there any ...
2
votes
0answers
63 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 ...
0
votes
2answers
36 views

Firmware gets stuck at obj.printto(client) in esp32

I am using an ESP32 to capture some data and then sending it over using ArduinoJson. However, sometimes, the firmware gets stuck at the line where it is transmitting data at obj.printTo(client). I ...
0
votes
1answer
36 views

ESP32 bluetooth discovery parse names

I'm running a sample code from ESP32 examples and I'm scanning available BLE devices. I can see device MAC address etc. But for few devices I can't see their names.I am using ESP-WROOM-32 with ...
1
vote
1answer
22 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
0answers
51 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 ...
0
votes
1answer
28 views

A few questions on the first steps with an ESP32/ESP8266 NodeMCU [closed]

I would like to know what are the first steps, as a good practice, when receiving a new ESP based NodeMCU. For example: Checking if everything works fine After you connect to the relevant COM port, ...
1
vote
1answer
24 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" #...
0
votes
1answer
38 views

Run function when triggered

I'm trying to create a motion/fall sensing device. I have a sensor that continuously checks if motion and fall is detected in void loop(). If both motion and fall are detected, then I'd like to send ...
0
votes
0answers
13 views

Use uNavAHRS library get nan error

I tried using AHRS library call uNavAHRS, and have been test example sketch from github, and change little code like below: https://github.com/bolderflight/uNavAHRS/blob/master/examples/uNavAHRS-...
0
votes
1answer
45 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
81 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 ...
0
votes
0answers
154 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
107 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
52 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 ...
0
votes
0answers
96 views

Esp32 sending a wav file to API via POST

I'm trying to send a .wav file to an API with an ESP32 using a HTTP Post request with a multipart/Form-data content type. I can already send the API Key as it is a plain key and get a return from the ...
0
votes
0answers
77 views

UUID for ESP32's BluetoothSerial

I have a program that interfaces with my ESP32 Thing via BluetoothSerial. It needs the address and a UUID to connect. (I was previously using a different chip without onboard Bluetooth, so I was ...
0
votes
2answers
68 views

Reading inside critical sections from ISR

Is it necessary to protect reads of volatile variables in critical sections when using interrupts? Or are critical sections only required when concurrently writing variables? Here is an example of a ...
0
votes
0answers
142 views

Set local stratum 0 NTP server without internet

Currently, I'm doing a running track timing gate project to measure an accurate acceleration (a runner for example). The idea is when the runner triggers the first gate (start gate), the system will ...
1
vote
0answers
92 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 ...
0
votes
0answers
53 views

bh1750 lightsesor won't work

ok, im having problems with my bh1750, here is all info i got: board: esp32s nodeMCU v. 1.1 Pins: Wiring: (the 2 reds go to pin 21 and 22) code: #include <BH1750.h> #include <Wire.h> ...
0
votes
2answers
98 views

WifiClient and aREST on esp32 - loop until new instructions recieved?

I've created a simple sketch for an esp32 that hosts a REST API that can be accessed via HTTP. Based on the instructions received from the client, the esp32 controls some neopixels with some various ...
0
votes
1answer
96 views

Can a Lithium Polymer battery charging circuit on Arduino boards also charge Lithium Lion batteries? [closed]

I have a project that the form factor of 18650 batteries works well for. The board I'm using is a esp32 based board with built in battery charging: https://www.amazon.com/gp/product/B072HBW53G/ref=...
0
votes
1answer
47 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
0answers
85 views

Adafruit Feather ESP32 - GPIO power drain during deep sleep

I have an Adafruit Feather ESP32 whose GPIOs I use to control an external device. I don't want the device to drain the power of the ESP32 sometimes, so I set the GPIOs to INPUT. When I go into deep ...
0
votes
0answers
60 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 ...