Skip to content

Code I wrote to plot live graphs of a capacitor charging and discharging in a circuit connected to my arduino which sends data over serial to pc which runs a python script and matplotlib library to display data

Notifications You must be signed in to change notification settings

Jamie2345/capacitorgraphswitharduinoandmatplotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

In the main.py script I have included the line of code useFixedSizeGraph = True. This can be set to toggle between modes where the graph has a set sample size of data it displays and a mode where it shows all data recorded.

image useFixedSizeGraph = True

image useFixedSizeGraph = False

The data shown on the graph is animated and in real time using matplotlibs FuncAnimation() function.

About

Code I wrote to plot live graphs of a capacitor charging and discharging in a circuit connected to my arduino which sends data over serial to pc which runs a python script and matplotlib library to display data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published