Explain how programmable microcontrollers can be used as counters, as timers and for decision making to improve the functionality of products.
Give examples in your answer.
Model answer
A microcontroller is a small computer on one chip that forms the process block of a system. It reads signals from input sensors, follows the program stored in it, and switches outputs on and off. Because it is programmed, one chip can be used as a counter, a timer and a decision maker at the same time.
As a counter, the program adds 1 each time an input changes. In a car park, a sensor at the entrance sends a pulse for each car, the microcontroller adds it to the count, and when the count reaches the number of spaces it lights the 'FULL' sign. A cycle computer counts each turn of the wheel and multiplies by the wheel's circumference to show the distance travelled.
As a timer, the program waits for a set time before changing an output. A bathroom extractor fan keeps running for 10 minutes after the light is turned off, so steam is cleared, and an electric toothbrush beeps every 30 seconds to tell the user to move to the next part of their mouth.
For decision making, the program compares an input with a set value and chooses what to do. A room thermostat reads a thermistor and switches the heating on only when the temperature is below the setting, which saves energy. A digital thermometer lights a red LED and beeps if the reading is 38 °C or above.
These functions make products automatic, safer and more efficient. Because the behaviour is set by the program, a designer can change a time, a count or a set value, or add a new feature, without changing the circuit, so products can be customised and updated cheaply.
Explanation
A Level 3 answer explains all three uses, each with a specific product example, and links them to better functionality (automatic, safer, energy-saving, customisable). Without examples the maximum is four marks. A common pitfall is to describe what a microcontroller is without explaining how its program counts, times or makes decisions.