How do logic gates and microcontrollers add decision-making to products?
Digital logic and programmable control, including the common logic gates (NOT, AND, OR, NAND, NOR) and their truth tables, combining gates to make decisions, the role of microcontrollers and PICs in reading inputs and controlling outputs through a stored program, flowcharts to represent control, and the advantages of programmable control over fixed circuits.
A focused answer to the Edexcel 9DT0 content on digital logic and programmable control, covering logic gates and truth tables, combining gates, microcontrollers and PICs reading inputs and driving outputs, flowcharts, and why programmable control is flexible.
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 dot point is asking
Edexcel wants you to understand digital logic (the common gates and their truth tables and combining them to make decisions), the role of microcontrollers and PICs in reading inputs and driving outputs from a stored program, the use of flowcharts, and why programmable control is more flexible than fixed circuits.
The answer
Logic gates and truth tables
For two inputs A and B, the AND gate gives output 1 only for A = 1 and B = 1; the OR gate gives output 1 for any input 1; the NOT gate (one input) gives the opposite of its input.
Combining gates to make decisions
Microcontrollers and PICs
A microcontroller (a PIC is one common family) is a small programmable computer on a chip. It reads inputs (switches, sensors via its input pins), processes them according to a stored program, and controls outputs (LEDs, buzzers, motors, displays). One chip can replace a board full of fixed logic, timers and counters, and its behaviour is set entirely by the program.
Flowcharts and the advantages of programmable control
A flowchart represents the program as a sequence of steps, decisions (yes/no branches) and loops, planning the control before coding. Programmable control has major advantages over fixed circuits:
- Fewer components: one chip replaces many, so boards are smaller and cheaper.
- Reprogrammable: change behaviour by editing software, not rewiring, so the same hardware does different jobs and can be updated.
- Complex control: handles many inputs and outputs, timing, counting and decisions.
- Faster development: test and change in software.
The limitation is that it needs programming skill and the right tools.
Examples in context
A machine guard uses an AND gate so the motor runs only when two safety switches are both closed. A burglar alarm uses an OR gate so any triggered sensor sounds the siren. Modern products go further with microcontrollers: a washing machine reads buttons and sensors and runs different programs from software, a microwave counts time and controls the magnetron and turntable, and a games controller reads many inputs at once. Translating a requirement into the correct logic, and explaining why a reprogrammable microcontroller beats fixed circuits for flexible products, are exactly what Edexcel rewards in this topic.
Try this
Q1. State the output of an AND gate when its two inputs are 1 and 0. [1 mark]
- Cue. 0 (an AND gate outputs 1 only when all inputs are 1).
Q2. Give two advantages of a microcontroller over fixed logic circuits. [2 marks]
- Cue. One chip replaces many components (smaller, cheaper), and behaviour is changed by reprogramming rather than rewiring (flexible and updatable).
Q3. How many rows does a truth table for three binary inputs have, and why? [2 marks]
- Cue. rows, because each of the three inputs can be 0 or 1, giving combinations.
Exam-style practice questions
Practice questions written in the style of Pearson Edexcel exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Edexcel 20204 marksA machine guard must allow a motor to run only when two separate safety switches are both closed. Name the logic gate required and give its truth table.Show worked answer →
Award marks for naming the gate and for a correct truth table.
The motor should run only when both inputs are on, so an AND gate is required: its output is logic 1 only when both inputs are logic 1.
Truth table (inputs A and B, output Q): A = 0, B = 0 gives Q = 0; A = 0, B = 1 gives Q = 0; A = 1, B = 0 gives Q = 0; A = 1, B = 1 gives Q = 1.
Markers reward identifying AND (because both must be true) and a correct four-row truth table showing output high only for both inputs high.
Edexcel 20226 marksExplain the advantages of using a microcontroller (PIC) instead of fixed logic and timer circuits in a product, using an example.Show worked answer →
Extended-response item marked on levels (correct understanding of a microcontroller and justified advantages with an example).
A microcontroller (PIC) is a programmable chip that reads inputs, processes them according to a stored program and controls outputs. Its advantages over fixed circuits are: one chip can replace many discrete components (fewer parts, smaller, cheaper boards); behaviour is changed by reprogramming rather than rewiring, so the same hardware can do different jobs and be updated; it can handle multiple inputs and outputs and complex decisions, timing and counting; and development is faster.
Example: a washing machine controller reads buttons and sensors and runs different wash programs from software; changing or adding a program needs only new code, not a redesigned circuit.
A strong answer explains read-process-output, gives clear advantages (fewer parts, reprogrammable, complex control) and ties them to a real product, while noting the limitation that programming skill is needed.
Related dot points
- The systems approach to electronics using input, process and output blocks, the function of common components (switches and sensors such as LDRs and thermistors, fixed and variable resistors, capacitors, diodes and LEDs, transistors as switches, and relays), Ohm's law and basic circuit calculations, and how components are combined to make a working product.
A focused answer to the Edexcel 9DT0 content on electronic systems, covering the input-process-output model, sensors and switches, resistors, capacitors, diodes, LEDs, transistors and relays, Ohm's law and basic circuit calculations, and combining components into a product.
- Mechanical devices that transmit and convert motion, including the four types of motion (linear, rotary, reciprocating, oscillating), levers and the three classes of lever, linkages that change direction or magnitude of movement, cams and followers that convert rotary to reciprocating motion, and how mechanisms are selected to produce a required movement in a product.
A focused answer to the Edexcel 9DT0 content on mechanical devices, covering the four types of motion, the three classes of lever, linkages that change direction or magnitude of movement, and cams and followers that convert rotary to reciprocating motion.
- The role of computer-aided design (CAD) and computer-aided manufacture (CAM) in modern design and production, including digital modelling and simulation, CNC machining, laser cutting, 3D printing and rapid prototyping, and the advantages and limitations of digital design and manufacture for accuracy, speed, cost and product development.
A focused answer to the Edexcel 9DT0 content on digital design and manufacture, covering CAD modelling and simulation, CAM with CNC machining, laser cutting, 3D printing and rapid prototyping, and the advantages and limitations for accuracy, speed and cost.
- The effects of technological developments on design and manufacture and on society, including new materials and smart materials, automation and robotics, the global marketplace and global manufacturing, the move to high-technology and digital production, and the social, economic and environmental consequences of technological change for producers and consumers.
A focused answer to the Edexcel 9DT0 content on the effects of technological developments, covering new and smart materials, automation and robotics, the global marketplace and global manufacturing, the shift to high-technology production, and the social, economic and environmental consequences.
Sources & how we know this
- Pearson Edexcel A-Level Design and Technology: Product Design (9DT0) specification — Pearson Edexcel (2017)