Project 001: C4 Bomb Prop — A FreeRTOS-Based Embedded System on PSoC 5LP

Counter Strike C4

This project brings the iconic C4 explosive from Counter-Strike to life through a custom 3D-printed model and a microcontroller-based embedded system. Powered by FreeRTOS on a PSoC 5LP, the system accurately replicates the game's countdown logic, interactive mechanics, and high-tension audio-visual feedback.

Core Interactive Mechanics

  • Arming Sequence: Exclusive to the Terrorist role, players must toggle the [Fire Button] and enter the classic security code 7355608 on the keypad to arm the device.
  • Detonation Countdown: Once armed, a 40-second timer begins. The microcontroller drives a buzzer and a red LED, increasing the frequency of the beeps and flashes as detonation nears to simulate rising tension.
  • Dynamic Defusal System: Players can intervene to halt the countdown. Holding # initiates a standard 10-second defusal, while holding * simulates having a defuse kit for a rapid 5-second defusal. If the timer reaches zero before the defusal is complete, the bomb "explodes."
  • System Reset: After a detonation event, the [Fire Button] must be toggled off and then back on to reset the state and allow a new arming cycle.

Hardware & Technical Highlights

  • Hardware Architecture: Utilizes the PSoC 5LP microcontroller as the core to handle complex input logic and precise timing operations.
  • Real-Time Operating System: Integrates FreeRTOS to ensure real-time responsiveness and stability for matrix keypad scanning, countdown execution, and synchronized audio/visual outputs.
  • Mechanical Design: Housed within a custom 3D-printed shell, seamlessly blending the electronic components into a realistic, interactive physical prop.

© 2026 Air Supply Information Center (Air Supply BBS)