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.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.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.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. |
|
Sensors & LED:
Sensors |
LEGO EV3 robot has 4 sensor ports, and 4 types of sensors:
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.The default line following function uses both color sensors at S1 and S2. Line following demo video example: The robot goes forward.Or one can use this example code for a black line following robot: Set the speed to 30%. |
|
Sensors & LED:
Ultrasound sensor guide |
Ultrasound sensor demo video example:
If the ultrasound sensor sees anything in 10inches, the robot stops forever. |
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. |
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. |
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. LED demo video example: The robot turns on the LED in red.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: