mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
17 lines
596 B
ReStructuredText
17 lines
596 B
ReStructuredText
Ultrasonic Sensor Driving Base
|
|
=====================
|
|
|
|
The program in this example makes the Ultrasonic Sensor Driving Base drive until it sees an obstacle. When it does it backs up, turns and starts driving again.
|
|
|
|
You can find building instructions 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: 90 %
|
|
:alt: overview
|
|
:align: center
|
|
|
|
Educator Driving base with Ultrasonic Sensor
|
|
|
|
|
|
.. literalinclude:: ../../../examples/ev3/robot_educator/main.py
|