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