Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Arduino with Python - Graphing and Plotting Live Data from Arduino with Matplotlib

Paul McWhorter via YouTube

Overview

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

Reviews

Start your review of Arduino with Python - Graphing and Plotting Live Data from Arduino with Matplotlib

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.