当前位置:首页 > 科学研究 > 电子编程 > 正文内容

Arduino Project 028B - Basic Stepper Control (Unipolar)

RonWang1个月前 (11-19)电子编程81

In this very simple project, you will connect up a stepper motor and then get the Arduino to control it in different directions and at different speeds for a set number of steps. You will study different types of stepper motor,  unipolar 6 wires.

Project 28 Basic Stepper Control (Unipolar)

Unipolar and Bipolar stepper motor


Here's a simplified depiction of the wire winding for the two types of stepper motors.

The unipolar motor has a central common tap per phase. The bipolar motor does not.

In the schematic above, you can see a bipolar stepper motor and a unipolar stepper motor with two phases each.

A wire winding arrangement is refered to as a "phase"

The unipolar stepper motors, has one winding per phase, with a center tap. This allows the controlling circuit to operate the motor with current that flows always in the same direction. Therefore, there is no need to generate reverse current. Each time the phase is activated, only half of its coil is energized.

Unipolar motors may also have multiple (more than two) windings. However, in addition to the ends of each winding are connected to wires, the middle attaches to a third wire.

The absence of this third (common) wire means that bipolar motors are slightly easier to make.

Project 28 Components

  • Arduino UNO                        1 EA

  • Stepper Motor                      1 EA

  • IC L293D / SN754410            1 EA 

  • Ceramic Capacitor    0.01uF   2 EA

  • Dupon Wire     ~ 

/* Coding Ron Wang
   Nov.18th 2024
   Autaba support for coding hardware
   Project 28  Basic Stepper Control
 */

#include <Stepper.h>
// steps value is 360 / degree angle of motor
#define STEPS 200
// create a stepper object on pins 4, 5, 6 and 7
Stepper stepper(STEPS, 4, 5, 6, 7);
void setup()
{
}
void loop()
{
 stepper.setSpeed(60);
 stepper.step(200);
 delay(100);
 stepper.setSpeed(20);
 stepper.step(-50);
 delay(100);
}

Unipolar Stepper Motor Driver Circuit and Schematic

Unipolar stepper motor have 6 wires

Arduino Stepper Control L293D Unipolar Circuit

Unipolar Stepper Motor Circuit

Arduino Stepper Control L293D Unipolar Circuit

Unipolar Stepper Motor Schematic


Arduino and Stepper Motor Configurations | Arduino Documentation


版权声明:本文为原创文章,版权归donstudio所有,欢迎分享本文,转载请保留出处!

本文链接:http://parentscn.com/?id=283

标签: Arduino

相关文章

C语言调试运行环境Pelles C的安装

C语言调试运行环境Pelles C的安装

C语言调试运行环境之TurboC一文介绍了在32位Windows系统下安装C语言运行环境之TubroC,但是由于TurobC只能在32位系统下运行,导致现在很多Windows10和Windows 11...

Arduino Programming Basic - Input and Outpput

Arduino Programming Basic - Input and Outpput

The pins on the Arduino can be configured as either inputs or outputs. This document explains the fu...

Arduino Project 040 - Ultrasonic Distance Alarm

Arduino Project 040 - Ultrasonic Distance Alarm

The sensor consists of two primary components: a transmitter and a receiver . The transmitter is res...

Arduino Programming Basic - If and Loop

Arduino Programming Basic - If and Loop

Arduino 程序基础,介绍Arduino程序的基本组成,第一部分编写了10个例子,关于变量及变量名称,串口监视器,if循环,for循环,while循环等。第二部分介绍了函数,全局变量,局部变量和静...

Arduino Project 034 - TM1637 4Digital 7Segment Display Module

Arduino Project 034 - TM1637 4Digital 7Segment Display Module

A standard 4-digit 7-segment display is needed for clock, timer and counter projects, but it usually...

Arduino Project 029 - Control Stepper Motor ULN2004A

Arduino Project 029 - Control Stepper Motor ULN2004A

Stepper motors, due to their unique design, can be controlled to a high degree of accuracy without a...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。