Search found 14 matches

by DoDobro!
Fri Nov 03, 2023 5:21 pm
Forum: General Discussion
Topic: Simple Time Counter (stopwatch)
Replies: 4
Views: 2580

Re: Simple Time Counter (stopwatch)

For Arduino!
username wrote:
Fri Nov 03, 2023 5:12 am
Asked chat GPT and here is it's response.

Code: Select all

#include "esp_system.h"
#include "esp_timer.h"
#include "esp_log.h"
More simple, withOUT 3 #include!
by DoDobro!
Thu Nov 02, 2023 4:10 pm
Forum: General Discussion
Topic: Simple Time Counter (stopwatch)
Replies: 4
Views: 2580

Simple Time Counter (stopwatch)

Hello, Can't find how at ArduinoIDE2 with ESP32S3 create and use simple SW or HW Time Counter (aka "stopwatch") without needing any additional libraries etc. No tasks, no interrupt, just count time in seconds from 00:00:00:00 (hr:mn:sc:milsc) at 24hr format maybe with days in front like 01:23:59:59:...
by DoDobro!
Tue Oct 10, 2023 7:43 pm
Forum: ESP32 Arduino
Topic: SD config and data save
Replies: 5
Views: 6030

Re: SD config and data save

I've found something useful: https://github.com/stevemarple/IniFile - but its too powerful&bulky. I need just to open cfg files from SD, read it, set some settings. But I'm completely stuck with all this C++ mess "string String String() char char* etc". Guys, please, help with exact code for: 1) Rea...
by DoDobro!
Tue Oct 10, 2023 7:28 pm
Forum: Hardware
Topic: WiFi,BT,etc can add lags? can be turned off?
Replies: 1
Views: 1885

WiFi,BT,etc can add lags? can be turned off?

Hello, Does ESP32S3 + libraries Arduino,WiFI, WiFiClient, WebServer, ESPmDNS = can add lags to another tasks? For example for fast data transferring via SPI? How it's possible to turn them off or put to sleep mode? Does ESP32S3 Bluetooth and other peripherals which NOT used at Arduino sketch use som...
by DoDobro!
Fri Oct 06, 2023 6:58 pm
Forum: Hardware
Topic: ESP32S3 files sharing and transfering
Replies: 9
Views: 6987

Re: ESP32S3 files sharing and transfering

Because all good (functional, power efficient, not too bulky, etc) libraries for file transferring via Bluetooth 5/LE and USB MSC is absent, this forced me to use "Web HTTP server". Unfortunately standard sample "ESP32-SDWebServer" is synchronous which means that when anyone connected to this WebSer...
by DoDobro!
Thu Oct 05, 2023 10:26 am
Forum: ESP32 Arduino
Topic: SD config and data save
Replies: 5
Views: 6030

Re: SD config and data save

You can certainly read data in with a for loop, and it is highly recommended to read full sectors (512B on an SD card, 4096 for flash) to get the fastest reads. A while(file1.available()) loop will repeat until it reaches the end of the file. If you prefer to read it line by line (slowly), you can ...
by DoDobro!
Wed Oct 04, 2023 3:26 pm
Forum: Hardware
Topic: ESP32S3 files sharing and transfering
Replies: 9
Views: 6987

Re: ESP32S3 files sharing and transfering

By using Bluetooth ;-) I.e. "Bluetooth classic", which is much more different from Bluetooth Low Energy than one would initially think. I don't see how WiFi Direct would solve any energy issues 'normal' WiFi would have. And USB-MSC... is probably the most resource-hungry option, albeit likely the m...
by DoDobro!
Wed Oct 04, 2023 12:33 pm
Forum: Hardware
Topic: ESP32S3 files sharing and transfering
Replies: 9
Views: 6987

Re: ESP32S3 files sharing and transfering

But it's even more true for BLE: BLE provides no "file sharing" protocol out of the box (see e.g. https://github.com/espressif/esp-idf/issues/7025). So instead of using available HTTP server code, you'll have to write your own "file server" protocol on top of BLE, which is somewhat cumbersome given...
by DoDobro!
Wed Oct 04, 2023 8:41 am
Forum: ESP32 Arduino
Topic: SD config and data save
Replies: 5
Views: 6030

SD config and data save

Hello, I'm the newby so excuse my too simple questions please, but still please help with them. I need to open config file from SD and then write data to another file at SD. I'm search at google and find pretty powerful sample but because of lack of experience at this area I just can't understand of...
by DoDobro!
Wed Oct 04, 2023 6:32 am
Forum: Hardware
Topic: ESP32S3 files sharing and transfering
Replies: 9
Views: 6987

Re: ESP32S3 files sharing and transfering

Running an HTTP server on the ESP is pretty much the standard way to do it. MQTT may also be an option. Plenty of examples for HTTP server (or MQTT client) are available. Thanks for answers! Yes, web-http now must be the most used data transferring protocol just because of internet. But I'm not sur...