I简易洗衣机控制器摘要: 尽管洗衣机有了很大发展,但消费者的需求不断提高。
为使洗衣机的操作更方便、更人性化,根据设计的要求主要采用单片机设计简易洗衣机的控制系统,控制电动机正反转的时间,在对洗衣总时间进行设定后,洗衣机能完成洗衣过程。
它的CPU 采用51单片机,根据设计需要增加一些按键设定时间和数码管显示时间。
在满足输入/输出接口及其他硬件的情况下,再进行软件设计。
首先是了解其工作流程,绘制功能流程图。
然后,制作硬件编写程序实现。
本设计主要实现了对洗衣机的定时设置,及控制洗衣机暂停和开始,能显示计时时间,计时结束能发声报警。
关键词 洗衣机、控制、单片机Abstract :In spite of the washing machine has made great development, but the demands of consumers. To make washing machine operation more convenient, more human, according to the requirement of the design is mainly design simple washing machine control system by single chip microcomputer, the control motor and reversing time, after set laundry total time for washing machine can finish the laundry process. Its CPU USES 51 single chip microcomputer, according to the design needs to add some buttons to set time and digital tube display time. In meet the under the condition of input/output interface, and other hardware, and software design. First of all is to understand its working process, flow chart drawing function. Then, make the hardware programming implementation. This design mainly realized the timing set of washing machine, washing machine and control pause and start, can show the timing time, end time can voice alarm. Key words :Washing machines, control, simple and easyII目录1. 前言 ..................................................................................................................................................... 1 2. 方案选择 .............................................................................................................................................. 2 2.1 方案一.............................................................................................................................................. 2 2.2 方案二.............................................................................................................................................. 2 2.3 方案比较 .......................................................................................................................................... 3 3. 单元模块设计 ...................................................................................................................................... 4 3.1 51单片机STC12C5A08S2简介 ........................................................................................................ 4 3.2 51单片机最小系统外围电路 .......................................................................................................... 5 3.3 时间显示电路 .................................................................................................................................. 6 3.4 洗涤时间设置电路........................................................................................................................... 7 3.5 电机工作状态电路及L293D 简介 .................................................................................................... 8 3.6 声音报警模块 ................................................................................................................................ 10 4. 整体电路图 ........................................................................................................................................ 11 5. 软件设计 ............................................................................................................................................ 12 5.1 软件设计原理及工具 ..................................................................................................................... 12 5.2 软件设计结构图 ............................................................................................................................ 13 5.3 软件流程图 .................................................................................................................................... 13 5.4 Altium Designer Winter 09软件简介 ............................................................................................. 15 6. 系统调试、系统功能、指标参数 ..................................................................................................... 17 6.1 系统调试 ........................................................................................................................................ 17 6.2 系统功能 ........................................................................................................................................ 17 6.3 指标参数 ........................................................................................................................................ 17 7. 设计总结 ............................................................................................................................................ 19 7.1 设计小结 ........................................................................................................................................ 19 7.2 改进 ............................................................................................................................................... 19 8. 参考文献 ............................................................................................................................................ 21 附录: ....................................................................................................................................................... 22 附录1 元件清单 ................................................................................................................................. 22 附录2 电路图 ..................................................................................................................................... 23 附录3 相关程序 (24)11. 前言本电路时间主要是由单片机计时器构成计时电路,通过时间的采集来完成电机正反转停止的操作,再由几个按键实现控制。