当前位置:网站首页>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
边栏推荐
- sar命令详解
- Solve the problem of SSH configuration file optimization and slow connection
- Introduction to the use of countdownlatch and cyclicbarrier for inter thread control
- C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【2】
- 51单片机的直流电机PWM调速控制系统(附Proteus仿真+C程序等全套资料)
- C语言知识点精细详解——初识C语言【1】
- 51单片机的花卉、农田自动浇水灌溉系统开发,Proteus仿真,原理图和C代码
- 八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
- JS recursion (1)
- LotusDB 设计与实现—1 基本概念
猜你喜欢

線程組ThreadGroup使用介紹+自定義線程工廠類實現ThreadFactory接口

Uni app message push

Design of single chip microcomputer Proteus for temperature and humidity monitoring and alarm system of SHT11 sensor (with simulation + paper + program, etc.)

XX project structure notes

C语言知识点精细详解——数据类型和变量【2】——整型变量与常量【1】

Tongxin UOS uninstall php7 2.24, install php7 4.27 ; Uninstall and then install PHP 7.2.34

API Gateway/API 网关(四) - Kong的使用 - 集成Jwt和熔断插件

本以为能躺着进华为,结果陆续收到京东/滴滴/爱奇艺offer的我迷茫了

顺序表的操作,你真的学会了吗?

51单片机的直流电机PWM调速控制系统(附Proteus仿真+C程序等全套资料)
随机推荐
IE8 browser prompts whether to block access to JS script
LLVM - 生成局部变量
Usage of BC
js 递归(1)
source insight via samba
async void 导致程序崩溃
MySQL-InnoDB-事务
How does void * exist?
Solve the problem of SSH configuration file optimization and slow connection
555定时器+74系列芯片搭建八路抢答器,30s倒计时,附Proteus仿真等
TLS/SSL 协议详解 (28) TLS 1.0、TLS 1.1、TLS 1.2之间的区别
Tongxin UOS uninstall php7 2.24, install php7 4.27 ; Uninstall and then install PHP 7.2.34
After entering the new company, the operation and maintenance engineer can understand the deployment of the system from the following items
Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
flannel 原理 之 子网划分
操作系统常见面试题目:
统信UOS PHP7.2.3升级至PHP7.2.24
js 抛物线运动方法封装
MySQL同步Could not find first log file name in binary log index file错误
KVM learning resources