Top Banner
ROBOTICS COMPETITION 3
9

ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

Aug 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

ROBOTICS COMPETITION

3

Page 2: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

THE SMART CAR CHALLENGE

PRACTICE PROJECT 3Avoid collision with the Ultrasonic sensors

Page 3: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

SCENARIONavigate your smart car along the roads and intersections of a smart city using the

Ultrasonic sensors.

MISSION

In this Practice Scenario we will create code to allow your FlipRobot to

detect objects and avoid collision using ultrasonic sensors.

Part 1 of this project will focus on two smart cars moving towards each

other from opposite ends of the street and avoiding collision.

Part 2 of this project will focus on four smart cars moving towards each

other from different directions and avoiding collision.

LEARNING OUTCOMES

• Learn to use FlipCode to control DC

motors’ movements.

• Learn to use If/Do/Else logic in FlipCode.

• Learn to create and apply programming

functions.

• Learn to program Ultrasonic sensors for

distance recognition.

Page 4: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

WHAT YOU'LL NEED

DC MotorMotor block

UltrasoundSensor block

If and Then Logic block

To do something Functions block

EQUIPMENT FLIPCODE BLOCKS

NumberMath block

EqualsLogic block

• FlipRobot E310+

• Laptop

• Charging/Connection cable

• White Cardboard Sheets

• Black Electrician’s Tape

• Red Electrician’s Tape

Page 5: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

PART 1Ultrasonic Sensor (2 smart cars)

ONEFlipRobots travel forward.

TWOFlipRobots turn.

THREEFlipRobots continue forward

and then stop.

A B A B AB

Page 6: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

WORKFLOW SEQUENCE 1

Make FlipRobot A move forward and turn left to avoid crashing into

another car

Move forward Turn left

Does your vehicle sense an object ahead within 20cm?

NO YES

Make FlipRobot B move forward and turn right to avoid crashing into

another car

Move forward Turn right

Does your vehicle sense an object ahead within 20cm?

NO YES

Page 7: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

PART 2Ultrasonic Sensor (4 Smart Cars)

A C

A C

B D

B D

C

B D

A

Page 8: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

WORKFLOW SEQUENCE 2.1

Make FlipRobot A move forward and turn right to avoid crashing into

another car 

Move forward Turn right

Does your vehicle sense an object ahead within 20cm?

NO YES

Make FlipRobot B move forward and turn left to avoid crashing into

another car

Move forward Turn left

Does your vehicle sense an object ahead within 20cm?

NO YES

Page 9: ROBOTICS COMPETITION · ROBOTICS COMPETITION 3 THE SMART CAR CHALLENGE PRACTICE PROJECT 3 Avoid collision with the Ultrasonic sensors SCENARIO Navigate your smart car along the roads

WORKFLOW SEQUENCE 2.2

Make FlipRobot C move forward and turn left to avoid crashing into

another car 

Move forward Turn left

Does your vehicle sense an object ahead within 20cm?

NO YES

Make FlipRobot D move forward and turn right to avoid crashing into

another car

Move forward Turn right

Does your vehicle sense an object ahead within 20cm?

NO YES