Skip to main content

Automated Outdoor Lighting

This Project enables a person to make any Outdoor Lighting Automated i.e to switch On/Off according to the sunlight outside. If it is dark outside then the light will turn On and if it is daytime then it will automatically switch Off. This can be very useful for all Outdoor Lighting of various commercial buildings as well as for residential buildings. This can also be implemented in Vehicles which will automatically turn their lights On. Our aim can be achieved by designing a proper transistor circuit and using a relay with it to control the high voltage network. The Requirements Are:

1:- Bipolar Transistor(Bc 547)
2:-5/6v Spdt Relay
3:-Resistors(Around 4.5k And 3k Ohm)
4:-Light Dependent Resistor
5:-5v Power Supply
6:-Pcb For Soldering Things Together
7:-Multimeter





  •         CIRCUIT AND EXPLANATION


The project involves the use of a transistor as a switch to make the outdoor light on/off. As we know that transistor can be used in three different regions of operation namely saturation, active and cutoff region. These regions can be known from the datasheet for the transistor used.
            
                   
For switching, the transistor must work only in saturation and cutoff region. So our first objective is to design a circuit which makes the transistor to work in saturation/on state when the light is there and to go into cutoff/off state when there is no light. Now as we know the LDR changes its resistance according to the light. If there is more light its resistance decreases and if there is dark, then its resistance increases. So we need to know the resistance of LDR in above two states and hence we use a multimeter and take the two resistances in darkness and in the light. In my case, it was around 3k in light and around 800k in darkness. So now we design a circuit which changes the state of the transistor according to the change in resistance of LDR. Now with a bit of knowledge about transistor and its biasing, we get to know about the values of two resistances r2 and r3.in first case taking resistance of LDR as 3k ohm, we make  r3 to be 3k as to build a simple voltage divider. The value of r2 is to be determined as to make the transistor work in the saturation region. For saturation state, we need to keep the base terminal current as high as possible so that collector terminal current may increase to its saturation value. We know from the datasheet we need to keep base current above 300-350 microampere for saturation region. So taking the value of base current as 300-350 uA and applying Kirchoff's law in the base-emitter loop, r2 comes around 4.5k.

So now the transistor works in saturation mode and hence the voltage across the collector-emitter terminal is approx. Equal to the applied voltage as the transistor works as a short circuit. Now we need to connect the 5 v power supply across the collector-emitter terminal and also a relay in b/w. When the LDR changes to 800k then it works almost as an open circuit and hence base is not biased so the transistor is cut off, so the relay is also off.




The connections are to be made like above. Any simple adapter can be used to provide 5v or above. This circuit can be assembled on a PCB and can be covered with a transparent sheet so that only light enters.                                                                     
It should look something like this on a breadboard.



Now we need to assemble all the components on PCB.


Now the relay is to be connected to the high voltage line. It must be noted that there are 2 options for the relay and we have to make sure that the connection is short circuited when the relay is off and open when the relay is on.

So now the circuit is complete and we need to power on the adapter.


Hence the automated outdoor lighting is complete.
To demonstrate the working, a short video is attached below.

Comments

Popular posts from this blog

Let's Build a Music Player!

Digital Music Player's are one of the many sensational devices that were developed in the 20th century. They have been around for a while now and have become a part of our life. In the last few years, they have been integrated within Smart Phones and hence, have reached the masses. Now, Let us try to dive into knowing how these devices work and I guarantee that we all would be fascinated by the kind of engineering which goes into making these magic boxes. There are various topics which must be covered in order to build our own music player and so there will be several blogs to build a SOUND foundation. Now let us make a list of the required components and then we will walk through each of them in the upcoming blogs. There are 3 basic parts which are required to build a device which can output Audio:- Storage Medium. Micro-controller. Audio Output device. We will store the required music file onto a storage medium as the onboard memory on a microcontroller is low...

SD-CARD

This Post marks the beginning of our quest to develop a simple Music player. SD stands for Secure digital and these small devices have been around for a while now. They contain flash memory and a memory controller which is given instruction by the main MCU. So our main objective here is to understand how sd cards work and how to interface them with a microcontroller. As to understand the working of SD card we need to dive into the world of transistors and bits! The Sd card contains solid-state memory also known as the flash memory which is a type of EEPROM i.e  Electronically Erasable Programmable Read Only Memory .  Flash memory stores information in an array of memory cells made from  floating-gate transistors . These transistors are used in different topologies as to store each bit. We will not program each bit individually as it will be time-consuming as well as an inefficient way to store the data. As to move to a higher level of abstraction, we need a way to ...