Indoor Air Quality Sensor
Project description
Python-SG33
TODO - Insert description
Usage
Mu-editor
Download Mu-editor
CW01 and CW02
- Use XinaBoxUploader and flash MicroPython to the CW01/CW02.
- Download Python packages from the REPL with the following code:
import network import upip sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.connect("ssid", "password") upip.install("xinabox-sg33")
CC03, CS11 and CW03
- Download the .UF2 file for CC03/CS11/CW03 CircuitPython and flash it to the board.
- TO DO
MicroBit
- TO DO
Raspberry Pi
Requires Python 3
pip3 install xinabox-sg33
Example
from xCore import xCore
from xSG33 import xSG33
SG33 = xSG33()
while True:
if SG33.dataAvailable() == True:
SG33.getAlgorithmResults()
print(SG33.getTVOC())
print(SG33.getCO2())
xCore.sleep(1000)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xinabox-SG33-0.0.1.tar.gz
(3.1 kB
view details)
File details
Details for the file xinabox-SG33-0.0.1.tar.gz
.
File metadata
- Download URL: xinabox-SG33-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 952f5913df2868b691fda68f293fedd20af370457646e3f1cdbab4a3d885ae31 |
|
MD5 | 80abad9d4f88cd1bfb176f16c836c4c8 |
|
BLAKE2b-256 | d935d1132b33cf6355bdac34db287fcef4ebe81020e7c32704b2f358519834c1 |