Arduino : How to Control a Stepper Motor With Potentiometer
by MertArduino in Circuits > Arduino
58098 Views, 267 Favorites, 0 Comments
Arduino : How to Control a Stepper Motor With Potentiometer
![potentiometer.jpg](/proxy/?url=https://content.instructables.com/FYJ/APD9/ITZFKB0M/FYJAPD9ITZFKB0M.jpg&filename=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.
First, you should see the following Instructable:
Tutorial
![Arduino : How To Control a Stepper Motor with Potentiometer](/proxy/?url=https://content.instructables.com/FY6/R7FM/ITZFKBND/FY6R7FMITZFKBND.jpg&filename=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](/proxy/?url=https://content.instructables.com/F1S/MTOU/ITZFKB1Q/F1SMTOUITZFKB1Q.png&filename=vlcsnap-2016-10-07-12h27m09s547.png)
Hardware Required :
- 10k Potentiometer
Circuit & Connections
![step_L293D_potentiometer.jpg](/proxy/?url=https://content.instructables.com/FAX/ZYNZ/ITZFKCG9/FAXZYNZITZFKCG9.jpg&filename=step_L293D_potentiometer.jpg)
![vlcsnap-2016-10-07-12h27m18s181.png](/proxy/?url=https://content.instructables.com/F7Z/UARX/ITZFKB2U/F7ZUARXITZFKB2U.png&filename=vlcsnap-2016-10-07-12h27m18s181.png)
![vlcsnap-2016-10-07-12h27m30s805.png](/proxy/?url=https://content.instructables.com/F9Y/568Y/ITZFKB4P/F9Y568YITZFKB4P.png&filename=vlcsnap-2016-10-07-12h27m30s805.png)
![vlcsnap-2016-10-07-12h27m36s325.png](/proxy/?url=https://content.instructables.com/FVU/D5VD/ITZFKB6A/FVUD5VDITZFKB6A.png&filename=vlcsnap-2016-10-07-12h27m36s325.png)
![vlcsnap-2016-10-07-12h27m46s839.png](/proxy/?url=https://content.instructables.com/F1F/Y3GZ/ITZFKB7T/F1FY3GZITZFKB7T.png&filename=vlcsnap-2016-10-07-12h27m46s839.png)
![vlcsnap-2016-10-07-12h27m52s284.png](/proxy/?url=https://content.instructables.com/FDH/W4HN/ITZFKB7W/FDHW4HNITZFKB7W.png&filename=vlcsnap-2016-10-07-12h27m52s284.png)
![vlcsnap-2016-10-07-12h28m25s850.png](/proxy/?url=https://content.instructables.com/FN0/OQ1V/ITZFKBBB/FN0OQ1VITZFKBBB.png&filename=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](/proxy/?url=https://content.instructables.com/FY0/Y0LB/ITZFKB9L/FY0Y0LBITZFKB9L.png&filename=vlcsnap-2016-10-07-12h28m17s312.png)
If I Was Helpful
![vlcsnap-2016-10-07-12h28m38s077.png](/proxy/?url=https://content.instructables.com/FQG/10T9/ITZFKBCY/FQG10T9ITZFKBCY.png&filename=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.