Reader small image

You're reading from  MicroPython Projects

Product typeBook
Published inApr 2020
Reading LevelExpert
PublisherPackt
ISBN-139781789958034
Edition1st Edition
Languages
Right arrow
Author (1)
Jacob Beningo
Jacob Beningo
author image
Jacob Beningo

Jacob Beningo is an independent consultant who specializes in microcontroller-based embedded systems. He has advised, coached, and developed systems across multiple industries, including the automotive, defense, industrial, medical, and space sectors. Jacob enjoys working with companies to help them develop and improve their processes and skill sets. He publishes a monthly newsletter, Embedded Bytes, and blogs for publications about embedded system design techniques and challenges. Jacob holds bachelor's degrees in electrical engineering, physics, and mathematics from Central Michigan University and a master's degree in space systems engineering from the University of Michigan.
Read more about Jacob Beningo

Right arrow

Constructing the visualizer

The visualizer is going to leverage existing libraries in order to minimize the effort that is required to receive and plot data. There are two libraries that are particularly interesting for this project: pySerial and Matplotlib.

pySerial is a Python module that encapsulates all the features and functions that are needed to interact with a serial port. pySerial can run on multiple operating systems, such as Windows, Mac OS X, and Linux, to name a few. It includes a module called serial that provides useful features for interacting with the serial port, such as the following:

  • Open
  • Close
  • Send
  • Receive

Matplotlib is a Python library that provides the functionality for 2D data plotting, which can be used interactively or can be used for publication-quality figures. The number and types of charts that can be created are quite extensive. For our purposes...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
MicroPython Projects
Published in: Apr 2020Publisher: PacktISBN-13: 9781789958034

Author (1)

author image
Jacob Beningo

Jacob Beningo is an independent consultant who specializes in microcontroller-based embedded systems. He has advised, coached, and developed systems across multiple industries, including the automotive, defense, industrial, medical, and space sectors. Jacob enjoys working with companies to help them develop and improve their processes and skill sets. He publishes a monthly newsletter, Embedded Bytes, and blogs for publications about embedded system design techniques and challenges. Jacob holds bachelor's degrees in electrical engineering, physics, and mathematics from Central Michigan University and a master's degree in space systems engineering from the University of Michigan.
Read more about Jacob Beningo