This project implements a Dino-Game using the STM32F401RE development board, a 16x2 LCD display, and a joystick sensor. The game features a simple interface where a dinosaur dodges obstacles. This repository includes all the necessary code and documentation to recreate the project.
Component | Description | Image |
---|---|---|
STM32F401RE | Nucleo board | |
16x2 QAPASS LCD | LCD display | |
Joystick Sensor | Sensor for capturing joystick movements | |
Breadboard | Breadboard for making connections | |
Jumper Wires | Wires for making connections | |
Potentiometer | For adjusting LCD contrast |
Before to connect HW, take a look on the pin legends of the boards
Take a look also at the pin analog and digital that we need to connect
LCD Display Pin | STM32 Board Pin > Pin CubeMX Config | Connection Diagram |
---|---|---|
VSS | GND | |
VDD | 5V | |
V0 | Potentiometer (for contrast control) | |
RS | D4 > PB_5 | |
RW | GND | |
E | D5 > PB_4 | |
D4 | D9 > PC_7 | |
D5 | D10 > PB_6 | |
D6 | D11 > PA_7 | |
D7 | D12 > PA_6 | |
A | 3.3V | |
K | GND |
Joystick Pin | STM32 Board Pin > Pin CubeMX Config | Connection Diagram |
---|---|---|
VRx | A5 > PC_0 | |
VRy | A4 > PC_1 | |
SW | D2 > PA_10 | |
GND | GND pin of Board |
After you have connected all the wires and the sensor to the board, as shown in the schema, you can clone our repository and install the program on your board using STM32CubeIDE.
NOTE : If you want do the setup on your own , you can skip this and follow an example of settings that we show, click on Do on your own!
Repository: Dino-Game
File
> Clone repository
.https://github.com/habeslab/Dino-Game.git
.Clone
.Navigate to the directory where you want to clone the repository.
cd path\to\your\directory
Clone the repository:
git clone https://github.com/habeslab/Dino-Game.git
Navigate to the directory where you want to clone the repository.
cd path/to/your/directory
Clone the repository:
git clone https://github.com/habeslab/Dino-Game.git
File
> Import
.General
> Existing Projects into Workspace
and click Next
.Finish
.Build
button (hammer icon) to compile the project.Run
button (green play icon) to flash the program onto your STM32F401RE board.Now, your STM32F401RE board should be running the Dino-Game program. Enjoy!
Contributions are welcome! Please feel free to contact us or open an issue to improve the game or add new features.
This project is licensed under the MIT License. See the LICENSE file for details.