QB005/QB068 Photoresistor Sensor

1.Product Introduction

../../_images/Photosensitive-1.png

Light sensor is a sensor used to detect light intensity, which is used to measure the properties of light in various scenes.

Photosensitive sensor is the use of photosensitive resistance resistance will change with the change of light intensity characteristics, when the light shines on the photosensitive resistance, the resistance value is reduced; However, in low light or dark environment, the resistance value increases. By measuring the change of the resistance value, the intensity of the light can be determined.

Application reference: lighting control, photoelectric switch, solar tracking and other scenes that need to sense light.

2.Parameter Specification

Parameter

Value//Description

Operating voltage

3.3V~5V

Operating temperature

-10°C~+50°C

Output signal

analog signal

Size

3.16cm*2.38cm

../../_images/Photosensitive-5.jpg

3.Wiring Diagram

../../_images/Photosensitive-2.png

Photosensitive Sensor

UNO

VCC

5V

GND

GND

S

Analog Pin A0

4.Sample Code

1//www.acebott.com
2void setup(){
3pinMode(A0, INPUT);//Set pin A0  to input mode
4  Serial.begin(9600);//Set baud rate to 9600
5}
6void loop(){
7  Serial.println(analogRead(A0));// Read the state of pin A0and print it to the serial monitor
8  delay(1000);
9 }

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to scroll mode.

When we block the light sensor to varying degrees, we will find that the greater the light intensity, the smaller the return value.

../../_images/Photosensitive-3.png
../../_images/Photosensitive-4.png

6.Related Resources

7.Get One Now