I have stepper motor model 17HS8401
And an stepper shield and i have everything connected green and black to M1 and red and blue to M2 and i have a power source 12v 30amp connected and giving power..i used the adafruit library example code for stepper and its still not working… pls help
That's not really a stepper shield. It is for brushed DC motors. Only some ( rare ) high impedance stepper can be driven with this board. Modern low impedance steppers ( like your 17HS8401 ) need a current controlling stepper driver. You may burn your driver and/or stepper with this combination.
I have a stepper hooked to the Arduino board and it was connected to a potentiometer and everything was working fine..now i removed the potentiometer and hooked a rotary encoder and i want the stepper to spin when the shaft of the encoder is spun… but the stepper starts to get jittery and with tweaks in the code and lowering the delay now it stopped moving all together …im unable to to provide schematics of the wiring at this moment but any help will be appreciated
The potentiometer is a variable resistor, as you know and used. Is your encoder configured for an analog output? Usually, the encoder gives a set of pulses showing rotation direction.
Draw a wiring diagram of the wires you have connected and make a photo of that drawing.
Im using a stepper motor (unsongshire 17HS8401) and a rotary encoder (E38S6G5-600B-G24N) im connecting them using an H bridge and a power supply of 12v-30amp , my problem is that i cant get the code to work everytime i compile it just moves back and forth one step and keeps vibrating violently.
Im pretty sure all my connections are correct and the problem is in the code, any code help would be amazing - heres the code i wrote—->
I have merged your topics due to them having too much overlap on the same subject matter @marwannnnn .
In the future, please only create one topic for each distinct subject matter and be careful not to cause them to converge into parallel discussions.
The reason is that generating multiple threads on the same subject matter can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Please also note that you posted your code in a way that transgressed another forum rule. Please read the forum guide in the sticky post at the top of most forum sections, and fix your post above. There are good reasons for each forum rule, not simply petty rules. The forum software will sometimes corrupt your code if not posted correctly.