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