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.
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.