8000 GitHub - stonehippo/blinka_circuitpython_sensor_lab: A micro-sensor lab built on CircuitPython Blinka
[go: up one dir, main page]

Skip to content

stonehippo/blinka_circuitpython_sensor_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro Sensor Lab for CircuitPython

The Micro Sensor Lab is a little stack of sensors for use with a desktop computer, built up around an Adafruit MCP2221 general purpose USB adapter board and the Adafruit Blinka library, which emulates CircuitPython on desktop and single board computer systems. The result is a compact stack of sensors that can be used for experimentation and hacking. This is useful in it's own right, since you can just write a little Python to get sensor data into your computer. It's also a nice input to interactive tools like Processing.

This code would also work fine with a standalone CircuitPython board. The beauty of using Blinka is the support it creates for moving from computer to microcontroller and back with little to no modifications to the code.

Dependencies

First, to use this code as I intended, you're going to need Python 3 on your computer; I recommend Python 3.10 or newer. Why not be modern.

Next, you'll want to set up Blinka so you can talk to the MCP2221 over USB. Take a look at this guide from Adafruit for setting up the MCP2221.

Now it's time to install the library driver for the various sensors:

pip install --upgrade adafruit-circuitpython-veml7700 adafruit-circuitpython-bme680 adafruit-circuitpython-lsm6ds adafruit-circuitpython-lis3mdl

Lastly, don't forget to set the environment variable to enable the MCP2221 support in Blinka:

export BLINKA_MCP2221="1"

Once this is done, give the code a try!

About

A micro-sensor lab built on CircuitPython Blinka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0