Obstacle Detection Robot Lesson
Loading...
ROBOTICS LAB
JUNIOR SECONDARY • INTRODUCTION
01/12
ROBOTICS PROJECT

Can a Robot See an Obstacle?

Today, we're meeting the robot we'll build in our next practical class.

SENSE → THINK → ACT
OBJECT
DETECTED
ONE SIMPLE JOB

Our Robot Has One Simple Job

OBJECT
GETS CLOSE
01OBJECT GETS CLOSE↓
02ROBOT DETECTS IT↓
03LED TURNS ON
Object far away → LED OFF
Object close → LED ON

The robot detects objects that are close to it.

THE ROBOT RECIPE

Every Smart Robot Needs 3 Things

S
SENSE

Ultrasonic Sensor

The robot detects what is around it.

→
T
THINK

Arduino Uno

The robot processes information and makes decisions.

→
A
ACT

LED

The robot shows the result of the decision.

SENSE→THINK→ACT
MEET THE BRAIN

The Brain

Arduino Uno

Arduino is the brain of our robot.

Receives informationRuns our programMakes decisionsControls the output
ARDUINO UNO
INPUTDECISIONSOUTPUT
MEET THE SENSOR

The Sensor

OBJECT

Ultrasonic Sensor

Its job: Detect how far away an object is.

01SENDS SOUND
02SOUND BOUNCES BACK
03ARDUINO CALCULATES DISTANCE
OBJECT DETECTED8 cm
MEET THE OUTPUT

The Actuator

LED

Its job: Show us what the robot has decided.

Object close → LED ON
Object far → LED OFF
SWITCHING
THE TOOLKIT

What Else Will We Need?

AU

Arduino Uno

US

Ultrasonic Sensor

LED

LED

BB

Breadboard

JW

Jumper Wires

R

Resistor

BreadboardHelps us connect components without soldering.
Jumper WiresCarry electrical connections between components.
ResistorHelps protect the LED by limiting current.
A VISUAL PREVIEW

How Will Our Robot Work?

A preview of the project — no wiring needed here.

USULTRASONIC SENSOR
SENSES DISTANCE
AUARDUINO UNO
MAKES A DECISION
LEDLED
SHOWS THE RESULT
THE ROBOT'S LOGIC

Now Let's Teach the Robot to Think

01MEASURE DISTANCE
↓
02Is the object closer than 10 cm?
YES→LED ON
NO→LED OFF
This is called a CONDITION.IF something is true → do something.
THINK LIKE A ROBOT

Imagine You Are the Robot

If you were the robot, what would you do?

OBJECT FAR AWAYNOTHING HAPPENS
OBJECT VERY CLOSEWARNING!
SThe ultrasonic sensor detects.
TArduino decides.
ALED responds.
COMING NEXT

Our Next Robotics Challenge

1AUArduino Uno
2BBBreadboard
3USUltrasonic Sensor
4LEDLED
5RResistor
6JWJumper Wires
✓NEXT PRACTICAL: WE BUILD IT!Today was the preview. The hands-on challenge comes next.
THE BIG IDEA

Remember This!

SSENSEUltrasonic Sensor
↓
TTHINKArduino Uno
↓
AACTLED

That's how our obstacle detection robot works.

NEXT CLASS:WE BUILD THE ROBOT!
←PREVIOUS
NEXT→