Hello.
I'm using an Arduino Uno board to open a close a solenoid valve (12V, 0,5A) with a BJT Transistor (NPN 80V 10A) (KSE44)
(Datasheet here:
KSE44H11 TRANSISTOR NPN 80V 10A TO-220 Fairchild Semiconductor datasheet pdf data sheet FREE from datasheetz.com )
It works great. I thought I could open and close a low voltage circuit with this transistor just like I turn the solenoid on and off.
By the low voltage circuit I mean below from 0V to 3,3 V. However, I came across the problem that my idea doesn't work.
I pass a 3,3 V from the Arduino's 3.3 output through a small volume of water (2 wire system), and I 'd like to break this circuit using a transistor. To its base I apply output of a digital pin (5V) as LOW or HIGH, the collector is a Cathode from the water, and emitter goes to an analog input where I measure how much voltage went through.
When the base has a LOW input, everything works great - that is - the analog input shows "0" (I have a pull down resistor). But, when the base has a HIGH input, the analog input always shows some voltage, even though I pull out the Cathode out of the water (which should result in no current between the collector and emitter).
However, even if there is no voltage between the collector and emitter, the analog inputs detect voltage.
It is a problem, since I need to know when the wire in the water and when it is not.
The above is a part of my bigger project where I need to control a water level in a small water container. Actually, I use a 3 wire system - 1st wire supplies current to water, the 2nd wire is for the low water level, and the 3rd wire is for the high water level.
I believed that I could turn off the 2nd wire (the case described above) to eliminate the hydrolysis while water goes to the high level (wire 3), which would in turn apply a HIGH value to the solenoid's and 2nd wire's transistors' bases. They would work until water goes below the low level (when 2nd wire out of water) thus sending LOW to the transistors' bases closing the valve and breaking the 2nd wire circuit.
I hope it is not confusing.
I have a background from computer science, but not so much from electronics.
From what I've read on the Internet, a transistor is also an amplifier.
How could I fix this issue?
If there is a better solution to the problem than using a transistor, I would be happy to know.