
Bu projeyi gerçekten kurmak istersen parçaları hobidevre.com'dan temin edebilirsin →
Build it for real
To build this project for real, get the parts from hobidevre.com → hobidevre.com →
More build guides: hobidevre.com/blog
What the vibration tells you
A stepper that hums or shakes is receiving electrical pulses. That is useful information: the controller, the sketch and the step signal are probably working. What fails is the conversion of those pulses into rotation. The motor is being commanded to move but cannot produce a net turn in one direction.
The most common cause is a coil connected to the wrong driver output or one phase reversed. The field then pulls the rotor back and forth instead of rotating it. The second most common cause is insufficient current, where the field is too weak to overcome even the friction of the shaft.
Find the coil pairs with a meter
A typical two-phase stepper has four wires: one pair for each coil. Disconnect the motor from the driver and measure resistance between the wires. Two combinations will show a low resistance; those are the coils. The other combinations show an open circuit. Guessing by wire colour is unreliable because manufacturers use different colour schemes.
Write down the two pairs before reconnecting anything. If your motor has six or eight wires, consult its wiring diagram, because unipolar and bipolar motors are connected differently. Treating a six-wire motor as a four-wire motor without identifying the centre taps leads to exactly the symptom you are trying to fix.
Connect the coils in the right order
Connect one coil pair to one driver output and the other pair to the other output. If the motor shakes without turning, swap the two wires of one coil only. This reverses one phase and often turns vibration into smooth rotation. Do not swap both coils, because that merely changes the direction of rotation without fixing the sequence.
Check that every screw terminal is tight. A loose wire makes intermittent contact, which feels like a motor that turns occasionally and then stalls. Secure the wires so that the connector cannot pull away while the shaft is moving.
Set the driver current correctly
A stepper needs a current per coil that matches its rating. Set the driver current limit with the board documentation in view. Too little current gives a weak field and a shaft that will not move under the smallest load; too much current heats the motor and the driver and can damage both.
If your driver has a current setting, start at a modest value and increase it only while watching the motor temperature. A motor that is too hot to touch after a short test is being overdriven. Remember that the supply must be able to deliver the combined current of both phases, not just the current of one coil.
Check enable and reset pins
Many drivers have an enable or reset input that must be held in the active state before any step is accepted. If that pin is left floating or held in the wrong state, the driver ignores steps and the motor may only twitch when the supply is connected. Read the pin description for your specific driver rather than assuming it matches another board.
Measure the voltage at the enable pin while the sketch runs. A pin that never changes state points to a wiring error or a missing output declaration in the code. Tie unused control pins to a defined level where the documentation allows it; a floating input behaves unpredictably.
Send slow step pulses
A motor that cannot follow high-frequency steps will vibrate in place. Start with a very slow rate, one step every few hundred milliseconds, and confirm that the shaft advances one visible increment per pulse. Once that works, increase the rate gradually and note where rotation becomes unreliable.
Each step pulse needs a minimum width and a minimum time between pulses. If your code creates pulses faster than the driver can recognise, some are lost and the motion becomes erratic. A short delay between pulses is not wasted time; it is part of the communication contract with the driver.
Do not confuse steps with revolutions. A motor with two hundred full steps per revolution needs two hundred pulses for one turn. A loop that sends twenty pulses moves only a small fraction of a turn, which can look like vibration if you expected a full rotation.
const int STEP = 8;
const int DIR = 9;
void setup() {
pinMode(STEP, OUTPUT);
pinMode(DIR, OUTPUT);
digitalWrite(DIR, HIGH);
}
void loop() {
digitalWrite(STEP, HIGH);
delay(5);
digitalWrite(STEP, LOW);
delay(200);
}
Remove the mechanical load
Before blaming electronics, disconnect the motor from any belt, gear or mechanism. A jammed load can hold the shaft still while the driver pushes pulses through the coils. If the free motor turns smoothly, the fault is mechanical: a misaligned coupler, a screw that is too tight or a belt with no slack.
Once the motor runs freely, reconnect the load one piece at a time. If the shaft stops again, you have found the part that needs adjustment. Adding a larger driver at this stage will not solve a mechanical jam and can simply hide the symptom until something breaks.
- Coil pairs identified by resistance
- One phase reversed if the shaft only shakes
- Driver current within the motor rating
- Enable pin held active
- Slow steps with no load attached
Get the parts
Stepper motors, driver boards and suitable supplies are available from hobidevre.com if you want to build and test the setup yourself.
Frequently asked questions
Can a wrong coil order damage the motor?
It usually only causes vibration and heat during the test. Disconnect power before changing connections, and keep the test short.
Why does it turn slowly but stop at higher speed?
The driver or the supply cannot keep up. Raise the current within the rating or reduce the step rate.
Do I need a separate supply for a stepper?
Almost always yes. A controller pin cannot deliver the coil current a stepper needs.