Hello,
I'm trying to make a simple circuit that will emulate a load. This load has a power consumption in standby mode which is resistor R1. The parallel combination of R1 and R2 consume power as if the load is in operation.
The problem I'm having is trying to get the pmos to act as a switch and connect the two resistors.
The gate is connected to a microcontroller logic pin with a +5v high output.
3.7 volts is on a powerboard.
The ground of the powerboard and microcontroller are connected.
The following is a schematic of what I have so far.

My thoughts are that the gate voltage is floating and it never drops to 0V when the logic level is low. Possibly gate capacitance too.
Any help is greatly appreciated. Thanks.
I'm trying to make a simple circuit that will emulate a load. This load has a power consumption in standby mode which is resistor R1. The parallel combination of R1 and R2 consume power as if the load is in operation.
The problem I'm having is trying to get the pmos to act as a switch and connect the two resistors.
The gate is connected to a microcontroller logic pin with a +5v high output.
3.7 volts is on a powerboard.
The ground of the powerboard and microcontroller are connected.
The following is a schematic of what I have so far.

My thoughts are that the gate voltage is floating and it never drops to 0V when the logic level is low. Possibly gate capacitance too.
Any help is greatly appreciated. Thanks.