
| Two motors that control the
drive wheels are connected to the B and C
ports. The Touch, Ultrasonic, and Light Sensors are plugged into
their
default positions. Touch Sensor: Port 1 Ultrasonic Sensor: Port 4 Light Sensor: Port 3 |

| OnFwd("ports", "pwr"); OnRev("ports", "pwr"); Off("ports"); OnFwdSync(“ports”, “pwr”, “turnpct”); RotateMotor(“ports”, “pwr”, “angle”); |
| Wait(4000);
(milliseconds) until (“condition”); repeat (“value”) { “body” } |
| Sub methodName() { “body” } task main() { “body” } |
| Process
and Tutorial: 1. Getting Started:
2. Take a test drive! Click “Joystick” Tool Set Motors to C Left and B Right Try the Arrows! (Make sure the robot does not drive off the table!) ![]() 3. First Robot Program: Out and Back ![]() 4. Compile and Download!
5. Second Robot Program: Simple Square with Synchronized Motors: ![]() 6. Rectangle Using Rotation Sensors ![]() 8. Zig Zag with Wait Block ![]() 9. Touch Stop Using Touch Sensor ![]() 10. Simple Line Follow with Light Sensor ![]() ![]() |