|CS252 Course Wiki: Spring 2012 Sections 1 and 2||ArduinoInstructionalVideos »
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 build the catapult base.
In session 2, 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!
In session 3, 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 4, you will combine what you did in sessions 2,3 into one circuit, with an additional servo. 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.
In session 5, 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 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 June 27, 2013, visited times|