﻿ 基于硬币分拣包装机的DSP控制系统设计 DSP Control System Design Based on Coin Sorting Packaging Machine

Dynamical Systems and Control
Vol.05 No.02(2016), Article ID:17457,9 pages
10.12677/DSC.2016.52007

DSP Control System Design Based on Coin Sorting Packaging Machine

Qiao Zhang, Jun Li, Shihai Huang, Xiaobing Li, Yanfei He, Zhen Zhao

School of Mechantronics and Vehicle Engineering, Chongqing Jiaotong University, Chongqing

Received: Mar. 25th, 2016; accepted: Apr. 25th, 2016; published: Apr. 28th, 2016

ABSTRACT

The research aim of this passage is the control system of the coin sorting apparatus. The passage mainly discusses the design of coin sorting machine’s control system based on DSP, meanwhile, mainly explains the design of the seizure of counterfeit coins with eddy current sensor, the coin counting with photoelectric counter and the stepper motor micro-step control system, etc. By the coordination of every module, we achieve the functions of sorting, packaging, and picking out the fake from a pile of mixed coins.

Keywords:DSP, Eddy Current Sensor, Stepper Motor, Data Processing

1. 引言

2. 硬币分拣包装机械结构

Figure 1. Overall mechanical system architecture diagram

3. 控制系统总体结构及检伪流程

3.1. 电涡流传感器工作原理

Figure 2. System mode structure

Figure 3. Eddy current sensor schematic

Figure 4. Eddy current sensor equivalent circuit

(1)

(2)

(3)

(4)

(5)

Figure 5. Eddy current sensor load simulation map

3.2. 光电计数器的选择及控制

3.3. 步进电机的控制

(6)

Figure 6. Current curve segments

1) 理想波形发生器数学模型：

(7)

2) PID控制环节：

(8)

(9)

(10)

(11)

(12)

(13)

Figure 7. Current segmentation system block diagram

3) PWM发生器

DSP从电流反馈采样电路中获取得到A、B相的实际电流值，与给定的A、B相电流值比较，求出其差值。然后，将差值信号经软件PID环节整形，再将整形后的信号送至DSP事件管理器的PWM产生模块，以产生有效输出信号。将PWM信号送至步进电机驱动芯片，由步进电机驱动芯片对PWM信号做功率放大和相应的整形等处理后输出呈拟正弦曲线波到步进电机绕组，最终达到对步进电机绕组电流的控制，以实现精确的步进角控制。

4) 电流反馈

3.4. 硬币分拣装置系统检测流程

4. 系统的开发环境

CCS (code composer studio) [7] 是TI公司提供的集成开发环境。CCS目前有CCS2000，CCS5000和CCS6000三个不同的型号。本次设计采用CCS2000。

5. 实验数据分析

6. 结论

Figure 8. The system detects flowchart

Figure 9. Coins voltage characteristic curve

DSP Control System Design Based on Coin Sorting Packaging Machine[J]. 动力系统与控制, 2016, 05(02): 61-69. http://dx.doi.org/10.12677/DSC.2016.52007

1. 1. 肖丽英. YB50全自动硬币计数、包卷机研制[J]. 包装工程, 2003, 24(3): 28-29.

2. 2. Elabu, C. (2009) Vacuum Operated Coin Sorting Assembly. US20090047887.

3. 3. 孙凯. 环形结构涡流传感器的研制[D]: [硕士学位论文]. 合肥: 测试计量技术及仪器, 2010.

4. 4. 高晓蓉, 李金龙, 彭朝勇. 传感器技术[M]. 成都: 西南交通大学出版社, 2003: 126-127.

5. 5. 李建军. 基于微控制器的步进电机驱动控制系统实现[D]: [硕士学位论文]. 广州: 华南理工大学, 2012.

6. 6. 范立南, 李雪飞. 计算机控制技术[M]. 北京: 机械工业出版社, 2009: 131-132.

7. 7. Texas In-struments Inc. TMS320C28x Optimizing C/C++ Compiler v15.12.0.LTS User’s Guide (Rev. J). http://www.ti.com/lit/ug/spru514j/spru514j.pdf