Infrared object temperature sensor
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file xinabox-SL19-0.0.8.tar.gz
.
File metadata
- Download URL: xinabox-SL19-0.0.8.tar.gz
- Upload date:
- Size: 3.0 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 | 7a6ea9a07368f648f215d4f5363c59b8177f5470980ef214e96415ea4e555eac |
|
MD5 | a7ebac6cbe567003c038d5cf868305f7 |
|
BLAKE2b-256 | dc2e388e190253119be17353c1d708fb177990ad25c114237c87d6831bd0adea |