https://github.com/insighio/python-live-serial-plotter
A small python script to monitor live data read from UART and show them in a plot
https://github.com/insighio/python-live-serial-plotter
live matplotlib plot python
Last synced: 22 days ago
JSON representation
A small python script to monitor live data read from UART and show them in a plot
- Host: GitHub
- URL: https://github.com/insighio/python-live-serial-plotter
- Owner: insighio
- License: apache-2.0
- Created: 2022-07-12T15:37:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-12T16:15:26.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T17:43:57.857Z (over 1 year ago)
- Topics: live, matplotlib, plot, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-live-serial-plotter
A small python script to monitor live data read from UART and show them in a plot.
Each line is searched for an integer/float using the regex: __^.*raw:\s+(-?\d+(\.\d+)?).*$__
example line: ```[DEBUG] raw: 1664227.0```
# dependencies
```sh
sudo apt-get install python3-matplotlib python3-serial
```
or
```sh
pip3 install matplotlib pyserial
```
# Usage
```bash
#linux
python3 plotter.py /dev/ttyUSB0
#windows
python3 plotter.py COM3
```
[example of live UART data](https://user-images.githubusercontent.com/550020/178539264-50f10f43-b0ba-4277-9178-18ad1009d44f.webm)