⚙️ Events and Inputs – What Triggers Robot Actions?
Robots don’t just move randomly. They wait for something to happen—an event—before they do something. These “events” come from inputs like button presses or signals from sensors. This is how robots become interactive and responsive, just like living things!
🔄 What is an Event?
An event is something that happens and makes the robot take action. Think of it as a signal that tells the robot, “Hey, it’s time to do something!”
- 🖲️ Pressing a button
- 👋 A hand moving in front of a sensor
- ⏰ A timer reaching zero
- 🌞 A light turning on or off
📥 Inputs that Trigger Events
Robots use different kinds of inputs to sense what’s happening around them:
- Buttons: Start or stop an action
- Light Sensors: Detect brightness or darkness
- Sound Sensors: React to claps or voice
- Touch Sensors: Respond when pressed or tapped
- Timers: Wait a few seconds before doing something