没有合适的资源?快使用搜索试试~ 我知道了~
AVR446步进电机加速算法
5星 · 超过95%的资源 需积分: 17 104 下载量 7 浏览量
2016-02-02
16:37:54
上传
评论 2
收藏 153KB PDF 举报
温馨提示
试读
15页
AVR446提供了步进电机梯形加速算法,可以学习如何让步进电机加速,达到更高的转速,与防止失步
资源推荐
资源详情
资源评论
AVR446: Linear speed control of stepper motor
Features
• Linear speed control of stepper motor
- Control of acceleration, deceleration, max speed and number of steps to move
• Driven by one timer interrupt
• Full- or half-stepping driving mode
• Supports all AVR® devices with 16bit timer
• Demo application for ATmega48 running on 3,68MHz, with serial interface on 19200
8/N/1.
1 Introduction
This application note describes how to implement an exact linear speed controller
for stepper motors. The stepper motor is an electromagnetic device that converts
digital pulses into mechanical shaft rotation. Many advantages are achieved using
this kind of motors, such as higher simplicity, since no brushes or contacts are
present, low cost, high reliability, high torque at low speeds, and high accuracy of
motion. Many systems with stepper motors need to control the acceleration/
deceleration when changing the speed. This application note presents a driver with
a demo application, capable of controlling acceleration as well as position and
speed.
This linear speed controller is based on an algorithm presented in ‘Embedded
Systems Programming’ January 2005, ‘Generate stepper-motor speed profiles in
real time’ an article by D. Austin. This algorithm allows parameterization and
calculation in real time, using only simple fixed-point arithmetic operations and no
data tables.
Figure 1-1. Stepper motors
8-bit
Microcontrollers
Application Note
Rev. 8017A-AVR-06/06
2
AVR446
8017A-AVR-06/06
2 Theory
2.1 Stepper motor
This application note covers the theory about linear speed ramp stepper motor control
as well as the realization of the controller itself. It is assumed that the reader is
familiar with basic stepper motor operation, but a summary of the most relevant topics
will be given. Further details about stepper motors can be found in D. W. Jones,
Control of Stepper Motors.
2.1.1 Bipolar vs. Unipolar stepper motors
The two common types of stepper motors are the bipolar motor and the unipolar
motor. The bipolar and unipolar motors are similar, except that the unipolar has a
center tap on each winding as shown in
Figure 2-1.
Figure 2-1. Bipolar and Unipolar stepper motors
A1
A2
B1
B2
A1A2
B1
B2
The bipolar motor needs current to be driven in both directions through the windings,
and a full bridge driver is needed as shown in
Figure 2-2. The center tap on the
unipolar motor allows a simpler driving circuit, also shown in
Figure 2-2, limiting the
current flow to one direction. The main drawback with the unipolar motor is the limited
capability to energize all windings at any time, resulting in a lower torque compared to
the bipolar motor. The unipolar stepper motor can be used as a bipolar motor by
disconnecting the center tap.
Figure 2-2. Bipolar and Unipolar drivers with MOS transistors
122112
21
2.1.2 Full vs. half stepping
Stepper motors used in full-stepping mode powers one winding at a time. This way,
four different settings (positions) is possible, shown in the ‘Full-stepping’ row of
Table
2-1. By powering both windings simultaneous, the stepper motor is trapped between
the positions obtained when full-stepping, also known as half-stepping. This gives
eight positions as shown in the ‘Half-stepping’ row of
Table 2-1. When powering both
windings, the torque is approximately 1.4 times higher than when powering only one
winding, but at the cost of twice the power consumption. The electrical cycle parts in
AVR446
3
8017A-AVR-06/06
Table 2-1are all part of one electrical cycle. One mechanical cycle (revolution) usually
consists of several electrical cycles.
Table 2-1. Full-stepping and half-stepping
Electric polarity Winding A + + - - - +
Winding B + + + - - -
Electrical cycle part Full-stepping 1 2 3 4
Half-stepping 1 2 3 4 5 6 7 8
2.1.3 Speed properties
One drawback with the stepper motor is the limited torque capabilities at high speeds,
since the torque of a stepper motor will decrease with increasing speed. The torque
also drops at the resonant speed, as shown in
Figure 2-3. The resonant speed will
depend on the driving scheme of the stepper motor and the load.
Figure 2-3. Torque vs. speed
Τ
ω
Resonant
Speed
Maximum torque is achieved at low speeds, and this is an advantageous in many
applications.
2.2 Fundamental stepper motor equations
To create rotational motion in a stepper motor, the current thru the windings must
change in the correct order. This is obtained using a driver that gives the correct
output sequence when subjected to a pulse (‘stepper motor pulse’) and a direction
signal.
To rotate the stepper motor at a constant speed, pulses must be generated at a
steady rate, shown in
Figure 2-4.
Figure 2-4. Stepper motor pulses
0
t
2
t
t
tct
0
=
δ
t
tc
1
t
1
t
Step pulse
A counter generates these pulses, running at the frequency
t
f
[Hz].
The delay
t
δ
programmed by the counter c is
t
t
f
c
ctt ==
δ
[s]
剩余14页未读,继续阅读
资源评论
- JarryCmt2018-04-29不错的资料,值得学习
- 幸福良子2017-09-18资源还是挺有帮助的
ATerrior
- 粉丝: 3
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 什么是移动应用开发-关于移动应用开发的相关介绍
- 第二组汇报 PPT.pptx
- 什么是大数据开发-相关介绍-关于大数据开发的相关介绍
- 什么是软件测试-相关介绍-关于软件测试的相关介绍
- 前端开发-什么是前端开发-关于前端开发的一些相关介绍
- Sora AI-关于文生视频的使用场景说明
- suno AI文生视频的相关教程和介绍使用
- 什么是后端开发-关于后端开发的一些小介绍分享
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功