drivers.Si1133.Si1133_V1

Legacy V1 driver for the Silicon Labs Si1133 UV Index and ambient light sensor.

This module is the original (V1) driver for the Si1133 – a simplified single-channel implementation that returns raw 16-bit UV ADC counts and 24-bit IR ADC counts without polynomial calibration. The current driver with calibrated UV index and lux is in drivers.Si1133.Si1133 and should be preferred for new code; V1 is retained only for backward compatibility with older deployments.

The driver speaks SMBus directly via smbus2, resets the chip, configures a single ADC channel (channel 0 wired to the UV photodiode), and starts autonomous measurement at Si1133.begin(). Use Si1133.readUV() and Si1133.getIR() to fetch the most recent HOSTOUT register contents.

Example

Basic UV read loop (requires the device on the I2C bus):

>>> from drivers.Si1133.Si1133_V1 import Si1133
>>> sensor = Si1133(i2c_bus=1)
>>> sensor.begin()
>>> raw_uv = sensor.readUV()

Note

  • I2C address: 0x55 (default, see SI1133_ADDR).

  • Channel configuration programmed by Si1133.begin():
    • Channel 0 only: UV photodiode, autonomous mode started.

  • Supply: 1.62 V - 3.6 V.

  • Requires smbus2 for I2C communication.

  • Prefer drivers.Si1133.Si1133 for calibrated lux and UV index. This V1 driver only returns raw ADC counts.

See also

SensorBase.SensorBase.GenericSensor

Abstract base for Oizom sensor wrappers. This V1 driver is not a subclass of GenericSensor – a wrapper module composes it instead.

drivers.Si1133.Si1133

Current (V2) driver with calibrated lux + UV index output.

Attributes

Classes

Si1133

Legacy V1 driver for the Si1133 UV and ambient light sensor.

Module Contents

drivers.Si1133.Si1133_V1.SI1133_ADDR = 85
drivers.Si1133.Si1133_V1.__author__ = 'Kishan Joshi'
drivers.Si1133.Si1133_V1.__status__ = 'Production'
drivers.Si1133.Si1133_V1.__version__ = '1.0.0'
drivers.Si1133.Si1133_V1.si1133