Every electronic system is analysed as three blocks: an input senses the world, a process decides, an output acts. Programmable components (microcontrollers) let one circuit do counting, timing and decision making, so products gain functionality and can be customised by changing code, not hardware.
| Input | Detects | Typical product |
|---|---|---|
| Light sensor (LDR) | Light level | Dusk-to-dawn lamp |
| Temperature sensor (thermistor) | Heat | Overheat cut-out, thermostat |
| Pressure sensor / switch | Force or weight | Car seat-belt warning, door mat alarm |
| Switches (push, toggle, reed, tilt) | User action or position | Doorbell, float switch in a tank |
Microcontrollers run a program: counters (people entering a venue), timers (traffic light sequence), decision making (IF temperature > 30C THEN fan on). In the exam, describe the decision in plain logic: name the condition, the threshold and the action.
Buzzers and speakers give sound (alarms, warnings); lamps and LEDs give light (status, illumination). Motors and actuators appear in specialist work, but for core questions know buzzer, speaker, lamp.
"A greenhouse fan turns on when it gets too hot. Describe the system." Model answer: Input - thermistor senses air temperature (1). Process - microcontroller compares the reading with a set threshold and switches the output when it is exceeded (1). Output - the fan runs, moving air to cool the greenhouse (1).
1. Name a suitable input sensor for an automatic porch light and explain your choice. (2)
Light sensor / LDR (1); it detects falling light levels at dusk so the lamp switches on only when dark (1).2. A counter display shows how many people are inside a shop. Explain how a microcontroller performs this function. (3)
A switch/sensor at the entrance sends a pulse per person (1); the microcontroller program increments a stored count (1); the count is shown on the output display (1).3. Give the three stages of a systems diagram for a burglar alarm triggered by a pressure mat. (3)
Input: pressure mat/switch detects weight (1). Process: microcontroller decision - if mat pressed, activate (1). Output: buzzer/speaker sounds (1).