All Questions
Tagged with arduino-ide esp32
99
questions
-1
votes
0
answers
22
views
I'm using a ESP32 Thing and a MMA8452 and the output that is coming is just repeating
I'm using a ESP32 Thing and an MMA8452. So a microcontroller and a 3-axis accelerometer. I used code from http://www.esp32learning.com/code/esp32-and-mma8452-accelerometer-example.php.
The code is ...
2
votes
0
answers
99
views
Same code working on Arduino IDE but not in PlatformIO IDE
I'm running into this weird problem. My code is working just fine when I upload it to an ESP32 from Arduino IDE. That same code is not working when I upload it using PlatformIO IDE. The same libraries ...
-1
votes
0
answers
40
views
ESP-32S NodeMCU - Unable to upload sketch
I was able to upload sketch to my ESP-32S, but now it don't work.
I alway get
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to ...
0
votes
1
answer
68
views
ESP32: why does malloc can only alloc 126888 bytes with 402540 bytes heap?
I need a buffer of the size 153600 bytes in my ESP32 project, but I could not create a static buffer in code nor can I malloc the buffer.
The ESP32 itself reports:
ESP.getHeapSize() // = 402540
...
1
vote
0
answers
99
views
ESP32 WROOM32E w/ Arduino IDE 2axis joystick - how do I get a good reading?
How do I get the full range of motion from an analog joystick and the ESP32 WROOM32E using the arduino IDE with esp-idf installed?
Using a 2 axis analog joystick, the 5v/3.3v pin, ground pin and the ...
2
votes
0
answers
35
views
How would I link inline debugger with esp32 on Mac?
I am trying to connect JTAG debugger to my esp32 according to the following steps https://www.instructables.com/How-to-Use-a-Debugger-on-an-ESP32/
but still I am facing issue in debugging. I am ...
0
votes
1
answer
79
views
Is there accurate connection procedure for connection between an esp32 and ultrasonic sensor(HC-SR04)? [closed]
I am currently working on a project which integrates esp32 and HC-SR04 and send the data from HC-SR04 to my own domain. The connection diagram is this
And the code which I use is this,
const int ...
1
vote
0
answers
77
views
Is there any way to secure Esp32 BLE server?
I've got a project in which currently I am using Bluetooth classic (with SSP - Simple secure pairing) to communicate to my esp32 board with my android app, but Bluetooth classic serial communication ...
1
vote
0
answers
58
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
1
answer
38
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
0
answers
202
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
2
answers
367
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 ...
0
votes
1
answer
91
views
How can I make my code Thread-Safe?
So I made a post yesterday running into an issue on my ESP32 using both cores on the microcontroller (with wifi enabled, incase that is important).
I'm using both cores to control two Neopixel strips ...
0
votes
1
answer
120
views
ESP32 AP Automatic Web Page
I've often encountered WiFi networks that require you to sign in through a web page that automatically opens after connecting to the access point, such as hotels. I'd like to implement something ...
2
votes
0
answers
85
views
Extract Static Acceleration from MPU6050 using Formula
I am trying to implement a research paper for my project and there is a formula which I am failing to interpret:
According to the research paper, we extract the static acceleration component for each ...
2
votes
1
answer
99
views
ArduinoJson library parsing error
I am trying to retrieve JSON mqtt message I received in ESP32.
void mqttMsgCallback(char* topic, byte* payload, unsigned int length) {
payload[length] = '\0';
String _message = String((char*)...
1
vote
1
answer
43
views
ESP32 SerialBluetooth disconnects within a second after connecting but not BLEDevice/BLEServer
Code using BluetoothSerial api disconnects immediately after establishing connection with my laptop running Ubuntu 18.04. If instead of BluetoothSerial BLEDevice api is used, the connection stays ...
1
vote
2
answers
254
views
Error compiling ESP32 Wrover Module in Linux Virtual Machine
SO i have been getting this error window when i compile a simple code to run different LED lights on the ESP32-S2-SOLA (Wrovere) module
Code:
int LED_BUILTIN = 2;
void setup() {
pinMode (...
1
vote
0
answers
466
views
ESP32 doesn't connect to Arduino. | could not open port 'COM2': WindowsError(5, 'Access is denied.')
ERROR:
serial.serialutil.SerialException: could not open port 'COM2': WindowsError(5, 'Access is denied.')
I've tried literally everything.
Drives checks out! | Silicon Labs CP210x USB to UART ...
1
vote
1
answer
573
views
ESP32 Partition size and maximum program size
From an ESP32 example code, I extracted the following part, that just prints the flash partition list to the console.
#include <string.h>
#include <assert.h>
#include "esp_partition.h&...
4
votes
2
answers
737
views
Code for ESP32 without Development Board
I'm very new to microcontrollers. I'd like to start developing for the esp32, as it has integrated wifi & bluetooth for quite cheap. This being said, i don't have a board yet. Is there a way i can ...
1
vote
0
answers
65
views
ESP32-DEV is connected to Wifi but not working properly
Hardware:
Board ESP32 Dev Module
Version/Date today's master
IDE name Arduino IDE
Flash Frequency 80Mhz
PSRAM enabled no
Upload Speed 115200
Computer OS Windows 10
Description:
I am doing a project ...
1
vote
0
answers
125
views
Problem with ESP32 bluetooth
I am trying to connect ESP32 via bluetooth classic to my PC to transfer some data from a sensor.
As a first step, I am simply trying to send some random data over bluetooth serial. The code is at ...
1
vote
1
answer
164
views
StoreProhibited error while trying to read file to PROGMEM
I'm trying to read a file from micro SD on an ESP32-cam board and upload to an FTP server, but when I try to read data from the opened file to an unsigned char, it gives me the following error:
Guru ...
1
vote
0
answers
83
views
How to use pins for I2C that is used from other hardware?
I am using ESP32 CAM for one project and I have a sensor that is I2C connected to pins 21 and 22 (default I2C). The sensor is working fine until I turn on the camera. The camera uses this pins (21,22) ...
1
vote
2
answers
1k
views
Setting float to two decimal places
I'm trying to set my temperature measurements to two decimal places. Currently what I get are six decimal places.
Here is my code:
#include "math.h"
...
(in loop)
temp1 = sensors....
1
vote
0
answers
23
views
Does the Sparkfun ESP32 Thing is compatible with generic modules like DHT11 sensor?
First of all I am kind of a noob working with microcontrollers, by the way I am using Arduino IDE 1.8.13
I fallowed the hookup guide to set up Arduino IDE to work with Sparkfun ESP 32 Thing board, and ...
0
votes
1
answer
699
views
ESP32 millis not working properly
I have a program which measures temperatures every 30 minutes and sends them to a database. Immediately after running the program the first measurement is sent, however, the second (which should be ...
1
vote
0
answers
86
views
generate and using a precompiled library ESP32
I would like to ask you how I can generate a dot_a file for a given library for ESP32? I want to replace my .cpp file with a precompiled .a in the Arduino IDE.
Is that possible? Can you please guide ...
1
vote
1
answer
362
views
Using lambdas as callback functions
Using the Ticker library for the ESP32, how can I use a lambda as an argument to the attach method?
tickerSystemManager.attach(1000, [&](){
systemManager->sync();
});
Attempting to use the ...
1
vote
0
answers
76
views
Problem with sending sound sensor data to app using ESP32 over BLE_UART
I was working on Adafruit Electret Microphone Amplifier - MAX4466 with Adjustable Gain
and ESP32.
I want to send data to an app using BLE UART
I have printed data to the serial monitor or serial ...
0
votes
1
answer
104
views
Connecting the cathode of a diode to the output of a multiplexer
From the image, the diodes share the same anode which is driven by 'Do Something'. My question is: through using Arduino IDE, what code should I write that connects the output of the multiplexer (Z) ...
1
vote
1
answer
803
views
How to implement brown out detector arduino ESP32?
We are using ESP32 with arduino sdk for developing our application. In our application we need to implement BOD to detect with specific voltage level.
Basically we want to set specific voltage level ...
1
vote
0
answers
2k
views
how to clear heap memory in esp32?
I am using Free RTOS on esp32 in my program.
However at some point of time when I execute xTaskCreate() it returns -1 , which error is could_not_allocate_required_memory. In my program, each time i ...
1
vote
1
answer
4k
views
esp32 Stack canary watchpoint triggered
I am writing a program for esp32 on Arduino IDE. On some point of execution of code for File reading I am facing this exception,
Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception)
...
1
vote
1
answer
76
views
Host a webserver on esp32d that has a hyperlink that triggers an ardiuno song through a buzzer
I would like to use my ESP32D to create a wireless access point and host an html page that has a hyperlink and a few other things on it that triggers an arduino song (rickroll), and plays it through a ...
2
votes
0
answers
65
views
How can I rewrite my Bluetooth Classic Arduino code into Bluetooth Low Energy Arduino code (and have everything working the same)
My original code for BT Classic
My Work in Progress BLE Code
I am trying to take all I did in BT Classic and have it working exacly the same in BLE but the Rssi keeps returning 0's in the BLE code and ...
1
vote
1
answer
232
views
ESP-NOW with esp32 and esp8266
I want to use ESP-NOW with esp32 and esp8266. The esp32 will mostly send data to esp8266.I was not able to find any good tutorial on YouTube to achieve this. The only videos I found was for either ...
1
vote
0
answers
75
views
Error compiling to ESP32 using Arduino: Operand 2 of 'l32r' has out of range value
I was trying to follow this tutorial and ran into a problem compiling on the Arduino IDE with an ESP32 board. https://eloquentarduino.github.io/2019/12/how-to-do-gesture-identification-on-arduino/
I ...
6
votes
2
answers
10k
views
No programmers available for this board - Programming ESP32 Cam with Ardunio IDE
This is my first time working with ESP32 Cam boards.
I have followed the instructions as given in this site https://technoreview85.com/how-to-program-esp-32-cam-using-arduino-uno-board/
However my IDE ...
1
vote
0
answers
104
views
Esp 32 keeps disconnecting from com port
I was trying to upload a blinking coding that was in Arduino IDE but the Arduino IDE can not detect my Esp32 but when i press "EN" i manage to get connection but when i letgo the esp32 ...
-2
votes
1
answer
100
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
1
answer
5k
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
0
answers
118
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 ...
1
vote
0
answers
153
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
1
answer
2k
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
0
answers
88
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 ...
1
vote
0
answers
331
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
2
answers
2k
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
1
answer
2k
views
HTTP POST from Arduino/ESP8266/ESP32 How to send parameters (x-www-form-urlencoded)
EDIT: Thank you for the answer, also we had figured out how to do it Micropython too - I believe that it is relevant for the Arduino/ESP8266/ESP32 community to share this too.
https://github.com/...