Analog_Grayscale_Sensor_V2_SKU_DFR0022-DFRobot

Introduction

Here comes DFRobot's new Analog Ambient Light Sensor. Brand new design and much more convenient to use.This module helps you to detect the light density and reflect the analog voltage signal back to Arduino controller. You can set the threshold of voltage level to trigger motors, relays or other actuators.

Specification

Note: the product is NOT waterproof and dustproof; the detection accuracy will be affected by the light brightness of the environment and light reflectance of the material the sensor detects.

Connection Diagram

Analog Grayscale Sensor 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);
}

More Documents

Version History: Analog Grayscale Sensor(SKU:DFR0022)

DFshopping_car1.png Get Analog Grayscale Sensor V2 from DFRobot Store or DFRobot Distributor.

Category: DFRobot > Sensors & Modules > Sensors > Light & Imaging Sensors

category: Product Manual category: DFR Series category: Sensors

category: Diagram category: DFRobot

Turn to the Top