Scott and Sandon's Conveyer Belt

Hello my name is Sandon my partner Scott and I built a conveyer belt out of legos, the best toys in the world. We had a lot of trouble trying to work together. We have had a lot of fun making our project. The conveyer belt would carry different color legos under a color sensor that sensed the color and would stop on every lego that went under the sensor. The alarm would go off and the conveyer belt stopped. The alarm was an extra thing that we put on the conveyer belt. When the alarm went off, lights started flashing and the sound started to make an alarm noise.

Here are the procedures we used to program the conveyer belt:

to connbelt
tto "motora
setright
on
forever [checkcolor]
end

to checkcolor
if and light6 > 32 light6 < 37.1 [alarm wait 1 stopall]
end

to alarm
tto "soundb on
tto "lampc flash 3 1.5
wait 25 off
tto "soundb off
end

Here is a picture of our project.

Vina Danks Home Page Student Projects