Our project was pretty hard. It started out by giving us 17 steps, which is more than all the other lego projects. This vending machine was really complex in its exterior design. We were given 3 days to build, program, and write about this project. We were missing a lot of pieces for our project, so we had to go to other boxes to find the pieces we needed. It took us one and a half days just to build it. After building it we had to go back and fix a bunch of mistakes we had made. We had to move an axle to the side so it didn't connect to another motor. We also had to put some pieces in the right places. Then we stayed after school for an extra 30 minutes to finish programming it. All and all we had fun, and we hope you think it looks pretty good too.
Below is a picture and the programming.
to yellow
talkto [motorb lampd soundc]
setleft
onfor 15
end
to blue
talkto [motora lampe soundc]
setleft
onfor 15
end
to coin
tto "lampf onfor 10
check.color
coin
end
to check.color
if light7 >= 50 [yellow]
if and light7 >= 43 light7 < 50 [blue]
end