Microcontroller to CSV using both WebSerial (desktop) and Polyfill (Android-Chrome) to CSV
As of Feb 20th, 2023 Pol,yfill has a bug. I will try to fix it.
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 needed.
This code collects data at a frequency of 0.5 Hz (delay of 2000 milliseconds) for 20 seconds collecting 10 samples.
Set the frequency to 2 Hz
Set the delay to 1000 milliseconds = 1 second
set the collection seconds to 10 seconds
Save as time-series data
Save individual data in numbered CSV files for example try z-webSerial-single.html
...
...
Here is the latest sketch I am using. The .txt is for viewing the .ino is to download