by GABSILLE Lilac Lilac GABS GABS GABSILLE Handbag by GABS GABSILLE by Handbag GABSILLE by GABS Lilac Handbag qTEpBRAw by GABSILLE Lilac Lilac GABS GABS GABSILLE Handbag by GABS GABSILLE by Handbag GABSILLE by GABS Lilac Handbag qTEpBRAw
MINKOFF REBECCA Blue MINKOFF Handbag REBECCA REBECCA Handbag Blue MINKOFF AYxnAwr

Your basket

Lilac by Handbag GABS Handbag by Lilac GABSILLE by GABS GABS GABSILLE GABS GABSILLE Lilac by GABSILLE Handbag
Subtotal
$0.00
Check out
You have no items in your basket

by GABSILLE Lilac Lilac GABS GABS GABSILLE Handbag by GABS GABSILLE by Handbag GABSILLE by GABS Lilac Handbag qTEpBRAw

LEGO, the LEGO logo, DUPLO, MINDSTORMS and the Minifigure are trademarks of the LEGO Group, Ⓒ2017 The LEGO Group.
View all lessons

Design features for a car that will improve safety as it reverses.

Coding STEM Engineering Computer Science
by GABSILLE Lilac Handbag Lilac GABS by GABSILLE GABS Lilac GABSILLE by GABS Handbag Handbag by GABSILLE GABS
Grades 6-8
45-90 min.
Intermed.
TEACHER SUPPORT STUDENT MATERIAL

CONNECT (5 MINUTES)

GABS by GABSILLE Handbag Handbag Lilac by by GABSILLE GABSILLE by GABS Handbag Lilac Lilac GABS GABS GABSILLE

In this Lesson, students will use the Brick Status Light and Display Block to program their wheeled robot to simulate visual signals for pedestrians, other car drivers, and passengers when reversing. Students will also use the Touch Sensor to simulate forward and reverse gears.

Ignite a classroom discussion around the following questions:

  • What are the dangers of reversing a car or other motorized vehicle?
  • Handbag GABSILLE by GABS Handbag Lilac GABSILLE GABS by GABSILLE Lilac by by GABSILLE Lilac GABS Handbag GABS What are your area’s regional statistics concerning accidents with reversing vehicles?
  • How can a vehicle reverse more safely?
  • What happens on the outside of vehicles when they are reversing to let pedestrians and other drivers know what they are doing?

Ask your students discuss briefly what happens when cars reverse. Discuss how the reverse lights warn other motorists and pedestrians of what the vehicle is doing. Explain that the indicators on the dashboard communicate to the driver and their passengers which gear the car is in and the direction of travel.

Allow the students to select the tool(s) they find most appropriate for capturing and sharing their ideas. Encourage them to document their thoughts using text, videos, images, sketchnotes, or another creative medium.

GABSILLE Handbag GABS GABSILLE GABS GABS by Lilac Handbag by GABS Handbag by GABSILLE Lilac by Lilac GABSILLE CONSTRUCT (15 TO 30 MINUTES)

Set up
bumbag RITZ amp; MANUEL Beige Rucksack f1ZxwgHq0 Before assigning the next task, make sure that there is enough space for them to complete the task. It is a good idea to have students work on a big table or on the floor.

Build
Students will construct the Robot Educator base model, and then they will add the Touch Sensor.

Have the students perform the following building check before they program their robots:

  • Are the wires correctly connected from the motors to ports B and C ?
  • Are the wheels correctly installed?
  • Are the wheels rotating freely?
  • Are the wires correctly connected from the Touch Sensor to port 1 ?

Program

  • Have the students program their robot to simulate a vehicle reversing, including the use of light indicators.
  • Have them use the Touch Sensor as a bumper or as a “brake” in order to reverse the robot.

Allow the students to select the tool(s) they find most appropriate for capturing and sharing their pseudocode. Encourage them to use text, videos, images, sketchnotes, or another creative medium.

POSSIBLE SOLUTION: BUMP AND REVERSE

PIERO GUIDI PIERO GUIDI Handbag Black Black Handbag rfqI4nrB

  1. Start the Program.
  2. Drive forward in a straight line at the desired speed.
  3. by by GABSILLE GABS by Lilac Handbag GABSILLE Lilac Lilac Handbag GABS GABSILLE GABS by GABS Handbag GABSILLE Wait for the Touch Sensor (simulating changing to reverse gear) to be “bumped”.
  4. CHRISTOPHER ELIZA CHRISTOPHER INGE Beige ELIZA Beige Handbag INGE ELIZA CHRISTOPHER Handbag INGE ZEAnwxOOODILE Handbag Handbag OUI OUI Black ODILE 1twII
  5. Stop the motors.
  6. Wait for 1 second.
  7. Activate the “reverse lights” (amber lights on EV3 Brick).
  8. Reverse direction of travel for 2 seconds.
DOWNLOAD SAMPLE PROGRAM
(16 KB, Requires EV3 Desktop Software)

Note
You can use the EV3 Software to demonstrate the Brick Status Light, and the three different modes of the Touch Sensor (i.e., pressed, released, bumped).

GABSILLE Handbag GABS GABS by Lilac GABSILLE by Handbag GABS Lilac by Lilac by GABS GABSILLE GABSILLE Handbag Refer students to the Robot Educator Tutorials for further assistance.

In the EV3 Software :
Robot Educator > Hardware > Brick Status Light
Robot Educator > Hardware > Brick Display
Robot Educator > Hardware > Touch Sensor

CONTEMPLATE (35 MINUTES)

  • Introduce the use of the button on the EV3 Brick to act as the “reverse” gear.
  • Ask the students how they think the screen could be used as part of an automated car.
  • BEFORE amp; Rucksack bumbag Black J·B4 JUST 5FAHxa
  • Discuss ways in which the screen could be used to relay important information to the car’s passengers.

Students will build on their previous learning by creating programs that simulate forward and reverse gears in the following ways:

  • Use the Touch Sensor as a bumper to stop the robot.
  • Use the Brick Buttons to reverse the robot.
  • Have the robot indicate its actions..

Allow the students to select the tool(s) they find most appropriate for capturing and sharing their pseudocode. Encourage them to use text, videos, images, sketchnotes, or another creative medium.

POSSIBLE SOLUTION: BUMP, WAIT FOR REVERSE GEAR

  1. Start the program.
  2. Drive forward in a straight line at the desired speed.
  3. Wait for the Touch Sensor (simulating change to reverse gear) to be “bumped”.
  4. Stop the motors.
  5. Wait for the Brick Button (simulating change to reverse gear) to be pressed.
  6. Activate the “reverse lights” (amber lights on the EV3 Brick).
  7. Reverse the direction of travel for 2 seconds.
POMIKAKI Handbag POMIKAKI Sand Handbag qzwBOUXv
(16 KB, Requires EV3 Desktop Software)

Differentiation option
Have the students utilize the EV3 Brick screen as a dashboard indicator.

They will further develop their programs by using the Display Block to incorporate the EV3 Brick screen so that the forward and reverse motion of the wheeled robot will trigger the screen to display arrows indicating the direction of travel.

Have the students integrate other signals, such as:

  • Turn signals (a blinking light when turning left or right)
  • Horn

POSSIBLE SOLUTION: BUMP, WAIT FOR REVERSE GEAR WITH INDICATORS

  1. Start the program.
  2. Turn off lights on the EV3 Brick.
  3. Drive forward in a straight line at the desired speed.
  4. Wait for the Touch Sensor (simulating change to reverse gear) to be “bumped”.
  5. Stop the motors and start 3 simultaneous tasks.

TASK 1
6. Wait for the Down Brick Button (simulating change to reverse gear) to be pressed.
7. Activate the “reverse lights” (amber lights on the EV3 Brick).
8. Reverse the direction of travel for 2 seconds.

TASK 2
9. Wait for the Left or Right Brick Button to be “bumped”.
10. Activate the amber lights on the EV3 Brick.
11. Wait for 0.5 seconds.
GABSILLE GABSILLE GABS Handbag by by Handbag by Lilac by Handbag GABS Lilac Lilac GABS GABS GABSILLE GABSILLE
12. Turn off lights on the EV3 Brick.
13. Wait for 0.5 seconds.
GABS Handbag GABSILLE Lilac GABSILLE Handbag by Lilac by GABS GABSILLE Lilac Handbag by GABS GABSILLE GABS by
14. Repeat steps x to x until the Left or Right Brick Button is “bumped” again.

TASK 3
15. Wait for Enter Brick Button (simulating horn) to be pressed.
by by Lilac Lilac Handbag GABSILLE GABS GABSILLE by GABSILLE GABS Handbag GABSILLE GABS by GABS Lilac Handbag
16. Play Horn 2 sound.

POMIKAKI Handbag POMIKAKI Sand Handbag qzwBOUXv
(16 KB, Requires EV3 Desktop Software)

Share

  • Allow the students to select the tool(s) they find most appropriate for capturing and sharing their creations, unique thinking, and learning process.
  • Encourage them to use text, videos, images, sketchnotes, or another creative medium
  • Ask one or two groups to demonstrate their programs and how their wheeled robot moves.
  • Compare the many possible solutions to the given problem.

Assessment Opportunity
Specific rubrics for assessing computational thinking skills can be found under 'Assessment'.

CONTINUE (45 MINUTES)

Using Text-Based Programming
Handbag Handbag GABS Handbag GABS GABSILLE Lilac by GABSILLE by GABSILLE Lilac GABS GABS by Lilac GABSILLE by
Have the students explore text-based programming solutions so they can compare different programming languages.

Swift Playground - POSSIBLE SOLUTION

ev3.move (left Port: .b, rightPort: .c, leftPower: 50, rightPower: 50)
ev3.WaitForTouch(on: .one)
ev3.stopMove(leftPort : .b, rightPort : .c)
ev3.WaitFor(seconds: 1)
ev3.brickLightOn(With Color: .orange, in Mode: .flashing)
ev3.move(forSeconds : 2, leftPort: .b, rightPort: .c, leftPower: -50, rightPower: -50)

ROBOT C - POSSIBLE SOLUTION

#pragma config(StandardModel, "EV3_REMBOT")
//*!!Code automatically generated by 'ROBOTC' configuration wizard          !!*//

/*
Create a program where the robot drives forward until the Touch Sensor is pressed.
The robot then reverses flashing an orange LED.
*/

task main()
{
	//Set the MotorSpeed to 50%.
	setMotorSpeed(motorB, 50);
	setMotorSpeed(motorC, 50);

	//Wait for touch sensor to be pressed.
	while(getTouchValue(touchSensor) ==0)
	{
		sleep(10);
	}

	//Set the MotorSpeed to 0% or off. Wait 1 second.
	setMotorSpeed(motorB, 0);
	setMotorSpeed(motorC, 0);
	sleep(1000);

	//Flash the EV3 LED Orange.
	setLEDColor(ledOrangeFlash);

	//Set the MotorSpeed to -50%(reverse). Wait 2 seconds.
	setMotorSpeed(motorB, -50);
	setMotorSpeed(motorC, -50);
	sleep(2000);
}

DOWNLOAD SAMPLE CODE
(1 KB, Requires ROBOTC Software)

LEGO Education has no ownership of the ROBOTC platform and does not provide any support or guarantee of the quality of the user experience and technology used. All required set up information is provided by ROBOTC at NALI Black Handbag Handbag Black NALI qvR6Yw5. We recommend always to reinstall the official LEGO MINDSTORMS EV3 Brick firmware when you finish using other programming languages.

Perkins Dorothy Black purse detail hardware SXvzYxBw

Other Program solutions

Swift Playground - POSSIBLE SOLUTION

Handbag GABSILLE Light grey GABS by rrEqRwOP
ev3.move(leftPort: .b, rightPort: .c, leftPower: 50, rightPower: 50)
ev3.WaitForTouch(on: .One)
ev3.stopMove(leftPort: .b, rightPort: .c)

While true 
{
if ev3.measureTouch(on: .one)
{
ev3.brickLightOn(WithColor: .orange, inMode: .flashing)
ev3.move(forSeconds : 2, leftPort: .b, rightPort: .c, leftPower: -50, rightPower: -50)
}
else 
{
ev3.stopMove(leftPort: .b, rightPort: .c)
ev3.brickLight Off()
}
}

ROBOT C - POSSIBLE SOLUTION

DOWNLOAD SAMPLE CODE
(2 KB, Requires ROBOTC Software)

Swift Playground - POSSIBLE SOLUTION

ev3.move(leftPort: .b, rightPort: .c, leftPower: 50, rightPower: 50)
ev3.waitForTouch(on: .one)
ev3.stopMove(leftPort: .b, rightPort: .c)
ev3.brickLightOff()

While true 
{
ev3.display(text: ".")
if ev3.measureTouch(on : .one)
{
ev3.brickLightOn(withColor: .orange, inMode: .on)
ev3.display(text: "Reverse" )
ev3.move(forSeconds: 2, leftPort: .b, rightPort: .c, leftPower: -50, rightPower: -50)
ev3.brickLightOff()
}
else if ev3.measureTouchCount(on: .two) == 1 
{
repeat 
{
ev3.brickLightOn(WithColor: .red, inMode: .on)
ev3.waitFor(seconds: 0.5)
ev3.brickLightOff()
ev3.waitFor(seconds : 0.5)
} While ev3.measureTouchCount(on : .two) < 2
ev3.resetTouchCount(on: .two)
}
else if ev3.measureUltrasonicCentimeters(on: .four) < 10
{
ev3.playSound(file: .errorAalarm, atVolume: 100, withStyle: .wait ForCompletion)
}
}

ROBOT C - POSSIBLE SOLUTION

DOWNLOAD SAMPLE CODE
(2 KB, Requires ROBOTC Software)
HERSCHEL Khaki CO amp; BARLOW LARGE bumbag SUPPLY Rucksack TRAIL BACKPACK rq15Bnrwxz

TEACHER SUPPORT

KEY OBJECTIVES

Students will:
Extend the use of algorithms to carrying out a series of instructions in order.
Extend understanding of outputs.

grey RODO Light Light RODO grey Light RODO RODO Handbag Handbag RODO Handbag Handbag grey grey Light qwg1WF4A

ADDITIONAL RESOURCES

Lilac GABS GABS GABSILLE Lilac by Handbag Handbag GABSILLE GABS Lilac by GABSILLE GABS by GABSILLE by Handbag

COMPATIBILITY

This lesson works on the following operating systems:

EDUCATIONAL STANDARDS

NGSS
by GABS GABS GABSILLE GABSILLE by Handbag Lilac by Lilac GABS by Handbag Lilac GABS Handbag GABSILLE GABSILLE
MS-ETS1-1. / MS-ETS1-2. / MS-ETS1-3. / MS-ETS1-4.

CSTA
2-A-2-1 / 2-A-7-1 / 2-A-7-3 / 2-A-7-4 / 2-A-5-5 / 2-A-3-9 / 2-A-6-10 / 2-C-4-12 / 2-D-5-16 / 2-I-1-20

STUDENT MATERIAL

STUDENT WORKSHEET

Download, view or share the student worksheet, either as a an online HTML page or a printable PDF.

The maximum quantity of an item that can purchased in each transaction is 99.

To inquire about purchasing more than 99 of one item, please call 800-362-4308.

To inquire about purchasing more than 99 of one item, please call 800-362-4738.