mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
16 lines
568 B
ReStructuredText
16 lines
568 B
ReStructuredText
Robot Educator
|
|
=====================
|
|
|
|
This example makes the Robot Educator drive until it sees an obstacle. It then backs up, turns around, and starts driving again.
|
|
|
|
You can find building instructions for the Robot Educator on the `LEGO Education website <https://education.lego.com/en-us/support/mindstorms-ev3/building-instructions#robot>`_.
|
|
|
|
.. figure:: ../images/ultrasonic_sensor_driving_base.jpg
|
|
:width: 50 %
|
|
:alt: overview
|
|
:align: center
|
|
|
|
Robot Educator with the Ultrasonic Sensor
|
|
|
|
.. literalinclude:: ../../../examples/ev3/robot_educator/main.py
|