|
Explore TEAMS!
|
Student /
Thinh's Practical ExamRobotics Practical Exam![]()
Within the fierce game of an egg hunt competition, a team must have a way to survive. I asked myself, "In a game, in order to win, what was needed to be accomplished?" The ball must get into the goal, and it must be quicker than the opponent. Therefore, soccer was the inspiration for this practical exam. My practical exam allows the robot to sense the color of the ball and kick it towards the goal, being more efficient in the process than moving all the way to the goal. By the use of photosensors, the robot looks for the goal and once in the correct direction, it moves extremely fast for half a second and then reels back. This will allow the egg process to be much quicker. The coding employed the use of the servo motor as well as the photosensors. There were functions that set which position the motor should be at. Then there was a very detailed and logical use of delays. I had to make sure the robot was kept in position long enough so that the ball did not run away when the arm moved up. There was the implementation of a defense technique as well of reverse movement. With regards to debugging, I realized that the servomotor cannot be reset in an infinite loop. It had to be done once. There had to be a way to keep the arm from breaking as well, therefore I implemented bump sensors. My entire code consists of many bite-sized funtions, making it incredibly easy to trasnfer. Also, the use of LEDs was also important to see when the robot was kicking and actually just moving around. Overall, the coding was a success and the robot could kick the ball. The momentum would cause the ball to roll to the goal. Click here for the Flow Chart Δ Click here for the code (main.c) file! Δ
|