当前位置:网站首页>51 MCU + LCD12864 LCD Tetris game, proteus simulation, ad schematic diagram, code, thesis, etc
51 MCU + LCD12864 LCD Tetris game, proteus simulation, ad schematic diagram, code, thesis, etc
2022-04-23 14:25:00 【Jiang Yuzhi】
The design requirements
(1) utilize 51 Single chip microcomputer , Design a Tetris game , Complete the development of hardware circuit and the compilation and debugging of program ;
(2) use LCD12864 LCD as the game running interface ;
(3) Use the flexible input and deformation control of the box ;
(4) Can prompt the player the shape of the next box , Show game score 、 Game timing and so on ;
System Overview
This paper designs a software based on AT89C51 Tetris game console with single chip microcomputer , The whole system is divided into hardware and software .
The hardware part consists of a power module 、 Minimum system of single chip microcomputer 、LCD12864 Display module and independent key module . The software part is based on C Language development , To complete the logic design and algorithm design of the game . The system block diagram is as follows .
The basic function of this design is , The single chip microcomputer outputs randomly at the upper end of the display screen 7 There are different types of square graphics ( Long strip 、Z The font 、 back Z shape 、 Field shape 、7 The font 、 back 7 shape 、T The font ), And make the square fall at a uniform speed to fill the given area .
In the process of falling , Players through the keyboard ( On 、 Next 、 Left 、 Right click ) Transform the block 、 Move down 、 Move left and right . When the box fills one or more lines, it cancels the line score , Until the blocks pile up at the top of the display and can't be eliminated , The game is over .
Analog circuits
Schematic diagram
Analysis of simulation results
Open Tetris simulation ( File for : Tetris simulation .DSN), Double click the MCU to load Game.hex file ( be located C In the program folder ), Run the simulation , The results are shown in the following figure .
LCD12864 The top of the left screen randomly generates a square shape and drops ;LCD The right screen shows : Prompt the shape of the next box 、 Game score (SCORE)、 Game timing and so on .
Players can press four buttons , Transform the block 、 Move left 、 Move right and down . When the box fills one or more lines , Cancellation score . The figure below shows , The game is running 1 branch 47 second , Players score 2 branch .
When the blocks pile up at the top of the interface and cannot be eliminated , Game over . here , The game interface displays Game Over, After a short wait , Start a new round of game .
in summary , tetris Proteus The simulation can run normally , Meet the design functions and requirements , The expected effect of this design has been achieved .
Resource content
(1) be based on 51 MCU Tetris game design paper full version ;
(2)C Program ;
(3)Proteus Simulation ;
(4) Schematic file ;
(5)Visio Flow chart file ;
(6) List of components ;
(7) Translation of foreign documents ;
(8) Reference material ;
Resource screenshot
Say the important thing again !!!
Tetris design is my original game design , Get a full set of information ,
WeChat search for my official account : Jiaoyuan Xiaozhi
版权声明
本文为[Jiang Yuzhi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231412471823.html
边栏推荐
- How does void * exist?
- Nacos uses demo as configuration center (IV)
- Flop effect
- js 递归(1)
- TLS/SSL 协议详解 (30) SSL中的RSA、DHE、ECDHE、ECDH流程与区别
- C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【2】
- 百度笔试2022.4.12+编程题目:简单整数问题
- How to do a project easily
- 本以为能躺着进华为,结果陆续收到京东/滴滴/爱奇艺offer的我迷茫了
- Tongxin UOS php7 2.3 upgrade to php7.0 two point two four
猜你喜欢
微信小程序将原生请求通过es6的promise来进行优化
API gateway / API gateway (IV) - use of Kong - Integrated JWT and fuse plug-in
555定时器+74系列芯片搭建八路抢答器,30s倒计时,附Proteus仿真等
API Gateway/API 网关(二) - Kong的使用 - 负载均衡Loadbalance
循环队列的基本操作,你学会了吗?
C语言知识点精细详解——初识C语言【1】
Pass in external parameters to the main function in clion
基于单片机的DS18B20的数字温度监控报警系统设计【LCD1602显示+Proteus仿真+C程序+论文+按键设置等】
剑指offer刷题(1)--面向华为
krpano全景之vtour文件夹和tour
随机推荐
Gif to still image processing
Five ways of using synchronized to remove clouds and fog are introduced
js 进度条,显示加载进度
Pass in external parameters to the main function in clion
JumpServer
统信UOS卸载php7.2.24,安装php7.4.27 ;卸载再安装为PHP 7.2.34
分分钟掌握---三目运算符(三元运算符)
C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【1】
KVM学习资源
1分钟看懂执行流程,永久掌握for循环(附for循环案例)
矩阵交换行列
KVM learning resources
八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
Docker篇 (五) MySQL的安装
C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【2】
Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
Some little records~
Thread group ThreadGroup uses introduction + custom thread factory class to implement threadfactory interface
API gateway / API gateway (IV) - use of Kong - Integrated JWT and fuse plug-in
SHT11传感器的温度湿度监控报警系统单片机Proteus设计(附仿真+论文+程序等)