Search found 668 matches

by lbernstone
Tue Apr 16, 2024 4:22 am
Forum: ESP32 Arduino
Topic: PWM output pin on reset
Replies: 5
Views: 535

Re: PWM output pin on reset

You need a stronger pullup than what is included in the pump control circuit there. Try a 10K. From your description, this is happening when the device restarts, so it literally can't be a problem in your code (which isn't running during a restart). You say there's more involved in the circuit- I am...
by lbernstone
Sun Apr 14, 2024 4:13 pm
Forum: ESP32 Arduino
Topic: PWM output pin on reset
Replies: 5
Views: 535

Re: PWM output pin on reset

Put a 10-50K pullup resistor on the pins you want to stay high. When the device resets, there is not going to be any signal delivered on those pins, so you need to provide a default one.
You should choose a pin other than 12, which is a strapping pin that needs to be pulled low for 3V3 flash.
by lbernstone
Sun Apr 14, 2024 4:26 am
Forum: ESP32 Arduino
Topic: ESP32-C6 Low Power hanging device?
Replies: 11
Views: 1021

Re: ESP32-C6 Low Power hanging device?

The development version is currently at 3.0.0-beta1, which has support for the C6 (and H2) boards. If you prefer to use platformio, you can use Jason2866's packages that I linked above. The link shows what you add to platformio.ini. arduino-esp32 is built on top of ESP-IDF. So, you can use almost al...
by lbernstone
Sat Apr 13, 2024 6:00 pm
Forum: ESP32 Arduino
Topic: ESP32-C6 Low Power hanging device?
Replies: 11
Views: 1021

Re: ESP32-C6 Low Power hanging device?

WaveRider wrote:
Fri Apr 12, 2024 9:40 pm
Platformio does not seem to support the boards yet (it only supports stable versions of esp-idf extension)
Jason2866 maintains a repo with frequent release packages for platformio.
https://github.com/tasmota/platform-espressif32/
by lbernstone
Thu Apr 11, 2024 2:07 am
Forum: ESP32 Arduino
Topic: WebSockets.h Help: "WStype_t"
Replies: 1
Views: 265

Re: WebSockets.h Help: "WStype_t"

You need to include the header file in your code (`#include <WebSocket.h>`)
If you need more help, please provide code and a link for the library you are using.
by lbernstone
Fri Apr 05, 2024 8:44 am
Forum: ESP32 Arduino
Topic: ESPAsyncWebServer : how to send a file ?
Replies: 7
Views: 1662

Re: ESPAsyncWebServer : how to send a file ?

You can do a printf directly into the response method in a for loop. This will stream it, and likely is breaking it into mtu-sized chunks to deliver on the line.
by lbernstone
Fri Apr 05, 2024 5:33 am
Forum: ESP32 Arduino
Topic: ESPAsyncWebServer : how to send a file ?
Replies: 7
Views: 1662

Re: ESPAsyncWebServer : how to send a file ?

I assume this is data that you actually want to log anyhow. Write it to a file, and then staticServe that file.
If you want a lightweight data logger that's a bit more sophisticated, take a look at rrdTool
by lbernstone
Fri Apr 05, 2024 2:14 am
Forum: ESP32 Arduino
Topic: ESP32-WROOM-DA: Need WiFi Interface Details
Replies: 1
Views: 1213

Re: ESP32-WROOM-DA: Need WiFi Interface Details

If you are a bit clearer about what you mean, we can help you much faster. There are AsyncUDP and AsyncTCP libraries for arduino-esp32. They both run FreeRTOS tasks which then reach down to directly access the ESP-IDF functionality. The ESP-IDF framework uses a customized version of LwIP ( esp_lwip ...
by lbernstone
Thu Apr 04, 2024 9:42 pm
Forum: ESP32 Arduino
Topic: ESPAsyncWebServer : how to send a file ?
Replies: 7
Views: 1662

Re: ESPAsyncWebServer : how to send a file ?

If you are just sending a file from the flash, you can use the serveStatic method. https://github.com/me-no-dev/ESPAsyncWebServer?tab=readme-ov-file#serving-specific-file-by-name The mime type would be "text/csv". I would recommend you add a max-age header at the frequency that you are collecting th...