具有留言功能的音乐电子门铃的设计与实现
摘 要
传统的门铃都是叮咚声,所具备的功能较少,也比较弱,而且结构很复杂。根本不能满足这个飞速发展的社会的需要。而现在主要是一种无绳电话可视门铃对讲系统,所述门口机与所述室内机相互连接,所述的门口机,包括摄像头及音频电路,所述室内机,包括连接到电话线的第一通讯模块;还包括与所述室内机无线连接的移动终端,所述室内机还包括控制模块、视频发射模块以及用于在第一通讯模块和视频发射模块间切换的电话开关模块,所述电话开关模块分别与控制模块和第一通讯模块连接,所述移动终端包括与第一通讯模块无线连接的第二通讯模块以及与所述视频发射模块无线连接的视频接收模块,其中所述第一通讯模块与第二通讯模块之间采用时分双工通讯。本发明通过采用移动终端进行对讲和控制,使得可视门铃对讲可在任意位置进行同时具备无绳电话功能。将来的门铃将会更智能化,更人性化,满足人类各种需要。
本设计是介绍了由STC89C52单片机来构成电子音乐门铃系统的工作过程,本系统主要完成该电子门铃不仅具有普通电子门铃的功能,而且还具有一些扩展功能。它的工作状态能够由用户自行设定等常规功能,并给来访者提供必要的语音和文字回应信息,此外。这给人们生活提供了很大的便利。
关键词:单片机;音乐门铃;液晶显示;语音录放;发光二极管
Abstract
The traditional doorbell is a ding-dong sound, has less function, is weak, and the structure is very complex. It can not meet the needs of this rapidly developing society at all. But now it is mainly a cordless telephone visual doorbell intercom system. The door machine is connected with the indoor unit, the door machine comprises a camera and an audio circuit, the indoor unit comprises a first communication module connected to a telephone line, and a mobile terminal connected wirelessly with the indoor unit. The indoor unit also includes a control module, a video transmitting module and a telephone switch module for switching between the first communication module and the video transmitting module, said telephone The switch module is respectively connected with the control module and the first communication module.; the mobile terminal comprises a second communication module that is wireless connected with the first communication module and a video receiving module that is wirelessly connected with the video transmitting module. The first communication module and the second communication module adopt time division duplex communication. So that visual doorbell intercom can be carried out in any position and have cordless telephone function. In the future, the doorbell will be more intelligent, more humanized, and meet all kinds of human needs.
This design introduces the working process of the electronic music doorbell system, which is composed of STC89C52 single chip computer. The electronic doorbell not only has the function of ordinary electronic doorbell, but also has the function of electronic doorbell. It also has some extended functions. Its working status can be set by the user and other routine functions, and provide the necessary voice and text response information to the visitors. In addition, it provides great convenience for people to live.
Keywords: single chip microcomputer; music doorbell; liquid crystal display; voice recording and playback; light emitting diode
目 录
引 言 1
第1章 绪论 2
1.1 概述 2
1.2课题的总体设计及思路 2
第2章 硬件电路设计 4
2.1 硬件最小系统设计 4
2.1.1 核心芯片STC89C52简介 4
2.1.2 复位电路的设计 5
2.1.3 时钟电路的设计 6
2.1.4 存储器的分配 7
2.2 时钟电路的设计 8
2.2.1 DS1302芯片简介 8
2.2.2 DS1302结构框图与引脚介绍 8
2.2.3 DS1302与单片机的硬件电路的设计 10
2.3 显示提示电路的设计 11
2.3.1 液晶显示原理 11
2.3.2 SMC1602芯片简介 12
2.3.3显示电路的设计 14
2.4 语音提示电路的设计 14
2.4.1 ISD芯片简介 14
2.4.2 ISD1420芯片特点及引脚介绍 15
2.4.3 存储芯片AT24C02简介 18
2.4.4 ISD1420与单片机连接电路的设计 19
2.5 按键电路的设计 20
第3章 软件部分设计 21
3.1 主程序设计 21
3.2 相应子程序设计 22
3.2.1 按键扫描子程序设计 22
3.2.2 门铃键子程序设计 23
3.3.3 录音(RECORD)和播放(PLAY)程序设计 25
第4章 调 试 27
结论与展望 29
致 谢 30
参考文献 31
附录A:总图 32
附录B:外文文献及译文 33
附录C: 主要参考文献及摘要 40
附录D: 源程序 42