Introduction: Transistor - Dark/Light Sensor

About: Love engineering and building gadgets, like climbing on stuff and also have a passion for knocking things down.

Hello Friends,

From this instructable we will be able to learn how to make a Dark and Light sensor. Two tutorials in one.Basic principle is really simple the possibilities and uses of these basic sensors are almost unlimited.

Depending on the purpose and the outcome of your circuit, you may need extra items such as soldering iron, solder and PCB. But in this tutorial we will be using just a simple electronic components, breadboard and some jumper wires.

So lets start building.

Step 1: Transistor - Dark Sensor

Transistor - Dark sensor circuit requires basic parts such as:

  • 1x NPN transistor(BC547)
  • 1x LED(any colour)
  • 1x Photoresistor
  • 1x Resistor 330R (for LED)
  • 1x Resistor 100kR (for grounding)

Step 2: Transistor - Dark Sensor (circuit)

As you will see, this circuit is almost the same as for the circuit we will be using for the light sensor. The only difference between these circuits are the placement of LDR(light dependant resistor and 100kR resistor).

Working principle:

Dark sensor works in the way that then the LDR comes to the darkness, or in other words, if no light falls on it, the transistor turns on. Then transistor turns on, it lets the current flow trough it and also the right branch of the circuit is now active. LED starts emmiting.

The dark sensor could be made more controllable by switching the R1 resistor with variable resistor, thus:

High resistance-> more darkness to switch on the LED.
Low resistance-> less darkness to switch on the LED.

A basic voltage divider is formed between the LDR and the resistor R1=100kR. When light is shinning and some photons are falling on the LDR its resistance is low and because of that, positive rail gets grounded to the bottom negative rail. Thus zero base voltage is applied to the transistor and so it is off.

Step 3: Transistor - Light Sensor

Transistor - Light sensor circuit requires basic parts such as:

  • 1x NPN transistor(BC547)
  • 1x LED(any colour)
  • 1x Photoresistor
  • 1x Resistor 330R (for LED)
  • 1x Resistor 100kR (for grounding)

Step 4: Transistor - Light Sensor (circuit)

Working principle:

Light sensor works in the way that then the LDR comes to the darkness, or in other words, if no light falls on it, the transistor turns off. Just the opposite of what we saw with dark sensor. Same as the dark sensor we could modify light sensor to be more modular by switching the R1 resistor with variable resistor, thus:

LESS RESISTANCE(R1)-> LESS DARKNESS TO SWITCH OFF THE LED

HIGH RESISTANCE(R1)-> MORE DARKNESS TO SWITCH OFF THE LED

Yet again, this circuit works the same as the dark sensor. Just now the potential divider circuit is formed a bit differently. Thus, when no light is present resistance of LDR is very high and no base voltage is applied to the transistor - transistor remains shut off.
As the light level increases the resistance of the LDR starts to decrease causing the base voltage to rise. At some point determined by the voltage divider, the base bias voltage is high enough to turn the transistor on. Activating the right branch of the circuit.

Step 5: Summary

This project is really great for learning purposes of building simple circuits with transistors. But not only it is simple, these circuits can be really powerful and give great outcome if used with relay or other components.

The only difference between these two circuits is just the possition of LDR and R1. It just differently forms the voltage divider and so, the transistor reacts differently too.

Keep learning and have a great day Thank you for reading/watching.

First Time Author Contest

Participated in the
First Time Author Contest