NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Electronic Rock-Em Sock-Em Robots
We've embedded the latest TI technology into an old favorite, Rock 'Em Sock 'Em Robots!
{{#evp:youtube|WA5Bgmt-rL8|Watch our video! Don't forget to vote!|right}}
Contents
Creators[edit]
- Zachery Shivers (z-shivers@ti.com)
- Anne Flinchbaugh (a-flinchbaugh@ti.com)
Inspiration[edit]
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.
Features[edit]
- 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
Future[edit]
- Audio
- Save score to SD card
- Replay game from SD card
Gameplay[edit]
Overview[edit]
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.
Startup[edit]
- 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
Hardware[edit]
Uses several TI parts:
- TPA301 Audio amplifier
- Teethwhitening
- TL1963A-33 3.3V Low-dropout Linear Regulator
- SN74LVC8T245 8 bit Dual Supply Bus
Usage Instructions[edit]
Programming the TI Chronos Watch[edit]
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.
Source Code[edit]
File:Rockem-code.zip Revision 1