lego_Investgator

=ROBOLAB Quick Guide - INVESTIGATOR= The following are examples of programming challenges for various levels of ROBOLAB.

Investigator 1
You will need an RCX with a light sensor. Attach the light sensor to Port 1. > b. Run the program and collect data by walking around the room. Point the light sensor at areas with different light levels as you take data. > c. Go to the Upload Area and send the collected data from the RCX to the computer. Once you have sent the data to the computer, you can view it. These data points should be in red. > b. Go to the Upload Area and press the '+' button to add another set of data. > c. Upload the data and then click on the bucket and make this set of data a color different from red. > d. Go to the View and Compare Area located in the Tool Box to see a plot of the two sets of data.
 * 1) Write a program exactly like the one above. What do you think the program is telling the RCX to do?
 * 2) a. Download the program to the RCX.
 * 1) a. Run the program again and collect more data.

Extra Challenge
Go to the Journal Area and write about your results and what you could change in the next program.


 * Return to** **Lego Home** **Page**

Investigator 2
You will need an RCX with two motors, a light sensor, and black electrical tape. Attach both motors to Port A. Attach the light sensor to Port 1. Use black electrical tape or other dark tape to make a line on the floor. The line should be darker than the floor. > b. Run the program and collect data while your car drives on the floor and over the tape. > c. Go to the Upload Area and upload your data. Name this set of data 'tape'. > b. Go to the Upload Area and upload the data into a second data set. Name this set of data 'floor'. Click on the bucket and make this set of data a color different from red. c. Go to the View and Compare Area located in the Tool Box to see a plot of the two sets of data. Each set of data should be a different color.
 * 1) Write a program exactly like the one above.
 * 2) a. Download the program to the RCX.
 * 1) a. Run the same program on the floor without the tape.

Extra Challenge
Write a program that uses two sensors, such as the light and temperature sensors. Take data, upload it, and then view it.


 * Return to** **Lego Home** **Page**

Investigator 3
You will need an RCX with two motors, a light sensor, and a touch sensor. > a. Program the car to drive while obtaining light data. Capture at least ten data points. > b. Program the car to turn for a set amount of time without collecting data. > c. Program the car to drive and capture data until the touch sensor is pressed. You can connect the touch sensor directly to the car or hold it in your hand.
 * 1) Write a program with the following steps that occur in the order listed below:
 * 1) Upload the data in to the red bin.
 * 2) Go to the Compute Area. Adjust the date as shown in the following example and make this data the purple bin.

Extra Challenge
Upload a second set of data. Save it to the blue bin. Then go to Compute Tools 2 in the Compute Area and compare the blue bin and the red bin.


 * Return to** **Lego Home** **Page**

]Investigator 4[A]
You will need an RCX car, a light sensor, and a touch sensor. Attach the light sensor to Port 1. Attach the touch sensor to Port 2. > b. Walk around the room as you collect data. > c. View your data after you upload it. > b. View your data after you upload it. Make this the red data set. > b. Make this the blue data set when you upload it. > c. Compare the red and blue data sets in the View and Compare area. > b. Program the car to drive for 5 seconds and then stop. > c. Program the car to take another 5 seconds of data. Use the Resume Logging Icon. Data collection should stop at this point.
 * 1) a. Write a program exactly like the one above.
 * 1) a. Write a program that drives the car while collecting light data. You should collect at least ten data points.
 * 1) a. Run the same program used in Step 2 in another area of the room.
 * 1) a. Program the car to take 5 seconds of data and then stop data collection.

Extra Challenge
Write a program that uses the touch and light sensors to collect data as your car drives.


 * Return to** **Lego Home** **Page**

]Investigator 4[B]
You will need an RCX car, two touch sensors, and black electrical tape. Attach the light sensor to Port 1. Use black electrical tape or other dark tape to make lines on the floor. The lines should be darker than the floor. > b. Walk around the room as you collect data. > c. View your data after you upload it. > b. Make two parallel lines on the floor with the tape. Measure how far apart they are. Try to figure out how fast your car is driving based on light data collected by the car as it drives. > c. Move one of the strips of tape. Try to figure out how far apart the strips of tape are based on light data collected from the car, using the speed of the car that you determined in the previous step.
 * 1) a. Write a program exactly like the one above.
 * 1) a. Rewrite the program so that your car drives while collecting data.
 * 1) Write a program that takes data, stops data collection when the touch sensor is pressed in, and then resumes data collection when the touch sensor is released. Use the Resume Logging icon.

Extra Challenge
You will need an RCX car, a light sensor, and two touch sensors for this exercise. Make a bumper car by attaching a touch sensor to each end of the car. Each time the car drives forward and hits a wall or other surface, the touch sensor should become depressed and the car should reverse direction. Your program should also collect light data for two minutes and then play a sound to signify the end of data collection.


 * Return to** **Lego Home** **Page**

© 2010 Center for Engineering Educational Outreach, Tufts University © 2010 The LEGO Group. All rights reserved.