Programmable control: a greenhouse
Open the interactive version →FEEDBACK LOOPS
A microcontroller follows a program: read the sensors, compare them with the settings, switch the outputs, and repeat. This is closed loop control.
Run program
How it works
- A microcontroller (programmable IC) such as a PIC, micro:bit or Arduino controls outputs by processing inputs.
- It can be programmed with text, blocks or a flowchart.
- Flowchart symbols: start and stop (rounded box), process (rectangle), input or output (parallelogram) and decision (diamond, with yes and no exits).
- The program loops forever, so the greenhouse is checked again and again: the readings feed back into the next decision.
- Microcontrollers are inside washing machines, microwaves, robot vacuum cleaners and smartwatches.
Examples
- Greenhouse fan and watering
- Washing machine program
- Microwave oven
- Robot vacuum cleaner
See also
Open and closed loop Logic gates
Check your understanding
Which flowchart symbol is used for a decision?
A diamond, with a 'yes' exit and a 'no' exit.
Why does the program loop back to the start?
So it keeps reading the sensors and correcting the outputs: this is the feedback in the system.
Printable worksheet
An A4 sheet to print or save as a PDF: a blank diagram to label, a gap-fill and check questions. There is also an EAL support version.