To switch v with a p channel mosfet.
P mosfet high side switch.
Sometimes you want to keep the same ground reference to your circuits so.
The opposite of the low side switch is the high side switch.
There are a variety of configurations for driving the two mosfets with many different applications.
Used as a high side switch a p channel mosfet in a totem pole arrangement with an n channel mosfet will simulate a high current high power cmos complementary mos arrangement.
Typically these use a pnp bjt or p channel mosfet.
Here s my schematic and board design for a simple high side switch using a p channel mosfet.
Because of how transistors work these can be a little more difficult to use in an arduino or raspberry pi circuit.
N channel mosfets have lower on resistances than p channel mosfets so are preferable if you have the choice of which side to switch.
Using a p channel with positive voltages is easy when connected to the circuit correctly.
Although the p channel mosfet cannot complement the n channel in both on resistance and capacitance simultaneously such combinations as the low threshold p channel.
N channel mosfets can also switch v in certain configurations with drain being vin and source being switched vout.
That only explains why you used a p mosfet as a high side switch but not the the reason why a high side switch is useful.
It seems like every time i go to work with mosfets i have to spend.
It s a simple circuit that has a input for positive and negative and an output for positive and negative connections.
In this case use a p channel mosfet to turn the relay on from the arduino s i o pin.
If your load voltage is higher like 12 or 24v then you might want to use an n channel mosfet in a low side configuration.
The p channel high side switch therefore solves the problem of using an n channel mosfet for high side switching.