Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to plot live data from an Arduino using Python and Matplotlib in this comprehensive tutorial. Explore step-by-step instructions for streaming temperature and pressure data from a BMP180 sensor to Python. Master the use of pySerial, drawnow, numpy, and matplotlib libraries to create dynamic, real-time graphs. Follow along as the instructor guides you through programming the sensor, printing data to Python, splitting data into variables, and creating functions for drawing and updating live graphs. Discover techniques for setting axis labels, adding legends, and plotting multiple data points simultaneously. By the end of this lesson, gain the skills to visualize Arduino sensor data in real-time using Python's powerful plotting capabilities.
Syllabus
Introduction
Programming the Sensor
Printing Data to Python
Splitting Data into Variables
Graphing Data
Creating a Function
Drawing the Data
Plotting the Data
Updating the Live Graph
Creating a Counter
Setting Access and Label
Plot Legend
Plot Pressure and Temperature
Label
Legend
Offset
Taught by
Paul McWhorter