Skip to content

This STM32F411 Discovery board application transforms the hardware into a game controller for playing the Chrome Dino game. Users can control the game by either pressing the board's user button or connecting a potentiometer. The firmware, implemented with CMSIS v2, emulates an HID device, sending commands to the game on computer.

License

Notifications You must be signed in to change notification settings

AlexCork1/DinosaurGameRTOSSTM32

Repository files navigation

STM32 Dino Game Controller

This project turns your STM32F411 Discovery board into a game controller that allows you to play the Dino game on Chrome browser. The application utilizes the following concepts:

  • CMSIS v2 (abstraction layer above FreeRTOS)
  • The device represents itself to the computer as an HID device (keyboard)
  • Two ways to play the game:
    • Clicking the user button on the board
    • Connecting a potentiometer to pin PC5

Usage

  1. Button Control:
    • Press the user button on the Discovery board to make the Dino jump.
  2. Potentiometer Control:
    • Connect a potentiometer to pin PC5.
    • Rotate the potentiometer to control the Dino's jumps.

Implementation Details

The tasks are implemented in the freertos.c file, utilizing CMSISv2 (or more detailed FreeRTOS) for task management. The HID device emulation sends the space bar key to the computer whenever an event is triggered (rotation of the potentiometer or button press).

Licence

This project is licensed under the MIT License.

Contributing

Feel free to contribute by opening issues or pull requests. Your input is highly appreciated!

Acknowledgments

Thanks to the STM32 community for their support and resources. Happy gaming!

About

This STM32F411 Discovery board application transforms the hardware into a game controller for playing the Chrome Dino game. Users can control the game by either pressing the board's user button or connecting a potentiometer. The firmware, implemented with CMSIS v2, emulates an HID device, sending commands to the game on computer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published