What you need to know;
- Ohms law.
- Voltage division.
- How to use the breadboard.
- How the LDR works.
In this piece, we are going to build a practical circuit with the Light Dependent Resistor. Recalling, the LDR, we know its resistance, is dependent on the intensity of light incident on it. It has a very high resistance when there is NO or LOW light incident on it and it has low resistance when more light is incident on it.
It is this property of it which we are going to harness to create something magical for ourselves.
So we are going to build a simple light sensing system which is going to read our environment’s light intensity and later Toggle an LED high or low depending on the light intensity of the surrounding.
But just the LDR cant do this magic, we are also going to harness a marvelous behavior of the voltage division to create something spectacular.
Why voltage division?
When you have a voltage divider circuit consisting of just two resistors of the same value like in the schematic on the right, we know that both resistors will have the same voltage drop across them. True or not true?
But we also realize that, if the resistors are of different resistances, there will be surely more voltage drop across the big resistor than the small. That’s very true and can be proven by ohm’s law: V=IR.
Now see this, if the value of one of the resistors is kept constant and the other is varied such that at a point in time, it has more resistance than the fixed resistor and another time it has less resistance than the fixed resistor, you will also find out that the voltage drop across them will be changing as their resistances change. The only property that remains constant is the fact that, “at any time ‘t’ the resistor with the highest resistance has more voltage drop across it. “
And it is this property that we need. Now lets put the pieces together to make some sense. The LDR is going to be our variable resistor, such that, when there is low or no light, it will have more resistance, and hence more voltage drop across it than the fixed resistor. And when there is enough light on it, it will have less resistance and less voltage drop across it.
The objective Logic.
The logic we want to have at the end of the day is this;
when there is no light——-we want to command an LED to come alive. (HIGH).
A question to ask yourself now is, when there is no or low light, which resistor has more voltage drop across it? surely the LDR. And so we are going to connect our load (the LED) across the LDR, thus in parallel with the LDR. So the fate of the LED will always be decided by the LDR.
And on the other side, when there is enough light, the LDR will decrease in resistance and hence decrease in voltage. Now if the voltage drop across the LDR is too small the LED will also not get the required voltage to stay on and will surely go off.
Lets move on to build it real to understand more.