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