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