摘要
如今各种不同类型的游戏设备一直是消费领域的热点,用低廉的成本设计出符合要求的乒乓游戏机设备,采用单片机STC89C51作为主控芯片,采用Proteus软件进行软件编程,实现乒乓游戏机的双人对打。乒乓球的位置和移动方向由灯亮及依次灯亮的方向决定使用,乒乓游戏机的A、B两方在各自不同的位置发球或击球,分别有左、中、右、加速4个按键作为模拟球拍。游戏者根据球的位置按下相应的按键得分,最后通过LCD显示屏显示数据。系统硬件部分包括单片机电路、译码电路、发光二极管电路、按键电路、显示电路等电路的设计,并采用Proteus软件仿真其效果,系统操作方便,稳定度高。
Nowadays,various types of game equipment have been a hotspot in the field of consumer,this article is to design table tennis game machine equipment with the low cost by using STC89C51 MCU as the main control chip,using Proteus software to carry on the software programming.It realizes the table tennis game machine double rally.The tennis ball location and moving direction are determined by light and switch of lamp.The A,B two parties in their different position serve or strike,respectively.There are left,middle,right,and speed up four buttons as a simulation.The player depends on the position of the ball,and presses the button accordingly,and finally uses the LCD to display data.The hardware of the system includes the design of single chip microcomputer circuit,decoding circuit,light emitting diode circuit,key circuit,display circuit and so on,and it uses Proteus software to simulate its effect.The system is easy to operate,and stable.
出处
《微型电脑应用》
2017年第12期64-66,共3页
Microcomputer Applications