electronics, tech, microcontrollers, python, project,

PySerial Plotter

Vaibhav Devnani Vaibhav Devnani Follow Sep 01, 2022 · 1 min read
PySerial Plotter
Share this

PySerial Plotter is a python app made using tkinter, matplotlib and pyserial library. It lets you plot the serial data you receive over a COM port from a microcontroller. Unlike the one in the Arduino IDE, this one allows you to plot multiple values and also shows them in a modern gui console, where you can see a multiplot and individual plots for every datapoint.

Along with plotting, all the data is logged in a CSV file with timestamps.

Usage

On your microcontroller just print the data formatted in a dictionary form like “{‘Temperature’:32, ‘Humidity’:45}”

And on your PC, use

python pyserial.py COM5 

where COM5 is the name of the COM port your mcu is connected to.

You can access the code here on GitHub.