Hi everyone,
I’m making a camera slider for a school project, which involves a stepper motor turning a gear train and a belt.
I am using an Arduino UNO and an A4988 stepper driver to operate my stepper motor.
I also have made a custom PCB to solder in my driver, header pins, and stepper coils.
I am supplying the Arduino with a 12V, 2.5 amps max DC power supply.
Here is my wiring setup.
Arduino Vin - Driver Vmot
Arduino Gnd - Driver Gnd
220 uF capacitor wired across Vmot and Gnd
Stepper motor coils - 2a, 2b, 1a, 1b
Arduino 5V - Driver VDD
Arduino Gnd - Driver Gnd
Arduino pin 5 - Driver En pin
Arduino pin 6 - Driver Step pin
Arduino pin 7 - Driver Dir pin
I’ll include some photos at the end of this forum.
Here are my problems:
- The stepper motor does not rotate smoothly - it accelerates and decelerates with a rough noise, and sometimes stalls.
- This is the weirdest error that I cannot figure out. The stepper motor will only rotate when the A4988 driver is touching carpet (doesn’t work when touching plastic), or when I bring my finger close - it doesn’t even have to touch the underbelly of the driver - just bring the finger close to the driver and it starts rotating. It’s so weird and I can’t figure it out.
At first, I thought (and still think) that the stepper motor didn’t have enough torque to drive the belt, so I added a gear system of 8:40, which increased the output torque by 5.
I’ve just been running code from ChatGPT (I’m not experienced in Arduino Code), and nothing it does seems to help. It uses AccelStepper.h as the library.
Does anyone know how to solve these two problems?
Thanks,
Luke M
Here’s a video of the stepper motor trying to drive the camera platform.
Here are some photos of the wiring.




