Wednesday, February 12, 2020

What Is the Pulse Needed to Move a Stepper Motor?

The keyword “pulse” is a word most people have heard of one place or another, but not necessarily when dealing with electrical circuitry. When talking about circuits, pulse typically refers to periodically spaced square wave pulses, which are waves produced from the on-off or high-low variations in power.

What Is the Pulse Needed to Move a Stepper Motor?


5b7f5d5c41d6d0f75a2b8a0680af8d05

Figure1 An example of a pulse signal

By switching power on and off at a fixed width, a variety of parts can be moved. This process is called PWM (Pulse Width Modulation); it is an often-heard keyword when working with electrical motors. The commonly-used analogWrite() function for the Arduino is produced by PWM signals.
How Works the PWM from the AnalogWrite Function?

PWM

Figure2 PWM signal

We used analogWrite() earlier in this series to control the brightness of LEDs. The maximum output voltage per pin for the Arduino UNO is 5V, but the output value (0-255) designated by analogWrite(pin, value) does not actually produce 5V divided into 256 parts. Instead, the Arduino’s pulse cycle takes an average of 5V time and 0V time to generate a pseudo-output similar to analog voltage. Until now, we have been using PWM without knowing it.

* For example, an input of analogWrite(PIN, 128) does not produce a voltage of 2.5V from the pin. Instead, half of the cycle period is at 0V and the other half is at 5V for an average of 2.5V.

Stepper Motor Driver Kit L6470

The stepper motor itself can be controlled simply with PWM, but it is difficult to directly send signals from the Arduino to a stepper motor. Today we will be using a motor driver kit called L6470 to easily control the stepper motor.

DSC_0142

Picture2 L6470 Motor Driver Kit

DSC_0143

Picture3 Parts Set

This driver kit set requires several parts to be soldered onto a circuit board. If you follow the accompanying manual, it should not be a problem.

After soldering, we connect Arduino, the best stepper motor and the stepper driver kit. This time, we attached a 12V 1.5A AC adapter to the 8V-48V part of the motor.

https://www.bloglovin.com/@larbimahieddine/stepper-motor-control-by-varying-clock-pulses
http://www.fxstat.com/en/user/profile/zhidaowozzou4-182008/blog/34451057-Stepper-motor-for-a-mechatronic-application-is-so-important

No comments:

Post a Comment