I am using a mosfet and an Arduino and I want to control the Source-Drain current of the mosfet by adjusting PWM to the Gate.
If I apply zero value to the PWM, the current doesn't stop (I checked the PWM output with voltmeter and it's zero volts). When I manually connect the gate to the ground with a wire, the current stops.
How can I stop the current with PWM output that connected to the gate?
Here's my circuit. I common all the grounds with wire and put mosfet and hall effect sensor on two separate breadboard.
Also, I'm powering the Arduino with a printer cable that's connected to my laptop.