Section outline

    • ⚙️ 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
    • 🧠 Example: Smart Trash Bin Robot

      • Event: Someone waves hand in front of IR sensor
      • Input: IR sensor detects motion
      • Action: Lid opens automatically

      Without the event (waving hand), the robot just waits. That’s the power of event-driven behavior!

      🌍 Real-Life Examples of Events

      • 🚪 Automatic doors: Open when someone walks nearby (motion sensor)
      • 💡 Streetlights: Turn on when it gets dark (light sensor)
      • 🔔 School bell robot: Rings after a timer or when a button is pressed

      🎮 Try This!

      Imagine a robot that reacts to sound. What would be the event? What input would it use? What action will it take?

      • Draw or describe a robot that reacts to a specific event.
      • Example: A robot dog that barks when someone claps.

       

      💬 “Robots don't just move—they respond!”