Uploaded October 2016 | Updated September 2026, 2 weeks ago
In this tutorial you will learn how to control a stepper motor using your L293D motor control chip
Stepper motors fall somewhere in between a regular DC motor and a servo motor. They have the advantage that they can be positioned accurately, moved forward or backwards one 'step' at a time, but they can also rotate continuously.
Required Hardware
Arduino Board:
amzn.to/2LZr6t4 (Amazon)
goo.gl/UyGYeF (Banggood)
28BYJ-48 Stepper :
amzn.to/3px9vX2 (Amazon)
goo.gl/Qd9479 (Banggood)
IC L293D Motor Driver :
amzn.to/2ZqRob1 (Amazon)
goo.gl/MLBWrg (Banggood)
Breadboard :
goo.gl/yCa8hX (Banggood)
amzn.to/3qxLxwm (Amazon)
Jumper Wires amzn.to/3doetmT
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Hardware (L293D) :
Run four solenoids, two DC motors or one bi-polar or uni-polar stepper with up to 600mA per channel using the L293D. These are perhaps better known as "the drivers in Adafruit Motorshield". If you accidentally damaged the drivers in a shield, you can use one of these puppies to replace it. Or you can breadboard something on your own!
Each chip contains two full H-bridges (four half H-bridges). That means you can drive four solenoids, two DC motors bi-directionally, or one stepper motor.
There's a PWM input per driver so you can control motor speed. Runs at 5V logic. Good for motor voltages from 4.5V up to 36V! This wont work well for 3V motors. The motor voltage is separate from the logic voltage.
The stepper motor has five leads, and we will be using both halves of the L293D this time. This means that there are a lot of connections to make on the breadboard.
The motor has a 5-way socket on the end. Push jumper wires into the sockets to allow the motor to be connected to the breadboard.
Connection :
Note that the red lead of the Stepper motor is not connected to anything.
Use the colors of the leads to identify them, not the position from which they emerge from the motor.
Bipolar Stepper Motor :
Driving a bipolar stepper motor with the L293D is very similar to driving a unipolar stepper motor. The pulse sequence is the same. The only difference between driving a unipolar stepper motor and driving a bipolar stepper motor is that there is an extra wire in a unipolar stepper motor you have to hook up.
Get Source Code: create.arduino.cc/editor/mertarduinotech/6cc1134b-7b16-4525-9f39-26d9d027fd26/preview
Social Media:
instagram.com/mertarduino
facebook.com/mertarduino
In this tutorial you will learn how to control a stepper motor using your L293D motor control chip
Stepper motors fall somewhere in between a regular DC motor and a servo motor. They have the advantage that they can be positioned accurately, moved forward or backwards one 'step' at a time, but they can also rotate continuously.
Required Hardware
Arduino Board:
amzn.to/2LZr6t4 (Amazon)
goo.gl/UyGYeF (Banggood)
28BYJ-48 Stepper :
amzn.to/3px9vX2 (Amazon)
goo.gl/Qd9479 (Banggood)
IC L293D Motor Driver :
amzn.to/2ZqRob1 (Amazon)
goo.gl/MLBWrg (Banggood)
Breadboard :
goo.gl/yCa8hX (Banggood)
amzn.to/3qxLxwm (Amazon)
Jumper Wires amzn.to/3doetmT
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Hardware (L293D) :
Run four solenoids, two DC motors or one bi-polar or uni-polar stepper with up to 600mA per channel using the L293D. These are perhaps better known as "the drivers in Adafruit Motorshield". If you accidentally damaged the drivers in a shield, you can use one of these puppies to replace it. Or you can breadboard something on your own!
Each chip contains two full H-bridges (four half H-bridges). That means you can drive four solenoids, two DC motors bi-directionally, or one stepper motor.
There's a PWM input per driver so you can control motor speed. Runs at 5V logic. Good for motor voltages from 4.5V up to 36V! This wont work well for 3V motors. The motor voltage is separate from the logic voltage.
The stepper motor has five leads, and we will be using both halves of the L293D this time. This means that there are a lot of connections to make on the breadboard.
The motor has a 5-way socket on the end. Push jumper wires into the sockets to allow the motor to be connected to the breadboard.
Connection :
Note that the red lead of the Stepper motor is not connected to anything.
Use the colors of the leads to identify them, not the position from which they emerge from the motor.
Bipolar Stepper Motor :
Driving a bipolar stepper motor with the L293D is very similar to driving a unipolar stepper motor. The pulse sequence is the same. The only difference between driving a unipolar stepper motor and driving a bipolar stepper motor is that there is an extra wire in a unipolar stepper motor you have to hook up.
Get Source Code: create.arduino.cc/editor/mertarduinotech/6cc1134b-7b16-4525-9f39-26d9d027fd26/preview
Social Media:
instagram.com/mertarduino
facebook.com/mertarduino
![08# Arduino Visual Programming | Robot Arm Control with Potentiometers | XOD
New Video November 8, 2018: https://youtu.be/tl6A7EKicjo
The Last Few Days Save 40% More for Electronics: https://goo.gl/covX9J
Robot Arm Control with Potentiometers:
In this tutorial we will learn how to control Robot Arm with Potentiometers. We will use XOD visual programming for this. Its very simple and great for beginners.
Required Hardware:
4DOF Robot Arm + SG90:
https://amzn.to/39udgY9
https://goo.gl/LLzd76
Arduino Nano :
https://goo.gl/QbEmNL
https://amzn.to/3w9D45T
Potentiometers:
https://goo.gl/E3MSuS
https://amzn.to/3dlgYq1
Breadboard:
https://goo.gl/vWrJAA
https://amzn.to/3qxLxwm
Jumper Wires :
https://goo.gl/EGTafY
https://amzn.to/3doetmT
4DOF Robot Arm Kit with Uno + Pot + MG90S Servo
https://goo.gl/SjS5E8
Recommended Items:
Use Your Muscles in Project - https://amzn.to/3wdL45C
37 Sensor & Module Packages - https://amzn.to/3m66WeQ
Try this Robot Arm - https://amzn.to/3fq8DCl
Best Resin 3D Printer - https://amzn.to/39tY8KB
Arduino Compatible Kits - http://bit.ly/2J2AFF7
Banggood Spring Sale - https://bit.ly/3slMbOn
Other XOD tutorials :
01# Activate an LED - https://youtu.be/zgu2ID9fzp8
02# LED Brightness with Pot - https://youtu.be/rn_pFUvAjPU
03# Control Servo with Pot - https://youtu.be/R1ErboSVk9w
04# Control LED with Button - https://youtu.be/CtH8Fau8IDk
05# LDR (photoresistor) - https://youtu.be/FMQGCHU75OM
06# DC Motors with L293D - https://youtu.be/_PoCf-mh0aI
07# Obstacle Avoiding Robot - https://youtu.be/07jbVvx3BL4
You can share any technical problem at https://forum.xod.io/
The team of XOD developers will respond to you very quickly and more accurately.
XOD Official https://xod.io/
XOD Community https://forum.xod.io/
Background Music
Syn Cole - Feel Good [NCS Release]
https://youtu.be/q1ULJ92aldE
NoCopyrightSounds - https://goo.gl/Veefkc
Syn Cole - https://soundcloud.com/syncole 08# Arduino Visual Programming | Robot Arm Control with Potentiometers | XOD](https://i.ytimg.com/vi/zO6IACwkHfA/mqdefault.jpg)



