基于单片机的霓虹灯控制器的设计
无需注册登录,支付后按照提示操作即可获取该资料.
基于单片机的霓虹灯控制器的设计(13000字)
摘 要
本设计采用AT89C52单片机实现对霓虹灯的控制。系统由红外遥控模块、单片机控制模块、显示模块、语音模块四部分组成。红外遥控模块分红外发射部分和红外接收部分,通过单片机译码后,取出红外发射按钮的地址,从而实现红外遥控器对霓虹灯显示图案的远距离控制。红外接收管也只占用一个IO口。显示部分为 16×16的点阵模块,通过单片机控制显示不同的图案以及想要的文字,并让字能够移动、暂停,以及从当前文字切换其它文字。语音模块采用的语音芯片是 ISD1730,可以录制想要的语音,通过录音可以对设计进行介绍。语音的播放支持暂停、下一首、调节音量和复位。由于单片机的IO口不够用,本设计采用 74HC154对其扩充,将四线扩充到十六线。该系统具有电路结构简单、易操作、成本低等优点,具有较强的实用价值。
关键词:单片机;红外遥控;点阵;译码器;霓虹灯
The Design of the Neon Lights controller Based on SCM
Abstract
This design uses the AT89C52 single chip microcomputer to control the neon lights. The system is composed by the infrared remote control module, the single-chip microcomputer control module, the display module and the speech module. Infrared remote control module is divided into the infrared transmitter and infrared receiver parts. After decoding through the single chip microcomputer, the infrared emission button address can be taken out in order to realize the remote control of infrared neon lights display. The infrared receiving tube only takes up one IO port. The display part uses the dot matrix module with 16 plus 16, through the single-chip control, it can display different patterns and the text, and make the word to move, pause, and switch from the current text to the other. The voice module uses voice chip ISD1730, which can record the desired voice, which can be played to introduce the design. It is support for pause, next, adjust the volume and reset of the voice playback. Due to the IO port of the microcontroller is not enough, this design uses a 74HC154 to expand the IO port, which is expanding the four-line to 16-line. The system has a strong practical value because of its advantages of simple circuit structure, easy operation and low cost.
Key words: Single Chip; Infrared Remote Control; Dot Matrix; Decoder; Neon Lights
目 录
论文总页数:47页
1 引言 4
1.1课题背景及意义 4
1.2本课题研究方法和目标 4
2 方案研究与主要芯片选择 6
2.1 总体方案原理及设计框图 6
2.1.1 主控电路的选择与论证 6
2.1.2 显示设备的选择与论证 8
2.1.3控制器模块选择 9
2.2 主要芯片介绍 11
2.2.1 译码器74LS154的介绍 11
2.2.2 LED点阵的介绍 12
2.2.3语音模块的介绍 13
3 硬件电路设计与调试 15
3.1 单片机模块单元电路设计 15
3.2 串口通信电路设计 16
3.3 译码器模块单元电路设计 17
3.4 点阵模块单元电路设计 17
3.5 红外遥控模块单元电路设计 18
3.6 语音模块单元电路设计 19
3.7 硬件仿真与调试 21
4 软件设计 23
4.1 单片机I/O口分配 23
4.2 各模块程序 23
4.2.1 主程序设计 23
4.2.2 显示程序设计 24
4.2.3 红外接收程序设计 26
4.2.4 设定的图案和字程序 28
5 软硬件联调及技术改进 30
5.1软硬件联调及实物演示 30
5.2 技术改进 32
结 语 32
参考文献 33
致 谢 34
声 明 35
附 录 36