piotrpdev / realtime-serial-graph

Web Serial API realtime data graph

Home Page:https://serial.piotrp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realtime Serial Graph

demo

Website that reads realtime data from a device (e.g. Arduino) using the Web Serial API and displays it nicely using Dygraphs and PaperCSS.

Serial Data Format

The TypeScript code uses a custom Transformer that extracts an integer inside two chevrons ("<", ">"). If you don't want to make your own custom Transformer just send your serial data like this:

Serial.print("<" + String(analogRead(A0)) + ">");

An example Arduino sketch is provided in ./Heart_Rate_Display_Arduino/, here is the source:

Heart_Rate_Display.ino
Demo Program for AD8232 Heart Rate sensor.
Casey Kuhns @ SparkFun Electronics
6/27/2014
https://github.com/sparkfun/AD8232_Heart_Rate_Monitor

About

Web Serial API realtime data graph

https://serial.piotrp.dev

License:MIT License


Languages

Language:TypeScript 59.3%Language:HTML 21.5%Language:C++ 12.2%Language:CSS 7.0%