Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Objective
The objective of this assignment is to build and program a robot that follows
a line and goes around an object. Lastly the final task that the robot must
complete is to stop on green and play a song or a tone for 5 minutes.
2. Identify Constraint
a. One of the main constraint of the project was that we could only use
one programing language.
b. The programing language made it difficult to reproduce result day to
day
3. Establish User Requirements
The only function that the user will be essential for is placing the robot on the
black line and pressing play.
4. Establish Function
a. The robot must fallow the black line around the track
b. The robot must identify the red can and go around the object and find
the black line again.
c. The robot must stop on green
d. Once the robot has stop on green it should play a song or tone for 5
seconds
5. Design Specification
e. Brixcc Command Center
i. Used for codding and programing
f. Two 9v Motors
i. Powers the robots sensor and motors
g. One Light Sensor
i. Used to follow the black line through the object
h. One Ultrasonic Sensor
i. Used to maintain a distance around the red can
i. Touch Sensor
i. Main objective is to detect the Red Can and activate the part of
the program that avoids the obstacle.
6. Alternative
j. The alternative that our team had was to add a second light sensor to
detect when the robot was over the green square in which it had to
stop.
7. Testing Table
First test
Second Test
Third Test
Fourth test
Fifth Test
Sixth test
Seventh Test
Eighth test
Ninth Test
b. The second modification made to our design was to raise the bracket
with the light and ultrasonic sensor up an inch and a half because of
the added weight of the ultrasonic sensor was causing the light sensor
to hit the ground.
9. Modeling
Task main ()
Task line ()
Task detect_bump
Preprocessor
EYE SENSOR_3
LEFT OUT_C
RIGHT OUT_A
NEAR 19
TOO_DARK 20
TOO_BRIGHT 56
Mutex movemutex
a.