New answers tagged

1

You have two handlers for "/": server.on("/", HTTP_GET, [](AsyncWebServerRequest * request) { request->send(SPIFFS, "/index.html", String(), false ); }); and server.on("/", HTTP_GET, [](AsyncWebServerRequest * request) { int paramsNr = request->params(); Serial.println(paramsNr); for (int ...


0

The ESP32 does not have a real EEPROM; instead, the data is stored in the external flash in the non-volatile storage (NVS) partition. The problem is, that the structure of this partition is proprietary. Only the SDK knows "where to find what" within NVS and any access to this partition is done using the SDK. Unfortunately, the EEPROM.h library uses ...


1

It can be found on manufacturer's website: http://www.wch.cn/search?q=CH9102&t=downloads Please note, that some drivers' downloading pages are only available in Chinese, so make sure you open Chinese (not English) site version. Windows CDC driver: http://www.wch.cn/downloads/CH343CDC_ZIP.html Windows SER driver: http://www.wch.cn/downloads/CH343SER_ZIP....


0

Simply put, you have to update your platformio.ini as assumed in the question as follows (see last line): [env:esp32dev] platform = espressif32 board = esp32dev framework = arduino monitor_speed = 115200 lib_deps = adafruit/Adafruit NeoPixel@^1.10.0 plerup/EspSoftwareSerial@^6.13.2 miwagner/ESP32CAN@^0.0.1 nilsminor/TMP117-Arduino@^1.0.2 ...


1

When using arduino and the esp32 core, any pin can be assigned to the builtin TWAI controller. If you use the esp32_can library https://github.com/collin80/esp32_can you may change the pin assignment in the following file: C:\Users\USER\Documents\Arduino\libraries\esp32_can-master\src\esp32_can.cpp //Set these to the proper pin numbers for you board. Set by ...


2

The problem was that a task with higher priority interrupts the process. I increased the priority to this task and the problem is solved. xTaskCreatePinnedToCore(_cloudRXServiceTask, "_cloudRXServiceTask", 2048, this, 20, &_cloudRXServiceWorker_handle,0);


1

Hi I have the same problem here, and everything is pointing the issue could be related with the channels shared for PWM. In the Robojax lib there is control of channels want to assign for each motor, but in the ESP32Servo the channels are assigned automatically by the library in consecutive order (see ESP32PWM.cpp). I would try use different channel when ...


0

Thanks for the replies. I've taken another aproach and was able to get the code to work. I'll post it here. Not yet 100% finished, but mostly doing what I wanted. #include "esp_bt_main.h" #include "esp_bt_device.h" #include "BluetoothSerial.h" #include <Adafruit_GFX.h> #include <Adafruit_NeoMatrix.h> #include <...


2

What Majeko said was correct. PIO was using WifiNINA instead of the ESP32's WiFi library. To solve this, I added lib_ignore = WiFiNINA to platformio.ini and #include <WiFi.h> before including the prometheus libraries in main.ino. I tested this by pointing PrometheusArduino at my desktop with this example: $ ncat -l 9090 POST /api/prom/push HTTP/1.1 ...


1

The problem here is that PlatformIO is picking up the wrong WiFi library. It has decided that the WiFi.h provided by WiFiNINA is the correct one to use, rather than the WiFi.h provided by the ESP32's bundled WiFi library. You could try removing all traces of the WiFiNINA library from your PlatformIO installation, or maybe you need to manually specify which ...


0

Arduino nano has only one hardware serial port. So Serial1 must be a software serial, which you did not mention in your code segment. Software serial can not run at 115200 baud reliably. I would limit Software serial to a maximum of 19200 baud. Try using an Arduino Mega with two hardware serial ports.


0

FS upload plugins for ESP are not available in IDE 2 yet (2022-01-07). IDE 2.0 doesn't run on Java so it can't use the java plugins of the IDE 1. You have to use IDE 1 for FS upload and exception decoder until new plugins are written for IDE 2. It is tracked here: https://github.com/arduino/arduino-ide/issues/58


1

You don't need to do anything special to detect Brownouts. ESP32 itself detects them, and would reset the chip automatically. The reset reason would then indicate a brownout (don't remember the exact name). So you only need to check for the reset reason at the start of your code, whether it is normal powerup, or brownout. The esp won't boot up until the ...


1

IO2 needs to be connected to a pulldown resistor (your buzzer FET has a pulldown on its input which does the job, which is fortunate). I would consider moving the buzzer elsewhere and keeping IO2 just for the pulldown resistor if possible. IO0 needs a pullup resistor. You need some way of resetting the ESP32 through pulling the EN pin low when you want to ...


1

Swapping USB cable solved my issue of continuous brownout detector triggering. I tried some above answers. Disabling brownout detector as suggested by Vahe Arakelyan helped on Blink sketch, but WiFi including sketches would still fail to run. Then started to suspect HW and power failure. Did not soldering pins as suggested by user73106, but this made me ...


1

There's a couple problems with your code. void refresh_readings(); // Declare in the header so that // the compiler knows about it // before it is called in loop() This is a lie! Don't tell your compiler there's a refresh_readings function that takes no arguments when you haven't defined one. Remove that ...


1

This is not a question that has an answer. There are far too many variables to say "You can have X ports at once". How many you can have depends on such things as: The baud rates you are using: faster baud rates will mean more processing and thus less processing for other ports to run. How often data is received: A port that's not receiving ...


Top 50 recent answers are included