Quick Summary & Key Points:
Hands-on Grade 8 IoT rubric (100 pts): Arduino Uno PWM `~` pins (`3,5,6,9,10,11`), 10-bit ADC (`0–1023`), HC-SR04 distance math (`duration * 0.034 / 2`), PIR motion & MQ-2 gas sensing, 220 Ω LED current limiting, and `millis()` multitasking.
Theory Snapshot: Arduino Uno PWM pins (`~`): `3, 5, 6, 9, 10, 11` (`0..255`). Analog inputs `A0–A5` return `0..1023`. HC-SR04 distance: `duration * 0.034 / 2`. Always wire a ~220 Ω resistor in series with LEDs.
2. Part I · 2
(18p)
Why must a resistor (typically 220 Ω – 330 Ω) be wired in series with an LED on an Arduino Uno 5V pin?
- A) To limit current via Ohm’s Law (I = V / R) so neither the LED nor the pin burns out
- B) To change the LED color from red to blue
- C) To convert digital signals into Wi-Fi
- D) It is optional because LEDs never draw excess current
Answer & Explanation: A) To limit current via Ohm’s Law (I = V / R) so neither the LED nor the pin burns out — Without a current-limiting resistor, excess current immediately damages the LED and Arduino output driver.