|
Explore TEAMS!
|
Student /
Abou-FarahLab3Lab 3: Line FollowingPurposeThe purpose of this lab is to have the robot follow a black line using 2 of its sensors. Black electrical tape is taped on to a big white board which is called the TEAMS Track and must follow the line that is on it. It has sharp turns and curvesthat the robot must try to make and depending on what the sensors find will determine how the robot will react to which way it's suppose to go SummaryThe code that was made was based on the two front left and right sensors. If both sensed black, it would reverse and then make a random decision on if it should turn left or right. If the right sensor sensed black, the advance light would come on and the robot would turn clockwise. If the left sensor sensed black, the play light would go on and it would turn counter clockwise. If both the sensored sensed white, no lights would come on and the robot would just continue going straight. The cricket display was used to help see what values were being read by the robot to see what the robot was sensing. Everything was working fine. Attach:Cassandras_Lab3_Flowchart.png Δ Problems?The only problem that was encountered was just when the sensors both sensed black. It just got stcuk at that spot moving back and forth and left and right. That is when the random was added which helped the robot choose at chance if the robot should go left and right. Most of the time it decided to go right. Anopther problem was just based on how the code was written. Everything was written fine but a simple semi-colon is what didn't make the code work or get anything at all. What I Learned
|