Adding link instructions (#787)

This commit is contained in:
Richard Knoll 2018-09-20 14:05:59 -07:00 committed by Peli de Halleux
parent bfb258ce61
commit 245ff9d5b2
10 changed files with 198 additions and 120 deletions

View File

@ -12,7 +12,7 @@ Design cars that can park themselves safely without driver intervention.
* What would it take to ensure that autonomous cars are safe? * What would it take to ensure that autonomous cars are safe?
* What types of movements do autonomous cars need to perform? * What types of movements do autonomous cars need to perform?
## Construct ## Construct
### Build ### Build
@ -20,6 +20,12 @@ Build a @boardname@ vehicle that can park itself safely without driver intervent
[![EV3- Robot Driving Base](/static/coding/autonomous-parking/ev3-robot-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-driving-base-79bebfc16bd491186ea9c9069842155e.pdf) [![EV3- Robot Driving Base](/static/coding/autonomous-parking/ev3-robot-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-driving-base-79bebfc16bd491186ea9c9069842155e.pdf)
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
### Check ### Check
Before you program, check: Before you program, check:
@ -28,7 +34,7 @@ Before you program, check:
* Are the wheels correctly installed? * Are the wheels correctly installed?
* Are the wheels rotating freely? * Are the wheels rotating freely?
### Program ### Program
Write a program that will make the robot turn three times in various ways. Write a program that will make the robot turn three times in various ways.
@ -109,7 +115,7 @@ Click Download and follow the instructions to get your code onto your EV3 Brick.
### Differentiation ### Differentiation
Create a program that simulates displaying appropriate warning lights while parking. Create a program that simulates displaying appropriate warning lights while parking.
### ~hint ### ~hint
@ -164,8 +170,8 @@ Click Download and follow the instructions to get your code onto your EV3 Brick.
* Click on the JavaScript tab and experiment with changing the values in the code. * Click on the JavaScript tab and experiment with changing the values in the code.
* Add a custom image or sounds from the Brick or Music menus. * Add a custom image or sounds from the Brick or Music menus.
* Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program. * Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program.
* Include an image of your program with comments. * Include an image of your program with comments.
* Add a team photograph! * Add a team photograph!
Congratulations! What will you design next? Congratulations! What will you design next?

View File

@ -24,6 +24,12 @@ Build red and green “lights” for your robot to detect. You can use LEGO bric
[![IMAGE: Color Squares](/static/coding/line-detection/ev3-color-squares.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/color%20squares-0a88dfd98bb2e64b5b8151fc422bae36.pdf) [![IMAGE: Color Squares](/static/coding/line-detection/ev3-color-squares.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/color%20squares-0a88dfd98bb2e64b5b8151fc422bae36.pdf)
### ~hint
If clicking the above images doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
### Check ### Check
Before you program, check: Before you program, check:
@ -51,7 +57,7 @@ Consider using these blocks in your solution:
```block ```block
loops.forever(function () { loops.forever(function () {
}) })
motors.largeBC.steer(0, 50) motors.largeBC.steer(0, 50)
sensors.color3.pauseUntilColorDetected(ColorSensorColor.Red) sensors.color3.pauseUntilColorDetected(ColorSensorColor.Red)
@ -77,9 +83,9 @@ loops.forever(function () {
### Download and test ### Download and test
Click **Download** and follow the instructions to get your code onto your EV3 Brick. Click **Download** and follow the instructions to get your code onto your EV3 Brick.
Congratulations! Your robot can stop at a red light. Congratulations! Your robot can stop at a red light.
Now add to your program and have your robot to drive forward again when the light changes from red to green. Now add to your program and have your robot to drive forward again when the light changes from red to green.
@ -102,7 +108,7 @@ loops.forever(function () {
### Download and test ### Download and test
Click **Download** and follow the instructions to get your code onto your EV3 Brick. Click **Download** and follow the instructions to get your code onto your EV3 Brick.
## Contemplate ## Contemplate
@ -116,7 +122,7 @@ Draw a dark line with tape or marker for your robot to cross.
Consider using these blocks in your solution: Consider using these blocks in your solution:
```block ```block
motors.largeBC.steer(0, 50) motors.largeBC.steer(0, 50)
music.playSoundEffect(sounds.systemGeneralAlert) music.playSoundEffect(sounds.systemGeneralAlert)
``` ```
@ -143,7 +149,7 @@ loops.forever(function () {
#### Download and test #### Download and test
Click **Download** and follow the instructions to get your code onto your EV3 Brick. Click **Download** and follow the instructions to get your code onto your EV3 Brick.
#### Differentiation #### Differentiation
@ -157,7 +163,7 @@ Consider using these blocks in your solution:
```block ```block
while (true) { while (true) {
} }
motors.largeBC.steer(0, 50) motors.largeBC.steer(0, 50)
``` ```
@ -166,7 +172,7 @@ motors.largeBC.steer(0, 50)
```block ```block
if (true) { if (true) {
} else { } else {
} }
@ -215,7 +221,7 @@ forever(function () {
### Download and test ### Download and test
Click **Download** and follow the instructions to get your code onto your EV3 Brick. Click **Download** and follow the instructions to get your code onto your EV3 Brick.
### Share ### Share
@ -232,8 +238,8 @@ Personalize:
* Click on the **JavaScript** tab and experiment with changing the values in the code. * Click on the **JavaScript** tab and experiment with changing the values in the code.
* Add a custom image or sounds from the ``||brick:Brick||`` or ``||music:Music||`` menus. * Add a custom image or sounds from the ``||brick:Brick||`` or ``||music:Music||`` menus.
* Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program. * Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program.
* Include an image of your program with comments. * Include an image of your program with comments.
* Add a team photograph! * Add a team photograph!
Congratulations! What will you design next? Congratulations! What will you design next?

View File

@ -4,7 +4,7 @@ Design ways to avoid accidents between vehicles and objects in the road.
![Deer in the road](/static/coding/object-detection/road-deer.jpg) ![Deer in the road](/static/coding/object-detection/road-deer.jpg)
## Connect ## Connect
Think about: Think about:
@ -12,7 +12,7 @@ Think about:
* What do you need to be aware of to avoid collisions with obstacles? * What do you need to be aware of to avoid collisions with obstacles?
* What causes traffic jams in high density areas? * What causes traffic jams in high density areas?
## Construct ## Construct
### Build ### Build
@ -20,10 +20,16 @@ Build a @boardname@ vehicle that can avoid accidents between vehicles and object
[![EV3 Robot Driving Base](/static/coding/object-detection/ev3-robot-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-ultrasonic-sensor-driving-base-61ffdfa461aee2470b8ddbeab16e2070.pdf) [![EV3 Robot Driving Base](/static/coding/object-detection/ev3-robot-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-ultrasonic-sensor-driving-base-61ffdfa461aee2470b8ddbeab16e2070.pdf)
Build an obstacle for your robot to detect. You can build the **cuboid model** out of LEGO bricks or an obstacle of your choice. Build an obstacle for your robot to detect. You can build the **cuboid model** out of LEGO bricks or an obstacle of your choice.
[![Cubiod block](/static/coding/object-detection/ev3-cuboid.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-cuboid-dc93b2e60bed2981e76b3bac9ea04558.pdf) [![Cubiod block](/static/coding/object-detection/ev3-cuboid.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-cuboid-dc93b2e60bed2981e76b3bac9ea04558.pdf)
### ~hint
If clicking the above images doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
### Check ### Check
Before you program, check: Before you program, check:
@ -38,7 +44,7 @@ Before you program, check:
* Program your robot to detect any obstacles that might appear while the robot is moving forward (or backward). * Program your robot to detect any obstacles that might appear while the robot is moving forward (or backward).
* Make the robot stop when it detects an object that is less than 20 cm away. * Make the robot stop when it detects an object that is less than 20 cm away.
Before you program, think about: Before you program, think about:
* How will you program the robot to detect obstacles? * How will you program the robot to detect obstacles?
* How will you program the robot to stop at obstacles? * How will you program the robot to stop at obstacles?
* Which programming blocks will you use? * Which programming blocks will you use?
@ -59,7 +65,7 @@ motors.stopAll()
### ~ ### ~
### Sample Solution ### Sample Solution
1. Start the program when EV3 ``enter`` button is pressed. 1. Start the program when EV3 ``enter`` button is pressed.
2. Turn motors ``B`` and ``C`` on at speed ``50``. 2. Turn motors ``B`` and ``C`` on at speed ``50``.
@ -80,7 +86,7 @@ Click **Download** and follow the instructions to get your code onto your EV3 Br
## Contemplate ## Contemplate
On the road, when a driver sees and object, they slow their car down before coming to a full stop. On the road, when a driver sees and object, they slow their car down before coming to a full stop.
Program your EV3 Driving Base to do the same. Program your EV3 Driving Base to do the same.
@ -93,7 +99,7 @@ If the Ultrasonic Sensor:
### ~hint ### ~hint
Consider using this block in your solution: Consider using this block in your solution:
```block ```block
if (true) { if (true) {
} }
@ -101,7 +107,7 @@ if (true) {
### ~ ### ~
### Sample Solution ### Sample Solution
```blocks ```blocks
loops.forever(function () { loops.forever(function () {
@ -118,7 +124,7 @@ loops.forever(function () {
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. 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.
## Continue ## Continue
* Get together with other building teams and make a traffic jam by placing all of your robots in a line with varying amounts of space between them. * Get together with other building teams and make a traffic jam by placing all of your robots in a line with varying amounts of space between them.
* Have everyone start their robots at the same time and see what happens. * Have everyone start their robots at the same time and see what happens.
@ -130,8 +136,8 @@ Click **Download** and follow the instructions to get your code onto your EV3 Br
* Share what you think “efficiency in programming” means. * Share what you think “efficiency in programming” means.
* Explore the different solutions other programmers came up with. * Explore the different solutions other programmers came up with.
* Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program. * Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program.
* Include an image of your program with comments. * Include an image of your program with comments.
* Add a team photograph! * Add a team photograph!
Congratulations! What will you design next? Congratulations! What will you design next?

View File

@ -1,6 +1,6 @@
# Make A System That Communicates # Make A System That Communicates
## Connect ## Connect
### Design Brief ### Design Brief
@ -20,10 +20,10 @@ Think about:
* What kind of motorized mechanism can be used to control the movements of a robot? * What kind of motorized mechanism can be used to control the movements of a robot?
* How can the robot sense where it is along the path? * How can the robot sense where it is along the path?
* How can the robot communicate its position? * How can the robot communicate its position?
![EV3 + LEGO Bricks](/static/lessons/make-it-communicate/ev3-plus-parts.jpg) ![EV3 + LEGO Bricks](/static/lessons/make-it-communicate/ev3-plus-parts.jpg)
## Construct ## Construct
### Build ### Build
@ -37,13 +37,19 @@ More building ideas:
[![Color Sensor 2](/static/lessons/make-it-communicate/ev3-color-sensor2.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/color%20sensor_v2-e7fd54b6fa3cdfe36f414c1d2510f9cb.pdf) [![Color Sensor 2](/static/lessons/make-it-communicate/ev3-color-sensor2.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/color%20sensor_v2-e7fd54b6fa3cdfe36f414c1d2510f9cb.pdf)
### ~hint
Build a path for your robot to follow. You can use electrical tape on a floor, or marker on paper. You can use objects as milestones to indicate a path that can be detected by either the Touch Sensor, Color Sensor, or Ultrasonic Sensor. If clicking the above images doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### Program ### ~
Build a path for your robot to follow. You can use electrical tape on a floor, or marker on paper. You can use objects as milestones to indicate a path that can be detected by either the Touch Sensor, Color Sensor, or Ultrasonic Sensor.
### Program
Before you program, think about:
Before you program, think about:
* How will you program the robot to follow a path? * How will you program the robot to follow a path?
* How will you program the robot to communicate its position? * How will you program the robot to communicate its position?
* Which programming blocks will you use? * Which programming blocks will you use?
@ -54,7 +60,7 @@ Explore the different Motor and Sensor blocks in the programming menu.
### ~ ### ~
### Sample Solution ### Sample Solution
[![Video: EV3 Track Rover](/static/lessons/make-it-communicate/ev3-track-rover.jpg)](https://legoeducation.23video.com/v.ihtml/player.html?token=79c99735f906403a4dd7f2909935983d&source=embed&photo%5fid=19857954) [![Video: EV3 Track Rover](/static/lessons/make-it-communicate/ev3-track-rover.jpg)](https://legoeducation.23video.com/v.ihtml/player.html?token=79c99735f906403a4dd7f2909935983d&source=embed&photo%5fid=19857954)
@ -70,15 +76,21 @@ Two copies of the tracks are built: one for the right side and a mirror image fo
[![Track rover assembled](/static/lessons/make-it-communicate/ev3-track-rover2.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/ev3-dep/building%20instructions/track-rover-bi-6aadb1b053df0c58a0dea108b5ce0eea.pdf) [![Track rover assembled](/static/lessons/make-it-communicate/ev3-track-rover2.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/ev3-dep/building%20instructions/track-rover-bi-6aadb1b053df0c58a0dea108b5ce0eea.pdf)
### Sample Program Solution ### ~hint
This program works with the Track Rover. If you create a different robot, adjust the program to fit your solution. If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
Program summary: ### ~
### Sample Program Solution
This program works with the Track Rover. If you create a different robot, adjust the program to fit your solution.
Program summary:
* If the Color Sensor sees black, Motor B runs at -50 power and Motor C turns off. * If the Color Sensor sees black, Motor B runs at -50 power and Motor C turns off.
* If the Color Sensor sees white, Motor B turns off and Motor C runs at -50 power. * If the Color Sensor sees white, Motor B turns off and Motor C runs at -50 power.
* If the Color Sensor sees green, all motors stop and the green sound plays. * If the Color Sensor sees green, all motors stop and the green sound plays.
* The robot waits one second, then motors move forward. * The robot waits one second, then motors move forward.
* If the Color Sensor sees red, all motors stop, and the red sound plays. * If the Color Sensor sees red, all motors stop, and the red sound plays.
* The robot waits one second, then motors move forward. * The robot waits one second, then motors move forward.
@ -108,44 +120,44 @@ forever(function () {
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. 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.
## Contemplate ## Contemplate
### Test and Analyze ### Test and Analyze
As you work on your solution: As you work on your solution:
1. Describe one part of your design that worked especially well. 1. Describe one part of your design that worked especially well.
2. Describe one design change that you had to make. 2. Describe one design change that you had to make.
3. What will you try next? 3. What will you try next?
### Review and Revise ### Review and Revise
Take a moment to reflect on your robot solution. Take a moment to reflect on your robot solution.
Think about: Think about:
* Can the robots movement be more accurate? * Can the robots movement be more accurate?
* What are some ways that others have solved the problem? * What are some ways that others have solved the problem?
Describe two ways you could improve your robot. Describe two ways you could improve your robot.
## Continue ## Continue
### Personalize your project ### Personalize your project
* Add/remove LEGO elements to improve the way your robot moves. * Add/remove LEGO elements to improve the way your robot moves.
* Click on the JavaScript tab and experiment with changing the values in the code. * Click on the JavaScript tab and experiment with changing the values in the code.
* Add a custom image or sounds by adding blocks from the Brick or Music menus. * Add a custom image or sounds by adding blocks from the Brick or Music menus.
## Communicate ## Communicate
Here are some ideas: Here are some ideas:
* Create a video of your project, especially your final presentation and your robots performance. * Create a video of your project, especially your final presentation and your robots performance.
* Explain some important features of your software program. * Explain some important features of your software program.
* Produce a building guide for your model by taking a series of photographs as you deconstruct it. * Produce a building guide for your model by taking a series of photographs as you deconstruct it.
* Include an image of your program with comments. * Include an image of your program with comments.
* Add a team photograph! * Add a team photograph!
Congratulations! What will you design next? Congratulations! What will you design next?

View File

@ -32,18 +32,24 @@ If you want some building help you can follow these instructions.
Click [here](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/toddle%20bot-3dcad146d7f5deac4753f93e9dcc0739.pdf) Click [here](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/toddle%20bot-3dcad146d7f5deac4753f93e9dcc0739.pdf)
### ~hint
If clicking the above image or link doesn't open the instructions, right-click on the link and choose "Save link as..." to download the PDF.
### ~
### Program ### Program
Before you program, think about: Before you program, think about:
* How will you program the robot to move? * How will you program the robot to move?
* How will you program the robot to stop? * How will you program the robot to stop?
* How will you program the robot to display the distance moved? * How will you program the robot to display the distance moved?
Which programming blocks will you use: Which programming blocks will you use:
* To turn on and turn off the motor or motors? * To turn on and turn off the motor or motors?
* To display the distance moved? * To display the distance moved?
### Sample Code ### Sample Code
@ -51,7 +57,7 @@ Example code of a robot that moves without wheels using one motor:
* The robot moves with ``large motor D`` rotating at ``-100`` speed * The robot moves with ``large motor D`` rotating at ``-100`` speed
* The robot moves for ``30000`` milliseconds (30 seconds) * The robot moves for ``30000`` milliseconds (30 seconds)
* The robot stops * The robot stops
* The robot displays the text ``"30cm"`` * The robot displays the text ``"30cm"``
```blocks ```blocks
@ -67,7 +73,7 @@ brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
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. 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.
## Contemplate ## Contemplate
### Test and Analyze ### Test and Analyze

View File

@ -1,6 +1,6 @@
# Make It Smarter and Faster # Make It Smarter and Faster
## Connect ## Connect
### Design Brief ### Design Brief
@ -10,31 +10,31 @@ https://www.youtube.com/watch?v=y9-A_C_08KY
* What do the robots in the video need to be able to sense, plan, and act? * What do the robots in the video need to be able to sense, plan, and act?
* What senses do humans have and why are they important to us? * What senses do humans have and why are they important to us?
* How many human-like senses do you see the robots demonstrating? * How many human-like senses do you see the robots demonstrating?
### Brainstorm ### Brainstorm
Discuss different solutions to the design brief. Discuss different solutions to the design brief.
Think about: Think about:
* What kind of creature can it be? * What kind of creature can it be?
* How can it move? * How can it move?
* What does it need to be aware so that it stays safe, well fed and warm (or cool)? * What does it need to be aware so that it stays safe, well fed and warm (or cool)?
* Is it looking for food, a safe place to hide or a warm place to soak up the sun? * Is it looking for food, a safe place to hide or a warm place to soak up the sun?
* Will the creature need to move fast or slow? * Will the creature need to move fast or slow?
* Will it need to turn? * Will it need to turn?
* Will it need to go backward? * Will it need to go backward?
![EV3 and bricks](/static/lessons/make-it-smarter/bricks.png) ![EV3 and bricks](/static/lessons/make-it-smarter/bricks.png)
## Construct ## Construct
### Build ### Build
Think about a creatures movement for inspiration. Your mechanism can be attached or unattached to the EV3 Brick. You can start by tinkering with the LEGO elements in the picture add then build on. Think about a creatures movement for inspiration. Your mechanism can be attached or unattached to the EV3 Brick. You can start by tinkering with the LEGO elements in the picture add then build on.
More building ideas: More building ideas:
| | | | | | | | | | | |
|-|-|-|-|-| |-|-|-|-|-|
@ -53,9 +53,15 @@ More building ideas:
| [![EV3 Leg 1](/static/lessons/make-it-smarter/ev3-parts-leg-1.jpg)][Leg 1] | | [![EV3 Leg 2](/static/lessons/make-it-smarter/ev3-parts-leg-2.jpg)][Leg 2] | | [![EV3 Leg 3](/static/lessons/make-it-smarter/ev3-parts-leg-3.jpg)][Leg 3] | | [![EV3 Leg 1](/static/lessons/make-it-smarter/ev3-parts-leg-1.jpg)][Leg 1] | | [![EV3 Leg 2](/static/lessons/make-it-smarter/ev3-parts-leg-2.jpg)][Leg 2] | | [![EV3 Leg 3](/static/lessons/make-it-smarter/ev3-parts-leg-3.jpg)][Leg 3] |
| [Leg 1] | | [Leg 2] | | [Leg 3] | | [Leg 1] | | [Leg 2] | | [Leg 3] |
### Program ### ~hint
Before you program, think about: If clicking the above links doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
### Program
Before you program, think about:
* How will you program the robot to sense? * How will you program the robot to sense?
* How will you program the robot to respond? * How will you program the robot to respond?
@ -67,7 +73,7 @@ Before you program, think about:
### ~ ### ~
### Sample Solution ### Sample Solution
The Insect uses its Ultrasonic Sensor to sense danger and move away from a threat. The Insect uses its Ultrasonic Sensor to sense danger and move away from a threat.
@ -86,11 +92,17 @@ Building Instructions:
[![Insect robot](/static/lessons/make-it-smarter/insect-bot.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/insect-94b8a46f0dc5082c9d78ddb734626dc9.pdf) [![Insect robot](/static/lessons/make-it-smarter/insect-bot.jpg)](https://le-www-live-s.legocdn.com/sc/media/files/support/mindstorms%20ev3/building-instructions/design%20engineering%20projects/insect-94b8a46f0dc5082c9d78ddb734626dc9.pdf)
### Sample Solution ### ~hint
This program checks if the Ultrasonic Sensor senses something near. If clicking the above images or links doesn't open the instructions, right-click on the link and choose "Save link as..." to download the PDF.
The blocks inside the ``||loops:forever||`` loop have these actions: ### ~
### Sample Solution
This program checks if the Ultrasonic Sensor senses something near.
The blocks inside the ``||loops:forever||`` loop have these actions:
1. Turn on the ``green`` EV3 Brick Status Light. 1. Turn on the ``green`` EV3 Brick Status Light.
2. Wait for Ultrasonic Sensor to detect an object. 2. Wait for Ultrasonic Sensor to detect an object.
@ -119,44 +131,44 @@ forever(function () {
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. 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.
## Contemplate ## Contemplate
### Test and Analyze ### Test and Analyze
As you work on your solution: As you work on your solution:
1. Describe one part of your design that worked especially well. 1. Describe one part of your design that worked especially well.
2. Describe one design change that you had to make. 2. Describe one design change that you had to make.
3. What will you try next? 3. What will you try next?
### Review and Revise ### Review and Revise
Take a moment to reflect on your robot solution. Take a moment to reflect on your robot solution.
Think about: Think about:
* Does your robot move when the sensor is activated? * Does your robot move when the sensor is activated?
* If not, what will you change to make the robots ability to sense and respond more obvious? * If not, what will you change to make the robots ability to sense and respond more obvious?
* What other behaviors can you add to the robot to make it more realistic? * What other behaviors can you add to the robot to make it more realistic?
Describe two ways you could improve your robot. Describe two ways you could improve your robot.
## Continue ## Continue
Personalize your project: Personalize your project:
* Add/remove LEGO elements to improve the way your robot moves. * Add/remove LEGO elements to improve the way your robot moves.
* Click on the JavaScript tab and experiment with changing the values in the code. * Click on the JavaScript tab and experiment with changing the values in the code.
* Add a custom image or sounds by adding blocks from the Brick or Music menus. * Add a custom image or sounds by adding blocks from the Brick or Music menus.
* Does your robot resemble a creature? Maybe add more craft materials to your project. * Does your robot resemble a creature? Maybe add more craft materials to your project.
## Communicate ## Communicate
Here are some ideas: Here are some ideas:
* Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program. * Create a video of your project, especially your final presentation and your robots performance. Explain some important features of your software program.
* Produce a building guide for your model by taking a series of photographs as you deconstruct it. * Produce a building guide for your model by taking a series of photographs as you deconstruct it.
* Include an image of your program with comments. * Include an image of your program with comments.
* Add a team photograph! * Add a team photograph!
Congratulations! What will you design next? Congratulations! What will you design next?

View File

@ -20,6 +20,12 @@ 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) [![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)
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
## Make It Move ## Make It Move
**Code it:** Create a program that makes the Driving Base move forward and stop at the finish line, which is ``1`` meter away. **Code it:** Create a program that makes the Driving Base move forward and stop at the finish line, which is ``1`` meter away.
@ -68,6 +74,12 @@ Build and attach an Ultrasonic Sensor to your driving base:
[![EV3 Ultrasonic Sensor Driving Base Building Instructions Main Image](/static/lessons/common/ev3-ultrasonic-sensor-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-ultrasonic-sensor-driving-base-61ffdfa461aee2470b8ddbeab16e2070.pdf) [![EV3 Ultrasonic Sensor Driving Base Building Instructions Main Image](/static/lessons/common/ev3-ultrasonic-sensor-driving-base.jpg)](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-ultrasonic-sensor-driving-base-61ffdfa461aee2470b8ddbeab16e2070.pdf)
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
## Detect an Object ## Detect an Object
**Code it:** Create a program that moves the Driving Base and makes it stop ``6`` cm from the Cuboid. **Code it:** Create a program that moves the Driving Base and makes it stop ``6`` cm from the Cuboid.

View File

@ -3,7 +3,7 @@
## Objective ## Objective
Design ways to improve driving safety by helping to prevent drivers from falling asleep and causing an accident. Design ways to improve driving safety by helping to prevent drivers from falling asleep and causing an accident.
![Car driving on highway](/static/lessons/line-detection/car-driving.jpg) ![Car driving on highway](/static/lessons/line-detection/car-driving.jpg)
## Connect ## Connect
@ -20,6 +20,12 @@ Think about what you have learned, then document it. Describe the problem in you
Start by constructing this model. Read the building instructions [here](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-color-sensor-down-driving-base-d30ed30610c3d6647d56e17bc64cf6e2.pdf) first. Start by constructing this model. Read the building instructions [here](https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-color-sensor-down-driving-base-d30ed30610c3d6647d56e17bc64cf6e2.pdf) first.
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
![Color sensor on the driving base](/static/lessons/line-detection/color-sensor-driving.jpg) ![Color sensor on the driving base](/static/lessons/line-detection/color-sensor-driving.jpg)
## Program ## Program
@ -44,13 +50,13 @@ Create a program that drives the robot forward until the Color Sensor sees red.
Place a ``||motors:steer large B+C||`` block from ``||motors:Motors||`` under ``||loops:on start||``. Change the speed to 20%. Place a ``||motors:steer large B+C||`` block from ``||motors:Motors||`` under ``||loops:on start||``. Change the speed to 20%.
```blocks ```blocks
motors.largeBC.steer(0, 20) motors.largeBC.steer(0, 20)
``` ```
### Step 2 ### Step 2
Place a ``||loops:while||`` loop block under ``||motors:steer large B+C||``. Place a ``||loops:while||`` loop block under ``||motors:steer large B+C||``.
```blocks ```blocks
motors.largeBC.steer(0, 20) motors.largeBC.steer(0, 20)
@ -61,7 +67,7 @@ while (true) {
### Step 3 ### Step 3
Place a ``||sensors:pause until color detected||`` from ``||sensors:Sensors||`` inside the ``||loops:while||`` loop block. Change the color to red. Place a ``||sensors:pause until color detected||`` from ``||sensors:Sensors||`` inside the ``||loops:while||`` loop block. Change the color to red.
```blocks ```blocks
motors.largeBC.steer(0, 20) motors.largeBC.steer(0, 20)
while (true) { while (true) {
@ -99,7 +105,7 @@ Place a ``||loops:while||`` loop block under ``||loops:on start||``.
```blocks ```blocks
while (true) { while (true) {
} }
``` ```
@ -121,7 +127,7 @@ Place a ``||loops:while||`` loop block under the ``||motors:steer large B+C||``
while (true) { while (true) {
motors.largeBC.steer(0, 20) motors.largeBC.steer(0, 20)
while (true) { while (true) {
} }
} }
``` ```
@ -141,7 +147,7 @@ while (true) {
### Step 6 ### Step 6
Place a ``||motors:stop all motors||`` block under the ``||sensors:pause until color detected||`` block. Place a ``||motors:stop all motors||`` block under the ``||sensors:pause until color detected||`` block.
```blocks ```blocks
while (true) { while (true) {
@ -165,7 +171,7 @@ while (true) {
motors.stopAll() motors.stopAll()
} }
while (true) { while (true) {
} }
} }
``` ```
@ -177,7 +183,7 @@ Place a ``||sensors:pause unril color detected||`` block inside the new ``||loop
What do you think the program will do? What do you think the program will do?
**Hint:** The motors will run until the Color Sensor detects the color red, then it will stop all motors. The motors will also run and not stop when the color sensor detects the color green. **Hint:** The motors will run until the Color Sensor detects the color red, then it will stop all motors. The motors will also run and not stop when the color sensor detects the color green.
```blocks ```blocks
while (true) { while (true) {
motors.largeBC.steer(0, 20) motors.largeBC.steer(0, 20)
@ -212,7 +218,7 @@ sensors.color3.pauseUntilColorDetected(ColorSensorColor.Yellow)
music.playSoundEffect(sounds.systemGeneralAlert) music.playSoundEffect(sounds.systemGeneralAlert)
} }
while (true) { while (true) {
while (true) { while (true) {
sensors.color3.pauseUntilLightDetected(LightIntensityMode.Reflected, Light.Bright) sensors.color3.pauseUntilLightDetected(LightIntensityMode.Reflected, Light.Bright)
motors.largeB.run(10) motors.largeB.run(10)
motors.largeC.run(-10) motors.largeC.run(-10)
@ -235,7 +241,7 @@ You will need to constantly debug your program in order to make your robot trave
```blocks ```blocks
while (true) { while (true) {
while (true) { while (true) {
sensors.color3.pauseUntilLightDetected(LightIntensityMode.Reflected, Light.Bright) sensors.color3.pauseUntilLightDetected(LightIntensityMode.Reflected, Light.Bright)
motors.largeB.run(10) motors.largeB.run(10)
motors.largeC.run(-10) motors.largeC.run(-10)
@ -252,10 +258,10 @@ while (true) {
Consider the following questions: Consider the following questions:
1. What challenged you? 1. What challenged you?
2. Where there any surprises? 2. Where there any surprises?
3. How could you improve your program? 3. How could you improve your program?
4. Could your program have been more streamlined? 4. Could your program have been more streamlined?
5. Have you used too many blocks? 5. Have you used too many blocks?
6. Is there a more efficient way of building your program? 6. Is there a more efficient way of building your program?
7. How could your program be used in real-world scenarios? 7. How could your program be used in real-world scenarios?

View File

@ -1,4 +1,4 @@
# Make It Move Without Wheels # Make It Move Without Wheels
## Objective @unplugged ## Objective @unplugged
@ -24,7 +24,13 @@ The Walker Bot combines an EV3 Frame and two legs that are mirror-images to crea
The legs in the Walker Bot are designed to show how to change the rotary motion of a motor to reciprocating motion. 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. 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.
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
![@boardname@ Walker Bot](/static/lessons/make-it-move/walker-bot.jpg) ![@boardname@ Walker Bot](/static/lessons/make-it-move/walker-bot.jpg)

View File

@ -1,4 +1,4 @@
# Make It Move Without Wheels # Make It Move Without Wheels
## Objective ## Objective
@ -23,7 +23,13 @@ The Walker Bot combines an EV3 Frame and two legs that are mirror-images to crea
The legs in the Walker Bot are designed to show how to change the rotary motion of a motor to reciprocating motion. 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. 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.
### ~hint
If clicking the above image doesn't open the instructions, right-click on the image and choose "Save link as..." to download the PDF.
### ~
![@boardname@ Walker Bot](/static/lessons/make-it-move/walker-bot.jpg) ![@boardname@ Walker Bot](/static/lessons/make-it-move/walker-bot.jpg)