Hi! My name is Natalie. I am building with Legos and programming them with the Logo software called MicroWorlds EX Robotics Edition. I built a carnival ride that can start, spin, change direction, and stop. First, I had to build the ride. It had two motors; one lifted the ride up and down, and the second made the ride spin. Once the ride was built, I connected the motor wires to a RCX Lego brick. The RCX can be programmed using a computer, but once the programming is finished it no longer needs to be connected to a computer to run the ride. I clicked a Download button which sends an infrared signal from the computer to the RCX brick. I wrote a procedure to start the ride and make it spin at different speeds, then I wrote a different procedure to "finish" the ride and lower it back down into the starting position. I then incorporated the "finish" procedure into the "ride" procedure so there is only one command. I downloaded the procedures onto the RCX and started the ride. You can take the ride away from the computer and run the ride by pressing the "run" button on the RCX brick. I had to change the programming to lift the ride up, because it kept getting lower because of gravity. I changed the first lift command from 30 to 35, and the ride works better now.
Below is a picture of the Lego project and the procedures.
to ride
athisway
aonfor 35
csetpower 2
confor 30
csetpower 3
confor 30
csetpower 2
crd
csetpower 2
confor 30
csetpower 3
confor 30
crd
csetpower 5
confor 30
crd
csetpower 7
confor 30
finish
end
to finish
athatway
aonfor 30
end