Robolab 2.9 sample programs


















Use the extended help area to see example programs. Yes, unfortunately this is the only solution. Unfortunately, the patch requires some user interaction. The Easy Installer requires a lot less interaction and runs a lot faster.

The Easy Installer will ask you which one you want to use. How can I tell the patch was installed successfully? Try again. Hint: Put them where the program will let you keep using the touch sensor to control the motor. Add a beep so you will know that the cycle begins again. Use Jumps and Lands or Loops. Place the Zero Timer icon after the green light.

Extra challenge Pretend your motor is a generator. Program your generator to turn on when the light in the room goes off and turn off when the light comes back on. Split Task Requirements: You will need a robot car with two motors. Program your car to drive backward before the Task Split icon. Move one of your motors to Port C. Program the motors to do two different things at the same time. Extra challenge Think about something you could build besides a car that would do two things at the same time and that would need a split task.

What would you build and what two things would it do? Subroutine Requirements: You will need a robot car with two motors. The Create Subroutine icon is used to create the subroutine. The subroutine will not run until the Run Subroutine icon appears. Program the robot to run this subroutine two times.

You need to place the Run Subroutine icon at two different places in the program. You can add to or change the program. Make a subroutine that does not use music. Extra challenge You will need an RCX car with two motors, a light sensor, and a touch sensor. Write a program with two subroutines. Program your car to do one subroutine based on light sensor input and another subroutine based on the touch sensor input.

You will need to use a different modifier for each Run Subroutine command. Investigator 1 Requirements: You will need a robot with a light sensor. What do you think the program is telling the brick to do? Download the program to the brick. Run the program and collect data by walking around the room. Point the light sensor at areas with different light levels as you take data. Once you have sent the data to the computer, you can view it.

These data points should be in red. Run the program again and collect more data. Upload the data and then click on the bucket and make this set of data a color different from red. Extra challenge Go to the Journal Area and write about your results and what you could change in the next program.

Investigator 2 Requirements: You will need a robot with two motors, a light sensor, and black electrical tape. Run the program and collect data while your car drives on the floor and over the tape. Go to the Upload Area and upload your data. Run the same program on the floor without the tape.

Go to the Upload Area and upload the data into a second data set. Click on the bucket and make this set of data a color different from red. Each set of data should be a different color. Extra challenge Write a program that uses two sensors, such as the light and temperature sensors. Take data, upload it, and then view it. Investigator 3 Requirements: You will need an RCX with two motors, a light sensor, and a touch sensor. Write a program with the following steps that occur in the order listed below: Program the car to drive while obtaining light data.

Capture at least ten data points. Program the car to turn for a set amount of time without collecting data. Program the car to drive and capture data until the touch sensor is pressed.

You can connect the touch sensor directly to the car or hold it in your hand. Upload the data in to the red bin. Identical to the 1. Officially, the 1. This has the effect of slightly reduced range, but enables the 2. Update 11 July The "serial number greater than " thing seems to not be quite true - and in fact any reference to it seems to have been removed from the stackexchange thread linked above.

Leonardo Verde has been doing some research on RCX serial numbers, and is collecting data about the type and serial number of many RCX bricks in this form. He's also shared the results with me; here's a snapshot at the time of writing: Total Responses Number of 1. The infrared tower is used to send programs from a computer to the RCX, and data from the RCX back to the computer for logging. There are two models of infrared tower.

One connects via a DE-9 serial port and requires a 9-volt battery, while the other connects over USB, and can get enough power from that so as to not require a battery. The USB model is more convenient to use due to the lack of additional battery , and seems to be more readily available online. RCX-compatible motors come in 2 shapes, which I'll call "rectangular" and "cubic".

The cubic motors appear in more sets, and are in my opinion easier to work with. Left: rectangular motor c Cubic motors come in 2 hardware revisions. However, unlike the RCX brick, there are no visual cues on the outside of the motors to tell the hardware revisions apart. The primary difference between the 2 revisions is that the older motors use internal gears made of metal, whereas in the newer motors the internal gears are made of plastic. As a result, the older hardware revision is more durable.

It's also heavier, which is the best way to tell the difference between the two hardware revisions. You'll see the older revision described on Bricklink as "Older, heavier weight" and the newer revision described as "Newer, lighter weight". Clockwise from bottom left: Light sensor, rotation sensor, temperature sensor, touch sensor. Every first-party sensor except for the touch sensor comes with a short wire permenantly affixed to the sensor. Wire connector for RCX motors and sensors, seen from the top at left and bottom at right.

There also exists an infrared remote control , which can control the motor outputs of the RCX brick in real time without the need for programming. RCX remote. If you don't already have an RCX, you'll need to buy a brick and an infrared tower. You'll probably also want to buy some combination of motors and sensors, depending on your application.



0コメント

  • 1000 / 1000