Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.21 KB

MAX44009 - Ambient Light Sensor

The MAX44009 ambient light sensor features an I2C digital output that is ideal for a number of portable applications such as smartphones, notebooks, and industrial sensors. At less than 1µA operating current, it is the lowest power ambient light sensor in the industry and features an ultra-wide 22-bit dynamic range from 0.045 lux to 188,000 lux.

MAX44009 - Ambient Light Sensor

Documentation

  • You can find the datasheet here

Usage

Hardware Required

  • MAX44009
  • Male/Female Jumper Wires

Circuit

MAX44009 circuit

  • SCL - SCL
  • SDA - SDA
  • VCC - 5V
  • GND - GND
I2cConnectionSettings settings = new I2cConnectionSettings(1, Max44009.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);

// integration time is 100ms
using (Max44009 sensor = new Max44009(device, IntegrationTime.Time100))
{
    while (true)
    {
        // read illuminance
        Console.WriteLine($"Illuminance: {sensor.Illuminance}Lux");
        Console.WriteLine();

        Thread.Sleep(1000);
    }
}

Result

Sample Result