Electronic Rock-Em Sock-Em Robots
From Texas Instruments Embedded Processors Wiki
We've embedded the latest TI technology into an old favorite, Rock 'Em Sock 'Em Robots!
Technology is growing at such a fast and exciting pace, leaving the old, classic games to be forgotten in the toy closet. By adding an interactive feature to Rock 'em Sock 'em Robots, this project brings the simple game back to life!
Our initial inspiration came directly from one of our fellow co-workers, Adrian Fernandez, who had a Rock 'Em Sock 'Em gameboard on his desk.
- Wireless gameplay using the Chronos watch and the EM430F6137RF900
- Custom PCB
- 160 x 128 pixel LCD display from Sparkfun
- Directly punch to activate robot's punch
- Move hands to move robot
- Save score to SD card
- Replay game from SD card
The classic two-player boxing robot game is back and now technologically re-vamped with original hardware and the use of the Chronos watch. Wearing the Chronos watches, one on each hand, each player is in complete control of the robot. With the data from the acceleration sensors on the watches, each physical punch thrown by the player commands the robot to throw a punch with the corresponding arm. To control the position of the robot, the player tilts his/her hands forward, backward, left, or right. Despite the change in controls, the rules of the game remain the same: A player wins a round by punching the opponent (robot) with enough force, resulting in the opposing robot's head popping up.
Note: Each player must keep their arms in basic "fighting stance", mimicking the position of the robot's arms, during the entire course of the game. This ensures that the physical movements of the player transfer as expected to the game board.
- Program each of the 4 watches, following the instructions described below:
- Watch 1: Player 1 Hand: L
- Watch 2: Player 1 Hand: R
- Watch 3: Player 2 Hand: L
- Watch 4: Player 2 Hand: R
Uses several TI parts:
- TPA301 Audio amplifier
- TL1963A-33 3.3V Low-dropout Linear Regulator
- SN74LVC8T245 8 bit Dual Supply Bus
Programming the TI Chronos Watch
Two watches per player must be programmed, one for each hand.
- Download and extract the **.zip file.
- Start IAR Embedded Workbench.
- Select File -> Open -> Workspace.
- Browse to the location of the extracted folder and open the .eww workspace file.
- Right click project name and select "Options".
- Under "Linker", select the "#define" tab and define the appropriate symbols representing the player (1 or 2) and hand (right or left) to specify which watch is being programmed.
- Remove the battery from the back of the watch.
- Connect the eZ430 emulator to a USB port on your PC and connect the watch to the emulator.
- Select Project -> Download and Debug
- Select Debug -> Go to begin running the program on the watch.
- Disconnect the watch from the emulator, reinsert the battery, and reassemble the watch.
- Repeat for the remaining watches needed for game play.
File:Rockem-code.zip Revision 1