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
0
votes
0answers
24 views

Reduce time between two consecutive SPI transfers on ESP32

I'm trying to drive an external DAC via SPI interface using ESP32 chip. But I cannot achieve the desired speed (>1M transfers/sec, each transfer consists of 16bits). The reason is not the SPI speed ...
0
votes
0answers
35 views

How to post image using Arduino HTTPClient

I am using arduino HTTPClient to do the post request in ESP32. Can anyone help me with the part where I will be able to post an image file along with some data. The below code works perfectly fine ...
0
votes
0answers
15 views

How to download a large text file using Https on an esp32

Trying to create an esp32 access to a public apple calendar, but after connecting to the server and saving to SPIFFS it fails at the same point each time. I end up with a file around 220KB, when the ...
-1
votes
1answer
25 views

Optical Quadrature encoder skipping steps correction in software [closed]

I am currently working a project where I use a rotary optical encoder to control the position of a dc motor (linear position along a fixed axis) . While testing the setup I found that I don't have ...
1
vote
1answer
32 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 ...
0
votes
0answers
44 views

invalid conversion from 'char' to 'const char*' [-fpermissive]

Hi I'm new to coding arduino and I'm trying to check if a get request has the a paramater that is the string '1', but it gives me the error D:\hforr10\My Documents\Arduino\wifi_control_test\...
0
votes
1answer
21 views

How to Set RTC in ES32 using NTP server?

I am working on ESP32 And want to set RTC from the NTP server. How can I get epoch value I have done this thing on CC3200 launchpad and used an NTP server library to obtain epoch value.
0
votes
1answer
22 views

I2C comunication, ESP->Nano on endTransmission no ACK fron nano

i am trying to communicate between ESP(master) and arduino nano(slave). This is only a prototype and all works fine. But i want to add multiple arduinos and therefor i need to detect if the arduino ...
0
votes
1answer
27 views

Esp32: is OTA compatible with FREERTOS

Can I use OTA along with FreeRTOS tasks on ESP32. I ask this because in the following example OTA seems to be enabled if FreeRTOS is disabled. Can for example upload firmware that runs on both cores ...
0
votes
0answers
24 views

I need an example of how to send AT COMMANDS to SIm7000E GPS+LTE module from ESP32 and reading those response in Serial monitor

Actually I need to make HTTPS post request using SIM7000 and ESP32 but the available libraries don't have a function for HTTPS post request, I wanna make this request using AT Commands. I need a ...
0
votes
0answers
24 views

How to convert 13 digit EPOCH time into time and date? [duplicate]

Here is my sketch, where the time is in the JSON document: #include <HTTPClient.h> #include <Time.h> #include <TimeLib.h> #include <Wire.h> #include <WiFi.h> #include <...
0
votes
0answers
28 views

esp32 pico kit - actual clock speed vs crystal vs max_speed etc

I am trying to understand how the clock speed in the esp32 works. I am running arduino ide 1.8.12 with 1.04 board definition - on a pico kit 4 module . The device datasheet says it has a 40mhz crystal....
0
votes
0answers
33 views

esp32 board crashes

I try to connect sensors to esp32 board. when connecting a sensor, for example, DHT11, but it happens with others as well the board enter into a loop of boots with the following error 19:36:37.440 -&...
0
votes
0answers
37 views

library problem ? how to solve this?

Arduino: 1.8.11 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None" Multiple libraries ...
0
votes
0answers
12 views

ESP32 - use std::bind to use Ticker library inside a custom library

My goal is to use Ticker inside a custom library. When originally asked by me in Error in defining Ticker in ESP32 library, I did not manage to fully comprehend the use of helper function. Appreciate ...
0
votes
1answer
42 views

ESP32 - DeepSleep loop or not?

I'm trying to create a battery & solarpowered ESP32 for future use with sensors. It connects to Wifi, MQTT, publishes some readings and status messages and go back to sleep. From time to time (can ...
-2
votes
0answers
44 views

Error acquiring data on esp32 for geiger counter

I bought the same boards used in this video on Youtube (the componts are THIS geiger counter (that I am pretty sure its working, the tiks on the speacker are coerent) and THIS esp (I don't know if is ...
0
votes
1answer
27 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
0answers
22 views

esp32-pico-4d not working

My power supply is feeding the esp32-pico with 5v tho it says that there is 0 amps power drain, already there I know something isn't working since the power drain should be around 0.080amps, (it can ...
0
votes
1answer
48 views

ESP32 - `Brownout detector was triggered ` upon Wifi begin

I'm Using an ESP32 - NodeMCU. One of the MCU's is acting weird upon boot, while at start I thought it was something to do with its sleep cycle. But, it seems that even on a minimal code as shown below,...
1
vote
1answer
50 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(...
0
votes
1answer
57 views

3.3V to 5V PWM level shift

I need to shift a PWM signal from a ESP32 (3.3V) to receiver that supports 5V. The signal is at maximum of 400Hz. Can this shifter do the job ?
0
votes
0answers
31 views

Is it possible to implement old AVR library onto arduino (specifically, NodeMCU esp8266)

I am a Computer Engineering Undergrad, currently in a cryptography(computer security) course, and I was assigned to do projects about implementing µNaCl library onto Arduino. I currently own a nodemcu ...
0
votes
1answer
33 views

Is it possible to send data from internet server to ESP8266 behind proxy or regular requests from ESP8266 are required?

It would be kind of push notification or something like that probably. I can first connect to server and send it any data for "registration"... I found many examples with websockets but all ...
0
votes
0answers
30 views

esp32 e-paper driver not working

I am trying to setup waveshare 7.5 display (Waveshare_7_5) with esp32 e-paper driver using ESP32-e-Paper-Weather-Display My code is here https://pastebin.com/raw/2zQDe9a9, have corresponding ...
0
votes
1answer
48 views

Arduino exercise that i have no idea how to do

The messages received by the Arduino take the form: $ Ba, Pb, Rc # Where $ represents the beginning of the message, # represents m, and B, P, and R are characters representing B button, P period and R ...
0
votes
0answers
37 views

ESP 8266/32 - How to avoid immediately turning Off the device with RST pin conencted?

I would like to ask how to avoid the turn of the ESP8266/32 in case the door switch will be in the state closed? I am solving the situation when the doors are opened, the device is booted from the ...
0
votes
1answer
34 views

Fail to convert time_T from past to tm struct

Continuing a Question asked few days ago, answered by Edgar, a new question has rised: My goal was using a past time_t value, and convert it into a struct tm variable in order to use it, part as a ...
0
votes
0answers
19 views

Voltage issue on an esp32 wvroom 32D development board

I have an esp32 wroom 32 dev board. I'm running into power issues and I'm not sure what's going on. When I try to upload sketches the uploads fail if I have any jumpers running to the 5v or 3.3v ...
0
votes
1answer
40 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
2answers
45 views

Antenna for ESP32-pico-d4

I am currently playing a bit around with the esp32-pico-4d, it does not have an onboard antenna, so an external antenna is needed, tho I don't know a lot about it so a little help would be appreciated....
0
votes
2answers
71 views

ESP32 runtime error in 2d array

I am trying to serial print the value of b[0][0]. Has to be zero but it dose not work! Here is the code void setup() { Serial.begin(115200); byte b[321][241]; Serial.println(b[0][0]); } void ...
0
votes
1answer
46 views

How do i fix the “A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header”

I have an AI Thinker ESP32-CAM and I've had issues uploading the CameraWebServer sketch, every time I hit upload it says "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for ...
0
votes
1answer
85 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() { ...
0
votes
1answer
20 views

ESP32 proper DS18B20 wiring

I want to connect a DS18B20 to my newly bought Heltec ESP32 LoRa (V2). For initial testing I have used some standard code: #include "heltec.h" #include <OneWire.h> #include <...
0
votes
1answer
27 views

ESP32 using PubSub, creating an error when implemted inside a library

I wish to combine into a single library Wifi + MQTT, for a multi devices project. right after boot, getting Wifi - I get an error the moment MQTT server is trying to connect: mqttClient.connect(...
0
votes
1answer
23 views

ESP32 Cannot assign value to string. Getting wrong value

Hello I have problems with strings in my sketch. I assingn values to my string (for example tempStrReturn) in the functions setNr1, setNr2. If i pass the value 1 to the function i get "" or "...
3
votes
1answer
64 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....
0
votes
1answer
86 views

Esp32 external interrupts sometime is missing

In short. ESP32, two water meters (hot and cold). Booth, hot and cold, some interrupts are missed. When i connect ESP32 to serial monitor and watch then all interrupts are detected (about 5-10 minutes)...
0
votes
0answers
44 views

Periodic noise on ESP32 ADC

I've got an Adafruit HUZZAH32 ESP32 feather board connected to my PC via USB and I'm trying to read from a voltage divider at ADC1 channel 0, powered by the 3V pin. For troubleshooting, I'm using two ...
0
votes
0answers
22 views

Impossibility to open a file for modification in ESP32

Consider the following code: #include "SD.h" #include "Fs.h" void setup() { Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } ...
0
votes
0answers
34 views

Can you program an ESP32 with an Arduino?

I've done it with an ESP-8266 but can't find any articles on how to do it with an ESP-32. I'm working with an ESP-32 on my own PCB, not a dev board. I exposed: 3V3 GND EN TX RX IO0 I'm pretty sure I ...
0
votes
2answers
48 views

How to modify values inside a file

I am writing a wav file to an SD card on a ESP32 and that requires that every time I append data to the the end of the file I modify the header to set the right size in some fields. I cannot find how ...
0
votes
2answers
27 views

Does toCharArray prevent a String being created on the heap?

I know it's bad to use Strings due to the memory problems that can occur. I've tried to remove all instances of strings from my code. But I'm not sure about this line: http.getString().toCharArray(...
0
votes
0answers
23 views

conver UUID to string for mqtt publish

I am trying to publish jason to mqtt. Following is just a snippet of a code.When i try to add data["uuid"] to json data doesn't get published to MQTT, if I omit data["uuid"] everything works. UUID is ...
0
votes
0answers
24 views

Is there a way to both read and write on the rising edge of the SPI Clock?

Im trying to use sipo and piso shift registers simultaneously with ESP32 using SPI. However the sipo(SN74AHC) reads data on the rising edge of clock and the piso(SN74HC165) outputs data on the rising ...
0
votes
1answer
34 views

5 arrays or one matrix?

I am working on a project where i need to store as fast I can following : 1 - Acceleration on X 2 - Acceleration on Y 3 - Acceleration on Z 4 - timestamp 5 - A value from some other sensor ...
0
votes
0answers
34 views

eps32 bad adc even with external adc (ADS1115)

Im trying to read an analog value with my esp32 and send it over wifi to another esp32. The wifi part works flawless, however when i try to read an analog value form the esp32 its not useable. It ...
0
votes
0answers
40 views

Edit JSON File on SD Card

I am currently Working on a project, where I save values in a JSON File on an SD Card. The JSON looks something like this: { "ID1":{[[starttime, endtime], [starttime, endtime], [....
0
votes
0answers
40 views

ESP32 Low Power Reconnect Latency Question

I am trying to develop a small 9-button BLE keyboard on the ESP32 with a rotary encoder as a volume knob. My question involves the low power modes and the time it takes for them to wake up. My ...

1
2 3 4 5
8