Electronics Worksheet: Input and Output Pins
Remember (Read in, drive out): Inputs: buttons, knobs, sensors. Outputs: LEDs, buzzers, motors, displays. Digital: HIGH (≈ 5 V) or LOW (0 V) only. Analog: any value in a range. Trace the program: only the LED’s own pin matters, and its last command decides ON or OFF.
NameDateTime takenScore ___ / 40
- 1.True or false: “how bright a room is” is an analog signal. (a) False (b) True
- 2.📶 On a 5 V board, a pin set HIGH gives about … (a) 0 V (b) 230 V (c) 5 V (d) 50 V
- 3.True or false: “a knob turned part way” is an analog signal. (a) True (b) False
- 4.🔍 Which is the odd one out? (a) a small display (b) a servo motor (c) a push button (d) an LED
-
5.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 6.🔍 Which is the odd one out? (a) a turning knob (b) a keypad (c) a motor (d) a light sensor
- 7.🔌 Is a push button an input or an output for a microcontroller? (a) output (b) input
- 8.📶 How many states can a digital pin have? (a) a thousand (b) ten (c) two (d) one
- 9.🔍 Which is the odd one out? (a) a keypad (b) a push button (c) an LED (d) a temperature sensor
- 10.📶 Digital or analog: how loud a sound is? (a) analog (b) digital
-
11.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
12.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
set pin 8 HIGH
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
13.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 14.Which of these is an input? (a) an LED (b) a servo motor (c) a speaker (d) a turning knob
-
15.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
16.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 8 HIGH
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 17.📶 A pin that reads a push button is set as … (a) an output (b) an input (c) a battery (d) a resistor
-
18.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 HIGH
set pin 8 LOW
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 19.🔌 Is a small display an input or an output for a microcontroller? (a) output (b) input
- 20.📶 A pin set LOW gives about … (a) 1.5 V (b) 5 V (c) 0 V (d) 9 V
- 21.🔌 Is a temperature sensor an input or an output for a microcontroller? (a) input (b) output
- 22.📶 Digital or analog: many values in a range? (a) digital (b) analog
-
23.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
24.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 25.📶 Digital or analog: a knob turned part way? (a) analog (b) digital
-
26.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 27.True or false: “the room temperature” is an analog signal. (a) True (b) False
-
28.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 29.Which of these is an output? (a) an LED (b) a temperature sensor (c) a turning knob (d) a keypad
-
30.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 31.🔍 Which is the odd one out? (a) a buzzer (b) a push button (c) a motion sensor (d) a sound sensor
-
32.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 33.🔍 Which is the odd one out? (a) a motion sensor (b) a turning knob (c) a temperature sensor (d) a water pump
- 34.📶 Digital or analog: how bright a room is? (a) analog (b) digital
- 35.🔍 Which is the odd one out? (a) a motion sensor (b) a buzzer (c) a small display (d) a speaker
- 36.Which of these is an input? (a) a speaker (b) a motor (c) a keypad (d) a servo motor
-
37.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 38.True or false: “how bright a room is” is a digital signal. (a) False (b) True
-
39.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 LOW
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 40.🔌 Is a water pump an input or an output for a microcontroller? (a) output (b) input
Answer key
- True
- 5 V
- True
- a push button
- ON
- a motor
- input
- two
- an LED
- analog
- OFF
- ON
- OFF
- a turning knob
- ON
- OFF
- an input
- OFF
- output
- 0 V
- input
- analog
- OFF
- ON
- analog
- OFF
- True
- OFF
- an LED
- OFF
- a buzzer
- OFF
- a water pump
- analog
- a motion sensor
- a keypad
- OFF
- False
- OFF
- output
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids