Recent Changes - Search:

TEAMS Academy Wiki

Explore TEAMS!
for visiting sophomores & juniors

Robotics

EnvBioTech

Bat Design

Assistive Tech


Students


Instructors

TEAMS Forum

TEAMS Calendar

TEAMS Web Site

Wiki Info

edit Student.SideBar

Abou-FarahLab3

Lab 3: Line Following

Purpose

The 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

Summary

The 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.

Cassandra's Code Δ

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

  • Learned that the flow chart really is key to coding
  • Be careful with semi-colons!
  • use as many debugging tools as possible to help you
Edit - History - Print - Recent Changes - Search
Page last modified on January 02, 2008, at 08:38 AM