3228

Game console based on STM32F401CCU6

 
Overview

Project origin

After studying microcontrollers for a semester, I came up with the idea of ​​making a small handheld console of my own. After referring to many plans from community leaders, I added a lot of my own ideas, and thus came up with this version of the game console.

master control

The main control is STM32F401. There is no reason. The main reason is that I learned this chip in school and it is relatively easy to use. No matter how you say it, it is overkill and the chip can be changed according to the actual situation.IMG_20210509_000338.jpg

Charging solution

I found that such a handheld device with a battery is a good carrier for a power bank (I’m sure). There is still a lot of space on the PCB anyway, so I integrated the charging and discharging circuits. The IP5306 solution of Yingjixin is used. Chip introduction: Screenshot 2021-05-09 000533.pngReference circuit diagram: Screenshot 2021-05-09 000552.pngIt can be seen that the circuit of IP5306 is relatively simple and can achieve 5V2.4A output (actually measured is about 5V2A), power display, lighting function, and TP4056 has high cost performance. It's perfect for a small battery like a game console.

code part

I wrote the code part myself. At that time, I didn’t have the habit of writing code in separate files, so it would be quite messy. Let’s just take a look at it and tidy it up again when I have the opportunity (gu gu gu). There are currently only 3 games: Tetris, Snake, and 2048. Fortunately, I can add them later through programming by myself. I will update a wave of games when I have time (gu gu gu). //Delete on 2021.5.18

Shortcomings or shortcomings

In order to be compact in size, this handheld device connects the burning interface to the data pin of the USBA port. . . . (There is no need to disassemble the shell in order to burn the program in the future), but I think it is a failure. There is a high probability that the charging power cannot be increased for this reason. It is better to short-circuit the two data pins of USBA. Screenshot 2021-05-09 001728.pngYou can make your own choice (it is recommended to short-circuit and then lead out the programming port separately).

room for improvement

You can see that this game console does not have a shell. It can only be a rough house at the moment because I haven’t learned how to model it yet. I will add a shell if I have the opportunity in the future (I promise).

Stretch yourself and just write it here. The link to the demo video and code are at the end of the article. I hope you all have fun. Video link: https://www.bilibili.com/video/BV15y4y1W7WQ#reply4551879610

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 13:04:52

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号