资源描述:
《闪电手益智具.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、摘要随着科技不断进步,益智玩具的样式越来越多,功能也越来越多,同时也越来越受人们的喜爱。益智玩具可开发智力,增强大脑的开发性思维,这对于处于发展阶段的孩子们尤其重要。益智玩具可缓解人们的压力,它已经逐渐成为白领上班族们休闲的用品,减压的工具。总之,益智玩具给生活增加许多调味剂,不仅可提高生活质量,还可以促进健康,延年益寿。本设计介绍的是如何以AT89S52单片机为控制核心,利用ISD4004录放音芯片,实现闪电手益智玩具的辨色功能。用ISD4004芯片录音,并将所录的语音放在指定的地址块中,放音时根据所需内容调用相应的地址。利用LM386实现音频的功放。LM
2、1117用来将5V电压转换为3V的电压送人ISD4004芯片。方向感应器的六个角代表六种不同的颜色,分别接入单片机的六个引脚,当方向感应器代表红色的角朝下时,与该角相连的单片机引脚输入低电平,单片机通过判断哪个引脚为低电平判断所选中的颜色,然后与所调用的语音颜色比较,从而实现辨色功能。关键字:AT89S52单片机;ISD4004语音录放芯片;LM1117低压差电压调节芯片;LM386音频功放芯片AbstractWiththeconstantprogressofscienceandtechnology,thetypeofintelligence-toyismo
3、reandmore,andthefuctionismoreandmore,atthesametime,itisacceptedbypersonsmoreandmore.Intelligence-toycanexploitintelligence,andenhancethedevelopmentofthinking,thatisespeciallyimportantforchildrenwhoaredevelopping.Intelligence-toycanrelievethepressureonpeople,anditisalreadythetoolofw
4、hitecolorworkerwhomustusetorelievethepressure.Inaword,Intelligence-toyaddsmanyspicetolife,notonlycanimprovethequalityoflife,alsocanpromotehealth,prolonglife.ThisdesignintroduceshowtheAT89S52singlechipasthecontrolcore,usingthechipISD4004thatcanrecordandplay,achievethefunctionoflight
5、ning-handeducationaltoyscolordiscrimination.Recording,placethetapedvoiceinthepositionthatisspecifield,andplaying,callthecorrespondingaddressaccordingtotherequiredcontent.LM1117isusedtoconvert5voltageto3voltageforISD4004chip.Thesixanglesofaccelerometerareonbehalfofthesixdifferentcol
6、ors,and6pinsrespectivelyconnectedtothesinglechip.Whentheangleofaccelerometeronbehalfofthereddownwards,andthesinglechippinthatisconnectedwiththeangleonbehalfoftheredinputlowlevel.Singlechipjudgetheselectedcolorbyjudgewhichpinislowlevel,thencomparewithvoicethatcallsonbehalfofcolortor
7、ealizethefunctionjudgingbycolor.Keyword:AT89S52singlechip;ISD4004chip;LM1117chip;LM386chip;目录摘要IAbstractII1引言11.1选题的背景和意义11.2研究现状及发展趋势22方案设计42.1总体方案设计42.1.1闪电手益智玩具的功能42.1.2整体设计52.2部分模块方案选择52.2.1录放音芯片的选择52.2.2方向感应器62.2.3电源的选择73硬件设计93.1控制模块即单片机部分93.1.1主要性能93.1.2引脚说明93.1.3存储器123.1.4定时
8、器133.1.5中断143.2以单片机为核心的电路模