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