Skip to main content

Light Sensor

Project description

GitHub Issues GitHub Commit Maintained Build status badge MIT licensed

Python-SL01

The SL01 xChip is a UV radiation and ambient light level sensor. It is based on the VEML6075 and TSL4531. VEML6075 on the SL01 is capable of measuring UVA and UVB radiation, in turn, providing an acccurate UV Index. TSL4531 is a light sensor that is capable of measuring the luminosity (Wide Dynamic Range — 3 lux to 220k lux) (visual brightness).

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-SL01")
    

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-SL01

Example

from xCore import xCore
from xSL01 import xSL01

SL01 = xSL01()

while True:
    print(SL01.getUVA())
    print(SL01.getUVB())
    print(SL01.getUVIndex())
    print(SL01.getLUX())
    xCore.sleep(1000)

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

xinabox-SL01-0.0.7.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file xinabox-SL01-0.0.7.tar.gz.

File metadata

  • Download URL: xinabox-SL01-0.0.7.tar.gz
  • Upload date:
  • Size: 2.9 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

Hashes for xinabox-SL01-0.0.7.tar.gz
Algorithm Hash digest
SHA256 f464b79a822c8cd46f7d025eb4668db0ce9a599d7569b36d08308a039ef8c495
MD5 ec8dd48167cc08fb8f3acc0d9c083173
BLAKE2b-256 dbf9041200c29928b635c1e70e029a46637e9d65f4605b355f06850885bb3a68

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page