ejboettcher / pyrm3100

Example of using PNI RM3100 with circuit python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circuit python on Raspberry Pi for PNI RM3100

I have a working python software version based on CircuitPython_RM3100

Pin-out connections for I2C interface

R-Pi physical Pin RM3100 physical Pin purpose
1 10,12,13 3.3V power
3 3 I2C Data SDA
5 1 I2C Clock SCL/SCK
9 2,4, 7,14 Ground
11 5 DRDY - data ready

Set up python virtual environment

python3 -m venv venv      # create virtual environment
source venv/bin/activate  # activate virtual environment
python3 -m pip install -r requirements.txt  # install python requirements

Get circuit-python repo for RM-3100

git clone https://github.com/furbrain/CircuitPython_RM3100

Example scripts

There are two measurement modes, single and continous. Example scripts for both cases are here.

Continous measurement mode

An example script can be found in test_continuous.py

Single measurement mode

An example script can be found in test_single.py

About

Example of using PNI RM3100 with circuit python

License:MIT License


Languages

Language:Python 100.0%