Analog_Grayscale_Sensor_V2_SKU_DFR0022 - jimaobian/DFRobotWiki GitHub Wiki

Analog Grayscale Sensor V2

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

  • Supply Voltage: 3.3V to 5V
  • Interface: Analog
  • Size:22x30mm

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);
}

Version History

Analog Grayscale Sensor(SKU:DFR0022) image:nextredirectltr.pngGo shopping analog grayscale sensor v2 category: Product Manual category: DFR Series category: Sensors

category: Diagram category: DFRobot