Eliza's Vending Machine

Hi, my name is Eliza. I built a Lego Vending Machine. When I finished, it turned out very good. It took a long time. My main problem was a lot of the time I didn't put the pieces in the right spot. The main problem was the motor. The problem was I didn't have the motor on the metal all the way. I found this out after I had biult it all. Then I had to take it all apart then re-biuld it. That was my problem. When the Vending Machine was finished it worked very well. It will shoot out a certain color of lego depending on the color of the coin put in the slot.

Below is a picture and the programming

to yellow
talkto [motora lampe soundc]
setleft
onfor 10
end

to blue
talkto [motorb lampf soundc]
setleft
onfor 10
end

to coin
waituntil [touch1]
tto "lampd onfor 10
check.color
coin
end

to check.color
if light8 >= 40 [yellow]
if and light8 >= 30 light8 < 40 [blue]
end

Vina Danks Home Page|| Student Projects