What is a microcontroller, how is it interfaced, and how do flowcharts describe its program?
The microcontroller as a programmable integrated circuit, how sensors and output devices are interfaced to it, designing and analysing a control program as a flowchart, and why microcontrollers are now used so widely.
A focused answer to WJEC Eduqas GCSE Electronics on microcontrollers, covering the microcontroller as a programmable IC, interfacing sensors and outputs, designing and analysing a control program as a flowchart, and why microcontrollers are so widely used.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
WJEC Eduqas wants you to know the microcontroller as a programmable integrated circuit, how sensors and output devices are interfaced to it, how to design and analyse a control program as a flowchart, and why microcontrollers are now used so widely. This is the modern, software-based way to build a control system.
The microcontroller
A microcontroller replaces a collection of fixed logic gates, counters and timers with one chip that you program. Because the function lives in software, you change the behaviour by changing the program, not by rewiring. This flexibility, plus low cost and small size, is why microcontrollers dominate modern electronics. The same chip might run a washing machine, a toy or a thermostat, depending only on its program.
Interfacing sensors and outputs
The microcontroller's pins work at small logic-level voltages and currents, so the outside world must be interfaced to them. A sensor's analogue signal is conditioned (for example, a divider plus a Schmitt inverter) to give a clean input; a high-current output (a motor, lamp or relay) is driven through a transistor or MOSFET because a pin can only supply a few milliamps. This is the systems approach again: input interface, microcontroller (process), output driver.
Flowcharts
The flowchart is the language for the program. You read or draw it top to bottom: start, read the inputs, make decisions in diamonds (each with a "yes" and a "no" path), drive the outputs, then usually loop back to keep checking. Forgetting the loop is a common error, because most control programs must run continuously rather than once. Being able to both draw a flowchart from a description and follow one to say what it does are examined skills.
Why microcontrollers are used so widely
The advantages are decisive: fewer chips, lower cost, smaller boards, and easy upgrades. A microcontroller can also do things that are awkward with fixed logic, such as complex sequences, timing and arithmetic, all in software. This is why everyday products - from a microwave to a car's engine management - are built around microcontrollers rather than discrete logic, and why the topic ends Component 2 by linking electronics to programmable control.
Try this
Q1. State one advantage of a microcontroller over a circuit of fixed logic gates. [1 mark]
- Cue. Its behaviour can be changed by reprogramming (or: one chip replaces many gates, so it is smaller and cheaper).
Q2. State the flowchart shape used for a yes/no decision. [1 mark]
- Cue. A decision diamond (with two branches).
Exam-style practice questions
Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Eduqas style3 marksExplain what a microcontroller is and give two advantages of using one instead of fixed logic gates to build a control system.Show worked answer →
A Component 2 Explain question on microcontrollers. A microcontroller is a programmable integrated circuit (a small computer on a chip) with inputs and outputs, whose behaviour is set by a program rather than by fixed wiring (1 mark). Advantages (1 mark each, any two): the behaviour can be changed by reprogramming without rewiring; one chip can replace many logic gates, so the circuit is smaller and cheaper; it can carry out complex decisions, timing and counting in software; and it is easy to modify or upgrade. Markers reward the programmable-IC definition and two clear advantages. A common error is to describe it as a fixed logic chip.
Eduqas style4 marksDraw or describe a flowchart for a microcontroller that turns on a fan when a temperature sensor reads 'too hot', and turns it off otherwise, repeating continuously.Show worked answer →
A Component 2 flowchart question. A correct flowchart has: a start, then a process/input step to read the temperature sensor, then a decision diamond asking "too hot?" (2 marks for an input step and a decision diamond). If yes, a step to turn the fan on; if no, a step to turn the fan off; then a loop back to read the sensor so it repeats continuously (2 marks for the two output branches and the loop back). Markers reward the input, the decision with two branches, the outputs and the loop. A common error is to leave out the loop, so the program only runs once.
Related dot points
- The Schmitt inverter and its switching with hysteresis, used to debounce switches and to give a clean digital output from a slow or noisy analogue input, and comparing transistors, comparators and Schmitt inverters as interface circuits.
A focused answer to WJEC Eduqas GCSE Electronics on Schmitt triggers and interfacing, covering Schmitt inverter switching with hysteresis, debouncing switches and cleaning slow or noisy signals, and comparing transistors, comparators and Schmitt inverters as interfaces.
- The systems approach to electronics: the input (sensing), process and output sub-systems, the use of system block diagrams, common input sensors, processing units and output devices, and why transducer drivers are needed between a processing sub-system and an output device.
A focused answer to WJEC Eduqas GCSE Electronics on the systems approach, covering the input, process and output sub-systems, system block diagrams, common sensors, processing units, output devices and why a transducer driver is needed.
- The voltage comparator as an integrated-circuit switching circuit that compares an input voltage with a reference, the use of a potential divider to set the reference and threshold, and interface circuits (including a relay or transistor driver) to switch an output.
A focused answer to WJEC Eduqas GCSE Electronics on the voltage comparator and interfacing, covering how a comparator switches at a threshold set by a potential divider, and how a relay or transistor driver interfaces the output to a load.
- The npn bipolar transistor and the n-channel enhancement MOSFET used as switches: how a small input controls a larger output current, the meaning of saturation and cut-off, and the differences between the two devices.
A focused answer to WJEC Eduqas GCSE Electronics on transistor and MOSFET switching, covering how an npn transistor and an n-channel enhancement MOSFET act as switches, saturation and cut-off, and the differences between the two devices.
- BCD and decade counters, the seven-segment display with its decoder/driver to show decimal digits, the 4017 decade counter as a sequencer with one output high at a time, and resetting a counter early to make a custom count length.
A focused answer to WJEC Eduqas GCSE Electronics on decade counters and displays, covering BCD and decade counters, the seven-segment display and its decoder/driver, the 4017 sequencer, and resetting a counter to make a custom count length.
Sources & how we know this
- WJEC Eduqas GCSE Electronics specification (from 2017) — WJEC Eduqas (2017)