Ive used an Arduino Uno to drive a single motor via an L298N Motor driver. I had the following simple config :
Motor Shield Arduino Uno
ENA Pin 10 (PWA) ~
IN1 Pin 8
IN2 Pin 9
VCC Pin GND on Arduino (If I dont do this the motors just hum)
VCC 5V +
GND 5V -
I plug the 5v -ve supply to GND on the arduino and GND on the L298N Motor shield, then plug the 5v +ve to the Motor Shield board.
All this works I wrote this code
int IN1 = 8;
int IN2 = 9;
int ENA = 10;
Now I swap the cod into a MKR 1000, and I use the same pins, but I get nothing out, no motor driving.
The wiring config is the same, what is wrong ? can anyone help me, I think I’ve probably made a fundamental mistake with the UNO and am getting lucky by it working ?