doc/examples: update text

This commit is contained in:
Laurens Valk
2019-02-25 18:24:22 +01:00
parent 113dbe46de
commit d5527f84e3
3 changed files with 15 additions and 11 deletions
+5 -3
View File
@@ -1,15 +1,17 @@
Color Sorter
=====================
This example program for the color sorter will wait for you to hold a colored brick over it's light sensor. After it has detected the color, add the brick to the tray. When the tray is full or when you press the center button (enter), the robot will start distributing the colored bricks in neatly sorted stacks.
This example program for the color sorter lets you scan colored Technic beams using the Color Sensor.
`Building instructions <https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-model-core-set-color-sorter-c778563f88c986841453574495cb5ff1.pdf>`_ are on the LEGO Education website.
Scan the colored beams one by one and add them to 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 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>`_.
.. figure:: ../images/color_sorter.jpg
:width: 90 %
:alt: overview
:align: center
EV3 Core Set Color Sorter
Color Sorter
.. literalinclude:: ../../../examples/ev3/color_sorter/main.py
+6 -3
View File
@@ -1,15 +1,18 @@
Robot Arm H25
=====================
The example program below is written for the core education Robot Arm H25. It moves the black hubs around forever. Start the program with the black hubs positioned as show in the picture. The robot arm will first initialise and then start moving the hubs around.
This example program makes the robot move the black wheel hub stacks around forever. Start the program with the black hubs positioned as show in the picture. The robot arm will first initialize and then start moving the hubs around.
Building instructions for the robot arm can be found `on the LEGO website <https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-model-core-set-robot-arm-h25-56cdb22c1e3a02f1770bda72862ce2bd.pdf>`_. Hint: turn the EV3 Intelligent Brick 180 degrees around when building. This way the micro SD card slot is accessible.
You can find building instructions 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.
.. figure:: ../images/robot_arm.jpg
:width: 90 %
:alt: overview
:align: center
Overview of the robot arm
Robot Arm H25
.. literalinclude:: ../../../examples/ev3/robot_arm_h25/main.py
+4 -5
View File
@@ -1,16 +1,15 @@
Ultrasonic Sensor Driving Base
Robot Educator
=====================
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.
This example makes the Robot Educator drive until it sees an obstacle. Then it backs up, turns around, 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 %
:width: 50 %
:alt: overview
:align: center
Educator Driving base with Ultrasonic Sensor
Robot Educator with the Ultrasonic Sensor
.. literalinclude:: ../../../examples/ev3/robot_educator/main.py