Image | Sensor | Problem | Solution |
Bumper | Create a program in which your robot drives forward and stops when the Bumper Switch touches an inanimate object (wall, box, etc.). It waits two seconds, backs up and then turns 90 degrees and moves until the bumper touches another object. Your robot continues to bump and turn until you turn it off. Image of Bumper attached to robot: Click Here. Video of robot with Bumper Sensor. Mobile or You Tube. Helpful Hint: If you would like to save time by Copy/Paste code from one program you write to another...just click on the segment of the code you would like to copy, then select "Control" "C" - open the new program and "Control" "V". It will appear! |
Create a New program. Remember to add a "Bumper" in the Device Menu. The program you write is a simple If/Then Statement in a Forever Loop:
|
|
Limit Switch | Create a program in which a Limit Switch stops the arm from over lowering and hitting the steel frame. Image of Limit Switch attached to robot: Click Here |
Look at the image I provided to see how you should attach the Limit Switch - be careful, you don't want the arm to damage the metal tab on the switch.
|
|
Ultrasonic Range Finder | Program the Ultrasonic Range Finder so that the sensor will stop the robot 10 inches from an object. Your robot shall wait, back up and then turn (90 degrees) and moves in that direction until it senses another object. Your robot continues to 'sense' and turn until you turn it off. Image of Ultrasonic Range Finder attached to robot: Video of robot with Ultrasonic Range Finder: |
Open your "Bumper" Program. "Save As" 'Ultrasonic'. Go to the "Devices Menu" and set up a New Device: 3 Wire - Ultrasonic Range Finder. You only need to make one change to this code: RangeFinder_Distance In_ Inches < 10. Note: I accidentally chose "<" instead of ">" and I could not get the robot to stop and turn until it saw an object MORE than 10 inches. |
|
Vision | Position your robot in the center of the Competition Court. The boxes Purple, Green, Orange and Yellow cones will be positioned on the four sides. Program the Robot so that it will drive forward and when it senses one of the four colors, the robot will back up to the center of the course, turn 90 degrees and begin to move toward the next color. The robot needs to sense all four colors and return to center. Model Vision Sensor / (You Tube) Image of how I attached my Vision Sensor to my robot - You may attach it any way that works for you. |
The following video is very helpful in showing you how to get your Vision Sensor to recognize different colors. Click Here.
|
|
Line/Color | Program the Robot so that it will follow the White Elliptical Line and the Squigley Line in class. Model Line Sensor / (You Tube) Image of Line Sensor attached to robot: You need to make a choice as to how you attach your Line Sensors to your robot:
I recommend you view the instructors robot to see how the Line Sensors were attached. |
Line Sensor Hints: Tips on how to successfully program your robot with the Line Sensor. Click Here! |
|
"The Sensor Puzzle?" |
|||
Students need to program the following four sensors, Bumper, Vision, Ultrasonic and Line, to complete the same path as the robot in this video.... Good Luck! |
Hint: Copy & paste your successful programs into one program. Make sure all the programs that in effect turn the wheels are either based on Motors or Drivetrain...but not both. Now test each program individually - when they work correctly, merge them into one program. Note: You will need to reestablish the colors for the vision sensor. |