This little dinosaur game console is technically called "Dino Game Design Based on Capacitive Detection and Control" ( ̄▽ ̄)"
1. Basic Introduction
: It uses the classic STM32C8T6 as the main controller, adding peripherals such as TIM, IIC, DMA, and USART. It imports OLED driver libraries and font library to implement the little dinosaur game console functions. (Many thanks to kk for providing the game library!)
Touching the copper plates makes the dinosaur jump, and changing the spacing of the external copper plates changes the capacitance, thus altering the game difficulty.
It also features a 3D-printed ice-white shell, further enhancing the summery feel O(∩_∩)O
2. Software design and implementation mainly include game interface design, game logic implementation, data communication protocol formulation, and hardware/software co-debugging.

The functions shown above are the most basic functions of the Little Dinosaur game,
with the following functions: setting the initial interface, displaying the image on the OLED, changing the dinosaur's state, randomly generating obstacles, displaying the score in real time, and calling these functions as the main function.
3. Hardware design and implementation mainly involve capacitive touch buttons and capacitive adjustment of game difficulty.
The capacitive touch buttons are implemented using a capacitor-to-frequency converter + frequency-to-voltage converter + comparator. The frequency measurement is achieved using a separate capacitor-to-frequency circuit.
Touching the copper plates makes the dinosaur jump, and changing the spacing of the external copper plates changes the capacitance, thus changing the game difficulty.
Furthermore, compared to ordinary buttons, capacitive buttons prevent accidental touches (one hand must touch the ground copper plate while the other hand touches the control copper plate to complete an effective action).
4. In summary,
this little dinosaur game console not only boasts exquisite graphics and smooth animation effects but also incorporates various interactive elements. Players can control the dinosaurs with simple operations to complete various tasks, unlock new levels and rewards. The game features a wide variety of dinosaurs, each with its own unique skills and characteristics, waiting to be discovered.
This homemade little dinosaur game console is more than just a game machine; it's a refreshing summer entertainment companion. With its unique summer style, it brings a cool entertainment experience to your hot summer days, allowing you to enjoy the fun of the game while also feeling the beauty of summer. Let's cool off this summer together and embark on this fantastic summer journey!