Please provide a schematic showing all components, their part numbers and/or values and power supplies.
An IRF520 MOSFET is not a logic level device so will not fully turn on with 5V on the gate.
Please provide a schematic showing all components, their part numbers and/or values and power supplies.
An IRF520 MOSFET is not a logic level device so will not fully turn on with 5V on the gate.