Modern Battleship
Physical Computing Game Experience
Project Overview
This project reimagines the classic Battleship board game by transforming it from a purely information-based game into a tactile, immersive physical computing experience. By introducing hands-on controls and immediate physical feedback, we sought to enhance player involvement and satisfaction beyond the traditional luck-based gameplay.
Design Philosophy
The Problem with Traditional Battleship
The original Battleship game relies heavily on two elements: information gathering and luck. While these can create engaging gameplay, we identified an opportunity to deepen player involvement by adding physical interaction.
Our Solution: Hands-On Engagement
By literally getting hands-on with the game, players experience:
- The satisfaction of setting precise control coordinates
- The tactile engagement of pressing a physical firing button
- Visual feedback through LED animations when shots hit their targets
- Physical feedback through vibration motors when ships are struck
- Enhanced emotional investment through multi-sensory interaction
Research Objective
The core question driving this project: Can changing the fundamental core mechanics of Battleship while maintaining its strategic elements still be entertaining? Our prototype answers this question by demonstrating that physical computing elements can significantly enhance player engagement.
Technical Implementation
This project showcases comprehensive physical computing skills developed throughout the Physical Computing course. The implementation required careful coordination of multiple microcontrollers, display systems, and feedback mechanisms.
Complete Components List:
- 4x AtMega328p Microcontrollers: Distributed processing for different game functions
- 2x 74HC299p Shift Registers: Expanding I/O capabilities for LED control
- 4x 18650 3.7v 3300mAh Batteries: Portable power solution
- 2x DC-DC Step Down LM2596: Voltage regulation for stable operation
- 1x WS2812B 5050 RGB LED Strip (138 LEDs): Game board visual feedback
- 1x 10K Linear Slide Potentiometer: Coordinate selection (axis 1)
- 1x 10K Round Dial Potentiometer: Coordinate selection (axis 2)
- 2x Buttons: Fire control and game state management
- 1x LCD Display (16x2): Game information and coordinate display
- 1x LCD I²C Serial Interface: Simplified LCD communication
- Diodes: 2 per ship plus flyback diodes for vibration motor protection
- 1x MOSFET: High-current switching for motors
- 4x Coin Vibration Motors: Tactile feedback when ships are hit
- 1x 2200 μF Capacitor: Power smoothing for LED strip
- 4x 16MHz Crystals: Clock signals for microcontrollers
- 8x 22 μF Capacitors: Decoupling capacitors for stable operation
- Various Resistors: Current limiting and voltage division
System Architecture
Microcontroller Distribution
Four AtMega328p microcontrollers work in concert to handle different aspects of the game:
- Controller 1: Main game logic and state management
- Controller 2: LED strip control and animation
- Controller 3: Input processing (potentiometers and buttons)
- Controller 4: Display management and haptic feedback
Input System
Players interact with the game through carefully designed analog controls:
- Linear slide potentiometer for X-axis coordinate selection
- Rotary potentiometer for Y-axis coordinate selection
- Circular firing button for shot execution
- Secondary button for game state controls
Visual Feedback System
The 138-LED WS2812B strip provides rich visual feedback:
- Grid visualization representing the game board
- Color-coded hit/miss indication
- Ship placement visualization
- Animation sequences for successful hits
- Game state indication (turn changes, game over)
Haptic Feedback
Four coin vibration motors provide immediate physical feedback:
- Unique vibration pattern for each ship type
- Intensity variation based on ship size
- Immediate response when ships are struck
- MOSFET-controlled for consistent performance
Information Display
16x2 LCD with I²C interface displays:
- Current coordinate selection
- Hit/miss history
- Turn indication
- Game statistics
- Victory/defeat messages
Power Management
Portable operation required careful power system design:
- Battery Configuration: Four 18650 cells provide reliable portable power
- Voltage Regulation: Dual LM2596 step-down converters supply stable 5V and 3.3V rails
- LED Power: 2200 μF capacitor prevents voltage sag during LED animations
- Motor Protection: Flyback diodes protect circuitry from motor back-EMF
Game Mechanics Enhancement
Core Gameplay Loop:
- Player adjusts potentiometers to select target coordinates
- LCD displays current coordinate selection in real-time
- Player confirms selection by pressing the firing button
- LED strip animates the shot trajectory
- Hit detection determines outcome:
- Miss: Blue LED indication at coordinate
- Hit: Red LED indication + vibration motor activation + sound effect
- Turn switches to other player
Physical Engagement Benefits:
- Precision Control: Analog potentiometers require deliberate, precise movement
- Commitment: Physical button press creates decision finality
- Celebration: Visual and tactile feedback amplifies victory moments
- Tension: Physical interaction heightens anticipation during targeting
Technical Challenges & Solutions
Challenge 1: LED Strip Timing
WS2812B LEDs require precise timing that can conflict with other operations.
Solution: Dedicated microcontroller for LED control with interrupt-free animation routines.
Challenge 2: Coordinate Accuracy
Analog potentiometers can be jittery, affecting coordinate precision.
Solution: Implemented moving average filter with hysteresis to stabilize readings.
Challenge 3: Power Consumption
138 LEDs at full brightness can draw significant current.
Solution: Brightness limiting and selective LED activation to manage power draw.
Challenge 4: Microcontroller Communication
Four microcontrollers needed reliable data exchange.
Solution: Implemented I²C bus communication with error checking and retry logic.
Skills Demonstrated
- Embedded Systems Programming: AtMega328p firmware development in C/C++
- Circuit Design: Power distribution, protection circuits, and signal conditioning
- Multi-Controller Architecture: Distributed system design and I²C communication
- Analog Input Processing: ADC reading, filtering, and calibration
- LED Strip Control: WS2812B protocol implementation and animation
- Power Electronics: Voltage regulation and battery management
- Human-Computer Interaction: Tactile interface design and feedback systems
- Game Design: Mechanics enhancement through physical computing
- Prototyping: Physical construction and testing
- Documentation: Component selection justification and system architecture
Results & Player Feedback
Testing with multiple player groups confirmed our hypothesis that physical interaction enhances engagement:
- Players reported feeling more "in control" compared to traditional Battleship
- The tactile feedback created memorable moments during successful hits
- Visual LED animations increased excitement and spectator engagement
- The physical act of aiming with potentiometers added strategic tension
- Overall entertainment value increased despite maintaining core strategic elements
Future Enhancements
Potential improvements for future iterations:
- Wireless Operation: Separate control panels for two players
- Sound Effects: Audio feedback system for hits, misses, and victory
- Game Modes: Alternative rule sets and difficulty levels
- Statistics Tracking: Shot accuracy, hit percentage, and game history
- Online Connectivity: Internet-connected play with remote opponents
- AI Opponent: Single-player mode with computer adversary
Video Link
For a complete demonstration of the prototype in action, you can watch the full video demonstration on YouTube at: https://youtu.be/r4SEPVFEz3s
Conclusion
This project successfully demonstrates that changing core game mechanics through physical computing can enhance player engagement without sacrificing strategic gameplay. By adding tactile controls, visual feedback, and haptic responses, we transformed Battleship from a passive information game into an immersive physical experience. The prototype validates the hypothesis that hands-on interaction creates deeper player investment and more memorable gaming moments.