OK you don’t see the problem:
I can see that the other two headers on the Velleman KA03 are ENA and ENB. If I follow your first example I don’t need these pins. It clearly says the four inputs of the L298
and nothing about the ENA and ENB
OK you don’t see the problem:
I can see that the other two headers on the Velleman KA03 are ENA and ENB. If I follow your first example I don’t need these pins. It clearly says the four inputs of the L298
and nothing about the ENA and ENB
Yes my bad.
It seems like DIRB2 is the inverse ( i think) of DIRB
There’s also an version with 2 pins
https://www.arduino.cc/en/Reference/StepperConstructor
Best Regards,
VEL337
I tried it by adapting the code to
Stepper myStepper(stepsPerRevolution, 8, 9);
and connected DIRA and DIRB but it doesn’t move
do you have a official Velleman code for the KA03 shield to drive a stepper motor?
So the white and black wire on your motor are connected to the ground of the power supply?
Thank you for your response.