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