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.🔌 Is a servo motor an input or an output for a microcontroller? (a) output (b) input
- 2.📶 A pin that reads a push button is set as … (a) a battery (b) an input (c) a resistor (d) an output
- 3.True or false: “the room temperature” is a digital signal. (a) True (b) False
- 4.📶 Digital or analog: how loud a sound is? (a) digital (b) analog
-
5.💡 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
Is the LED ON or OFF at the end? (a) OFF (b) ON - 6.True or false: “a button: pressed or not” is a digital signal. (a) True (b) False
- 7.📶 On a 5 V board, a pin set HIGH gives about … (a) 5 V (b) 0 V (c) 230 V (d) 50 V
- 8.📶 Digital or analog: a door: open or shut? (a) analog (b) digital
- 9.Which of these is an output? (a) a sound sensor (b) a motor (c) a turning knob (d) a keypad
- 10.📶 Digital or analog: HIGH or LOW only? (a) analog (b) digital
- 11.Which of these is an output? (a) a temperature sensor (b) a light sensor (c) a small display (d) a push button
- 12.🔌 Is a temperature sensor an input or an output for a microcontroller? (a) output (b) input
-
13.💡 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
Is the LED ON or OFF at the end? (a) ON (b) OFF -
14.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 HIGH
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
15.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 16.📶 Digital or analog: a button: pressed or not? (a) analog (b) digital
-
17.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 18.🔍 Which is the odd one out? (a) a sound sensor (b) a motor (c) a motion sensor (d) a keypad
- 19.🔍 Which is the odd one out? (a) a motion sensor (b) a servo motor (c) a motor (d) a water pump
- 20.🔍 Which is the odd one out? (a) a push button (b) a water pump (c) a temperature sensor (d) a turning knob
- 21.🔌 Is a push button an input or an output for a microcontroller? (a) output (b) input
- 22.🔍 Which is the odd one out? (a) a keypad (b) a servo motor (c) a push button (d) a light sensor
-
23.💡 An LED (with its resistor) is on pin 7. 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 - 24.🔍 Which is the odd one out? (a) a buzzer (b) a speaker (c) a keypad (d) a water pump
-
25.💡 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 7 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 26.Which of these is an input? (a) a motion sensor (b) a water pump (c) a speaker (d) a motor
- 27.📶 Digital or analog: many values in a range? (a) analog (b) digital
-
28.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
29.💡 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 7 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
30.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 31.📶 A pin set LOW gives about … (a) 1.5 V (b) 9 V (c) 0 V (d) 5 V
- 32.📶 How many states can a digital pin have? (a) ten (b) two (c) a thousand (d) one
-
33.💡 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
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 34.📶 Digital or analog: how bright a room is? (a) analog (b) digital
-
35.💡 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 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
36.💡 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
Is the LED ON or OFF at the end? (a) OFF (b) ON -
37.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
set pin 7 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
38.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
39.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 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 -
40.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON
Answer key
- output
- an input
- False
- analog
- OFF
- True
- 5 V
- digital
- a motor
- digital
- a small display
- input
- OFF
- ON
- OFF
- digital
- OFF
- a motor
- a motion sensor
- a water pump
- input
- a servo motor
- ON
- a keypad
- OFF
- a motion sensor
- analog
- OFF
- ON
- ON
- 0 V
- two
- ON
- analog
- OFF
- ON
- ON
- ON
- ON
- ON
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids