Need help with a stepper motor sketch

so my project is pretty simple but im having a super hard time making a sketch for this all to work. Im trying to control a 4 wire bipolar stepper motor. I have 3 buttons and a pot in my circuit. the button functions are simple B1=left direction B2=Stop B3= right direction. the stepper will be continuously moving and the pot will be controlling the speed. I found a sample sketch that works great but when I tried to take it over to a baredunio and SN75441 Hbridge the buttons will work and the pot sounds like it will but the motor just shakes and the noise gets louder when you turn the pot. the sketch called for 2 digital pins so I made a 2 wire Hbridge circuit but im thinking the sample sketch will not work with the bare minimal parts. can anyone help.

I used example 5

That code is for an Easydriver. If you have an Easydriver why are you not using it?

...R

sounds like you are not alternating coils. you have to pulse coil1 then coil2 then coil1 in reverse, then coil2 in reverse.

common that people try to pulse coil1 then coil1 in reverse, then coil2 then coil2 in reverse. all it does is shake the motor.

simple test, swap output pin on the 2nd and 3 connections.

if that simple shetch is for a easy driver can you tell me what the same sketch would be for my Hbridge setup? im tring to use the Hbridge setup because of the limited space I have. I was going to have a PCB made with the Baredunio and hbridge on it like just like the godunio. any help would be much appreciated.

The easiest thing is probably to use the Stepper or AccelStepper libraries as they do all the complicated stuff for you.

...R