Ks0028 keyestudio Photocell Sensor: Difference between revisions
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) |
||
Line 56: | Line 56: | ||
*[https://www.keyestudio.com/free-shipping-keyestudio-photoresistor-light-dependent-resistor-sensor-module-for-arduino-p0394-p0394.html '''Official Website'''] | *[https://www.keyestudio.com/free-shipping-keyestudio-photoresistor-light-dependent-resistor-sensor-module-for-arduino-p0394-p0394.html '''Official Website'''] | ||
*[https://www.aliexpress.com/store/product/Free-shipping-Keyestudio-Photoresistor-Light-Dependent-Resistor-Sensor-Module-for-Arduino-UNO-R3/4247007_32888709269.html?spm=2114.12010615.8148356.1.5ae84f90z0vuLX Shop on aliexpress] | *[https://www.aliexpress.com/store/product/Free-shipping-Keyestudio-Photoresistor-Light-Dependent-Resistor-Sensor-Module-for-Arduino-UNO-R3/4247007_32888709269.html?spm=2114.12010615.8148356.1.5ae84f90z0vuLX '''Shop on aliexpress''' ] | ||
[[Category: Sensor]] | [[Category: Sensor]] |
Revision as of 16:14, 12 April 2019
Introduction
Photocell is commonly seen in our daily life and is mainly used in intelligent switch, also in common electronic design.
To make it more easier and effective, we supply corresponding modules.
Photocell is a semiconductor. It has features of high sensitivity, quick response, spectral characteristic, and R-value consistence, maintaining high stability and reliability in environment extremes such as high temperature, high humidity.
It’s widely used in automatic control switch fields like cameras, garden solar lights, lawn lamps, money detectors, quartz clocks, music cups, gift boxes, mini night lights, sound and light control switches, etc.
Specification
- Interface Type: analog
- Working Voltage: 5V
Connection Diagram
Sample Code
int sensorPin =A0 ; int value = 0; void setup() { Serial.begin(9600); } void loop() { value = analogRead(sensorPin); Serial.println(value, DEC); delay(50); }
Result
Done wiring and powered up, upload well the code, then open the serial monitor, if cover the photocell on the sensor with your hand, you will see the analog value decrease. Shown as below.
Resources
- Video
http://video.keyestudio.com/ks0028/
- PDF
https://drive.google.com/open?id=11RwuDMXTWakDReWLfShNF-8k_pneh2gt