Recent Changes - Search:

TEAMS Academy Wiki

THS 2011-2012

Explore TEAMS!
for visiting sophomores & juniors

Bodies & Bones

Interactive Robotics

Environmental BioTech

Bat Engineering Design

Assistive Technology & Electronics

Students (Forum)

Instructors

School Calendar

FY09 Planning

TEAMS Web Site

Wiki Info

edit SideBar

NoWiskNecessaryRobotSensorList

No Wisk Necessary's Sensor List

We figured that we should have this page up here because so have sooo many sensors (also why our robot is called "Sens-ational"), that we should have a page up here to list and organize which sensor is which and what it does. Also, so that it doesn't confuse us when we program.

Photoresistors

  • Used to determine the color of the ball
    • cr8->adc_center2
      • cr8_adc_enable(ADC_CENTER_2)
  • Used to detect light from the goal from the "back" of the create
    • cr8->adc_right1
      • cr8_adc_enable(ADC_RIGHT_1)
  • Left Front sensor (when egg trapper is on top of the robot) used to detect the light from the goal
    • cr8->adc_left1
      • cr8_adc_enable(ADC_LEFT_1)
  • Right Front sensor (when egg trapper is on top of the robot) used to detect the light from the goal
    • cr8->adc_left2
      • cr8_adc_enable(ADC_LEFT_2)

Distance

  • Used to use determine distance between create and ball
    • cr8->adc_center1
      • cr8_adc_enable(ADC_CENTER_1)

Toggle Switch

  • Used to switch between Blue/Yellow ball color
    • cr8_dig_get(DIG_LEFT_3)
      • cr8_dig_enable(DIG_LEFT_3,DIG_INPUT_PULLUP);

Bump Switch

  • Used to detect if wall is hit
    • cr8->adc_right2
      • cr8_adc_enable(ADC_RIGHT_2)

Servo Motor

  • Used to trap ball using our egg trapper
    • cr8_cricket_servo_set(Port,Angle);
      • Port (found on the servo motor controller board): 0
      • Angle: Whatever you want
        • 255: Trapped Position
        • 0: Completely off position (do NOT use because it will crash onto the breakout boards) use like 120<?<180

Cricket Display

  • Used as a debugging tool used to display certain values.
    • cr8_cricket_display(?,false,false);
    • Used for:
      • Distance
      • Photoresistor
      • Servo Motor Position

To make things easier to understand when programming, we can define a sensor as a simple word that we would use instead of cr8->...

#define togglecr8_dig_get(DIG_LEFT_3)
#define distancecr8->adc_center1
#define colorcr8->adc_center2
#define backsensorcr8->adc_right1
#define leftsensorcr8->adc_left1
#define rightsensorcr8->adc_left2
#define bumpswitchcr8->adc_right2

Back to our EggHunt Planning Page


Edit - History - Print - Recent Changes - Search
Page last modified on January 22, 2008, at 09:18 PM