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.
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.
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: Reference circuit diagram:
It 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.
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
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. You can make your own choice (it is recommended to short-circuit and then lead out the programming port separately).
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
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet