Sam's House

Hi, my name is Sam. I built a house out of legos. It took about half an hour to build. After I built it, I plugged it in to the computer. I programmed the garage to open automatically. I typed the procedures for the light sensor, so if an object gets in the way, the garage door opens. After it opens, the garage door waits for about 3 seconds and closes. When it closes the light goes on for a little bit. I was going to build an alarm, but some of the pieces were missing. It was really fun building this house.

Below you will see a picture of the house and the programming.

TO DOOR
TALKTO "MOTORE
SETRIGHT ONFOR 10
WAIT 20
SETLEFT ONFOR 9
TALKTO "LAMPA ONFOR 20
END

TO CAR
TALKTO "LAMPC ON
IF LIGHT8 < 70 [DOOR]
CAR
END

Vina Danks Home Page 11Student Projects