Remarks

SI1145
Status Not Working
Source code GitHub
NuGet package Not published

The SI1145 is a low power infrared, ultraviolet and ambient light sensor with an I2C interface.

  • Ultraviolet / Infrared / ambient light sensor
  • Proximity sensor
  • Independent LED drivers
  • I2C interface up to 3.4 MBps

Sample projects available on GitHub

Purchasing

The following application reads the sensor output Infrared, Ultraviolet and Visibility once per second and outputs the result on the output console:

Wiring Example

Characteristic Locus
Inheritance System.Object > Si1145
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Light
Assembly SI1145.dll

Syntax

public class Si1145

Constructors

Si1145(II2cBus, Byte)

Create a new SI1145 sensor object.

Declaration
public Si1145(II2cBus i2cBus, byte address = 96)

Parameters

Type Name Description
II2cBus i2cBus

I2cBus (default to 400 KHz).

System.Byte address

Address of the chip on the I2C bus (default to 0x60).

Methods

GetIfrared()

Declaration
public double GetIfrared()

Returns

Type Description
System.Double

GetProximity()

Declaration
public double GetProximity()

Returns

Type Description
System.Double

GetUltraViolet()

Declaration
public double GetUltraViolet()

Returns

Type Description
System.Double

GetVisible()

Declaration
public double GetVisible()

Returns

Type Description
System.Double