-
Notifications
You must be signed in to change notification settings - Fork 5
DFRobot_Ambient_Light_Sensor_(SKU_DFR0026_)
Angelo edited this page Sep 21, 2016
·
3 revisions
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.
- 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
The definition of ambient light sensor pin is
- Signal Output
- GND
- Power
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);
}
shopping dfrobot ambient light sensor (sku:dfr0026 )
category: Product_Manual category: DFR_Series category: Sensors category:source category:Diagram