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
2
votes
2answers
41 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 ...
-2
votes
1answer
39 views

Arduino ESP32F-TFT-1.44 Driver

Datasheet https://github.com/espressif/esp-hosted/files/5190376/ESP-32F.pdf The below code is not working. I can see only White screen #include <Adafruit_GFX.h> // Core graphics library #...
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/...
0
votes
1answer
29 views

Knowing if ESP32 wakes up itself or manually

I have a project where I put an ESP32 to deep sleep for a certain amount of time, eg: 1h To be able to self-awaken a cable must be connected from GPIO 16 to the reset pin, so basically the ESP pulls ...
0
votes
1answer
19 views

ESP32 send UDP packets from both cores

Im using AsyncUDP in an ESP32 project, where I initialize AsyncUDP udpSender and call udpSender.write(sendbuffer, sendbuffer_size) from both cores, with different buffers on each core. One core is ...
-1
votes
1answer
29 views

ArduinoJson is not adding string to JsonObject. ArduinoJson broken?

So I've got this code String GetTimeString(){ strftime(dateArray, 100, dateFormat, getTimeInfo()); dateString = String(dateArray); Serial.println(dateString); return ...
2
votes
1answer
93 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
1answer
52 views

Error occurs when compiling ESP32 self-update firmware code

when i write this code in esp8266, it's work fine. but when i tried that code in esp32 with some changes,it shows error on compile time: board which i use : DOIT ESP32 DevKit v1 error is: In file ...
1
vote
0answers
15 views

Adafruit IO + Esp-Now

So i am using adafruit io and esp-now on an esp32 to recieve voice commands from the internet and sensor values from another esp32. Independently, they both work quite fast but together the esp-now ...
1
vote
0answers
36 views

Designing Class Based Code on ESP32-8266

I have some questions about modular embedded systems codes and its usage. I am building an IoT Systems with esp32 now. To learn professional approaches for embedded systems, I have split codes to ...
0
votes
1answer
160 views

Powering an esp32cam by a battery

I have an esp32cam that I've programmed and powered via an FTDI connected to a computer's USB. Now that this stage is over, I'd like to run it portably, using some sort of battery. The esp32cam has a ...
1
vote
0answers
45 views

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 I am getting this error in my esp32 devkit v1 How to solve it? I am using arduino IDE for programming ...
0
votes
0answers
10 views

Get client information on BLE

So I'm working on a personal project using bluetooth abilities to start a BLE server and want to automatically retrieve a client's information after it's connected: ID so I can keep track of clients, ...
0
votes
0answers
88 views

Send only one packet from one ESP32 to another ESP32 without acknowledgment

I have a network consisting 10 slaves and one master. I am using ESP-NOW to send the messages between the nodes. All of the nodes are within close proximity. I do NOT need a mesh network to reach all ...
1
vote
0answers
13 views

ESP32 BLE Send Receive Example

In my past projects I created tcp server-client architecture to communicate mobil apps. For instance, I created an AP on ESP8266, mobile phone connects to AP send some data then esp8266 send response ...
0
votes
1answer
36 views

Neo 6M + ESP32 unable to take a fix on battery but works fine with laptop USB

I am using Neo 6M GPS module with ESP32 and 2 X 3.5V(7 v in series) 18650 lithium ion battery stepped down to 5V using LM2596 buck converter. Problem which I am facing is when I power ESP32 using 5V ...
1
vote
1answer
46 views

ESP32 nodemcu serialbt sending data

I'm currently trying to send data from esp32 to my android app that I made. The sensor readings are showing in the serial monitor, however, what's showing on my app are either @ or &. Please help ...
1
vote
2answers
56 views

Is WiFi traffic encrypted on ESP32?

I am using the ESP32 in soft access point mode. In other words I specify my wifi username and password on the ESP32 and I am able to connect to it from my phone. So I am not using any router or ...
0
votes
1answer
63 views

ESP32 start BLE after deep sleep

I'm new to using the esp32 as a microcontroller. I'm currently working on a so-to-say remote control. Since I want to use the esp32 with an external battery I need to put it in deep-sleep after I ...
0
votes
0answers
49 views

Uno to ESP32 - HardwareSerial repeats value on ESP32's side even though Uno is disconnected

I have an Arduino UNO connected to ESP32 through voltage divider with TX0 from Uno to RX2 to ESP32. My goal is to send data from my Uno to my ESP32 through HardwareSerial. Here's my code for the Uno: ...
2
votes
1answer
381 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 ...
1
vote
0answers
43 views

ESP32 SPI communication with MCP3903 not working

I am trying to read out the Microchip MCP3903 six channel ADC using an ESP32 via SPI communication. The MCP3903 is powered with 5V and 3,3V and is connected with an external 3,57 MHz crystal. The ...
1
vote
1answer
40 views

L298N Motor Driver with Nodemcu/ESP32

I have seen a lot tutorials on L298N motor driver with nodemcu and ESP 32, which are 3.3v logic boards where the motordriver is a 5v logic board, now in Arduino while doing speed control 255 means 5v ...
1
vote
2answers
53 views

Four temperature SHT31 sensors on ESP32

I have to read out the teperature and humidity of four independent SHT31 sensors with the help of an ESP32. Is there any prefered way to do this, since the only examples I can find online are only ...
0
votes
0answers
21 views

MPU6050 Accel/Gyro no-interrupt gives erratic accel readings

I am using the Electronic Cats MPU6050 lib to interface with an MPU6050 on an ESP32 without interrupt pin. The basic code reads data from the MPU6050 and then displays it on the OLED However the ...
0
votes
0answers
108 views

Reading SNMP V2 OID from ESP8266/ESP32

i need to read from my ESP32/ESP8266 some SNMP V2 OID values from my home printer: it exists a library/method that can do that? I've seen some SNMP agents, but they works only with the devie as server ...
0
votes
1answer
77 views

Animation of led strip with ESP32 does not work when WiFi is in use

I am using the ESP32 for a simple project. I know how to animate an led strip using atmega328p with arduino but when I animate it on the ESP32 it does not work that great. It will be nice if I can use ...
0
votes
1answer
77 views

ESP32 send data to another ESP32 without establishing a wifi connection

Originally I was creating a project consisting of the Atmega328P and NRF24L01 to create multiple arduinos that could talk to each other. Basically I was creating something like this: As the network ...
0
votes
2answers
78 views

Using different processors when it comes to arduino

I decided to learn Arduino in this quarantine so I am still a newbie when it comes to micro controllers. Basically I been doing all my projects based on the ATMEGA328P-PU: I even converted my ...
0
votes
0answers
60 views

Arduino UNO not sending serial data to ESP32

Lately I've been struggling with Serial communication between Uno and ESP32. I'm trying to send a simple string (In my case "100") from my Uno to my ESP32. I made a voltage divider and I'm ...
0
votes
0answers
178 views

Reading TCD1304 linear CCD Sensor

I want to read the TCD1304 linear CCD sensor with an ESP32 and I'm facing some problems. As a first "warm-up" and to get familiar with this sensor I tried to generate the sensors input ...
0
votes
0answers
99 views

BLE comunication between two ESP32s

how can i send data from one ESP32 to another with BLE? I was trying library from nkolban, but i didn't know how exactly should i write the code. All I want is to send a string with 5 characters. ...
0
votes
1answer
60 views

Uno - ESP32 SoftwareSerial communication won't work

I have two boards, Uno and ESP32 and my goal is to send data from the Uno to the ESP. I made a voltage divider so my ESP doesn't get fried and I use the communication only in ONE way, strictly UNO -&...
1
vote
1answer
86 views

Counting to 1000 In Both cores execution time problem in esp32?

I am trying to count to 1000 with single core and dual core with esp32 but the output(run time) dose not make sense, the time which takes a single core should be doubled compared to dual core in ...
0
votes
1answer
325 views

Which board to select in PlatformIO for ESP Wroom 32?

I'm quite new in this microcontroller topic and my next step is to make use of a wlan module, which is a ESP WROOM 32. As IDE I'm using Visual Studio + PlatformIO and I can't figure out how to access ...
0
votes
0answers
40 views

Temp Sensor not working on ESP32

I am using SHT21 temp sensor with ESP32 using I2C. The sensor only reports temp of -273 and 0 for RH. The sensor is not faulty as I have tried this on an Arduino UNO with the same sketch and it works ...
0
votes
0answers
182 views

ESP-NOW and WIFI and OTA at the same time on Sender and Receiver

I am trying to set up two ESP32s so that they can be updated via OTA and at the same time send sensor readings using ESP-NOW, from Sender Board to Receiver Board. For this to work both boards must ...
0
votes
0answers
53 views

ESP32-POE/ISO unstable after 10 days of power up

i have one ESP32-POE and ESP32-POE and i'm using the Olimex RS485 module to read a power meter that is placed near the ESP32 (5 meters of CAT5 cable - 9600 8N1). My device has this workflow (it's ...
0
votes
0answers
69 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 ...
1
vote
1answer
204 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
248 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 ...
2
votes
1answer
296 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
177 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
115 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
33 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 ...
-1
votes
1answer
77 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
117 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
25 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
31 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
43 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 -&...

1
2
3 4 5
9