Introduction

Here comes DFRobot's new Analog Ambient Light Sensor. Brand new design and much more convenient to use.This module help 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

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