E
Emil Johnsen
Guest
I'm using a UGN3503 Hall effect sensor to detect the presence of a magnet.
The signal should be half the supply voltage when no magnetic field is
present. Actually I get ~2.35V with a 5.1V supply. With the magnet I'm using
the output rises to 3.2-3.5V when the magnet is close to the sensor.
When the signal is high I want to draw one of the input pins of the paralle
port to gnd.
I eventually got this to work using a mosfet with a Gate-Threshold voltage
of 3V (BUZ21). Obviously using a (somewhat costly and bulky) 20amp mosfet
when the load will be at most a few mA is not a very elegant solution. Also
I migth have been lucky that this mosfet was close to the typical
Gate-Threshold voltage rather than the min (2.1V) or the max (4V).
Are there any small (preferably TO-92 or SMT) mosfets with a Gate-Threshold
voltage of 3V with thighter tolerances? If min and max were withing 2.5-3.2V
I could be sure it would work. I have looked at a lot of datasheets but I
have not found anything yet.
Maybe I'm geting needlessly attached to mosfets.. Is there a better way of
doing this?
--
Emil Johnsen
The signal should be half the supply voltage when no magnetic field is
present. Actually I get ~2.35V with a 5.1V supply. With the magnet I'm using
the output rises to 3.2-3.5V when the magnet is close to the sensor.
When the signal is high I want to draw one of the input pins of the paralle
port to gnd.
I eventually got this to work using a mosfet with a Gate-Threshold voltage
of 3V (BUZ21). Obviously using a (somewhat costly and bulky) 20amp mosfet
when the load will be at most a few mA is not a very elegant solution. Also
I migth have been lucky that this mosfet was close to the typical
Gate-Threshold voltage rather than the min (2.1V) or the max (4V).
Are there any small (preferably TO-92 or SMT) mosfets with a Gate-Threshold
voltage of 3V with thighter tolerances? If min and max were withing 2.5-3.2V
I could be sure it would work. I have looked at a lot of datasheets but I
have not found anything yet.
Maybe I'm geting needlessly attached to mosfets.. Is there a better way of
doing this?
--
Emil Johnsen