mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
import api documentation
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Color Sorter
|
||||
=====================
|
||||
|
||||
This example program for the color sorter (:numref:`fig_color_sorter`) lets you scan colored Technic beams using the Color Sensor.
|
||||
|
||||
Scan the colored beams one by one and add them to the tray. A beep confirms that it has registered the color. When the tray is full or when you press the center button, the robot will start distributing the Technic bricks by color.
|
||||
|
||||
You can find building instructions for the color sorter on the `LEGO Education website <https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-model-core-set-color-sorter-c778563f88c986841453574495cb5ff1.pdf>`_.
|
||||
|
||||
.. _fig_color_sorter:
|
||||
|
||||
.. figure:: ../images/color_sorter.jpg
|
||||
:width: 90 %
|
||||
:alt: color_sorter
|
||||
:align: center
|
||||
|
||||
Color Sorter
|
||||
|
||||
.. literalinclude:: ../../../examples/ev3/color_sorter/main.py
|
||||
@@ -0,0 +1,19 @@
|
||||
Robot Arm H25
|
||||
=====================
|
||||
|
||||
This example program makes the robot (:numref:`fig_robot_arm`) move the black wheel hub stacks around forever. The robot arm will first initialize and then start moving the hubs around.
|
||||
|
||||
You can find building instructions for the robot on the `LEGO Education website <https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-model-core-set-robot-arm-h25-56cdb22c1e3a02f1770bda72862ce2bd.pdf>`_.
|
||||
|
||||
Tip: When building the robot, reverse the orientation of the EV3 Brick such that the microSD card is easily accessible.
|
||||
|
||||
.. _fig_robot_arm:
|
||||
|
||||
.. figure:: ../images/robot_arm.jpg
|
||||
:width: 90 %
|
||||
:alt: robot_arm
|
||||
:align: center
|
||||
|
||||
Robot Arm H25
|
||||
|
||||
.. literalinclude:: ../../../examples/ev3/robot_arm_h25/main.py
|
||||
@@ -0,0 +1,17 @@
|
||||
Robot Educator
|
||||
=====================
|
||||
|
||||
This example makes the Robot Educator (:numref:`fig_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>`_.
|
||||
|
||||
.. _fig_robot_educator:
|
||||
|
||||
.. figure:: ../images/ultrasonic_sensor_driving_base.jpg
|
||||
:width: 50 %
|
||||
:alt: robot_educator
|
||||
:align: center
|
||||
|
||||
Robot Educator with the Ultrasonic Sensor
|
||||
|
||||
.. literalinclude:: ../../../examples/ev3/robot_educator/main.py
|
||||
Reference in New Issue
Block a user