Reference

This article outlines luminance data references and discusses the functionality of ambient light sensors, focusing on IIC communication protocols, configuration methods, and API usage for measuring light intensity in lux.

Luminance data reference

  • Evening: 0.001-0.02lx;
  • Moonlit night: 0.02-0.3lx;
  • Cloudy indoor: 5-50lx;
  • Cloudy outdoor: 50-500lx;
  • Sunny indoor: 100-1000lx;
  • Under summer noon light: about 10*6 lx;
  • Illumination when reading books: 50-60lx;
  • Home video standard illumination: 1400lx

NOTE:

  1. This sensor can obtain the intensity of ambient light.
  2. The detected data will be transmitted by IIC. Its IIC address cannot be revised.
  3. Write the necessary configuration into the config register(address: 0x04) to set differernt parameter accuracies.
  4. The light intensity data can be read from the data register(address: 0x00~0x03).
    5.This sensor is sealed by software IIC, and can not be used with other equipment or sensors using hardware IIC.

Communication Protocol Description

  1. The detected data will be transmitted by IIC. Its IIC address cannot be revised.
  2. Write the necessary configuration into the config register(address: 0x04) to set differernt parameter accuracies.
  3. The light intensity data can be read from the data register(address: 0x00~0x03).
  4. This sensor is sealed by software IIC, and can not be used with other equipment or sensors using hardware IIC.

API Description

  • DFRobot_B_LUX_V30B myLux(13): Initialize the sensor with the specified chip select pin.
  • myLux.begin(): Initialize the sensor.
  • myLux.setMode(mode): Set the sensor mode (manual/automatic, CDR, time). Return 1 if successful.
  • myLux.readMode(): Read the current mode.
  • myLux.lightStrengthLux(): Read the light intensity in lux.

Principle

The on-chip photodiode’s spectral response is optimized to mimic the human eye’s perception of ambient light and incorporates IR and UV blocking capability. The adaptive gain block automatically selects the correct lux range to optimize the counts/lux.

Was this article helpful?

TOP