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