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