Post Top Ad

Tuesday, July 11, 2023

on video Darkness Sensor on Breadboard using LDR and BC547



Darkness Sensor on Breadboard using LDR and BC547

A tutorial on How to make a Light Sensor / Darkness detector circuit on breadboard using LDR and a transistor. This circuit can be used to automatically control and turn on-off lights or any loads depending on the brightness of ambient light, by adding a relay at the output. The sensitivity a.k.a the brightness at which the circuit switches on the load can also be controlled by using a potentiometer. Watch the video above for detailed step by step instructions on how to build this circuit. Explanation of how the circuit works is also included in the video.


[Schematics for Light Sensor circuit and Dark Sensor circuit are at the end of this article]


Components required:

1 LDR (Light Dependent Resistor or Photo-resistor)

1 npn Transistor (I used BC547)

Resistors: 470R, 1K (For Light Sensor), 47K (For Dark Sensor)

Potentiometer (Only if you need adjustable sensitivity): 10K (For Light Sensor), 100K (For Dark Sensor)

breadboard

Power Supply: (3-12)V

Few breadboard connectors

Explanation of Circuit's Working:

[Watch the video at the beginning of this post for better visual understanding]


The sensing component in this circuit is LDR (short form for Light Dependent Resistor or Photo-Resistor). The resistance of LDR depends on the intensity or brightness of light incident on it and the relation is of inverse proportionality. Which means that when the intensity of light increases, the LDR's resistance decreases, and vice versa.

You can visually observe this effect by connecting the LDR in series with an LED and power up the circuit. Now if you reduce the brightness of the ambient light, the LDR's resistance increases, resulting in less current flowing through the circuit (remember: more the resistance, less the current) and so you will observe that the LED's brightness decreases. Exactly the opposite happens when you increase the brightness of ambient light.


Although this LDR and LED in series circuit is the easiest to make, it has some limitations. Some of them are: you can't control the brightness at which the LED exactly turns on or off. Also, practically we would want the LED to turn on when it's dark and turn off when there's enough light. The maximum load that the circuit can drive is also limited. So for these reasons, we move on to a more functional circuit using a transistor.


Some transistor basics: For an npn-transistor, the emitter, collector are of n-junction and the base is of p-junction. For the transistor to turn on or to allow current to flow from the collector to emitter, the voltage at the base should be above a certain threshold voltage.


We used a resistor in series with the LDR (basically a voltage divider) to convert the change in resistance of the LDR into a change in voltage. This change in voltage at the common point between the LDR and the resistor is used to trigger the transistor by connecting it to the base of the transistor.


In the Light Sensor Circuit (first diagram) when the brightness of light increases, the LDR's resistance reduces and so the voltage at the base of the transistor increases (because if LDR resistance reduces, the voltage drop across the LDR, towards positive side decreases). Once this voltage increases above the required threshold voltage at the base, the LED turns on. You can now visualize what happens when you reduce the brightness of the ambient light.


In the Dark Sensor Circuit (second diagram) when the LDR's resistance decreases when the intensity of light increases. So the voltage at the base of the transistor increases when the brightness of the light decreases, and once it gets past the minimum threshold voltage required at the base of the transistor, it turns on the LED.

 



Darkness Sensor on Breadboard using LDR and BC547

A tutorial on How to make a Light Sensor / Darkness detector circuit on breadboard using LDR and a transistor. This circuit can be used to automatically control and turn on-off lights or any loads depending on the brightness of ambient light, by adding a relay at the output. The sensitivity a.k.a the brightness at which the circuit switches on the load can also be controlled by using a potentiometer. Watch the video above for detailed step by step instructions on how to build this circuit. Explanation of how the circuit works is also included in the video.


[Schematics for Light Sensor circuit and Dark Sensor circuit are at the end of this article]


Components required:

1 LDR (Light Dependent Resistor or Photo-resistor)

1 npn Transistor (I used BC547)

Resistors: 470R, 1K (For Light Sensor), 47K (For Dark Sensor)

Potentiometer (Only if you need adjustable sensitivity): 10K (For Light Sensor), 100K (For Dark Sensor)

breadboard

Power Supply: (3-12)V

Few breadboard connectors

Explanation of Circuit's Working:

[Watch the video at the beginning of this post for better visual understanding]


The sensing component in this circuit is LDR (short form for Light Dependent Resistor or Photo-Resistor). The resistance of LDR depends on the intensity or brightness of light incident on it and the relation is of inverse proportionality. Which means that when the intensity of light increases, the LDR's resistance decreases, and vice versa.

You can visually observe this effect by connecting the LDR in series with an LED and power up the circuit. Now if you reduce the brightness of the ambient light, the LDR's resistance increases, resulting in less current flowing through the circuit (remember: more the resistance, less the current) and so you will observe that the LED's brightness decreases. Exactly the opposite happens when you increase the brightness of ambient light.


Although this LDR and LED in series circuit is the easiest to make, it has some limitations. Some of them are: you can't control the brightness at which the LED exactly turns on or off. Also, practically we would want the LED to turn on when it's dark and turn off when there's enough light. The maximum load that the circuit can drive is also limited. So for these reasons, we move on to a more functional circuit using a transistor.


Some transistor basics: For an npn-transistor, the emitter, collector are of n-junction and the base is of p-junction. For the transistor to turn on or to allow current to flow from the collector to emitter, the voltage at the base should be above a certain threshold voltage.


We used a resistor in series with the LDR (basically a voltage divider) to convert the change in resistance of the LDR into a change in voltage. This change in voltage at the common point between the LDR and the resistor is used to trigger the transistor by connecting it to the base of the transistor.


In the Light Sensor Circuit (first diagram) when the brightness of light increases, the LDR's resistance reduces and so the voltage at the base of the transistor increases (because if LDR resistance reduces, the voltage drop across the LDR, towards positive side decreases). Once this voltage increases above the required threshold voltage at the base, the LED turns on. You can now visualize what happens when you reduce the brightness of the ambient light.


In the Dark Sensor Circuit (second diagram) when the LDR's resistance decreases when the intensity of light increases. So the voltage at the base of the transistor increases when the brightness of the light decreases, and once it gets past the minimum threshold voltage required at the base of the transistor, it turns on the LED.

 

No comments:

Post a Comment

Post Top Ad

Pages