2019-09-07 01:10:33 +02:00
|
|
|
# Robot 1 Lesson
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
## Step 1 - Build Your Driving Base Robot @unplugged
|
2019-09-07 01:10:33 +02:00
|
|
|
|
|
|
|
Build the robot driving base:
|
|
|
|
|
|
|
|
[![EV3 Driving Base](/static/lessons/common/ev3-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-driving-base-79bebfc16bd491186ea9c9069842155e.pdf)
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
If clicking on the image above doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
|
2019-09-07 01:10:33 +02:00
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
## Step 2 - Show an image @fullscreen
|
2019-09-07 01:10:33 +02:00
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
At first, it's nice to know that your program is running. Plug in a ``||brick:show mood||`` from the **BRICK** toolbox drawer
|
|
|
|
into the ``||loops:on start||`` block. Change the image to something else if you want!
|
2019-09-07 01:10:33 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
brick.showMood(moods.neutral)
|
|
|
|
```
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
## Step 3 - Try your code @fullscreen
|
2019-09-07 01:10:33 +02:00
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
Look at the simulator and check that your image is showing on the screen. When you are ready, press the **DOWNLOAD** button
|
2019-09-07 01:10:33 +02:00
|
|
|
and follow the instructions to transfer your code on the brick.
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
## Step 4 - Steer motors @fullscreen
|
2019-09-07 01:10:33 +02:00
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
Drag a ``||motors:steer motors||`` block from the **MOTORS** toolbox drawer and snap it in under ``||brick:show mood||``.
|
|
|
|
Click on the **(+)** symbol and make sure to tell your motors to turn **1** rotation.
|
2019-09-07 01:10:33 +02:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
brick.showMood(moods.neutral)
|
|
|
|
motors.largeBC.steer(0, 50, 1, MoveUnit.Rotations)
|
|
|
|
```
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
## Step 5 - Try your code @fullscreen
|
2019-09-07 01:10:33 +02:00
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
Whenever you make a code change, the simulator will restart so you can see what your latest change will do.
|
2019-09-07 01:10:33 +02:00
|
|
|
When you are ready, click **DOWNLOAD** and follow the instructions to transfer the code into your brick.
|
|
|
|
|
2019-09-10 01:59:12 +02:00
|
|
|
**Remember**: Take the driving base apart at the end of the session so that another group can build their robot too.
|