Sam's Swings

Hi, my name is Sam. I built swings out of legos. I had to program the swings to go up and down, and side to side. I used a program called Yellow Brick Logo. I typed the procedures into the computer and the infrared tower transfered the procedures into a little lego computer called the yellow rcx brick. The yellow brick made the swings work. The swings were fun to build and to play with. Below is a picture of the swings and the procedures.

to lift
repeat 2 [a, setpower 1 thisway onfor 50 a, thatway onfor 35]
end

to spin
c, setpower 8
thisway
onfor 100
thatway
onfor 50
setpower 4
onfor 25
setpower 2
onfor 25
end

to start
launch [spin]
lift
end

Vina Danks Home Page 11Student Projects