From Discovering Computer Science

Catapult: Catapult

Catapult



Final Catapult
Complete Functioning Catapult

Once you have completed all of the sessions below, your catapult should function similarly to the one in the video above.



Session 1-Potentiometer-Servo
VideosText FilesSource File
Potentiometer and ServoCircuit DiagramPotentiometer-Servo Code

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!



Session 2-Button-Servo
VideosText FilesSource File
Button and ServoCircuit DiagramButton-Servo Code

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!



Session 3-Combining Potentiometer-Servo and Button-Servo Circuits
VideosText FilesSource File
 Complete Circuit Diagram 
 Circuit Components 

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!



Session 4-Combining Potentiometer-Servo and Button-Servo Code
VideosText FilesSource File
Complete Circuit Code Skeleton

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.



Session 5-Platform Assembly
VideosText FilesSource File
Platform Assembly  

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.



Session 6-Incorporating Servos to the Catapult
VideosText FilesSource File
 Servo Placement 

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.

Retrieved from http://pages.cs.wisc.edu/~karu/DiscoveringCS/wiki/index.php?n=Catapult.Catapult
Page last modified on March 03, 2014, at 09:34 PM