Hey guys, Im back with trouble here. I had a project where a Nano would momentarily set a pin HIGH to turn on a Mosfet and feed an L298N in order to make a dc motor vibrate and shut back down to repeat the cycle later and it worked fine. I moved over from breadboard to through hole but I cant seem to make the motor run anymore. The same setup worked on the breadboard but now fails to run the motor.
I know the code is fine because it worked before (on the breadboard). Here is the diagram:
I read the voltage between the D5 pin on the nano and GND and I get 5V on the multimeter, so I know the pin on the nano is being set to HIGH as expected.
I read the voltage between 12V of the L298 and the GND of L298 and I get 0 when nano-D5 goes high.
I read the voltage between GND and Mosfet Gate and I get 5V when nano-D5 goes high.
So it must be something else. Here are the images of my board:
I know the code is fine because it worked before (on the breadboard). Here is the diagram:

I read the voltage between the D5 pin on the nano and GND and I get 5V on the multimeter, so I know the pin on the nano is being set to HIGH as expected.
I read the voltage between 12V of the L298 and the GND of L298 and I get 0 when nano-D5 goes high.
I read the voltage between GND and Mosfet Gate and I get 5V when nano-D5 goes high.
So it must be something else. Here are the images of my board:

Last edited: