当前位置:网站首页>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
边栏推荐
猜你喜欢
电子秤称重系统设计,HX711压力传感器,51单片机(Proteus仿真、C程序、原理图、论文等全套资料)
c语言在结构体传参时参数压栈问题
Tongxin UOS uninstall php7 2.24, install php7 4.27 ; Uninstall and then install PHP 7.2.34
剑指offer刷题(2)--面向华为
A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
流程控制之分支语句
API Gateway/API 网关(四) - Kong的使用 - 集成Jwt和熔断插件
处理 mkdir:无法创建目录“aaa“:只读文件系统
API Gateway/API 网关(三) - Kong的使用 - 限流rate limiting(redis)
Man man notes and @ reboot usage of crontab
随机推荐
矩阵交换行列
51 Single Chip Microcomputer Design of traffic light system (with Proteus simulation, C program, schematic diagram, PCB, thesis and other complete data)
基于单片机的DS18B20的数字温度监控报警系统设计【LCD1602显示+Proteus仿真+C程序+论文+按键设置等】
分分钟掌握---三目运算符(三元运算符)
Introduction to loan market quotation interest rate (LPR) and loan benchmark interest rate
API Gateway/API 网关(四) - Kong的使用 - 集成Jwt和熔断插件
微信小程序轮播图swiper
Qt实战:云曦聊天室篇
Basic regular expression
一篇博客让你学会在vscode上编写markdown
百度笔试2022.4.12+编程题目:简单整数问题
API Gateway/API 网关(三) - Kong的使用 - 限流rate limiting(redis)
ie8 浏览器提示是否 阻止访问js脚本
一些小小小小记录~
Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
剑指offer刷题(1)--面向华为
Processing MKDIR: unable to create directory 'AAA': read only file system
顺序表的操作,你真的学会了吗?
Preview CSV file
C语言知识点精细详解——初识C语言【1】