Press enter to see results or esc to cancel.

# Automatic Water pump controller using BJT

This is one of my favorite analog electronics projects because this is the lowest cost but efficient automatic water pump controller. Components require for this project are

• 3 BJT model BC547,
• 1 Buzzer,
• 1 Relay,
• 8 Resistors,
• 1 Diode,
• 1 Led,
• Wires for sensing water level.
So all the components cost not more than \$1.

I hope all of you guys have fun with this low cost exciting project. I will explain design procedure of every parts so that you can use BJT switch any of your project. Before we start let’s see the project demo video.

#### Buzzer Part design:

Buzzer is used for indicating whether there is water in the water tank or not. If there is no water in the water tank buzzer will turn on. So I have to put two terminals of the wire at the bottom of the water tank.
•  Buzzer current requirement: 35mA maximum
• Voltage: 3.5-5V
• buzzer coil resistance: 42R
• Buzzer will be turn on when there is no water in the water tank and turn off when water level start rising .

So now one thing is clear we have to design transistor such a way so that it works in cut-of region and saturation region as well as supply 30mA(close to 35mA) current. If you don’t know much about BJT switching, it is suggested to go through this tutorial TRANSISTOR AS A SWITCH : DESIGN PROCEDURE.
The image given below is our final design. You see, it is supplying 33mA current through the buzzer.

\$\$displaylines{
{V_{CC}} = 9V cr
{R_{buzzer}} = 42Omega  cr
{I_{buzzer}} = 30mA cr
{I_{buzzer}} = {{{V_{CC}}} over {{R_C} + {R_{buzzer}}}} cr
{R_C} = 258Omega  cr} \$\$
Nearest available value is 230 ohm.

For calculating R1 & R2 values we need the Thevenin equivalent of above circuit.

Thevenin voltage and resistance are
\$\$displaylines{
{V_B} = {{{R_2}} over {{R_1} + {R_2}}} cr
{R_B} = {{{R_1}{R_2}} over {{R_1} + {R_2}}} cr} \$\$
Now we calculate collector and base current
\$\$displaylines{
{I_{C|EOS}} = {{{V_{CC}} – {V_{CE|Saturation}}} over {{R_C}}} cr
= {{9 – 0.2} over {220}} cr
= 40mA cr
{I_{B|EOS}} = {{{I_{C|EOS}}} over {{beta _{min }}}} cr
= {{40mA} over {110}} cr
= 0.3636mA cr} \$\$
Overdrive factor ODF =10.
\$\$displaylines{
{I_B} = ODFx{I_{B|EOS}} cr
= 10x.3636mA cr
= 3.636mA cr} \$\$
N.B: If Thevenin voltage VB very close to power supply voltage Vcc=9v then the transistor will operate deep into saturation
Let assume VB=99% of Vcc
\$\$displaylines{
{V_B} = 8.91v cr
{I_B} = {{{V_B}} over {{R_B}}} cr
{R_B} = {{{V_B}} over {{I_B}}} cr
{R_B} = {{8.91v} over {3.636mA}} cr

= 2450Omega  cr} \$\$
No we find out values for R1 & R2.
As VB very close to Vcc, so the R2 value should be enough greater than  R1 value. let R2= 100k
\$\$displaylines{
{R_2} = 100kOmega  cr
{R_B} = {{{R_1}{R_2}} over {{R_1} + {R_2}}} cr
2450 = {{{R_1}x100k} over {{R_1} + 100k}} cr
{R_1} + 100k = {{{R_1}x100k} over {2450}} cr
{R_1} + 100k = 40.8{R_1} cr
{R_1} = 2512.56Omega  cr

{R_1} approx 2.5kOmega  cr} \$\$
Our calculated values are close to simulation value.
So when the water level doesn’t reach that height current cannot pass through Base(Base grounded). So BJT operates in the Cut-off region.

### Relay part design:

Two terminals of the wire will put at the top of the water tank. So when water tries to overflow, the motor automatically turns off.
As electronics circuit part is operating in 9v. But we need to turn on and off the Ac water pump. So we need a relay to operate the water pump. But relay requires much current close to 70mA.
I used relay model SRD-05VDC-SL-C

Relay current requirements:70 mA
voltage: 5V

As calculations are same as Buzzer part, you can calculate necessary resistors value to operate relay if you understand Buzzer part design. Here only change is Collector current Ic

Here Diode parallel with Relay is used keeping the BJT safe from high voltage generated by relay which may break downs the BJT. So when high voltage generates across relay coil, it pass through diode to the battery.

### Led Part design:

Led is optional part. When water is middle of the water tank led will turn on. So I have to put two terminals of the  wire at the middle of the water tank.
I used 3mm Led which requires 10mA current.
To minimize BJT power consumption, design the transistor in saturation mode.
Follow this tutorial to design this part.
For better view of the full schematic go This link
Point to remember:
After completing design choose BJT model according to your current rating(maximum allowable current through collector) and power rating. So check my model BC547. . Collector current(DC) of BC547 is 100mA and our Relay requires 70mA. We can use this model. If you want to be more safe, use PN2222 which collector current is 600mA  