C8: Arduino Basic + Sensor Interfacing
  1. Name two output devices Arduino can control.
    Answer: LED and buzzer (also: DC fan/motor, servo, relay).

  2. What happens to the LED if the sensor value is below threshold?
    Answer: The LED turns OFF (in the example code the LED is set LOW when sensor < threshold).

  3. Why do we use a transistor when driving a motor?
    Answer: Because motors draw more current than an Arduino pin can supply; the transistor acts as a switch and safe driver.
  4. What does analogWrite(pin, value) do?
    Answer: Outputs a PWM signal on a PWM-capable pin; value 0–255 controls duty cycle (used to vary brightness or motor speed).
Fill in the form for S’O’A Fablab Orientation 2021.