The servo buzzes and will not settle
Symptom: the servo hums nonstop, feels warm, or the board restarts.
Cause: the arm is pressed against something or the angle sits past the servo's real end point, so the motor keeps pushing. Lesson 14 warns that stalled gears can buzz, draw extra current and get damaged. Arduino's servo motor basics (opens in a new tab) says a common mini servo blocked by an object can draw up to 800 mA.
Fix: move the arm back to a safe angle, then disconnect power. Keep your angles a little inside the limits you measured, and use a short, light arm.
The stepper ends up in the wrong place after a while
Symptom: the first moves are perfect, then everything is a little off.
Cause: the stepper skipped steps under a heavy load or a fast start, and nothing told the controller. It is open loop.
Fix: lighten the load, slow the speed, and add a home switch so the controller can find a known spot at start-up, as Adafruit's stepper guide (opens in a new tab) suggests.
The stepper gets hot while doing nothing
Symptom: the motor is still, but warm.
Cause: a stepper draws its current whether it is moving or not, and Adafruit notes it draws the most when doing no work.
Fix: this is normal up to a point. Check that your driver's current setting matches the motor, and give the motor its own supply.
A DC motor wired straight to a pin barely moves
Symptom: the motor twitches or does nothing, or the board resets.
Cause: a pin gives a tiny signal current, and motors pull the most current when they start. Arduino's motor control guide (opens in a new tab) says this is why a transistor sits between the pin and the motor.
Fix: switch the motor through a relay for on and off, or a transistor or motor driver for speed, with the motor on its own supply.
The gate flaps open and shut
Symptom: a car near the sensor makes the barrier lift and drop again and again.
Cause: the open and close rules use the same threshold.
Fix: leave a gap, such as open below 10 cm and close above 20 cm, as in Lesson 30.