🤖A Robot's Senses: One Sensor for Each Job
Each sensor has one job. Together they let the robot see, hear, feel, and measure the world around it.
📷Camera → SightSees shapes, colors, faces, and even reads a label or sign.
📡Ultrasonic → DistanceSends out sound pulses to measure how far away a wall is.
🎤Microphone → SoundPicks up sounds and voices so the robot can hear commands.
💡Light → LineSpots dark vs. light to follow a line painted on the floor.
🛑Bump → TouchA switch that clicks the instant the robot touches something.
🔁Sense → Input → the Robot Acts
A sensor reading is just data until the program turns it into an input and uses a rule to decide what to do.
📡 1. SENSE
The distance sensor measures the wall: it's 8 cm away.
🛑 3. ACT
Rule: if closer than 10 cm → too close → STOP!
🚗Sensors in Real Life: The Self-Parking Car
A self-parking car is covered in distance sensors. It senses each gap, turns the readings into inputs, and steers and stops all by itself.
🔑Key Terms
📡Sensor A part that detects something in the world — light, sound, distance, or touch — and reports it to the robot.
🔢Input Information that goes INTO the robot. A sensor turns the world into an input the program can use.
📏Ultrasonic (Distance) Sensor Sends out sound pulses and times the echo to measure how far away an object is.
💡Light Sensor Detects how bright or dark a surface is — perfect for telling a black line from a white floor.
🛑Touch / Bump Sensor A switch that flips the moment the robot physically touches or presses against something.
📷Camera (Computer Vision) Captures pictures so the robot can see shapes, colors, and read signs or faces.
⭐
Remember: a robot is only as smart as its senses — sensors turn the world into inputs, and the robot can only act on what it can sense!