Hi,
Using a N-channel MOSFET on the high side requires some sort of driver which boosts the gate voltage to Vgs volts over whatever voltage you're switching. You can not just put a N-channel, logic level or ordinary, on the high side and apply 5V to its gate and expect it to conduct properly.
You can use a P-channel, put a pullup from the gate to the sensor supply voltage (24V) and then use a N-channel or NPN transistor to switch the P-channels gate to GND.
If you can switch the low side instead it'll be much easier, ie +24V--->Sensor power--->N-channel--->GND.
/Henrik.
Bookmarks