Arduino : How to Control a Stepper Motor With Potentiometer

by MertArduino in Circuits > Arduino

59390 Views, 268 Favorites, 0 Comments

Arduino : How to Control a Stepper Motor With Potentiometer

potentiometer.jpg

This instructable is the written version of my "Arduino : How To Control a Stepper Motor with Potentiometer" YouTube video that I've uploaded recently. I strongly recommend you to check it out.

My YouTube Channel

First, you should see the following Instructable:

How to Control a Stepper Motor With L293D Motor Driver

Tutorial

Arduino : How To Control a Stepper Motor with Potentiometer

This tutorial is all about tuning the speed of a stepper motor using a potentiometer. The idea is to up or down the speed of a stepper motor using with analog read. Theoretically analog input to a digital output, we're going to use this concept to control the speed of a running stepper motor.

Hardware Required

vlcsnap-2016-10-07-12h27m09s547.png

Hardware Required :

- 10k Potentiometer

Circuit & Connections

step_L293D_potentiometer.jpg
vlcsnap-2016-10-07-12h27m18s181.png
vlcsnap-2016-10-07-12h27m30s805.png
vlcsnap-2016-10-07-12h27m36s325.png
vlcsnap-2016-10-07-12h27m46s839.png
vlcsnap-2016-10-07-12h27m52s284.png
vlcsnap-2016-10-07-12h28m25s850.png

The Stepper motor used here is a rusty old EPOCH (5 wires) stepper motor, which is a unipolar stepper.

Use the analog input with the help potentiometer to control the delay in-between each steps of the stepper motor. Shorter the delay in-between each steps - faster the stepper motor runs and vice-versa.

Programming

vlcsnap-2016-10-07-12h28m17s312.png

If I Was Helpful

vlcsnap-2016-10-07-12h28m38s077.png

First of all, I would like to thank you for reading this guide ! I hope it helps you.

If you want to support me, you can subscribe my channel and watch my videos.

My YouTube Channel