Analog Grayscale Sensor V2 SKU:DFR0022
Analog Grayscale Sensor V2
Contents
1 Introduction
2 Specification
3 Connection Diagram
4 Sample Code
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
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);
}
Powered By DFRobot © 2008-2017
很抱歉,暂时无法提供与“DFR0022”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+39.41960
- 3+34.79609
- 9+34.30499