I'm not a novice with arduino, but it's my first time trying to control stepper motor.
So far I've tried with 2 different material with the same results, the axes of the motor wiggle a bit but doesn't trun.
1rst setup :
1 bipolar stepper motor Nema
1 arduino uno
1 external 12v supply
1 L293D hat for arduino
I've followed the tutorial :
I've checked the connection of the coils of the motor, I think its connected correctly.
With the output of the shield, I get the 2 square signals I would expect to command a stepper motor (with a difference of phase of 90°)
I thing though, I use an external suplly of 12V, and the signal VCC use to command the motor is of 5V ?
2nd setup:
1 unipolar stepper motor
1 Arduino UNO
1 external supply
1 2PH64011a stepper motor controler
For this setup I've followed the tutorial :
Same results here, the motor wiggle but doesn't turn
I wonder if the timing between the impluse is too short of too long ?
I'm struggling on this, any suggestions is welcomed
Sorry, but this is totally crap. Obviously the writer doesn't really know much about stepper motors.
NEMA17 only defines the position of the fixing screws. It says nothing about the electrical properties of the motor. Most of NEMA17 stepper motors cannot be controlled by the L293D driver, but need a current control stepper driver.
Please provide a datasheet of your stepper to see if it fits to your board.
There are lots of tutorials made by ignorant and poor hobbyists.
What torque does the project need from the stepper? Select a stepper providing that torqe. Then check what driver that stepper needs. Last, get a power source capable of supporting things.
If the motor wiggles instead of stepping then slow down the steps to something quiet slow, say 10 steps per second and swap over the two wires connecting one of the coils.
Sorry @MicroBahner the exact reference is 42HS40-1684, there are 4 leads for this one, seems it's bipolar this way right ?
@Grumpy_Mike I've tried with very slow steps, still the engine move a little bit forward then backward (the wiggling), I've tried to switch wires on one coil without changes
thanks guys by the way for your concern and your time
Yes, it's a bipolar type. But this motor definitely cannot be run with the L293 driver. You risk to damage the motor and/or the driver. The motor mandatory needs a current driver such as the DRV8825.
That suggest a broken connection or a burned out motor.
Can you remove the motor from the circuit and check the resistance of each winding. They should both be the same.