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