Questions tagged [arduino-esp32]

491 questions
0
votes
1 answer

Javascript, localStorage problem. Works on desktop but not on mobile

I'm using an esp32 microcontroller for my web server backend. I use a template processor function to build the page on the backend because i can't use more then 8 socket connection because the MCU will crash. In order to load my page faster, i try…
Dr.Random
  • 430
  • 3
  • 16
0
votes
1 answer

Is there a way to reduce the amont of SPI PSRAM memory used up during esp_camera_init on ESP32-Cam

Below code:- Serial.printf("Before camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram()) cam_err = esp_camera_init(&config); Serial.printf("After camera config ... SPIRam Total heap %d, SPIRam Free…
VISHAL DAGA
  • 4,132
  • 10
  • 47
  • 53
0
votes
1 answer

cpp/arduino: classes call inherited virtual method

I'm struggling to find the right answer on below question on the internet. I'm not a native C++ programmer and have more knowledge of OOP programming in PHP, Pascal, and JavaScript, but i can manage. I want to create a class hierarchy to handle some…
Niels
  • 28
  • 1
  • 7
0
votes
0 answers

Sending IP Address through serial

first of all, I'm a bit confused about this problem so if you see any other solution it would be perfect. I'm connecting an ESP32 to my network and sending the IP address obtained with WiFi.localIP() to a nordic nRF52 DK (works as an arduino…
0
votes
0 answers

esp32 send data from a master to a slave CPU via UART (for firmware update)

I'm trying to achieve a following method to update 2 cpu's their firmware; As you can see, the master has internet, but the slave does not. Which means that I need some sort of "over the air" update mechanism. For the master side, this works, but…
Robin
  • 1,567
  • 3
  • 25
  • 67
0
votes
0 answers

How do I pair an ESP32 and a HC-05 module?

I have tried a lot of times, but any solution doesn't work. I'm using an ESP32 as a Control and HC-05 as an anthena for an Arduino UNO. I make that the HC-05 could read every String it recieves, but I'm not able to link the ESP32 (DevKit v1) with…
0
votes
1 answer

UART, can receive but not submit

I have an ESP32-S2 and an external unit, which is wired up to Serial2 (pin 16/17 and CTS on pin 8). The external unit can be accessed using a built-in USB->UART controller and I can open a terminal and submit HEX-commands, manually. Now, I…
Anders
  • 251
  • 3
  • 13
0
votes
0 answers

SQLite for ESP32 slow when using "ON CONFLICT DO UPDATE"

I am using this library for ESP32 to add a SQLite database to my project: https://github.com/siara-cc/esp32_arduino_sqlite3_lib I have used the "bulk_data_insert" example, adding "BEGIN TRANSACTION" / "END TANSACTION" and I am using a SPI SD card…
0
votes
1 answer

Store Union value in RTC memory

I'm trying to save a union in the RTC memory of my ESP32 but it doesn't semm to work. This is an example of what I'm trying to do: RTC_DATA_ATTR union { float float_variable; byte temp_array[4]; } u; int sleepTime =5; RTC_DATA_ATTR int…
EMall
  • 29
  • 3
0
votes
1 answer

esp32 getting temperature readings from ds18b20

I have run into some problems with the use of esp32 and dallas ds18B20 temperature sensors, as I can’t get readings out of them. The esp32 is a DOIT ESP32 devkit v1 and the sensors are the standard type through the hole and/or the ones that have…
thermike
  • 1
  • 1
  • 5
0
votes
1 answer

ESP32 stucks in HardwareSerial initialization code after software restart

I am working in ArduinoIDE with ESP32 and TFP625A fingerprint sensor. The sensor is connected to UART2 and served by the FPM library using HardwareSerial. Everything works fine until a programmatically reboot is performed - ESP.restart(). After this…
Olejan
  • 183
  • 3
  • 9
0
votes
1 answer

ESP32 Select one from multiple Wifi/AP with same Name/SSID

Let's say that there are multiple found access points (AP) with the same name (SSID). How can I choose to which one to connect?
Georgi Peev
  • 912
  • 1
  • 14
  • 25
0
votes
0 answers

Firebase - Access secured Realtime Database via GSM

this is my first question, so let if I did something wrong, I´ll rework it. This Issue For accessing a FBRD protected via Security Rules, the user has to be authorized and authenticated. Authorization: Done via setting up Security Rules ->…
AndyK
  • 1
  • 1
0
votes
0 answers

Interfacing MPU9250 with ESP32 using Arduino IDE

Following is my code, I am trying to read accelerometer readings. In the below code I am trying to read the z-axis reading of the accelerator. The output expected is around 1 but the output I get is either 0 or 2. Is it i2c or my logic is wrong. I…
S.G
  • 1
  • 1
0
votes
3 answers

Reading line by line in Arduino IDE

I'm trying to read txt file (has numeric values) line by line. I used SPIFFS and I used this function void readFile(fs::FS &fs, const char * path){ Serial.printf("Reading file: %s\r\n", path); File file = fs.open(path); if(!file ||…
lena
  • 730
  • 2
  • 11
  • 23