A-Level Computer Science / Unit 3: Hardware, Memory and Control

3.1.7 Sensors, Actuators, ADC/DAC and Feedback

πŸ”’ Lesson slides are available to signed-in users. Sign in

AS Computer Science

Sensors, Actuators, ADC/DAC & Feedback

Computers can measure the world around them. Some only show information. Others make changes automatically. This lesson explains the difference.

By the end, I can…

  • explain the difference between monitoring and control;
  • identify a suitable sensor and actuator;
  • describe when an ADC or DAC is needed;
  • trace the steps of a feedback loop, using clear technical words.
Word help: measure = find a valuethreshold = a limitadjust = change a littlefeedback = new information about the result

1. Monitoring and control are not the same

Monitoring = observe

A system measures a condition. It may record a reading, display it or warn a person.

Example: A museum display case measures humidity and sends an alert when it is too high. A staff member must respond.

Control = act

A system measures a condition, makes a decision and automatically changes something.

Example: A museum display case measures humidity and switches on a dehumidifier when needed.

The difference: A warning is usually monitoring. Automatic action that changes the condition is control.

Common mistake

β€œThe computer sounds an alarm” does not mean it controls the temperature or humidity. The computer must act on the environment to control it.

2. Sensors give input; actuators produce actions

Sensor: an input device that detects a physical condition and sends a signal.

These four sensor types are important for this course:

SensorWhat it detectsOriginal example
TemperatureHow hot or cold something is.Measures the temperature of an outdoor seed-storage box.
PressureForce acting on an area.Checks the pressure in a bicycle-repair air pump.
InfraredInfrared radiation.Detects a person near an interactive museum exhibit.
SoundSound waves or sound level.Measures noise in a school music rehearsal room.
Actuator: an output device that changes something in the physical world after it receives a control signal.
Actuator or output mechanismAction
MotorRotates a fan or moves a mechanical part.
RelaySwitches another electrical circuit on or off.
Valve actuatorOpens or closes a valve to change the flow of liquid or gas.

Use the correct verbs

A sensor measures. A processor compares and decides. An actuator moves, switches or changes something.

3. Moving between analogue and digital signals

A physical condition can change smoothly. For example, humidity could be 51.2%, 51.3%, or 51.4%. An analogue signal can vary continuously. A computer works with digital values.

ADC means analogue-to-digital converter. It changes an analogue input signal into digital data.

DAC means digital-to-analogue converter. It can change digital values into an analogue output signal for equipment that needs one.

Important: not every system needs both converters

  • A digital sensor can send digital readings directly. No separate ADC is needed.
  • A simple on/off relay can be controlled by a digital output and suitable driver circuit. A DAC is not needed for a basic on/off signal.
  • A variable-speed fan may use an analogue control signal made by a DAC. Some real fans instead use digital PWM control.
Word help: analogue = changes smoothlydigital = represented by separate values, often binaryconverter = changes one signal form into another

4. How a feedback loop works

In a feedback system, the computer takes another reading after it acts. The next decision uses the new result.

Worked example: museum archive room

  1. A humidity sensor reads 62%.
  2. The reading reaches the processor (through an ADC if the sensor is analogue).
  3. The processor compares 62% with a stored upper limit of 55%.
  4. Because the reading is above the limit, it switches on a fan or dehumidifier.
  5. After a short time, the sensor takes another reading. The processor decides again.

Setpoint means a target value. Threshold means a limit that triggers a change. A control system may use one or both.

Exam writing pattern

Read β†’ convert if needed β†’ compare β†’ output signal β†’ actuator acts β†’ read again. Explain what each step changes in this situation.

5. Interactive: Monitoring and Feedback Lab

Try the same museum archive room in two modes. Monitoring shows a warning. Control can switch on the fan. Change the signal options to learn when ADC and DAC are needed.

Archive Room Lab

Measure β†’ Compare β†’ Act β†’ Measure again

Simplified model
Upper limit: 55%
Analogue signal→ADC→Processor→No DAC→Warning
Start with 62% humidity. Select a mode, then take a reading.

Cycle: 0 Β· Fan: off Β· Upper limit: 55%

CycleReadingDecisionFanNext reading
No measurements yet.

How the model works: Each cycle adds 2 percentage points from outside moisture. When active, the fan removes 5 points before the next reading (net change: βˆ’3). These are invented classroom numbers, not measurements from a real room. In monitoring mode, the fan is never switched on by the computer.

6. Practise for the exam

Question A Β· Distinguish [2]

A computer measures noise in a rehearsal room. It records the noise and shows a red warning when it is too loud. Is this monitoring or control? Explain.

Show possible answer

Monitoring [1]. The computer records and warns, but it does not automatically change the noise level [1].

Question B Β· Explain a system [6]

A museum display case must keep its humidity below a chosen limit. A controller switches on a dehumidifier when required. Describe the system, including feedback.

Show possible answer
  1. A humidity sensor measures the current humidity [1].
  2. An ADC converts the reading if it is analogue [1].
  3. The processor compares it with the stored limit [1].
  4. When too high, it sends a signal to the dehumidifier's control circuit [1].
  5. The dehumidifier lowers the humidity [1].
  6. The sensor reads again and the processor uses the new result to adjust its action [1].

This is an original practice mark guide, not an official mark scheme.

Common mistakes

  • Writing that a sensor makes the decision instead of the processor.
  • Adding an ADC for every sensor, even when it already produces digital readings.
  • Adding a DAC for every output, even for a simple digital on/off relay.
  • Leaving out the repeated reading that makes feedback possible.

Final check: Can you explain what happens after the first action? That is the key idea behind feedback.