Implement a fencing training mode on STM32

bugsbunny876

Apr 14, 2025
1
Joined
Apr 14, 2025
Messages
1
I need help programming mode 5 of a fencing training mannequin using a STM32L432 (without a touchscreen). I’m using PlatformIO with Visual Studio Code.
The goal is to:
Allow the user to select training parameters (number of targets, green/red targets, time for each target, and time between targets) with buttons,
Turn on red or green LEDs (no RGB LEDs),
Detect if a target is hit (using Normally Off arcade buttons),
Calculate the score, best time, and average time,
Display the results on a 7-segment display.
I’m unsure about:
The best way to organize the code,
How to manage the parameter selection,
How to store times to calculate the averages,
And how to send the output to the display.
Also, I’ll be using arcade buttons for detecting target hits. These are Normally Off, and I need at least maybe 4 buttons for the different targets (up to a maximum of 20).

Any advice or examples to get started would be greatly appreciated! Thanks in advance
 

Attachments

  • Capture d’écran 2025-04-14 181929.png
    Capture d’écran 2025-04-14 181929.png
    70.8 KB · Views: 1
Top