COMP1010 - Program a Robot

Note: Whilst every effort is made to keep the syllabus and assessment records correct, the precise details must be checked with the lecturer(s).
Code
COMP1010
Year
1
Prerequisites

None
Term
2
Taught By
Mark Handley
Dean Mohamedally
Aims
The primary objective of the course is for student to engage in problem-solving activities using programming as the tool. In this module, students will apply the programming they have learned in term 1, get experience with solving real non-trivial problems via hands-on engagement with a project.
Learning Outcomes
Using software to solve problems, including strategies for structuring code, dividing problems up into pieces that can be solved independently, then integrating the pieces into a whole to solve a large problem.

Week 1: The basics. Compile code, run code in simulator, upload code to the robot.

Week 2: Movement. Write code from scratch to cause the robot to drive in a straight line, a square and a circle.

Week 3: Motor Encoders. Extend code from week 2 to use the input from the motor encoders to adapt motor power.

Week 4: Sensors. Reading values frmo bump sensors and the multiple distance sensors.

Week 5: Line sensing. Reading values from line sensors on the under-side of the robot. Write calibration code.

Week 6: Line following. Write code to follow a line of tape on the floor.

Week 7: Wall avoidance. Write code to drive along following the left wall, while avoiding crashing into objects in front.

Week 8: Mapping + racetrack. Write code to drive around a racetrack between walls as fast as possible.

Week 9 & 10: Maze exploration. Write code to explore a maze and find the centre.

Module concludes with competition.

Method of Instruction:

Two, two-hour lab classes per week. Students will have access to the robots in class time, and access to a simulaotr to be able to work outside labs.

Assessment:

Continuous assessment. Each week there will be a specific task that must be achieved. Marks will also be awarded for performance in the competition.

To pass the course students must achieve an overall mark of 40%.

Resources: