An open API service indexing awesome lists of open source software.

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

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)