Saturday, 8 December 2018

Water level indicator with PNP transistor


I wanted to create a circuit that Lit's up an LED when water level rises to a certain level.


I have created the following schematics following the https://www.electronicshub.org/water-level-alarm-using-555-timer/ However since the LED lit up even though there was no water i needed to add the R1 resistor.


schematic



simulate this circuit – Schematic created using CircuitLab


Now i want to do the opposite. I want the LED to not light up when both probes are connected with water and lit up only when water level drops.


For that i have created a following circuit swapping the BC546B (NPN) with BC556B (PNP) transistor.


schematic


simulate this circuit


However this lights the LED when the probes are not connected with water but even shorting them doesn't turn off the PNP transistor (that is LED is still glowing). Removing the R1 and path to ground from base of the PNP makes it glow dimly (it glows more when i hold the water probe) and connecting them then does turn off the PNP.


Why is that ? I thought i can turn off the PNP by applying a small amount of voltage to its base?


How can i fix my circuit so that it works ?


Ps. i have also tried with a darlington PNP transistor TIP 125 and it doesn't work



Answer




If it still turns on with R1 removed I suspect a wiring issues.


However, you need to move R1 left or R2, as shown below, so it does not form a voltage divider which will allow the base to still be biased on a little.


If it still turns on with a hard short across the probe something else is up.


schematic


simulate this circuit – Schematic created using CircuitLab


These circuits are VERY dependent on the resistance of the probe though, especially top side like that. You might be better off doing it this way.


schematic


simulate this circuit


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...