LIGHT SENSOR TO SWITCH ON A LIGHT OR ANY DEVICE LDR Saif Aldeen Saad Obayes Al-Kadhim MIEEE
[email protected] [email protected]
Sarah Kadhim Aboud
[email protected]
TECHNICAL REPORT LAB
The Light Dependent Resistor (LDR)
1. The LDR: The Light Dependent Resistor (LDR) is made from a Cadmium-Sulfide compound (CdS). CdS is a semiconductor material. The resistance of the LDR changes as the light level changes. More light produces more electron – hole pairs in the material, making the material a better conductor in light. Resistance decreases (conductivity increases) as light levels increase because there are more charge carriers in the material. Note that R = 1/G (G is conductance) The LDR controls the voltage on the transistor’s base. As it gets darker in the room, the voltage on the base will increase until the transistor is forward biased. This results in high current flowing from the transistor’s collector to the base. This collector current flows to the LED and is responsible for turning the LED on.
The light dependent resistor is an electronic component whose resistance decreases with increasing light intensity. It is also called as “Photo Resistor” or “Photo conductor” The light dependent resistor uses high resistance semiconductor material. When light falls on such a semiconductor the bound electrons [ ie., Valence electrons] get the light energy from the incident photos.
1
Due to this additional energy, these electrons become free and jump in to the conduction band. The electron –hole pairs are generated. Due to these charge carriers, the conductivity of the device increases, decreasing its resistivity.
Figure 1 Generation of charge carriers due to light.
Figure 2 LDR symbol
Figure 3 Resistance as a function of illumination
2
EXPERIMENT Lights Control using Light Dependent Resistor 1. Objectives To control lights using LDR sensor. 2. Contents In this lab an LED is automatically turned on when the ambient light level falls below a threshold.
The threshold is determined by adjusting a variable resistor
(potentiometer). The circuit contains a transistor that amplifies the current coming into its base. This current controls the LED. 3. Parts: a) LDR or PhotoCell 10 K ohme -100K K ohme (1M K ohme Dark) (DigiKey p/n: PDV-P9007-ND) b) NPN 3904 c) 1N400X Diode (optional) d) 100 K Pot e) 22 K ohme f) 470 K ohme g) Bright LED (3000-4500 mCd) h) 9V Battery and battery straps i) 22 gauge wire j) Solderless Breadboard
3
4. The Bipolar Transistor: The transistor in this lab is an NPN transistor. When the LDR’s resistance increases in low light, the voltage on the transistor’s base increases. When this occurs the baseemitter junction of the transistor becomes forward biased while the base-collector junction is reverse biased. This is called active-mode. In active-mode current flowing from the collector to emitter is about 100 times larger than the current flowing into the base of the transistor. Thus, the gain is roughly 100. Very small changes in current are used to control the LED.
4
5. The Circuit: V+ 1N400X
50K Pot
2N3904 22K
470 LDR
6. Construction of Circuit: Step 1- Insert wires for the power (+9V) and ground nodes. Connect the diode between power and another unused node. Make sure the diode’s band is facing away from power as shown below:
Step 2 – Note that the potentiometer (pot) has three pins. Insert the potentiometer (pot) into the board. Make sure each pin is straight and placed in a separate node. 5
Insert the pot as shown. Make sure one end of the pot connects with the diode.
Step 3- Next insert the LDR from the center pin of the pot to the ground node as shown below.
Step 4 - Next insert the 22k resistor from the center of the pot to another unused node as shown.
6
Step 5-Insert the transistor into the board. The pin lay-out is:
Make sure the base of the transistor (center pin) is connected to the 22k resistor. Then add a wire so that the collector (C) is connected to the diode as shown.
Step 6 - Connect the 470 resistor between the emitter of the transistor and another unused node. 7
Step 7- Next insert the LED between the 470 resistor and ground. Make sure the long lead is connected to the 470 resistor.
Step 8 - Finally attach the battery straps to the +9V battery. Connect the red wire to +V on the board and the black wire to ground on the board.
8
Step 9- Working in normal indoor light conditions, get a small flathead or trim pot tool. Adjust the pot until the LED comes on. Then slowly go back the other direction and stop turning as soon as the LED goes off. Cover the LDR with your hand. The LED should come on. Take the circuit into a dark place such as a closet. Again the LED should come on.
Step 10 - Test your light in various light conditions. 9
7. Questions: i. ii. iii. iv.
What is another application for a LDR controlling a light source? What is another use for a LDR besides turning on and off a light? Explain how this application works. (see ideas above) Research the material used in the LDR and explain how a LDR works. The circuit in this lab could be adapted to control other things. For example, a Thermister could replace the LDR and the circuit could then be used as a thermostat to control a fan or heater. What does a thermostat do and how does a thermostat work?
Sources: [1] http://www.reuk.co.uk/Light-Dependent-Resistor.htm [2] Saif Aldeen Saad Obayes Al-Kadhim, and et al., Prototype Wireless Controller System based on Raspberry Pi and Arduino for Engraving Machine, UKSim-AMSS 19th International Conference on Modelling & Simulation, DOI: 10.1109/UKSim.2017.20. [3] Saif Aldeen Saad Obayes Al-Kadhim, Industrial Workshop Based on Internet of Things: Automated Manufacturing Systems Technology, Noor Publishing (August 1, 2017), ISBN-10: 3330965754, ISBN-13: 978-3330965751. [4] Saif Aldeen Saad Obayes Al-Kadhim, and et al., CNC Machine Based on Embedded Wireless and Internet of Things for Workshop Development Article in IJCDS Journal Volume 6(Issue 4):205 · July 2017, DOI: 10.12785/ijcds/060406.
10