|Discovering Computer Science||Catapult »
Once you have completed all of the sessions below, your catapult should function similarly to the one in the video above.
In session 1, you will become familiar with how the servo and potentiometer can work together. First click on the text file to assist you with wiring the potentiometer and servo to the Arduino board. Then, watch the video to guide you through the code and see it in action. Once you are done, make sure to take some time to experiment!
In session 2, you will become familiar with how the servo and button can work together. First click on the text file to assist you with wiring the button and servo to the Arduino board. Then, watch the video to guide you through the code and see it in action!
In session 3, you will combine what you did in sessions 1,2 into one circuit, with additional servos. The first document in the text files will give a brief explanation of all the circuit elements required, and the image will show you how to connect everything. We highly encourage you to spend time researching these circuit elements!
In session 4, you will combine the codes in sessions 2,3 so that they both work simultaneously. Copy and paste the source file skeleton into the arduino work area, and make the changes that need to be made. Use the video as a benchmark to see how everything should work.
In session 5, you will build the catapult base. You have two options: Either use the material provided and simulate the video, or you can choose to build your own awesome structure.
In session 6, you will incorporate the servos to the catapult and edit the code accordingly. When playing with your catapult, make sure to let it rest once in a while in case the circuit is overheated.
|Page last modified on March 03, 2014, visited times|