Home › Projects › Arduino stepper that follows a dial: pot, L298N and a NEMA 17

Arduino stepper that follows a dial: pot, L298N and a NEMA 17

by Zen Circuit Lab · published today · 0 opened in the lab · 0 page views

Arduino stepper that follows a dial: pot, L298N and a NEMA 17: the circuit on the lab bench

Open in the lab ▸Make my own copy

Turn the pot and a NEMA 17 stepper turns to the same angle, counting its steps (200 a turn) instead of using a sensor. An Arduino Nano switches the L298N’s two H-bridges and lets the coils go half a second after it arrives so the motor stays cool. Use a 12 V, 0.4 A NEMA 17 with an L298N; the common 1.5–2 A ones need an A4988 or DRV8825. Open it and press Run: the sketch is inside the board (click the board, then Code). Every part, pin and resistor matches what you would build on a real breadboard; the guided build of the same name has the test sheet and hidden faults.

What is on the bench

7 parts, 16 wires, with a sketch (the program runs in the lab). Boards: Arduino Nano.

Arduino Nano1
USB charger / port1
Potentiometer1
Bench power supply1
L298N motor driver1
Stepper motor (bipolar)1

Put it on your page

The project runs live inside the frame: readers can press buttons, turn knobs and read the meters.

<iframe src="https://zencircuitlab.com/embed/zclcstepper" width="100%" height="560" style="border:1px solid #2f363a;border-radius:10px" loading="lazy" title="Arduino stepper that follows a dial: pot, L298N and a NEMA 17 on Zen Circuit Lab"></iframe>

Link

https://zencircuitlab.com/p/zclcstepper

Published by its author under the lab's community terms: it may be opened, copied and changed by anyone. Simulation results are for learning; check a real build against the parts' datasheets.