Web Serial, Chart.js, Three.js sample
This software gets the USB Serial data and shows the real-time chart on the web browser. This code is a sample code for checking implementation and the work of IMU via USB serial.
We use Web Serial API to get serial data on the web, Chart.js and chartjs-plugin-streaming to show the chart.
We tried to measure IMU data output from Atom Matrix. The original code is here. Please change its serial output format as below.
The USB Serial format should be Euler(XYZ-order,"%f,%f,%f¥n") or Quaternion(x,y,z,w order, "%f,%f,%f,%f¥n").
- Check this live demo page.
- Click the "Open Serial Port" button to open the serial port.
- Rotate the airplane by mouse if you want to change the view angle.
- Click the "Pause Chart" button to stop and resume the chart flow.
- Our software is licensed under GPLv2.
- We use Three.js ver.1.0.8.
- Included aircraft 3D model "b789.gib" is derived from Flightradar24 3D models which is licensed under GPLv2.