brock

Friday, October 12, 2012

Automatic Bathroom Lamp

This simple circuit can be used as an automatic bathroom lamp controller. It disables the bathroom lamp at daytime and enables it at night. The circuit is built around a light-dependant resistor (LDR1), reed switch (S1), two transistors BC547 (T1) and SK100 (T2), a 12V 1-change over (C/O) relay (RL1), a step-down transformer X1 (12V-0-12V, 250mA secondary) along with some discrete components.

The working of the circuit is based on the opening/closing of the bathroom door. When the bathroom door is closed, magnet comes near the reed switch and shorts its terminals. Both transistors T1 and T2 stop conducting, and neither relay RL1 energises nor CFL lamp (B1) glows.

When bathroom door is opened, magnet moves away from the reed switch and opens its terminals. Both transistors T1 and T2 conduct, relay RL1 energises and CFL lamp (B1) glows.



When bathroom door is opened, CFL lamp (B1) remains on. After entering the bathroom do not close the door completely. If the bathroom door is completely closed, lamp (B1) is switched off.

During daytime, lamp operation is not necessary due to the presence of sunlight so LDR1 is used. Fit LDR1 near the bathroom window where it can receive sunlight (reflected sunlight is enough). At daytime if you open the bathroom door, resistance of LDR1 reduces and keeps both transistors T1 and T2 in cut-off state. Relay RL1 does not energise and lamp remains off.

At night, if you open the bathroom door, resistance of LDR1 is high, which keeps both the transistors T1 and T2 in conducting state. Relay RL1 energises and lamp (B1) is switched on. The power supply required to operate the circuit is derived from transformer X1.

Assemble the circuit on a general purpose PCB and enclose in a suitable cabinet. Fix LDR1 near the bathroom window in such a way that maximum light falls on it at daytime. Fix the reed switch on the frame of bathroom door and magnet on the door. Keep the transformer inside the cabinet and place the unit above/near the bathroom door.

Monday, October 8, 2012

Symple Solar Tracking System

Generally, solar panels are stationary and do not follow the movement of the sun. Here is a solar tracker system that tracks the sun’s movement across the sky and tries to maintain the solar panel perpendicular to the sun’s rays, ensuring that the maximum amount of sunlight is incident on the panel throughout the day. The solar tracker starts following the sun right from dawn, throughout the day till evening, and starts all over again from the dawn next day.
fig1

Fig. 1 shows the circuit of the solar tracking system. The solar tracker comprises comparator IC LM339, H-bridge motor driver IC L293D (IC2) and a few discrete components. Light-dependent resistors LDR1 through LDR4 are used as sensors to detect the panel’s position relative to the sun. These provide the signal to motor driver IC2 to move the solar panel in the sun’s direction. LDR1 and LDR2 are fixed at the edges of the solar panel along the X axis, and connected to comparators A1 and A2, respectively. Presets VR1 and VR2 are set to get low comparator output at pins 2 and 1 of comparators A1 and A2, respectively, so as to stop motor M1 when the sun’s rays are perpendicular to the solar panel. 
fig2

When LDR2 receives more light than LDR1, it offers lower resistance than LDR1, providing a high input to comparators A1 and A2 at pins 4 and 7, respectively. As a result, output pin 1 of comparator A2 goes high to rotate motor M1 in one direction (say, anti-clockwise) and turn the solar panel. 



When LDR1 receives more light than LDR2, it offers lower resistance than LDR2, giving a low input to comparators A1 and A2 at pins 4 and 7, respectively. As the voltage at pin 5 of comparator A1 is now higher than the voltage at its pin 4, its output pin 2 goes high. As a result, motor M1 rotates in the opposite direction (say, clock-wise) and the solar panel turns.


Similarly, LDR3 and LDR4 track the sun along Y axis. Fig. 2 shows the proposed assembly for the solar tracking system.