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