This project integrates various subsystems using a PIC32MX170F256B microcontroller to create an interactive gaming system. The schematic incorporates components for sensor feedback, audio playback, LED lighting, and motion control. Below is a detailed description of the subsystems:
1. Microcontroller Unit (MCU)
The central controller is a PIC32MX170F256B, which manages the inputs and outputs of the entire system. It interfaces with multiple peripherals, including sensors, servos, LEDs, and audio boards, ensuring seamless operation and real-time processing.
2. Input and Sensor System
IR Coin Sensor: Detects the presence of a coin for game activation. It includes both an emitter and a receiver for accurate sensing.
IR Slice Sensors: Two sets of IR sensors (emitters and receivers) monitor specific game interactions, such as slicing motions or proximity triggers.
Potentiometer: Used to adjust in-game difficulty parameter.
Game Start Button: A simple push-button initiates the gameplay sequence.
3. Feedback and Actuation
Servos: Two servo motors control physical displays:
Score Display Servo: Reflects the current game score.
Time Display Servo: Indicates the remaining gameplay time.
RGB LEDs: Two non-addressable RGB LED strips provide visual feedback and create immersive lighting effects during gameplay.
4. Audio System
An Adafruit AudioFX Mini Sound Board enables playback of 3 sound effects for various game events, enhancing the user experience.
A standard headphone jack provides output for external headphones.
Control physical indicators for score and remaining gameplay time. Motion is controlled by PWM library.
Require use of a pull-up resistor, and connected to 5V power for better performance than 3.3V power.
A push-button initiates the game sequence when pressed.
Adjusts gameplay parameters like time or difficulty by varying resistance, an analog input into the PIC32.
Triggers preloaded sound effects in response to game events for immersive audio feedback. Each soundtrack is triggered by holding the pin low.Â
Soundboard Pin 0 contains the intro music (HOLDL). Soundboard Pin 1 contains the game music (HOLDL). Soundboard Pin 3 contains the bomb sound (Basic Trigger).
3 N-channel MOSFETs control each RGB LED strip, efficiently switching between states as commanded by the PIC32.