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
1answer
18 views

Arduino esp32 randomly corrupted variable

Every so often my variable gets corrupted. Sometimes it happens several times in a row and other times it doesn't happen in several hits. I put these logs to rule out that any of the operations ...
0
votes
0answers
25 views

Why does my sensor values not upload in thingspeak?

When I use only one sensor(Pulse Sensor) to upload in thingspeak there is no problem, it actually shows it's values. But when I upload two sensors(Pulse and lm35 temperature sensor) It wont upload for ...
0
votes
1answer
32 views

How to execute programs based on received bluetooth value - wake-up-light (ESP32)

I'm trying to execute programs on my arduino based on values received via bluetooth. Although I've experimented a lot, I'm unable to get the code to work. I have build a simple android app with three ...
1
vote
1answer
51 views

servo motor and l298n motor driver doesn't work together with esp32

so basically I am using 4 servo motors for our robotic arm and 1 l298n motor driver for 2 motor drive for base of the arm. when I individually tested robotic arm and controlled 4 servo motors, it ...
1
vote
0answers
40 views

ESP32 stack error when reading from BLE device

I'm using this code here to read data from a BLE thermometer using an ESP32. The code sometimes works fine and i can get the data: + Connect : a4:c1:38:69:0c:ff * Connected a4:c1:38:69:0c:ff + Found ...
0
votes
2answers
65 views

'PinStatus' does not name a type

I bought an "off-brand" ESP32 board. I can upload blinky without a problem using platformio with the following platformio.ini file: [env:humidious] platform = espressif32 board = nodemcu-32s ...
0
votes
1answer
17 views

No SPIFFS data upload in Arduino IDE 2.0.0-rc3 (ESP32 & TTGO) - Ubuntu

I tried adding esp32fs.jar to /home/myname/Arduino/tools/ESP32FS/tool (and a few other places as it looked likely that the jar file wasn't loading). I've definitely got the correct board selected, ...
-1
votes
1answer
41 views

On a custom ESP32-based PCB, I can' flash anymore after the first successful firmware flash

I have designed and manufactured a custom PCB, with an ESP32 chip on it. I use my FTDI cable to upload my firmware. I have no problem to flash my firmware, and it runs with no problem. So far so good. ...
-1
votes
0answers
34 views

Connect two ESP32 via Bluetooth Classic [closed]

There are lots of examples how to communicate with ESP32 via Serial Bluetooth Terminal Application on the smartphone. However, I need an example showing how to connect two ESP32 via Bluetooth.
0
votes
1answer
38 views

ESP32 heap problem

I wrote a simple C++ program (just main.cpp and corresponding platform.io files & libraries) to get BME280 sensor readings. It worked fine until I decided to use good programming practices, using ...
0
votes
1answer
37 views

Using arduino framework how many instances of SoftwareSerial can use simultaneously with esp32

Ussing popular library https://github.com/plerup/espsoftwareserial/ can I have multiple softwareSerial ports (for example 6 ports). I’m the readme say “ several instances can be active at the same ...
1
vote
0answers
37 views

Save Circularbuffer in RTC memory of ESP32

I would like to save my Circular Buffer in the RTC memory of my ESP32 when I use deep sleep. So I have initialized it with RTC_DATA_ATTR but when I go into Deep Sleep I lose the data I've saved. Is ...
1
vote
0answers
33 views

Is possible to use ESP-NOW in LR mode (long range) simultaneously with WIFI STA (to connect to internet over wifi)

I am building esp-now gateway with mqtt but need long distance (200 meters). I try to use LR mode but when I enable de LR mode I lost connection with WiFi. Is licit to make use of LR and STA at the ...
-1
votes
0answers
14 views

Inheritance of objects declarations from top of files hierarchy to 3rd level

I successfully compiled and debugged two functional modules of a complex project, and am working on the third one. The project has hierarchical structure where the 1st level includes the ino and ...
-1
votes
0answers
24 views

How to use ESP32 sdkconfig item in platformio?

I build my ESP32 project from platformio and I'd like to change CONFIG_MBEDTLS_DYNAMIC_FREE_PEER_CERT in order to reduce the RAM footprint. I don't get how to do that: should I modify my platformio....
0
votes
0answers
50 views

Bluetooth HID keyboard for ESP-32 or Arduino Mega

I want to use bluetooth Keyboard in my project. I made a cool rgb and sound controller using Arduino Mega. My pins are: 4 push buttons (4 pins) 4 Toggle Switches (4 pins) 1 key switch (1 pin) 1 Rotary ...
1
vote
0answers
22 views

xQueueGenericReceive error on ESP32 (using FastLED which relies on FreeRTOS) for adapted MeteorRain LED animation

I'm trying to adapt the MeteorRain animation from Tweaking4All to work on segments of my light string (vs using the entire string) and I'm getting an error in FastLED.show() (on a line that is used ...
1
vote
1answer
43 views

Arduino Nano and ESP32 Read Different Values over Serial

I am trying to use the Neato xv11 lidar with an ESP32. This should output packets of 22 bytes with the starting byte 0xFA. The communication is 8N1 and the baud rate is 115200. When I connect the ...
0
votes
0answers
6 views

Preferences NVS can not save array over 11 bytes [migrated]

Why can't I store arrays with size over 11 bytes inside Preferences using putBytes. Example: struct config_wifi_t{ int *test; }; struct configuration_t { bool result; config_wifi_t config_wifi;...
0
votes
2answers
87 views

Why does oscilloscope trigger look shaky when using delayMicroseconds?

I'm new to electronics but I have a Rigol DS1054Z oscilloscope and I'm experimenting to help learn. I've created an incredibly simple sketch using an ESP32 and Arduino IDE: void setup() { pinMode(...
-1
votes
1answer
49 views

Is an ESP32 HTTP web server limited to a certain number of Base64 images?

This sketch only displays about nine images (when there are more). Does this mean the ESP32 is limited amount of Base64 images able to be displayed? #include <WiFi.h> #include <WebServer.h>...
4
votes
1answer
117 views

Random access to SD card using SD.h or another library (ESP32)

I'm trying to use a SD card with my ESP32 in order to save some variables in a txt file. Each variable uses 1 byte, so they can be represented by an 8 bit extended ASCII character. The issue is it ...
0
votes
1answer
18 views

ESP32: spi_master: check_trans_valid(801) when using SPI

I use the following code to communicate with a display: void Display_HandleDC(spi_transaction_t* p_Transaction) { gpio_set_level((gpio_num_t)LCD_DC, (uint32_t)p_Transaction->user); } static ...
-1
votes
1answer
48 views

ESP to ESP serial communication with serial monitor output for both?

One ESP32 sends "-" to another ESP32. They are connected on receive (pin 16) and transmit (pin 17), and grounds. /* * multipleESP32serial_1 */ #define RXD2 16 #define TXD2 17 // Send ...
1
vote
0answers
59 views

POST ESP32 image buffer using HTTPClient to Node.JS API

I'm trying to post the buffer generated by the ESP32 camera to my personal API service I have built with Node.JS. The post gets sent successfully. I have yet to test it on large image (higher ...
1
vote
0answers
46 views

ESP32 Bluetooth Master does not connect

I want to connect an ESP32 to a SMA Sunny Boy SB5000-TL Solar convertor over Bluetooth, but I cannot establish a connection and I'm kind of stuck. I use the internal bluetooth module of the ESP32. ...
1
vote
0answers
74 views

ESP32 CAM : How to send good quality images via MQTT

Has anyone here ever used a ESP32 CAM to send an image via MQTT? I'd like to know what are the parameters to initialize the camera with (resolution, jpeg quality, etc.), because once I receive the ...
2
votes
0answers
59 views

Azure IoT times out while trying to send a message from an ESP32

I am looking for a working example of an ESP32 sending telemetry data to Azure IoT hub. I find nothing working around the internet: below is the code I am trying to make it working. As you can see in ...
5
votes
1answer
55 views

ESP32 how to preserve RTC time during brownout

I want to use the ESP32 built-in RTC clock. In my situation, my ESP32 will not have access to an NTP server I do not want to use external RTC modules ESP32 provides a pin VDD_RTC will powers the RTC ...
-1
votes
1answer
64 views

Arduino library or code for ESP32 to scan for Bluetooth devices?

Is there some code or library that would allow me to scan for nearby Bluetooth devices using a common ESP32 board ? I only found similar code for actual Arduino boards.
1
vote
1answer
47 views

ESP32 TCP disconnect takes very long to be recognized

I'm using the following class to create a stream from a WiFi (server) connection. The client (a PC application) connects to the ESP32 and then issues commands over this connection. This works fine. ...
1
vote
2answers
348 views

Arduino ESP32 Import Error No module named serial

I googled and couldn't find a solution to my nice problem: I have Ubuntu and I want to program a ESP32 ............... I tried a lot of pip commands ... but it didnt work. You have any idea how to ...
0
votes
1answer
62 views

sizeof tm struct (datetime) different on ESP32 vs linux64x

I am logging binary data to my SD. I log a datetime object of type 'tm', which is 36 bytes on ESP32. When I create a datetime of type 'tm' on linux it is 56 bytes. ESP32 write tm to SD: [tm datetime = ...
1
vote
0answers
43 views

Need Help with HTTPClient.h and storing cookies

Im very new to Arduino. Using an ESP32, Im trying to login to a network device to read its log file. To login to the device I need to simulate a web browser with cookies. The ESP32 is connecting to ...
1
vote
0answers
33 views

Arduino IDE Java error

I'm running IDE version 1.8.16 under Windows 10. Frequently I get the error message. The situation is solved only when exiting the IDE. Afterwards the compilation may be finished with or without ...
0
votes
1answer
22 views

String operations printing random character on Serial Monitor

I want to extract the file name MyFile.txt out of a path which is stored in a string "C:\\MyDirectory\\MyFile.txt"; I found a simple c code which does the job. string filename = "C:\\...
1
vote
0answers
57 views

ESP32 Classic Bluetooth Set Password

I am using ESP32 classic Bluetooth Feature for data transfer. I am using the SerialToSerialBT example. I am able to scan and discover the Bluetooth device from my smartphone. But the pairing is ...
1
vote
1answer
101 views

ESP32 not detecting PN532 module running in SPI mode

I am trying to get the Pn532 module working on the esp32, first I tried to get it working with i2c and had some "success"(it worked, but as soon as I had another i2c device, in my case a ...
0
votes
1answer
49 views

Arduino LiquidCrystal library code prevents ESP32 from running. For 16x2 character display

See bottom for solution. I am trying to run the Arduino LiquidCrystal library example HelloWorld.ino on an ESP32. It seems like it never even executes the Setup() loop. The ESP resets after eight ...
1
vote
0answers
70 views

How to connect Nodemcu ESP-32s and GSM SIM800L

The code that I use: #include <SoftwareSerial.h> //Create software serial object to communicate with SIM800L SoftwareSerial mySerial(16, 17); void setup() { //Begin serial communication ...
1
vote
2answers
92 views

Wifi Scanning code for esp32 wroom 32

I am trying to scan wifi in sta_ap mode in my esp32 wroom 32 module but it is not scanning new wifi .Can anybody tell more about how does wifi mode works in this module and what's the problem in my ...
1
vote
1answer
36 views

Libraries are not linked

I created 4 libraries, each in .h and .cpp files, and tested them individually. I kept the project flexibility by defining 3 flags that allow or disallow the usage of the libraries. When integrating ...
1
vote
0answers
126 views

Getting location working on SIM800L with TinyGSM?

Hey Arduino enthusiasts :) I have purchased a LilyGo T-Call board. Which has a Esp32 processor and a SIM800L GSM module. For my project i want to send location data over the 2G cellular network. I am ...
0
votes
1answer
63 views

Updating ESP32 firmware from another ESP32 over USB, similar to how esptool.py works

Is there a way to update the firmware on one ESP32 from another ESP32 over USB, similar to how firmware can be updated using esptool.py? This would essentially be like a port of whatever magic esptool....
0
votes
1answer
72 views

Serial comm UART1 works on Arduino but makes ESP32 continuously reboot

This comm sketch simply read incoming bytes from the UART 1 where a device is attached. It works normally on a real Arduino device. But on ESP32, it makes it continuously reboot with the following ...
1
vote
0answers
48 views

ESP32 BLE service not visible to Node-RED

I've been trying to host a BLE-server on my ESP32 with a custom service. I'm trying to read the service data in NodeRED, but the service IDs and custom characteristics don't show up in NodeRED ...
1
vote
1answer
82 views

What's is the best way to convert std::string to String?

Pardon me, I am a novice programmer. I was trying to use the toInt() function for a std::string but I noticed that toInt() only works for the String class. So, I have an std::string sliderValue and ...
0
votes
1answer
58 views

multiple mpu9250 using tca9548a with esp32

I'm using ESP32 and 1 sensor mpu9250(only for test) with tca9548a, connections are: TCA <-> ESP VIN - VCC GND - GND SDA - GPIO21 SCL - GPIO22 TCA <-> MPU SD2 - SDA SC2 - SCL VIN - VIN GND -...
1
vote
0answers
33 views

RTC DS3231 always remember the old time

I try to change time on windows to test my programing condition but RTC usually keep old time when i change time on windows and re-upload the code . I'm also removing the battery and cut the power it ...
1
vote
1answer
150 views

How Arduino IDE work with ESP32?

I understand how compiler compile our code to make binary code. Then we can use avr gcc to upload bin code to atmega chips via programer (USB ISP) or via USB serial (required bootloader). I'm using ...

1
2 3 4 5
13