|
| 1 | +--- |
| 2 | +title: "LEGO® MINDSTORMS® EV3 Home Edition: Fan Robots: RoboDoz3r" |
| 3 | +maintainer: |
| 4 | + user: "TheVinhLuong102" |
| 5 | + name: "The Lương-Phạm Family" |
| 6 | +image: |
| 7 | + local: "robodoz3r.jpeg" |
| 8 | + credit: "LEGO" |
| 9 | +video: |
| 10 | + youtube: "_L64yXSTpos" |
| 11 | +description: |
| 12 | + "This robot bulldozer can be controlled using the IR Beacon or it can drive on it’s own, avoiding obstacles while clearing and pushing things with its bulldozer bucket." |
| 13 | +building_instructions: |
| 14 | + external: https://www.lego.com/cdn/product-assets/product.bi.additional.extra.pdf/31313_X_ROBODOZ3R.pdf |
| 15 | +--- |
| 16 | + |
| 17 | + |
| 18 | +This program requires LEGO® MINDSTORMS® EV3 MicroPython v2.0 downloadable at https://education.lego.com/en-us/support/mindstorms-ev3/python-for-ev3. |
| 19 | + |
| 20 | +Control RoboDoz3r as follows: |
| 21 | + |
| 22 | +- RoboDoz3r starts with the User-Controlled Mode. You can switch between the User-Controlled Mode and the Autonomous Mode by pressing the Touch Sensor. |
| 23 | + |
| 24 | +- User-Controlled Mode: |
| 25 | + |
| 26 | + - Drive RoboDoz3r around according to instructions from Channel 1 of the IR Remote Control: |
| 27 | + - 2 Top/Up Buttons together: drive forward |
| 28 | + - 2 Bottom/Down Buttons together: drive backward |
| 29 | + - Top-Left/Red-Up and Bottom-Right/Blue-Down together: turn left on the spot |
| 30 | + - Top-Right/Blue-Up and Bottom-Left/Red-Down together: turn right on the spot |
| 31 | + - Top-Left/Red-Up: turn left forward |
| 32 | + - Top-Right/Blue-Up: turn right forward |
| 33 | + - Bottom-Left/Red-Down: turn left backward |
| 34 | + - Bottom-Right/Blue-Down: turn right backward |
| 35 | + |
| 36 | + - Use Channel 4 of the IR Remote Control to make RoboDoz3r raise the shovel by pressing either Up button, or lower the shovel by pressing either Down button |
| 37 | + |
| 38 | +- Autonomous Mode: RoboDoz3r drives around on his own to clean up small things but avoids big obstacles by reversing and turning |
| 39 | + |
| 40 | +The code for the `RoboDoz3r` class is in `robodoz3r.py` as follows: |
| 41 | + |
| 42 | +{% include copy-code.html %} |
| 43 | +```python |
| 44 | +{% include_relative robodoz3r.py %} |
| 45 | +``` |
| 46 | + |
| 47 | +`RoboDoz3r` uses a remote-controlled tank driving utility whose code is in `rc_tank_util.py` as follows: |
| 48 | + |
| 49 | +{% include copy-code.html %} |
| 50 | +```python |
| 51 | +{% include_relative rc_tank_util.py %} |
| 52 | +``` |
| 53 | + |
| 54 | +The code for the main program is in `main.py` as follows: |
| 55 | + |
| 56 | +{% include copy-code.html %} |
| 57 | +```python |
| 58 | +{% include_relative main.py %} |
| 59 | +``` |
0 commit comments