The IRF540N is not logic-level, so no use to you.
Also you have commoned the grounds of the two circuits - the FET source
must be attached to Arduino ground or you don't have a circuit.
The IRF540N is not logic-level, so no use to you.
Also you have commoned the grounds of the two circuits - the FET source
must be attached to Arduino ground or you don't have a circuit.