DEEP - Laser Game STM32
← All projects Embedded - Pair - Academic Completed

DEEP - Laser Game STM32

Laser tag gun prototype on STM32G431KB with e-paper display, infrared, Bluetooth, and custom PCB designed in Altium Designer. Functional proof-of-concept with real-time HUD, SolidWorks CAD casing, and Life Cycle Assessment.

Academic DEEP project (Digital Embedded Electronics Project) carried out in pairs with Hong-Ly KY. The goal was to design a functional laser tag gun prototype based on the NUCLEO-G431KB board (ARM Cortex-M4, 170 MHz, 128 KB Flash, 32 KB RAM). It is a proof-of-concept aimed at validating hardware and software architectures on a lab prototype.

The device integrates a Waveshare 1.54" e-paper display (SSD1681) driven over SPI for the HUD, an IR emitter and TSOP38238 receiver for firing (each player transmits a unique IR code preventing self-elimination), two HC-05 Bluetooth modules paired over UART for multiplayer synchronisation, three pushbuttons with software debounce, a photoresistor detecting whether the player is holding the gun, and an aiming LED.

The firmware relies on a 7-state finite-state machine (INIT, IDLE, GAME, HIT, SHOT, RELOAD, END) managing the game flow. The HUD displays real-time data: remaining time, team, individual and team scores, firing mode, and ammunition count. Three firing modes are available: semi-automatic (continuous fire every 130 ms), burst (3 spaced shots), and sniper (one shot per trigger press). Reloading takes 10 seconds with an animated progress bar. Timekeeping uses HAL_GetTick() to absorb the 1.8 s e-paper refresh without clock drift.

The PCB was designed in Altium Designer by Hong-Ly: schematic capture, routing, DRC verification, Gerber export, and manufacturing quote from JLCPCB. Two PCBs were soldered and tested. The software architecture is cleanly layered (HAL, e-paper BSP, graphics primitives, menus, state machine) with no dynamic memory allocation - everything is static or stack-allocated.

A gun-shaped enclosure was modelled in SolidWorks: 5 parts (barrel, grip with external battery compartment, linking piece, and 2 mirrored halves), fastened with M5 screws. The design matches the exact PCB dimensions (76.96 x 52.58 mm) and is intended for 3D printing in PLA.

A Life Cycle Assessment (LCA) was conducted using the French ADEME platform. Manufacturing accounts for 96% of the environmental footprint. Three improvement paths were identified: integrating the bare STM32 SMD chip (removing the Nucleo board, -40% footprint), using recycled rPLA (-59% on the enclosure), and designing for repairability with detachable connectors.

Matches support up to 4 teams of 4 players over 5 minutes, orchestrated by a game-master gun that starts and synchronises rounds via Bluetooth. Source code is documented with Doxygen and versioned with Git.

C / C++ Arduino / STM32 PCB / Altium Schématique Impression 3D

3D Model

Drag to rotate the 3D model
CategoryEmbedded - Pair - Academic