converted lesson to tutorial
This commit is contained in:
parent
057a1d66dc
commit
efd6718ea3
@ -9,13 +9,19 @@ Learning activities for LEGO Mindstorms with MakeCode.
|
|||||||
"name": "Make it Move",
|
"name": "Make it Move",
|
||||||
"imageUrl":"/static/lessons/make-it-move.jpg",
|
"imageUrl":"/static/lessons/make-it-move.jpg",
|
||||||
"url": "/lessons/make-it-move",
|
"url": "/lessons/make-it-move",
|
||||||
"cardType": "lesson",
|
"cardType": "project",
|
||||||
|
"description": "Make a robot that moves itself without wheels."
|
||||||
|
}, {
|
||||||
|
"name": "Make it Move TUTORIAL",
|
||||||
|
"imageUrl":"/static/lessons/make-it-move.jpg",
|
||||||
|
"url": "/lessons/make-it-move-tutorial",
|
||||||
|
"cardType": "tutorial",
|
||||||
"description": "Make a robot that moves itself without wheels."
|
"description": "Make a robot that moves itself without wheels."
|
||||||
}, {
|
}, {
|
||||||
"name": "Line Detection",
|
"name": "Line Detection",
|
||||||
"imageUrl":"/static/lessons/line-detection.jpg",
|
"imageUrl":"/static/lessons/line-detection.jpg",
|
||||||
"url": "/lessons/line-detection",
|
"url": "/lessons/line-detection",
|
||||||
"cardType": "lesson",
|
"cardType": "project",
|
||||||
"description": "Make your robot drive itself by following lines."
|
"description": "Make your robot drive itself by following lines."
|
||||||
}]
|
}]
|
||||||
```
|
```
|
||||||
|
72
docs/lessons/make-it-move-tutorial.md
Normal file
72
docs/lessons/make-it-move-tutorial.md
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# Make It Move Without Wheels
|
||||||
|
|
||||||
|
## Objective @fullscreen
|
||||||
|
|
||||||
|
Design, build and program a robot that can move itself:
|
||||||
|
|
||||||
|
Your robot will:
|
||||||
|
|
||||||
|
* Go a distance of at least 30cm
|
||||||
|
* Use at least one motor
|
||||||
|
* Use NO wheels for locomotion
|
||||||
|
|
||||||
|
![LECG Mindstorms brick with parts](/static/lessons/make-it-move/locomotion-no-wheels.jpg)
|
||||||
|
|
||||||
|
|
||||||
|
## Construct @fullscreen
|
||||||
|
|
||||||
|
Build a Walker Bot!
|
||||||
|
|
||||||
|
The Walker Bot is one example of many possible solutions for making a robot move without wheels.
|
||||||
|
|
||||||
|
The Walker Bot combines an EV3 Frame and two legs that are mirror-images to create left and right legs.
|
||||||
|
|
||||||
|
The legs in the Walker Bot are designed to show how to change the rotary motion of a motor to reciprocating motion.
|
||||||
|
|
||||||
|
Start by reading [these](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/ev3-dep/building%20instructions/walker-bot-bi-180fc24f9298e1dd6201099627d43903.pdf) instructions first.
|
||||||
|
|
||||||
|
![LEGO Mindstorms Walker Bot](/static/lessons/make-it-move/walker-bot.jpg)
|
||||||
|
|
||||||
|
|
||||||
|
## Program 1 @fullscreen
|
||||||
|
|
||||||
|
In nature, creatures use many methods to get around. None of them, however, use wheels to move. Can we copy the method of animal locomotion with our robot? Using motors and legs, make the robot move without using any wheels.
|
||||||
|
|
||||||
|
Place a ``||motors:tank large B+C||`` block from ``||motors:Motors||`` under ``||loops:on start||``.
|
||||||
|
|
||||||
|
Change the speed to `-60%` (for motor B) and `+60%` (for motor C).
|
||||||
|
Change the rotations to `9`.
|
||||||
|
|
||||||
|
The ``||motors:tank large B+C||`` block will run for `9` rotations when the **center** button is pressed on the EV3 brick. The motors are set for the reverse direction because they are mounted upside down in this model.
|
||||||
|
|
||||||
|
```blocks
|
||||||
|
motors.largeBC.tank(-60, 60, 9, MoveUnit.Rotations)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Program 2 @fullscreen
|
||||||
|
|
||||||
|
Place a ``||motors:stop all motors||`` block under ``||motors:tank large B+C||``.
|
||||||
|
|
||||||
|
The ``||motors:tank large B+C||`` block will run for `9` rotations when the **center** button is pressed on the EV3 brick then stop.
|
||||||
|
|
||||||
|
```blocks
|
||||||
|
motors.largeBC.tank(-60, 60, 9, MoveUnit.Rotations)
|
||||||
|
motors.stopAllMotors()
|
||||||
|
```
|
||||||
|
|
||||||
|
## Program 3 @fullscreen
|
||||||
|
|
||||||
|
Place a ``||brick:show string||`` block under ``||motors:stop all motors||``.
|
||||||
|
Change the `"Hello World"` text to `"30 cm"`.
|
||||||
|
|
||||||
|
The ``||motors:tank large B+C||`` will run for `9` rotations when the **center** button is pressed on the EV3 brick then stop and display "30 cm" on the EV3 Brick’s screen.
|
||||||
|
|
||||||
|
```blocks
|
||||||
|
motors.largeBC.tank(-60, 60, 9, MoveUnit.Rotations)
|
||||||
|
motors.stopAllMotors()
|
||||||
|
brick.showString("30 cm", 1)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Program 4 @fullscreen
|
||||||
|
|
||||||
|
Click `|Download|` and follow the instructions to get your code onto your EV3 Brick. Press the **center** button on the EV3 Brick to run the program.
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"automation": "Automation, process control and robotic controllers\r\n\nProcess control, automation, robotics AI",
|
"automation": "Automation, process control and robotic controllers\n\nProcess control, automation, robotics AI",
|
||||||
"automation.Behavior": "A behavior",
|
"automation.Behavior": "A behavior",
|
||||||
"automation.Behavior.update": "Called on each behavior iteration even for suppresed behaviors",
|
"automation.Behavior.update": "Called on each behavior iteration even for suppresed behaviors",
|
||||||
"automation.Behavior.update|param|elapsed": "milli seconds since last call",
|
"automation.Behavior.update|param|elapsed": "milli seconds since last call",
|
||||||
|
Loading…
Reference in New Issue
Block a user