 |
Previous Years Teacher's Workshop Websites: 2002|2005 |
 |
|
|
| |
|
|
|
Course
Registration |
|
|
To
Register by phone:
260-481-6111 |
To Register Online:
OASIS |
|
Scooter
- Basic
Robot Assembly and Programming |
Build the Scooter. All of the Scooter instructions should be printed
(if possible) in color to clearly see the
pieces in the diagrams.
Scooter
Instructions - .pdf format
|
- Program the robot to drive forward
for 3 seconds and stop
- Subroutines
- RoboLab 2.0 (Subroutines):
To show Subroutines, you must Install Extras: From
Inventor Level 4 go to the Program menu and choose Install(Remove) Extras.
After
restarting the program, Subroutines are available from the Functions palette.
Subroutines are numbered, not named. To learn about subroutines, go to
the Help
menu, choose Show Help, and point the mouse at a Create Subroutine block
and a
Run Subroutine block (see blocks to the right).
- Program the robot to drive forward
24 inches and stop
- Program the robot to turn to the
right 90 degrees and stop
- Program the robot to drive forward
for 24 inches and then turn to the right 90 degrees
- Program the robot to drive in
a square, returning to the spot it started from
|
|
| |
Scooter
- Light
Sensor
|
- Add a light sensor to the Scooter
Install the light sensor so it is:
- Pointing towards the table
- Only
a few centimeters from the table
- Shielded from light from above
- Forward of the point between
the wheels or treads where the robot pivots
For the FIRST Place Scooter, complete the Light
Sensor Addition Instructions
- Use
the black View button to measure the value of the lines and the background
To make the View button work:
- Download
a program with a light sensor block set to the correct port (1, 2,
or 3) to the RCX (even
if the program doesnt do anything!).
- Push the green Run button
twice.
- Push the View button until
the arrow on the RCX screen points to the port to which your light sensor
is attached.
Note: If
you ever use a different light sensor, or the lighting in the room changes,
you will need to measure again.
- Program the robot until it reaches
a dark line, and have it stop on the line.
Use a value a few percentage points higher (lighter) than what you measured
for the line. For example, if the line measures 52, use <54 in your program.
- Program the robot to, in order:
- Drive forward
until it reaches a line
- Turn 90
degrees to the left
- Drive forward
for 24 inches and stop
- Program
the robot to follow the line on the table, including a curve in the
line.
Use the same rule of thumb for
measurements here: if the line measures 52 and the table 60, use <54
for the line and >58 for the table. You will need to repeat or
loop within this program.
Hint: It
is possible to follow in and out one edge of the line. Make the
robot turn on only one motor and turn the other off when it sees
dark, and
the
opposite when it sees light.
|
|
| |
Scooter
- Touch
Sensor
|
- Add a touch sensor to the robot
The touch sensor must have a lever or sliding piece to activate it. This piece
allows the touch sensor to be pushed from anywhere in front or even to the
side of the robot. For the FIRST Place Scooter, complete the Touch
Sensor Addition Instructions
- Program the robot to drive until
it bumps a wall or an obstacle, then have it stop
- Program the robot to drive until
it bumps a wall, then have it back up a short distance, turn around 180 degrees,
and drive forward again
- Program the
robot to follow the edge of a wall using a side wheel on the touch sensor
attachment
|
|
|
Site last updated: June 20, 2003 |