28BYJ-48 Stepper Motor Control with Joystick Using Arduino

Опубликовано: 30 Октябрь 2024
на канале: The Tech Lab
2,670
26

Controlling Stepper Motor with Joystick and Arduino:
In this post we will learn about Controlling Stepper Motor with Joystick and Arduino. Here we will control stepper motor speed and direction of rotation using Arduino UNO board and PS2 joystick.

We will be using 28BYJ-48 unipolar 5V DC stepper Motor which comes with internal driver. So there is no need of any Easy Step Driver. Rather we will use ULN2003A Darlington Pair Motor Driver IC. The PS2 Joystick consists of two potentiometers of 10k ohm, i.e one for the X-axis and the other for the Y-axis. It also consist a push-button. But we will use only X-axis to control the stepper motor movement. Before getting started check our previous article: Stepper motor Control with Potentiometer and Arduino

A stepper motor or step motor or stepping motor is a brushless DC electric motor that divides a full rotation into a number of equal steps. The motor’s position can then be commanded to move and hold at one of these steps without any position sensor for feedback (an open-loop controller), as long as the motor is carefully sized to the application in respect to torque and speed.

Stepper Motor 28-BYJ48 Connection:
Stepper Motor 28-BYJ48 is a Unipolar motor with 5-lead coil arrangement. There are four coils which have to be energized in a particular sequence. The Red wires will be supplied with +5V and the remaining four wires will be pulled to ground for triggering the respective coil. We used Arduino board to energize these coils in a particular sequence and make the motor perform the required number of steps.

Steps Calculations:
There is need of calculations of steps before uploading code to Arduino board for Stepper motor Control with Potentiometer and Arduino

In Arduino we will be operating the motor in 4-step sequence so the stride angle calculation is necessary.

Stride Angle = 5.625°
Arduino Step Sequence = 4
Required Step Sequence = 8
Steps per Revolution = 5.625*2 = 11.25
Steps per revolution = 360/step angle= 360/11.25 = 32 steps per revolution.
This video shows how to control stepper motor speed and direction of rotation using Arduino UNO board and PS2 joystick. The stepper motor used in this example is 28BYJ-48 (unipolar stepper motor) which usually comes with its driver board.

Drop a like if you liked this video.
Don't forget to subscribe our channel for more Electronics project and tutorials.
@theworldnews @mgproduction
WEBSITE - https://mohitgajera.com
FACEBOOK -   / mohit.gajera007  
TWITTER -   / mohitgajera  
INSTAGRAM -   / mohitgajera1  

COPYRIGHT @MG Production © ®
COPYRIGHT @🌎THE WORLD NEWS 🌎 © ®