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