Alex's Elevator

This is a web page about a project I did in computer class. I had to build a Lego Elevator. When I was finished building it, I connected it to the computer and programmed it to go up and down with lights and sound. I had to figure out how long to turn it on for to make it exactly to the top. Then I had to figure out how to make it go to the bottom. It was 1 less than to make it go to the top because it is working less going with gravity instead of against it. I also programmed lights and sounds to go on when the elevator reched the top and when it reached the bottom. Below is a picture of the elevator and the programming I wrote.

to elevator
talkto "motorc setleft onfor 30
talkto [sounda lampb] setleft onfor 10
talkto "motorc setright onfor 29
talkto [sounda lampb] setright onfor 10
end

Vina Danks Home Page||Student Lego Projects