My robot

Demo videos

Title English code Demo video
LEGO X NLPr website walk through Demo video General website walk through How we translate English to robot simulation!
Upload and use custom map in the simulation
Basic Movement You can control a robot movement with sentences like
The robot goes/turns/moves left/right/forward/backward for certain distance/certain time.
The time unit accepted by the system are: millisecond, second, minute.
The distance unit accepted by the system are: millimeter, centimeter, meter, inch, feet.

Demo video example:
The robot goes forward 10cm.
Wait for 500ms.
The robot goes backward 10cm.
Wait for 500ms.
The robot goes left.
Wait for 500ms.
The robot turns right 15 degrees.
Program ends.
Or, simply use sentences like
The robot moves forward.
Check out the lesson for Basic Movement and Non-blocking v.s. blocking blocks for more examples!
Basic robot movement demo
Non-blocking v.s. blocking blocks: A blocking block will block and wait for operations to complete. For example, the sentences
The robot goes forward 10 cm.
The robot stop for 1 second.
blocks the process till the robot finish moving forward 10cm and then execute the next sentence.
On the other hand, a non-blocking block will not block the next block. For example, the sentences
The robot goes forward.
The robot stop for 1 second.
resulting the robot to move a little bit a time like in the demo video on the right.
Check out the lesson for more details.
  • Blocking block movement demo
  • Non-blocking block movement demo
  • Sensors & LED:
    Sensors
    LEGO EV3 robot has 4 sensor ports, and 4 types of sensors:
    • Color sensor can recognize colors. There are 8 colors: black, white, blue, green, yellow, red, and brown.
    • Ultrasound sensor can read distance.
    • Touch sensor can detect pressure.
    • Gyro sensor can detect rotations.
    Default sensor port assignment in the system:
    • S1: Color sensor
    • S2: Color sensor
    • S3: Ultrasonic sensor
    • S4: Gyro sensor
    If you would like to change the sensor assignment, you can use sentences like
    There is a color sensor at S1.
    Check out the lesson for more details.
    Sensors & LED:
    Color sensor guide
    Color sensor demo video example:
    The robot goes forward.
    If the robot sees red, the robot stops forever.
    The default line following function uses both color sensors at S1 and S2.
    Line following demo video example:
    The robot goes forward.
    Set the speed to 30%.
    The robot follows the black line.
    Or one can use this example code for a black line following robot:
    Set the speed to 30%.
    If the color sensor at S1 sees black and the color sensor at S2 sees black, the robot goes forward.
    Else if the color sensor at S1 does not see black and the color sensor at S2 sees black, the robot turns right 5 degrees.
    Else if the color sensor at S1 sees black and the color sensor at S2 does not see black, the robot turns left 5 degrees.
    Else, the robot stop.
  • Color sensor demo video
  • Line following demo video
  • Sensors & LED:
    Ultrasound sensor guide
    Ultrasound sensor demo video example:
    If the ultrasound sensor sees anything in 10inches, the robot stops forever.
    Else, the robot goes forward.
    Ultrasound sensor demo video
    Sensors & LED:
    Touch sensor guide
    The touch sensor is not assigned by default. Therefore, in order to use touch sensor, we need to assign it to a port using sentences like
    There is a touch sensor at S1.
    Touch sensor demo video example:
    There is a touch sensor at S1. If the robot touches anything, the robot stops forever.
    Else, the robot goes forward.
    Touch sensor demo video
    Sensors & LED:
    Gyro sensor guide
    Gyro sensor demo video example:
    If the gyro sensor turns left more than 15 degrees, the robot stops forever.
    Else, robot turns left for 1 degree.
    Gyro sensor demo video
    Sensors & LED:
    How to use the LED?
    The built-in LED on the LEGO EV3 robot has 3 colors: green/ red/ orange, and 3 modes: ON/ flash/pulse.
    Sentences like the following can be used to control the LED.
  • Solid ON: The LED turns on in red. OR, Set the LED color to green.
  • Flashing: The LED will be flashing in red.
  • Pulsing: The LED pulses in green.
  • OFF: Turn off the LED.
    LED demo video example:
    The robot turns on the LED in red.
    The LED turns off for 1 second.
    The LED flashes in orange for 1 second.
    Turn off the LED for 1 second.
    Then the LED pulses in green for 1 second.
    Turn off the LED.
    Program Ends.
    Note that, in the first sentence, the red will disappear really fast 'cause no time is given. You can use sentences like "Turn on the led for 1 second." to block a longer time period.
    Check out the lesson for more details.
  • LED demo video

    Previous events and conferences demo:











    Back to the home page 🏠