Space Trash Game With ESP32

by JackIsGoofingOff in Circuits > Arduino

139 Views, 1 Favorites, 0 Comments

Space Trash Game With ESP32

Screenshot 2024-10-05 201551.jpg

I always wanted to have my game console since my childhood, while my parents don't allow me to have one. Now when I grew up, though I purchased Nintendo Switch, my first game machine, I felt that something was still missing. So I decided to build a little game machine with ESP32 and here is the story.

Supplies

  1. DFRobot Firebeetle ESP32 (Other ESP32 board shall also works fine)
  2. DFRobot Firebeetle OLED 12864 Cover (AliExpress or Taobao)
  3. Download the juicy source code

Config Your Arduino IDE

Screenshot 2024-10-05 202833.jpg
Screenshot 2024-10-05 202916.jpg

For the project to work, you need to have U8g2 library and Bounce2 library installed. To get this library, you can search directly from Tools -> Manage Libraries.

Get Your Codes Work

Screenshot 2024-10-05 203045.jpg

Since I am using DFrobot Firebeetle ESP32, I chose this module form Tools -> Board. If you are using other ESP32 module, you are suggested to select the right module from the list. After everything is done, just upload the code and enjoy.

Some Take-aways

Screenshot 2024-10-05 203500.jpg

Alright, I know you are lazy but please also spend some time reading this paragraph. Since I am using the OLED Module from DFrobot, the button is occupying pin D3 and D8. In case you want to use your own ESP32 module with other button setups, you need to modify the code (see the image). And finally, congratulations, hope you can get your own ESP32 game console! Feel free to share your thoughts in the comment section.