아두이노 > tkkrlab - Arduino 37 sensors - KY-018 Photo resistor module

TODAY1,131 TOTAL2,933,417
사이트 이용안내
Login▼/회원가입
최신글보기 질문게시판 기술자료 동영상강좌

아두이노 센서 ATMEGA128 PWM LED 초음파 AVR 블루투스 LCD UART 모터 적외선


BASIC4MCU | 아두이노 | 아두이노 | tkkrlab - Arduino 37 sensors - KY-018 Photo resistor module

페이지 정보

작성자 키트 작성일2017-09-13 14:28 조회2,662회 댓글0건

본문

 

Arduino KY-018 Photo resistor module

Arduino KY-018 Photo resistor module

photoresistor module

Part of Dealextream 37 sensors in a 1 kit


 

Overview

Photo resistors, also known as light dependent resistors (LDR), are light sensitive devices most often used to indicate the presence or absence of light, or to measure the light intensity. In the dark, their resistance is very high, sometimes up to 1MΩ, but when the LDR sensor is exposed to light, the resistance drops dramatically, even down to a few ohms, depending on the light intensity. LDRs have a sensitivity that varies with the wavelength of the light applied and are nonlinear devices. They are used in many applications but are sometimes made obsolete by other devices such as photodiodes and phototransistors. Some countries have banned LDRs made of lead or cadmium over environmental safety concerns.

Widely used in cameras, solar garden lights, lawn, detectors, clock, music, cups, gift boxes, miniNight light, light voice switches, lights automatically switch toys and a variety of light control, light control lighting, lamps and other light automatic opening OFF control field

Specifications

  1. according to the spectral characteristics of the photoresistor has three photoresistor: Ultraviolet photosensitive resistance, infrared light-sensitive resistors, Visible photosensitive resistance;
  2. the main parameters are as follows:
    1. dark current, dark resistance: photosensitive resistance at a certain applied voltage, when the light is not irradiated when the flowing Current is called dark current. Applied voltage and dark current ratio as the dark resistance;
    2. Sensitivity: Sensitivity is irradiated by light sensitive resistor, the resistance value (dark resistance) when irradiated with light Resistance value (light resistance) the relative change in values.
    3. volt-ampere characteristic curve. Voltage characteristic curves are used to describe the resistance of the applied voltage and the photosensitive photocurrent relationship, On the photosensitive devices, the light current with applied voltage increases.
    4. temperature coefficient. Photoelectric effect photoresistor affected by temperature, at a low temperature portion photoresistor photoelectric Sensitive high sensitivity at high temperatures is low.
    5. rated power. Photosensitive resistor rated power is allowed for certain lines in the power consumed when the temperature rise High, its power consumption is reduced.

Schematic

  • Arduino A5 --> Module Signal (S)
  • Arduino 5V --> Module +5V (Pin2)
  • Arduino GND --> Module GND (-)

Example code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//KY018 Photo resistor module
 
int sensorPin = A5; // select the input pin for the potentiometer
int ledPin = 13// select the pin for the LED
int sensorValue = 0// variable to store the value coming from the sensor
void setup() {
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
}
void loop() {
  sensorValue = analogRead(sensorPin);
  digitalWrite(ledPin, HIGH);
  delay(sensorValue);
  digitalWrite(ledPin, LOW);
  delay(sensorValue);
  Serial.println(sensorValue, DEC);
}
cs

The photoresistor just read the module's output analog voltage value and print the value. If there is light the output voltage is high, with no light there is a low voltage. See serial monitor for values

Source example code: https://s3.amazonaws.com/linksprite/Arduino_kits/advanced_sensors_kit/KY018+code.pdf See also example onhttp://nakkaya.com/2009/10/29/connecting-a-photoresistor-to-an-arduino/


https://tkkrlab.nl/wiki/Arduino_KY-018_Photo_resistor_module 

댓글 0

조회수 2,662

등록된 댓글이 없습니다.

아두이노HOME > 아두이노 > 전체 목록

아두이노 목록
제목 작성자 작성일 조회
92 아두이노 tkkrlab - Arduino 37 sensors - KY-022 Infrared sensor receiv… 키트 17-09-13 3031
91 아두이노 tkkrlab - Arduino 37 sensors - KY-021 Mini magnetic reed mod… 키트 17-09-13 2884
90 아두이노 tkkrlab - Arduino 37 sensors - KY-020 Tilt switch module 키트 17-09-13 2973
89 아두이노 tkkrlab - Arduino 37 sensors - KY-019 5V relay module 키트 17-09-13 3030
현재글 아두이노 tkkrlab - Arduino 37 sensors - KY-018 Photo resistor module 키트 17-09-13 2663
87 아두이노 tkkrlab - Arduino 37 sensors - KY-017 Mercury open optical m… 키트 17-09-13 2633
86 아두이노 tkkrlab - Arduino 37 sensors - KY-016 3-color LED module 키트 17-09-13 2921
85 아두이노 tkkrlab - Arduino 37 sensors - KY-015 Temperature and humidi… 키트 17-09-13 2532
84 아두이노 tkkrlab - Arduino 37 sensors - KY-013 Temperature sensor mod… 키트 17-09-13 2894
83 아두이노 tkkrlab - Arduino 37 sensors - KY-012 Active buzzer module 키트 17-09-13 2947
82 아두이노 tkkrlab - Arduino 37 sensors - KY-011 2-color LED module 키트 17-09-13 2702
81 아두이노 tkkrlab - Arduino 37 sensors - KY-010 Optical broken module 키트 17-09-13 2676
80 아두이노 tkkrlab - Arduino 37 sensors - KY-009 3-color full-color LED… 키트 17-09-13 2653
79 아두이노 tkkrlab - Arduino 37 sensors - KY-008 Laser sensor module 키트 17-09-13 2966
78 아두이노 tkkrlab - Arduino 37 sensors - KY-006 Small passive buzzer m… 키트 17-09-13 2873
게시물 검색

2022년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2021년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2020년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2019년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2018년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
Privacy Policy
MCU BASIC ⓒ 2020
모바일버전으로보기