Laser Tank Siege School Project

by sunny deltoro in Circuits > Arduino

119 Views, 0 Favorites, 0 Comments

Laser Tank Siege School Project

20210808_195442.jpg

this is my second attempt with project if than that. this time i made a game where you used a laser tank to destroy somebodies castle and kill their king.

Step 1: First Itteration

FCSUM4ZKPCMFIQ2.png

My first iteration of the project if then that was rather poor as it was
essentially just a sensor that could detect whether the water level got too low.

Step 2: Second Itteration

F87NFY0KPCMFIRN.png
F8M2ZK8KPCMFJDM.jpg

The teachers told me that the project should include something that you
couldn't do with normal electronics. So in essence data should flow from the censors to the program and data should flow from the program to the circuit. In this case there wasn't a traditional censor instead the user would have to look if the servo is lined up with its target and feed that information back into the program. This is also the iteration where I came up with the idea for a sort of board game using tanks. which ended up with me making a war game of sorts using these tanks.

The biggest things I learned were:
how to operate a 3d printer how to make a circuit that doesn't burn down how to solder a circuit together and how to send date from processing into the Arduino program. As I had never done these things before. I had the biggest trouble with the 3D printer as when I measured the pieces that would have to fit inside I didn't count on the plastic shrinking over time and I have to file down and reprint a lot of the pieces because of it. I am also disappointed with how the Arduino and processing programs turned out, as I was only able to send a single char from processing over to the Arduino, which made me have to write some spaghetti code in order to bypass that limitation.either way the knowledge i have learned about electronics have been valuable to me as a designer as they give me ideas for new ways to implement game play mechanics using these principles.

Step 3: Third Itteration

itter 3.png

in the feedback that my teacher gave me was noted that my project was to complex and unclear. as such i have done two things to improve my project, first i switched out the toothpick i was using for targeting. before it was very unclear if you were actually on target when aiming and mostly relied on the user eyeballing it by looking through a poorly constructed sight.now with the laser it is a lot more clear when the users has scored a hit on a target. the second thing i did was to make a simpler game for my project as the previous one required to many manual actions and was hard to understand. the new game i came up with only requires the user to aim and fire. i have also written down a complete set of rules for how to play this game which i will show off further down the line.

Step 4: the Circuit

curcuuu.png

Step 4.5: the Circuit Built

20210808_200944.jpg
20210808_200831.jpg

Step 5: the ​processing Code + Arduino Code

https://drive.google.com/file/d/1ovCffaJist-HOOwKrqPFF5ku80yv8sjB/view?usp=sharing

Step 6: the Code Function

codede.png

Step 7: Demonstration of Project

project if then that tank demonstration

in this video you can see all the functions of the tank.

Step 8: the Rule Book

20210808_192244.jpg

https://drive.google.com/file/d/1dCMeFfNyoFwCoB7DOgB9yV7grL_dxFjK/view?usp=sharing