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

GarciaPraticalExam

Daniela Garcia: Pratical Exam(red cohort) Determining Color of Ball & Responding Accordingly

Purpose

The Purpose of my code is to first set the create to wait for a button to be pressed (play=blue advance=yellow) and drive to the center of the court. (After an egg has been found), the create will then determine if the ball is the color that is wanted and then react accordingly. If the ball is the correct color, the robot will rotate to determine the highest value and drive in that direction. Once the create senses that it is in front of the light, it will raise up the arm, and drive foward. When the push sensors have been pressed, the create will drive foward (away from goal)and will rotate 180 degrees so that it can continue to search for eggs.

Results

The first piece of code (buttons & initial movement) were successful and did what I expected them to do. There was some trouble with finding the highest light readings and if given more time, those bugs would be fixed.

Lessons Learned

  • I learned how servos work and how to program them
  • I learned how to test portions of the code instead of wrighting the entire code and trying to figure out where the mistakes were.
  • I learned how it is helpful to have other code written (light following) and modifing it so that it can help by serving as part of code for another task.
  • It is not necessary to have two pieces of code that are the same (only sensor values different). You can just set a variable that determines this (my_egg_color;)
Edit - History - Print - Recent Changes - Search
Page last modified on January 23, 2008, at 02:06 PM