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
28 views

Set the wall clock time or change GMT offset without ntp server?

I have been able to get the current time from an NTP server and set what appears to be an internal clock using the configTime() function from the ESP32 core. I can then get the current time with the ...
0
votes
0answers
19 views

ESP32 - Html link

I'm programming a ESP32 modue and I have a code that generates an Access Point and displays an html with two buttons that changes the state of 3 leDs. I want to insert a button that calls a second ...
0
votes
0answers
25 views

ESP32 WIFI and BLE power status

Regarding the esp32, I am wanting to understand a couple of things related to both wifi and ble power control. 1.) How can I do a status check on whether both the ble and wifi radios are powered/...
0
votes
0answers
26 views

OTA update for ESP32 in Arduino ide from a different nework

I am trying to use the OTA to update my code in esp32. I have used Web updater so far and it has worked perfectly. But I want to update the code even when I am not connected in the same network with ...
-1
votes
0answers
55 views

Why my push button is not working? [closed]

I'm using a TTGO ESP32 wroom, and connecting my push button on to pin 22 of the device. But why is my push button not working when I press it. Anyway I'm new to Arduino. Hope someone could help me. ...
1
vote
0answers
30 views

Using ESP32 to measure vbat

I'm using ESP32 to read an analog value of a liPo battery (3.7v-4.2v). Since ESP32 DAC's is 3.3v I'm using a voltage divider ( 2x10K resistors ), to split bat's voltage into ESP's GPIO36. So far ...
1
vote
2answers
41 views

Is there an alternative to strtok_r in extracting words from char?

The task, in char, I get some data that I have to parse into parts. In this case, I use strtok_r, which finds identifiers like "=", " ", "&" Code: char payload[70] = "GET /wifi?ssid=MyWiFi&...
0
votes
0answers
17 views

TPS54331 compared to TPS82130SILT [closed]

looking through powerbumbs for my chip, I found these 2, tho the TPS-SILT costs around 6$, while the TPS54 only costs around 0.5$, the TPS-SILT only takes up to 17V, while the TPS54 takes up to 28V ...
0
votes
1answer
38 views

Is there an Arduino library that uses ARP to get list of connected devices on network?

I have been looking for a library that can execute an ARP (Address Resolution Protocol) command to return a list of connected devices on the network. The idea is that it would send the request to the ...
0
votes
2answers
35 views

ESP Web Server calling javascript function

Is there a way to call javascript functions from ESP? I don't want to call ajax requests every few seconds. I want to update my values only when they change. Can it by done? Thanx.
0
votes
1answer
29 views

ESP32 documentaiont for “time.h”

I am working from the example sketch in that installed with the ESP32 Dev Module into the Arduino IDE. It includes <WiFi.h> and "time.h". I have a number of questions about how to use the ...
0
votes
0answers
20 views

Record stereo audio from two Bluetooth headsets

I've been playing with Arduino for a few years, but I'm new to Bluetooth and streaming audio. I'd like to develop (or assemble or buy) a device for recording stereo audio from a pair of Bluetooth ...
0
votes
1answer
50 views

SD Library function doesnt work while using second SPI port with ESP32

i work on a group project with an ESP32. We have a lcd display and a sd card connected via the two SPI ports of the ESP32. The card gets initialized with no problem using this code: bool ...
0
votes
1answer
26 views

Is it possible to get values only during vibration/movement from an Accelerometer(ADXL335/MPU6050)?

I'm trying to make a wearable motion sensor using ESP32 board and ADXL335 Accelerometer. Presently when I'm serial printing the output I'm getting the tilt value as well, which have different values ...
0
votes
2answers
45 views

Information about 'Arduino Nano 33 IoT'

blox w-102 is based on esp32** which (Esp32) can be used as a standalone chip for projects. Here I want to know how w-102 and samd21g18a are communicating with each other. If they are communicating ...
0
votes
1answer
47 views

How to connect ESP32 to HC-06?

I am making a small project (BT controlled "tank") and need to connect ESP32 with HC-06 (ESP32 will be in controller and HC-06 in the vehicle). Android phone communication with both ESP and HC-06 ...
0
votes
1answer
38 views

json format in esp32 with arduino json

I am using an ESP32 module for bluetooth connection and scaning wifi network. But I cannot format the json using arduinojson library in the way I want. void scanWifiNetworks() { //creating json ...
0
votes
1answer
26 views

How to make BLE data accessible to a particular app?

I used the BLE example from here. But any device can read and write to the advertised characteristic. Is there a way to make the data inaccessible to other devices except for my app somehow. What I ...
0
votes
0answers
53 views

esp32 arduino wifi disconnect

I have this code running on ESP32 connected to SVM30-J #include <WiFi.h> #include <PubSubClient.h> #include <Arduino_JSON.h> #include <svm30.h> // Replace the next variables ...
0
votes
1answer
27 views

make EEPROM.h use custom eeprom partition

I created the below partition table for an esp32 and replaced the 'default_8MB.csv' with it. # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ...
1
vote
1answer
76 views

ESP32 seconds from epoch

When using ESP8266 - getting seconds from epoch is done using NTP.begin(NTPserver, 2, true); delay(delay_tries); time_t t = now(); while t stores amount of seconds from 1-1-1970. When trying to do ...
1
vote
1answer
43 views

convert c string to c++ string

My program is running on eps32, I'm retrieving some data from Bluetooth, and the Bluetooth string is a C string, I need to save that data in an RTC_DATA_ATTR String, which is a c++ string. just ...
0
votes
0answers
36 views

SPIFFS file append does not work when adding data in JSON format (ESP32. ArduinoJSON v1.6)

There is a file "/transact.txt", which stores the following data: { uid: 123456789 time_start: 2019-12-22 10:35:00 time_stop: } The challenge is to replace the contents of time_stop without ...
0
votes
0answers
28 views

Overflow while working with SD library

i am currently working on a Project with an SD card. I want to open a .csv-file on my sd card (later it should be the last file) and then read the ID that is at the start of the .csv-file. Yesterday ...
0
votes
0answers
105 views

ESP32 Hardware Serial Flow control and full espressif/arduino-esp32 support

I have a similar issue. I want to use the ESP32 with RS485. I have used the Arduino and this works well assigning pins, but it seems not to allow full use of the UART. I see the new uarts in the ...
0
votes
0answers
22 views

Program the Arduino Due with the ESP32

I'm trying to do OTA firmware updates for the Arduino Due with the ESP32. Now so far I'm able to get the firmware from a website and transfer it over UART. Now I'm looking to get the firmware and ...
1
vote
0answers
22 views

Lolin D32 Pro board with OLED SH1106

Just starting a project and wanting to connect Lolin D32 Pro board with OLED SH1106. The screeen works with my Arduino Nano no problem however I can't seem to get it working on the D32 Pro. I tried ...
2
votes
1answer
230 views

ESP32 CAM failed to get frame in time

So I think the title says it all. I recently purchased an ESP32 CAM in India for a pretty cheap price. It looks like an AI Thinker but doesn’t have the tag on the chip itself. Nonetheless, to get it ...
0
votes
1answer
30 views

Why does the reading on the ESP32 read max, when the reading on UNO read accurately?

I have a 'Capacitive Soil Moisture Sensor' hooked up to my Uno. Very simple code. AnalogRead(MoistureSensorPin); This will return a differing value that I can work with. When applying the same code ...
1
vote
1answer
59 views

How to burn a firmware to ESP32 Devkit V1 by using MacBook Pro with USB Type C Adapter? [closed]

I need to burn a firmware into the ESP32 Devkit V1 by using the MacBook Pro running macOS Catalina with USB type C port only. I get the USB type C to type A adapter with data transfer/sync and connect ...
0
votes
0answers
51 views

ESP32 CAM sending a file via POST method

I'm using HTTPClient.h for sending the image file that taken by ESP32-cam, but it sends just headers. the important part of code : File fsUploadFile2 = SPIFFS.open("/picture.jgp", "r"); ...
0
votes
0answers
29 views

esp32 with Neo6M gps gives no data

I am simply using the following code void setup() { // put your setup code here, to run once: Serial.begin(115200); // set the data rate for the HardwareSerial port Serial2.begin(115200); } ...
0
votes
1answer
52 views

ESP32-CAM interfacing with CCS811+HDC1080+BMP280

I want to measure Temprature, Pressure, Humidity and CO2 in a room with ESP32-CAM & CCS811+HDC1080+BMP280 Since this module is combination of 3 sensors. Can I integrate it with ESP32-CAM over ...
1
vote
1answer
123 views

ESP32-Cam No Response and Unable to Program - Timed out waiting for packet header

I recently purchased an ESP32-CAM but have had no luck in programming the board or getting any response whatsoever. I first tried to program it using the an FTDI programmer and the Arduino IDE (...
0
votes
0answers
69 views

GY-91 nightmare (MPU9250 + BMP280)

I have a GY-91 breakout board, like this one: https://www.amazon.com/-/es/ARCELI-MPU9250-BMP280-GY-91-10DOF/dp/B07DN173BM/ It is supposed to have a MPU9250 and a BMP280 The BMP280 works without ...
0
votes
0answers
25 views

ESP32 doesnt save every string to SD Card

My code initializes, the header (the ID; Value string) for the .csv file gets saved, but the dataString which is the most important part doesnt save to the .csv file. I get an arraypointer to the ...
0
votes
2answers
122 views

ESP32-CAM not reading BME680

I am trying to read BME680 on ESP32-CAM with following code : (Before trying BME680, I have suscessfully connected BME280 to ESP32-CAM over S/W SPI) #include <Wire.h> #include <SPI.h> #...
-1
votes
2answers
85 views

I get the following error while using esp32

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:...
0
votes
1answer
68 views

ESP32 saving data to SD card in .csv doesnt format correctly

i want to save a vector to a .csv file on a SD Card. I watched this tutorial on how to do it and it describes it perfectly even though its kinda dated. My Problem is that everything is saved into ...
0
votes
0answers
34 views

Sparkfun ESP32 WROOM Thing Plus Deep Sleep & Interrupts codes “marriage” problem

Would like to ask for assistance. Tried several routes. My knowledge is lacking and unable to progress further. I think I am very close to the solution (maybe couple of lines of codes away), but the ...
0
votes
0answers
17 views

detect a dropped tcp connection

Is it possible to detect a dropped connection using WiFi server? Example: Windows disables the Ethernet connection to the ESP during an active connection. After re enabling the connection it is not ...
0
votes
1answer
106 views

publish json data to mqtt

I am trying to publish JSON data to mqtt with following code snippet #include <Arduino_JSON.h> JSONVar data; data["temperature"] = temperature; data["humidity"] = humidity; data["pressure"] = ...
1
vote
1answer
73 views

Publish chipid to mqtt using ESP32-CAM

I have been trying to push the data of temp, humidity, and pressure from a sensor to MQTT using ESP 32Cam, and was able to do using the following code: pressure = bme.readPressure(); //Convert the ...
0
votes
0answers
52 views

ESP32 using APSTA mode and LR simultaneously

I'm currently playing around with the LR mode for the ESP32. This lowers the data rate and increases the range apparently. But according to the sketch I use: void init_wifi(wifi_mode_t mode) { ...
0
votes
0answers
89 views

esp32, brownout on 3.3v?

I'm using a powerbump, input: 3.7v-6v Outputs: 3.3v, to provide the power I'm using 2 CR2025 coin cell batteries(3v each), meaning the powerbump gets 6v, the esp gets the exact 3.27v(I've measured ...
0
votes
0answers
24 views

connection to ESP using pyVisa

I'm building a small LXI device using a the OLIMEX ESP32 POE Board. Sending commands to the device using pyVisa works fine, but queries don't. Only the IDN? query works. From the ESP I get the ...
0
votes
1answer
68 views

Esp32: upload eeprom file

I'd like to flash the eeprom sector with content so that the eeprom already holds data when it boots the first time. How do I upload such an eeprom file like I would do with avrdude on an atmega? Is ...
0
votes
1answer
144 views

Function pointer call results in InstrFetchProhibited (ESP32)

I have the following issue which I'm unable to resolve by myself. Perhaps one of you could point me to issues in my code which I don't see. There is a class called communicator which handles an MQTT ...
0
votes
1answer
202 views

ESP32 + Fastled + WS2801

I'm using the ESP32 DevkitC board with Fastlib and a WS2801 LED strip. The LED strips works fine, i connected it properly (sometimes all LEDs are on, no flickering). I Connected the light strip's ...
0
votes
1answer
116 views

Connect arduino nano and ESP32 with I2C on the GPIO7 and GPIO8?

I made a mistake connecting SD0 (GPIO7) and SD1 (GPIO8) with the SDA and SCL on my arduino nano. I got confused with GPIO21 and pin21 and GPIO22 and pin 22! Since I made a PCB prototype, I would ...