Here are some things you should know.
- Robot software instruction:
Keep in mind that the program generated will be looping until terminal cases or powered off. This means the
robot will repeating the instructions you over and over. For example,
Turn on the LED for 1 second.
Turn off the LED for 1 second
You will see the LED blinking every second.
- Robot basic hardware instruction:
- The robot has 4 motor ports: motor C & D as the left wheel and the right
wheel , motor B as the right arm, and motor A as the head
motor in the center.
     If you would like to change the motor port setting, just use sentence like:
         There is a object_name at MA/MB/MC/MD.
         Connect a claw to port MA/MB/MC/MD.
- The robot has 4 sensor ports: by default,
s1 and s2 to two color sensors ,
s3 to one ultrasound sensor , and s4 to the gyro sensor.
     If you would like to change the sensor port setting, just use sentence like:
         There is a object_name at s1/s2/s3/s4.
         Connect a touch sensor to port s1/s2/s3/s4.
Make sure you mention the port changes at the beginning your English code.
- The built-in LED on the robot has 3 colors: green/red/orange, and 3 modes: stay
on/flash/pulse.
- Rules:
- A newline is treated as a new sentence.
- Sensor initializations should be put at the beginning.
Check here for
more info.
- Make sure to put image or sound files' name in quotation marks.
e.g, The robot shows a "sad"
image.
- Avoid using abbreviation. e.g, don't -> do not.
- Use numbers in arabic form. e.g, ten -> 10.
- Do not forget to put comma "," between the condition and action in a conditional sentence.
- Do not forget to put period "." at the end of each sentence.
- The LEGO program defaults to loop forever. If you want the program to run only once, please add
"end of program" by the end of the English code.
- Always check spelling. But in case you didn't, autocorrection will be performed! 😀😁
- Describe activities as clearly as you can. However, in case you miss anything, we will guess. 😉
- Sample specifications:See
how they work.
- The robot goes forward/backward for 1 inch/cm/second.
- The robot turns left/right (45 degrees).
- If the ultrasound sensor sees anything in 10 inches, the robot stops for 2 seconds.
- Read distance from the ultrasound sensor.
- If the color sensor sees black, the LED flashes in green.
For more, check out my lesson plan.👇
- Lesson Plan
Home page 🏠