Overview
This guide will show you how to use Jupyter Notebook with the MCP2221(A) to connect I2C sensors from your desktop PC running Windows, macOS or Linux .
You can use any CircuitPython library for any of our I2C sensors to stream data into your computer's USB port.
We've written three interactive Jupyter Notebooks for three different types of sensors - a temperature sensor, an accelerometer and a thermal camera. All of these
notebooks have animated graphs so you can see data streaming into your computer in
real-time
.
This guide is also compatible with the Adafruit FT232H breakout (https://adafru.it/xhf) (EXCEPT for the MLX thermal camera example). You'll need to make a
small adjustment to the code. See the Jupyter Notebook Examples page for more information (https://adafru.it/HMf).
MCP2221
Our MCP2221A breakout board (https://adafru.it/HMA) allows your computer to talk to
sensors or devices that use I2C or analog/digital GPIO.
There's no firmware to deal with, so you don't have to deal with how to "send data to and
from an Arduino which is then sent to and from" an electronic sensor or display or part.
This board is plug & play compatible with with all of our Stemma QT/Qwiic connector
sensors with no soldering required (https://adafru.it/HMB).
CircuitPython Libraries on your Computer
In this guide we will not be using the actual CircuitPython firmware. But we will be installing
and using CircuitPython Libraries on your Computer. This allows us to interface with a
growing collection of 200+ libraries and drivers.
For more information about how this works, check out the CircuitPython Libraries on
MCP2221 Guide here... (https://adafru.it/HMC)
Jupyter Notebook
Jupyter Notebook is an open-source web application that
allows you to create and share documents that contain live
code, equations, visualizations and narrative text.
You'll use Jupyter to create interactive notebooks containing live code which interfaces with
your MCP2221 and sensors.
Parts
Your browser does not support the video tag.
Adafruit MCP2221A Breakout - General Purpose USB to GPIO ADC I2C
Wouldn't it be cool to drive a tiny OLED display, read a
Out of Stock
Out of
Stock