Final Milestone
In this project we have three tanks, a tile switch control, a base control, two tile localization systems and a remote controller.
The first figure is the tanks in the game. The middle one is the user control tank, and the other two are the enemy tanks.
Figure 1, Tanks in TankCitiBattle.
A player can remote control the user tank and attack by pressing a button on the controller, then the Tank would attack with LEDs.
We use Xbee communication on the controller and the tank.
Figure 2. User tank, Big mouth
.
Figure 3. User controller.
The first enemy tank, Destroyer, would go trough the map to find the user's base and destroy it with its cannon (rubber band gun). In the middle of the game, Destroyer would call its alliance to help.
Figure 4. Enemy tank 1, Destroyer.
The second enemy tank, Nightmare, would come out in the middle of the map and help Destroyer once it receives Destroyer's signal.
Figure 5. Enemy tank 2, Nightmare.
When the first tank, Destroyer, arrives in the middle of the map, it would sends out a signal through ZigBee and asks for switching localization system. After done switching, the tanks are allow to move to the other side of the map. At the meantime, the other tank, Nightmare, would starts moving. Before switching, the signal on the other side of the map is weak and unstable.
Figure 6. Switching system.
Figure 7. Localization systems.
Once the enemy tank arrives and attacks the base(with a box covered), our base would sense it's being attacked and a speaker on the base would starts "Beeping." This means the game is over and the user loses the game.
Here we use a sound sensor to determine whether the base is being attacked or not.
Figure 8. The base (inside the box).
Figure 9. Map of TankCitiBattle before decoration.
Figure 10. Map after decoration.
Figure11. Tanks (Front View).
Video link:http://www.youtube.com/watch?v=ERtUoUajkBM
No comments:
Post a Comment