Grove Light Sensor

The Light sensor module uses the GL5528 photoresistor to detect the light intensity of the environment.

Hello World

Import programSeeed_Grove_Shield_Light_Sensor

Example program for the Seeed Grove shield, that uses Grove Light Sensor by SeeedStudio on A0 pin. This program displays the analog in values.

Library

Import programSeeed_Grove_Shield_Light_Sensor

Example program for the Seeed Grove shield, that uses Grove Light Sensor by SeeedStudio on A0 pin. This program displays the analog in values.

Datasheet

http://garden.seeedstudio.com/images/d/d2/LM358.pdf

Notes

The light sensor, also known as the light dependent resistor (LDR). Typically, the resistance of the light sensor will decrease when the ambient light intensity increases.

The change in resistance due to ambient light is not linear; In low-light conditions, small changes in luminance cause relatively large changes in resistance(or output voltage, in this case,) but in well lit conditions, canges in luminance cause only small changes in resistance. More information regarding the response of this type of sensor can be found here: https://developer.mbed.org/users/4180_1/notebook/using-a-photocell-to-determine-light-levels/

Specifications

  • Voltage: 3-5V
  • Supply Current: 0.5-3mA
  • Light resistance: 20KΩ
  • Dark resistance: 1MΩ
  • Reponse time: 20-30S
  • Peak Wavelength: 540nm
  • Ambient temperature: -3070 ℃

Resources

Repository: Seeed_Grove_Shield_Light_Sensor

Night Light

To implement the night light, the sensor output was sent to mbed p20. The threshold can be tweaked to suit a particular lighting condition.

Connecting the light sensor to MBED

/media/uploads/clively6/lightsense.jpg

Import programNightlight_Seed_Grove_light_sensor

Night light example program utilizing Grove Seed Light Sensor

Graduated Night Light

In this program, the MBED lights up to 4 LEDs based on ambient light levels. Uses the same connections as the Night Light program

Import programGraduated_Nightlight_Seed_light_sensor

Lights up to 4 LEDs based on ambient light levels. Uses Grove Seeed Light Sensor


You need to log in to post a discussion