Microcontroller to CSV using WebSerial for both desktop and laptop computers
As of Feb 20th, 2023 Android Polyfill has a bug. I will try to fix it later.
Note: For multiple values a timestamp needs to be the first value. If single multiple readings in each .csv file then a timestamp is not needed.
Headers are always a good idea. The latest EdgeImpulse seems fine with or without headers.
This code collects data at a frequency of 0.05 Hz (delay of ~20 milliseconds) for ~1000 milliSeconds collecting about 50 samples.
set the collection seconds to 10 seconds OR
set the collection seconds to 9000 milliseconds
Set the delay to 1000 milliseconds = 1 second OR
Set the frequency to 2 Hz
Save as time-series data
Save individual data in numbered CSV files for example try z-webSerial-single.html
Note: For EdgeImpulse change "myLabel" when appropriate
Allow-AutoScroll Yes:
No:
...
...
Here is the latest sketch I am using. The .txt is for viewing the .ino is to download