Introduction: Warzone Tower Defense
Manual for Tower Defense Game
VG100 Introduction to Engineering
Dr. Shane Johnson
Hou Jize Mark M
Zhu Yilun Allan A
Zhang Zhengyuan G
Liu Taiqi I
Chen Zhiqi C
Step 1: Introduction
1.1. Background Information
We are first year students from University of Michigan-Shanghai Jiao Tong University Joint Institute (UM-SJTU), which is a world-class teaching and research institute located in Minhang District, Shanghai, China for nurturing innovative engineers and leaders with global visions.
1.2. Course & Project Information
The course we are taking is VG100, Introduction to Engineering, which requires students to carry out designs of two projects in one semester. The course aims to cultivate students’ theoretical and practical skills, critical minds, and teamwork spirit.
The ﬁrst project in the 2016 fall semester is Warzone Tower Defense, which includes a paper guard Tower and a Bug (robotic car). Before the Game Day, there is a Bug Test to ensure the car meet the standard and is well-prepared for the game. On the Game Day, tower should detect the Bugs and kill them.
1.3. Game Rule
On the Gaming Day, there will be four paths around the Tower in the four directions. Three Bugs will move towards the Tower from three different paths randomly (the bug should go straight and stop at the horizontal white line in the middle of the path for 2~4 seconds) , and the Tower has to kill them by a laser on the top. The more Bugs killed, the faster, the better.
The race will be conducted three rounds and the best performance of the three rounds will be taken as the final score.
Touching the Bug (robotic car) \ Tower or helping it in anyway by any person while the Bug is running on the path is strictly prohibited.
1.4. Competition Regulations
Bug: Should have a vertical board, 15cm Width*10cm Height, in the front of the car.
Tower: 1) Use paper only and no more than three layers stacking of paper.
2) Place all electronic components on the top except certain sensors.
3) Have height of at least 60cm tall.
Motors, wheels, laser and photosensors applied must be the ones provided by TA and must not be replaced.
Step 2: Design and Performance
Tower: 1) Triangular prism main column with smaller prism inside to ensure stableness.
2) Hexagon platform with honeycomb structure which ensures weight capability.
3) Servo on the top to control the direction of the laser.
4) Distance sensors at the bottom to detect the Bugs.
Bug: 1) Two-layers to reduce the flat size.
2) Two grayscale sensors outer to detect horizontal white line in the middle of the path .
3) Two tracker sensors inner to track along the white line in order to go straight.
4) One photosensor to receive the laser light.
Our Bug performed perfectly in the Bug Test and our Tower killed one Bug on the Game Day.
Video of our Project:
Step 3: Materials List
The materials are shown in the picture.
Step 4: Making the Tower
4.1 Circuit Diagram for the Tower
4.2,3 Procedures of Building the Paper Tower
4.4 Final State View
Step 5: Making the Bug
5.1 Ciruit Diagram for bug
5.2 Component Fabrication
5.3,4 Procedures of assembling the bug
5.5 Final State View
Step 6: Troubleshooting
1) It’s hard to have two motors rotating at the same speed, so it’s necessary to use tracking sensors to ensure the Bug goes straight.
2) Do not use a caster instead of two back wheels since the Bug would go more smoothly with four wheels.
3) A Ni-H battery is highly recommended when the Bug runs too slowly.
1) Don’t use servo that can spin 360, use that of 270 or 180 instead, since it’s hard to control the direction of servo of 360 which is instructed by voltage, not by the degree.
2) The distance sensors may have conflict with the servos. It can be avoided by adding delay time in the programming code.