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