Python-SL19
The SL19 xChip is equipped to measure temperature as a function of infrared light/radiation (IR) radiating from objects in its field of view. Is is based on the MLX90614 in which a IR sensitive thermopile detector chip and signal conditioning ASIC are integrated.
The MLX90614 is factory calibrated in wide temperature ranges: -40-125˚C for the ambient temperature and -70-380˚C for the object temperature. The measured value is the average temperature of all objects in the Field Of View of the sensor. The MLX90614 offers a standard accuracy of ±0.5˚C around room temperatures.
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-SL19")
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-SL19
Example
from xCore import xCore
from xSL19 import xSL19
# SL19 instance
SL19 = xSL19()
# configure SL19
SL19.init()
while True:
tempAmbient = SL19.getAmbientTempC() # returns ambient temp in degree celcius
tempObject = SL19.getObjectTempC() # returns object temp in degree celcius
# prints on console
print('Ambient: ',tempAmbient,' C')
print('Object : ',tempObject,' C')
xCore.sleep(2000)
Metadata
Release files for xinabox-SL19 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xinabox-SL19-0.0.8.tar.gz | 3.0 kB | Without provenance | Details for xinabox-SL19-0.0.8.tar.gz |
Release files / xinabox-SL19-0.0.8.tar.gz
| Download URL | xinabox-SL19-0.0.8.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a6ea9a07368f648f215d4f5363c59b8177f5470980ef214e96415ea4e555eac
|
|
BLAKE2b-256 checksum How to use checksums |
dc2e388e190253119be17353c1d708fb177990ad25c114237c87d6831bd0adea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for xinabox-SL19 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.