Skip to content

DFRobot_Ambient_Light_Sensor_(SKU_DFR0026_)

Angelo edited this page Sep 21, 2016 · 3 revisions

Introduction

DFRobot Ambient Light Sensor the dfrobot ambient light sensor works with cds photoresistor and allows you to have a dc voltage output depending on the brightness of lights. dark has a low value. the sensor can be used to detect the intensity of ambient light.

Specification

  • Detects ambient light density
  • Works with Cds Photoresistor
  • Analog voltage output: 0 to 5 Vdc
  • Suitable supply voltage: +3 to 5Vdc
  • Interface with microcontrollers and logic circuits
  • Standard 3-pin PCB connector
  • Analog sensors
  • Uses PH 2.0 socket
  • Special sensor with Arduino expansion boards

Pin Definition

The definition of ambient light sensor pin is

  1. Signal Output
  2. GND
  3. Power

Analog Sensor Pin Definition

Connection Diagram

Analog sensor connection diagram

Sample Code

void setup()
{
  Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop()
{
      int val;
      val=analogRead(0);   //connect grayscale sensor to Analog 0
      Serial.println(val,DEC);//print the value to serial
      delay(100);
}

image:nextredirectltr.pngGo shopping dfrobot ambient light sensor (sku:dfr0026 )

category: Product_Manual category: DFR_Series category: Sensors category:source category:Diagram

Clone this wiki locally