28.11.2012 Views

51-09795.pdf

51-09795.pdf

51-09795.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PAGE 36<br />

1<br />

2<br />

3<br />

4<br />

5<br />

ACTIVITY<br />

1<br />

SECTION 5<br />

Copymaster for use with 9795<br />

INTERMEDIATE AND ADVANCED<br />

IDEAS USING INVESTIGATOR<br />

PILOT AND INVENTOR<br />

The Automatic Lamp<br />

You are going to program a lamp to turn on at night and turn off in the<br />

morning. Using the Investigator software, you can track the light data,<br />

view the results, and write a description of what happened.<br />

Attach the light sensor to the house model so that the sensor can see the light<br />

in the room.Add a lamp inside or outside the house — where you think a light<br />

sensor-controlled lamp would be the most useful.<br />

Make sure the light sensor is attached to port 1 and the lamp is attached to<br />

port A.<br />

Load the ROBOLAB software. Select Investigator.<br />

Click on New Project to create a new project file with your own file name.<br />

Select Program Level 2. Program Level 2 (a) is a Pilot type of programming.<br />

Create this example program. (b)<br />

(a) (b)<br />

Using this level, you can set the RCX to capture or log data from two sensors<br />

and to program two outputs.The outputs stop after an event occurs.This<br />

program captures or logs the data from the light sensor and turns off the<br />

lamp when the light sensor sees a brighter light.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!