DIY Arcade Joystick with STM32 for Retro Gaming

DIY Arcade Joystick with STM32 for Retro Gaming
DJI drones, Fluke multimeters, Xiaomi phones, Huawei watches, waiting for you!
👆 The Breadboard Community DIY event is ongoing!
I was born in 1990, and my personality may lean more towards the 80s, not as carefree as the 90s. I remember when we were kids, the toys we had access to in rural areas were mostly purely mechanical, like glass marbles, rolling iron hoops, bamboo dragonflies, and wind-up frogs.
DIY Arcade Joystick with STM32 for Retro Gaming
It wasn’t until I entered elementary school and went to town that I accidentally discovered the arcade, which immediately attracted me. The games inside felt like a different level compared to what I usually played. I remember needing to spend money to buy game tokens, where one yuan could buy four tokens, later five. But one yuan was a big amount for kids back then; I could only watch others play in the arcade.

DIY Arcade Joystick with STM32 for Retro Gaming

At that time, popular games included “Dinosaurs Attack,” “Romance of the Three Kingdoms,” “King of Fighters ’97,” “Journey to the West,” and “1945.” To make up for my childhood regrets, a few years ago I bought a set-top box and flashed it into an emulator to play games. I usually used a controller but always felt something was missing, so this time I plan to make a joystick controller. To avoid occupying the existing USB interface, the overall design concept is as follows
DIY Arcade Joystick with STM32 for Retro Gaming
The circuit design diagram is as follows
DIY Arcade Joystick with STM32 for Retro Gaming
The code is generated using STM32CubeMX based on my hardware configuration and pin configuration.
DIY Arcade Joystick with STM32 for Retro Gaming
The main focus is on selecting the USB driver.
DIY Arcade Joystick with STM32 for Retro Gaming
We define it as an HID device, and the tool generates a mouse file by default. We need to modify the relevant HID parameters.
DIY Arcade Joystick with STM32 for Retro Gaming
Modify the corresponding data size.
DIY Arcade Joystick with STM32 for Retro Gaming
Then, in the main function, collect data in real-time to send USB data to the host. We need to define our data structure, which must be consistent with the definitions in HID.
DIY Arcade Joystick with STM32 for Retro Gaming
DIY Arcade Joystick with STM32 for Retro Gaming
Finally, assemble it. I want to find a wooden board.
DIY Arcade Joystick with STM32 for Retro Gaming
Drill holes according to the layout I need.
DIY Arcade Joystick with STM32 for Retro Gaming
DIY Arcade Joystick with STM32 for Retro Gaming
Install the wiring.
DIY Arcade Joystick with STM32 for Retro Gaming
All done!
DIY Arcade Joystick with STM32 for Retro Gaming
Author: Haha~~~~~~~~~~~ Source: Breadboard Community “Rediscovering Childhood Fun – Joystick Controller” https://mbb.eet-china.com/forum/topic/147836_1_1.html

Scan to join

Embedded Community Group

DIY Arcade Joystick with STM32 for Retro Gaming

The Breadboard Community DIY event is ongoing!👇
https://mbb.eet-china.com/forum/topic/147007_1_1.html
Community
Activities
Events
Activities
DIY Arcade Joystick with STM32 for Retro Gaming
DIY Arcade Joystick with STM32 for Retro Gaming
Share your DIY electronic designs on the Breadboard Community blog/forum, and add the [Electronic DIY] tag when publishing articles. There is no word limit, and articles that pass community review will receive rich rewards!
↓ Scan to participate ↓
DIY Arcade Joystick with STM32 for Retro Gaming
【Awards Setup】
First Prize (1 winner): DJI Neo drone, Xiaomi Redmi Note 13 Pro, Hikvision NAS Mage 20 PRO… (choose one)Second Prize (unlimited): Fluke F15B PRO MAX multimeter, Huawei WATCH FIT 2… (choose one)Third Prize (unlimited): Xiaomi Mi Band 9 NFC version, Xiaomi mini massage gun 2C, electronic common tools gift package worth ïż„300… (choose one)
Participation Prize: All participants can receive 500 E-coin rewards!
Over Ten Thousand Rewards: If a single article/video reaches over ten thousand views on the MBB WeChat account, each article will receive1000 E-coin rewards (E-coins can be redeemed for prizes in the mall, data statistics deadline is 2025.2.28, limited to the first 20 articles, sorted by the time of publication in the MBB community, personal cumulative maximum reward is 10,000 E-coin rewards)
E-coin can be redeemed for engineering tools and exquisite gifts at the E-coin mall (https://estore.eet-china.com/)! Such as tweezers, development boards, oscilloscopes, toolboxes, storage boxes, etc.
DIY Arcade Joystick with STM32 for Retro Gaming
【Article Requirements】
1、Content RequirementsOriginal, must be related to the electronics industry, and must be first published on the internet.
2、Content should include: design ideas, finished product display (such as circuit principles, functional display, cost control plans or lists, code, etc.) Content involving core intellectual property can be omitted.
3. During the event, the same ID can participate multiple times, and under the same quality conditions, more works can accumulate scores.
Event Time: 2024.11.13 – 2025.02.13

Leave a Comment