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