C9: Arduino / RPi Pico Advanced + Sensor Interfacing
  1. What is Conditional Logic?

    • Conditional logic means making decisions based on specific conditions.

    • It uses if-then rules:

      • If a condition is true → take an action.

      • If the condition is false → do something else or do nothing.

  2. Why is Logic Important in Automation?

    • Without logic, machines would just keep running blindly.

    • Logic lets machines respond to their surroundings.

    • Example:

      • A streetlight turns ON at night (if dark → turn on light).

      • A fan starts when temperature is high (if hot → start fan).

  3. How Logic Works in Microcontrollers

    • Inputs: Signals from sensors (light, motion, temperature).

    • Decision: The microcontroller checks the sensor values against set conditions.

    • Outputs: Turns ON/OFF devices like LEDs, buzzers, or motors.

  4. Examples of Real-Life Logic in Devices

    • Motion-activated lights (if motion detected → turn light on).
    • Washing machines (if water full → stop filling, start washing).
    • Automatic doors (if person detected → open door).
Fill in the form for S’O’A Fablab Orientation 2021.