Version 0.5.2-48

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
  • a04-light.txt This arduino sketch can be viewed
  • a04-light.ino Click to download: Note: New ArduinoWebSerial testing code. Make sure in Arduino Serial Monitor you don't send a new-line EdgeImpulse data uploading csv format here
    This Github at https://github.com/hpssjellis/web-serial-polyfill

    Original Demo from Google Developers codelabs.



    An example of a trained edgeimpulse model can be found at browser/index.html the github folder for this code is at https://github.com/hpssjellis/webMLserial/tree/main/public/a04/browser Note that the file index-original.html is the WASM index.html from Edgeimpulse. The index.html file is my Javascript webSerial updated file that you could probably use with some changes for your specific data.
    This work is lossely based on previous work I did at this folder https://github.com/hpssjellis/my-examples-of-edge-impulse/tree/main/public/downloads which also has interesting index.html files in the other folders one directory up in the public folder

    Main index
    here
    Github here