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.
P mosfet high side 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.
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.
It seems like every time i go to work with mosfets i have to spend.
There are a variety of configurations for driving the two mosfets with many different applications.
N channel mosfets can also switch v in certain configurations with drain being vin and source being switched vout.
Here s my schematic and board design for a simple high side switch using a p channel mosfet.
Typically these use a pnp bjt or p channel mosfet.
In this case use a p channel mosfet to turn the relay on from the arduino s i o pin.
To switch v with a p channel mosfet.
This transistor connects between v and the load.
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.
Because of how transistors work these can be a little more difficult to use in an arduino or raspberry pi circuit.
Then the p channel mosfet is used to switch the positive supply to the motor for forward direction high side switching while the n channel mosfet is used to switch the negative supply to the motor for reverse direction low side switching.
It s a simple circuit that has a input for positive and negative and an output for positive and negative connections.
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.