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