Automatic Water pump controller using BJT
- 3 BJT model BC547,
- 1 Buzzer,
- 1 Relay,
- 8 Resistors,
- 1 Diode,
- 1 Led,
- Wires for sensing water level.
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 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:
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:
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.
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
Comments
0 Comments
Good Job .
Leave a Comment