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