I have a 5 V water pump and a 5 V/2.4 A power source. These work together. Now I want to control it with a PWM signal from an STM32 board using a FQP30N06L N-Channel MOSFET and that doesn't work - nothing happens, the PWM signal goes out but the pump doesn't seem to get the power and doesn't turn on.
This is my circuit:
The diode looks dumb but it's the only one I could find rated over 2 A.
I would very much appreciate help in finding the error.