Chapter 16: Control Systems
In the 1780s, steam engines built by James Watt and Matthew Boulton were fitted with a device borrowed from windmill machinery: the centrifugal governor. Two heavy metal balls hung from arms on a spindle, and the engine itself turned that spindle. When the engine ran too fast, the balls swung outward, the arms lifted a collar, and a linkage partly closed the steam valve. The engine slowed down. When it ran too slow, the balls dropped, the valve opened wider, and the engine picked up speed again.
Nobody had to stand and watch the engine. The machine watched itself.
That small brass mechanism did what every self-correcting machine must do, including every modern robot. It measured what was actually happening, compared it with what should be happening, and used the difference between the two to change its own working.
It was not perfect. Some engines fitted with governors began to hunt: they sped up and slowed down in a steady swing that never quite settled. In 1868 James Clerk Maxwell examined the problem mathematically in a paper titled “On Governors”, and showed that the way a machine corrects itself decides whether it settles quietly at its target or keeps swinging past it.
A robot arm reaching for a marked point, a robot car staying on a line, and a two-wheeled robot balancing upright all face exactly that question.
Photograph
Fig. 16.0-1 – a centrifugal governor of the Watt type, mounted on a preserved steam engine; the two ball arms, the vertical spindle, the sliding collar and the linkage running to the steam valve must all be clearly visible in the frame; a side view is preferred over a distant view of the whole engine. Sourcing note: a museum or heritage-engine photograph is suitable; images in which the linkage to the valve is hidden, obscured by pipework, or cropped out are unusable.
By the end of this chapter you will be able to answer all five of these questions.
16.1 Why a Robot Needs a Control System
An overhead water tank in a house is usually fitted with a float valve. As the tank fills, the float rises; when it reaches a certain height, it presses on a lever and shuts the inlet. Nobody stands on the roof watching the water level, and yet the level is held roughly where it should be. The tank has been given a target, and the arrangement of float, lever and valve keeps it there.
That arrangement is a control system. In a house it holds a water level; in a robot it holds a joint angle, a wheel speed, a gripper force or a heading. The quantity being held is different every time, but the idea does not change: the machine is given a statement of what should happen, and its parts are arranged so that this actually happens.
In everyday speech, “control” usually means the thing a person presses — a remote, a switch, a regulator knob. In engineering the word covers much more than the operator’s button. The control system is the whole arrangement that turns the desired value into real motion, including whatever measures the result and corrects it. The knob is only where the desired value is entered.
Doing as told is not the same as doing the job
A robot is expected to be precise, and precision is where the difficulty begins. Sending an instruction to a motor is easy. Making sure the instruction produced the intended result in the real world is a separate problem, and it is the problem this chapter is about.
16.1.1 Acting on an Instruction, and Checking the Result
Suppose a small robot car is told to run both its drive motors at full power for 3 seconds so that it travels straight ahead by about one metre. The instruction is carried out exactly. The motors do run, and they do stop after 3 s. The instruction has been obeyed perfectly.
Whether the robot has travelled one metre in a straight line is another matter. The battery may have discharged since the last run, so the same command now delivers less voltage and less speed. One wheel may slip on a dusty floor while the other grips. The two motors, even from the same batch, rarely produce exactly the same torque at the same voltage, so the robot curves slightly. Fig. 16.1-1 shows the gap between the path that was intended and the path that was taken.
Diagram
Fig. 16.1-1 – a small two-wheeled robot car at a start line; a dashed straight arrow labelled “intended path, 1 m” running forward to a marked target point; a solid curved arrow labelled “actual path” leaving the dashed line and ending to one side of the target; the sideways gap between the two end points marked and labelled “position error”; a note beside the robot reading “same command sent to both motors”
The robot has no idea any of this happened. Nothing in the command asked it to look. It has followed a time-based instruction, and time is the only thing it has kept track of.
To close this gap, the robot needs a sensor: a device that converts a physical quantity such as distance, angle, tilt or speed into an electrical signal the controller can read. You have already met several of these. Their role here is new, though. A sensor is not being used to explore the surroundings; it is being used to report on the robot’s own performance, so that the machine can judge itself.
16.1.2 The Control System as the Robot’s Decision Maker
A robot works in a real environment, and real environments do not stay still. A load is heavier than expected. A floor slopes slightly. A gust of wind pushes a hovering drone sideways. A joint stiffens as its grease ages. Each of these is a disturbance: an outside influence that pushes the system away from the behaviour it was asked for.
Without a control system, a robot meets a disturbance by simply carrying on. The instruction was written before the disturbance existed, so the machine keeps executing it and the error keeps growing. With a control system, the robot compares what should be happening with what is happening, and changes what it is doing about it.
This changes what the machine can be trusted with. A robot arm asked to move to a coordinate can be commanded to that position and be relied on to arrive there with the correct orientation, at a chosen speed, without overshooting the point or reacting unpredictably when the load changes. That reliability is what makes a robot useful for repeated industrial work rather than for a single demonstration.
The correcting action is carried out by an actuator: the part that converts the controller’s electrical decision into physical action, such as a motor turning a joint or a servo swinging a gripper. Sensing gives the robot the information; the actuator is how it does something about it.
A control system is powerful, but it is not magic, and it is worth being honest about its limits from the start. It cannot make an arm reach a point that lies outside the span of its links. It cannot make a motor deliver more torque than it is built for. It can only make the best use of the mechanism it is given, and no control scheme rescues a machine that was mechanically wrong to begin with.
16.1.3 Setpoint, Measured Value and Error
Every control system starts from a statement of what should happen. That statement is the setpoint, also called the reference input: the desired value of the quantity being controlled, expressed in the same unit as the quantity itself. “Hold 24 °C”, “turn the shoulder joint to 45°”, “run the belt at 0.4 m/s” are all setpoints.
Against the setpoint stands the measured value: what a sensor reports the quantity actually to be, at this instant. The difference between the two is the error, and the error is the single number a control system exists to reduce.
Writing this as a relation,
\[e = \theta_{sp} - \theta_{meas}\]
where \(e\) is the error, \(\theta_{sp}\) is the setpoint and \(\theta_{meas}\) is the measured value. Here the symbols carry degrees because the controlled quantity is an angle; for a speed loop the same relation would be written in metres per second.
The order of subtraction matters. Taken this way round, a positive error means the joint has not yet reached the target and must move further in the commanded direction, while a negative error means it has gone past and must come back. Reverse the subtraction and every correction is applied backwards, which drives the joint away from its target instead of towards it. This is one of the commonest and most destructive mistakes in a control program, and it is a sign error, not an arithmetic one.
When the error reaches zero, the system is exactly where it was asked to be and no correction is called for. Fig. 16.1-2 shows the three quantities together on a single joint.
Diagram
Fig. 16.1-2 – a single revolute joint of a robot arm drawn at the origin of an angle scale; a dashed line at 45° labelled “setpoint 45°”; the solid link drawn at 41.5° labelled “measured value 41.5°”; the angle between the two arcs shaded and labelled “error = +3.5°”; a small arrow on the shaded arc showing the direction in which the joint must still move
That last line is the practical point of the whole chapter. An error that is invisible at the joint is easily large enough to make the task fail at the tip, and it grows with the length of the arm. A machine that cannot measure this error cannot correct it, and the next three sections work through what a system that measures it looks like, and what a system that does not measure it costs.
16.2 The Parts of a Control System
However complicated a robot looks, its control arrangement can be broken into four elements: the input, the controller, the plant and the output. Every automated machine, from a room heater to an assembly line, is built from these same four, and learning to name them in an unfamiliar machine is a large part of learning to design one.
The four are not four boxes bolted to a chassis. They are four roles. A single microcontroller board may hold the input value in a variable and run the controller as a few lines of program, while the plant is the aluminum arm bolted in front of it. What matters is which role each part is playing.
Fig. 16.2-1 shows the four elements arranged in the order in which information travels through them.
Diagram
Fig. 16.2-1 – block diagram of a basic control system; three labelled rectangular blocks in a row, “Controller” and “Plant”, with an arrow entering the Controller from the left labelled “Input (setpoint)”, an arrow from Controller to Plant labelled “Control signal”, and an arrow leaving the Plant to the right labelled “Output”; no feedback path is to be drawn; all arrows point left to right
16.2.1 Input: the Setpoint or Reference Signal
The input to a control system is the setpoint, sometimes called the reference signal. It states what the system is required to achieve, and it enters the system before any physical action begins.
Where does the setpoint come from? Usually from one of two places. A human operator may supply it directly, by typing a temperature, turning a dial or pushing a joystick. Alternatively the robot’s own program supplies it, either as a fixed value written into the code or as a value computed by a higher-level planner that has decided where the arm should go next.
A setpoint need not always be a number. It may be a signal that changes over time, as when an arm is asked to follow a path rather than to reach a single point. It may even be a condition to be maintained rather than a value to be reached, as in the instruction given to a line-following robot: stay on the black line. In that case the underlying quantity being held at zero is the robot’s sideways offset from the line.
16.2.2 Controller: the Decision-Making Unit
The controller is the decision-making part of the system. It reads the setpoint, works out what has to be done to achieve it, and issues an instruction to the parts that can act. In a school robot this is almost always a microcontroller such as an Arduino UNO, or a single-board computer such as a Raspberry Pi; in an industrial machine it may be a dedicated motion controller.
Strictly speaking, the hardware is only where the controller lives. The controller itself is the method — the set of rules, written as a program, that turns a desired value into an instruction. Two robots with identical boards and identical motors can behave completely differently because the rules running inside them are different.
What the controller sends out is the control signal, also called the actuating signal: the electrical instruction that tells the driving parts how hard to act, and in which direction. For a direct current motor this is usually pulse width modulation (PWM), in which the supply is switched on and off rapidly and the fraction of time it stays on decides the average voltage the motor sees, and so its speed.
It is worth noticing what the controller is actually working with. It does not handle degrees or metres per second; it handles numbers read from pins and numbers written to pins. The engineer is the one who decides that a particular count corresponds to a particular angle. If that conversion is wrong, every decision built on it is wrong, however good the program looks.
16.2.3 Plant: the Physical System Being Controlled
The plant is the physical part of the system that is being controlled. It is where the real task actually happens: the movement, the rotation, the change of temperature.
In a robotic arm, the plant is the joints, the motors and the moving links. In a drone, it is the propellers and the frame that respond to motor signals to produce lift and movement. In a conveyor belt system, it is the motorised belt that carries the objects along.
The actuator sits at the boundary between the controller and the plant. It receives the control signal, which is small and electrical, and produces the force or torque, which is large and physical. Many engineers simply count the actuator as part of the plant, since it is a physical component; when the two are named separately, the actuator is the part that applies the effort and the plant is what responds to it. Either way, no confusion arises so long as you can say which part decides and which part moves.
16.2.4 Output: the Real-World Action
The output is the actual effect produced in the real world: the value the controlled quantity has ended up at. It is what the setpoint was a statement about, and the two are directly comparable because they are quantities of the same kind, in the same unit.
A motor spins the wheels of a robot and the robot reaches a speed; that speed is the output. A gripper opens and the jaw separation reaches a certain width; that width is the output. A cooling fan runs and the enclosure settles at a certain temperature; that temperature is the output.
Table 16.1 sets the four elements side by side for three different machines. Reading across a row shows how differently the same role can be filled; reading down a column shows that a machine which looks nothing like a robot arm is built on exactly the same skeleton.
Notice that the control signal in every column is electrical and the output in every column is physical. That conversion, from a small signal to a real effect, is the whole reason a plant and an actuator exist.
16.2.5 Tracing the Flow of Information Through the System
It helps to follow a single command all the way through, because each element hands something different to the next. Fig. 16.2-2 traces one instruction to a robot arm joint.
Diagram
Fig. 16.2-2 – flow: setpoint of 45° entered in the program → controller decides how far and in which direction the joint must turn → control signal, a PWM waveform with a direction bit, sent to the motor driver → motor driver switches current to the joint motor → joint and link rotate → joint reaches an angle, which is the output; each arrow labelled with what it carries, marked in order as command, decision, signal, current, motion, result; no return arrow is to be drawn
Four different things travel along that chain. A desired value passes from the input to the controller. A decision passes from the controller to the driver as a low-current signal. Electrical power passes from the driver to the motor. Physical motion passes from the motor into the link, and ends as an angle.
Look carefully at Fig. 16.2-2 and one thing is missing. Nothing returns. The controller sends its instruction and hears nothing back, so it has no way of knowing what angle the joint actually reached. The system in Fig. 16.2-1 has exactly the same shape, and for the same reason.
That is not an oversight in the drawing. It is a real and widely used design, and the next section is about what such a system can and cannot do.
16.3 Open-Loop Control Systems
A system built exactly like the one traced at the end of the last section — a command going in, an action coming out, and nothing coming back — is called an open-loop control system. The name describes the shape of its block diagram: the path from input to output is a line with two loose ends, not a ring.
16.3.1 Control Without Feedback
In an open-loop system the controller acts on an assumption. It assumes that a particular command produces a particular result, because that is what happened when the machine was set up. Send full power for 3 s and the robot travels a metre; send 200 pulses to a stepper motor and the carriage moves 40 mm; run the pump for 20 s and the pot receives half a litre.
The assumption is not guessed. It comes from calibration: measuring, once and in advance, what a given command actually produces, and writing that relationship into the program. Calibration is real engineering work, and a well calibrated open-loop machine can be surprisingly good.
The weakness is that the calibration is a photograph of one moment. It was taken with a particular battery charge, a particular load, a particular floor surface and a particular amount of friction in the gearbox. Every one of those will change. The machine goes on obeying a relationship that has quietly stopped being true, and nothing in it is arranged to notice.
Fig. 16.3-1 shows this as a block diagram for a robot that dispenses water on a fixed timing.
Diagram
Fig. 16.3-1 – open-loop block diagram of a timed watering system; blocks in a row: “Input: run pump for 20 s” → “Controller: microcontroller timer” → “Actuator: pump and driver circuit” → “Plant: pot and soil” → arrow out labelled “Output: soil moisture actually reached”; a dashed box drawn round the empty space beneath the chain, labelled “no return path — the soil moisture is never measured”; all arrows point left to right
16.3.2 Open-Loop Control in Robots and Everyday Machines
A microwave oven is the example most people already own. You set two minutes, and it heats for exactly two minutes. It never measures the temperature of the food, so it cannot know whether the food came out of the freezer or out of a warm kitchen. Whatever the state of the food, the timer runs out and the oven stops.
A traffic signal running on a fixed cycle works the same way. Green for a set number of seconds, then red for a set number of seconds, whatever is actually on the road. If one approach is empty and another is choked, the cycle does not care; there is no measurement of traffic feeding back into the timing.
Robotics has its own well-known case: the stepper motor. A stepper turns through a fixed angle for each pulse it receives, and holds its position when it stops, so a driver can position a mechanism accurately by simply counting out pulses. Pen plotters, small milling tables and many 3D printing mechanisms are driven this way, with no sensor watching the axis at all.
That works beautifully until the carriage meets more resistance than the motor can overcome. The motor then fails to complete a step — it misses it — while the driver goes on counting as though nothing had happened. Every position after that is displaced by the missed step, and the fault is permanent for the rest of the job, as Fig. 16.3-2 shows.
Diagram
Fig. 16.3-2 – a pen plotter carriage on a horizontal axis; upper strip shows the intended pattern, a row of five evenly spaced marks; lower strip shows the actual pattern, with the first two marks correct and the last three all shifted to the left by the same small amount; the point of the shift labelled “one step missed here”; a note reading “the driver’s step count is unchanged; only the real position has moved”
Nothing in the machine is wrong afterwards, in the sense that the count and the command still agree perfectly. It is only reality that has moved.
16.3.3 Advantages of Open-Loop Control
Given all this, it is fair to ask why anybody builds an open-loop machine at all. There are four solid reasons.
Its design and operation are simple. With no measuring element and no comparison to arrange, there is less to design, less to build and much less to go wrong. Fewer parts also means fewer things that can fail in service.
It costs less. Sensors, the circuits that condition their signals and the processing capacity to handle them all cost money, and in a machine that will be made in thousands, leaving them out is a serious saving.
It is easy to implement, which is why almost every first robot in a school workshop is open-loop. A student can write a timed sequence and see a machine move on the same afternoon.
Its response is fast. No time is spent measuring the output and working out a correction, so the command takes effect at once. In a system that only has to switch something on, that directness is a genuine advantage.
16.3.4 Limitations of Open-Loop Control
The limitations are the mirror image of the advantages, and they all follow from the same single fact: the output is never measured.
There is no error correction. The system cannot detect a mistake, so it certainly cannot put one right. If something goes wrong it carries on regardless, in exactly the manner it would have used had everything gone well.
Accuracy is low, and it drifts. A change in load, in supply voltage, in surface friction or in the mechanism’s own wear moves the output away from the intended value, and the machine has no means of pulling it back.
The system is not adaptive. A disturbance, an obstacle or a change in the environment leaves the original instruction untouched, because the instruction was decided before the disturbance existed.
There is no performance monitoring. At the end of the operation, nothing in the system can say whether the task succeeded. This matters more than it sounds. A machine that cannot report failure cannot be trusted to work unattended.
For these reasons open-loop control is unsuitable for the tasks that make robotics interesting. Balancing, navigation and object manipulation all require continuous adjustment while the task is under way, and continuous adjustment demands continuous measurement.
16.4 Closed-Loop Control Systems
The fault in every open-loop machine is the same, and so is the remedy: measure the output, and let the measurement come back and change the command. A system built that way is a closed-loop control system, also called a feedback control system, and the loop in the name is a real loop that can be traced with a finger on the block diagram.
16.4.1 Feedback, the Summing Point and the Error Signal
Feedback is the returned measurement: a signal derived from the actual output and carried back to the input side of the system. It travels along the feedback path, which almost always begins at a sensor mounted on or near the plant.
Where the feedback arrives is called the summing point, drawn as a small circle with a cross in it. Two signals enter it — the reference input and the fed-back measurement — and one signal leaves it, the error. Fig. 16.4-1 shows the complete arrangement.
Diagram
Fig. 16.4-1 – block diagram of a closed-loop control system; from the left, an arrow labelled “Reference input (setpoint)” entering a small circle marked with a cross, the summing point; the incoming arrow marked with a plus sign; an arrow leaving the summing point labelled “Error signal” into a block labelled “Controller”; an arrow from Controller labelled “Control signal” into a block labelled “Plant”; an arrow leaving Plant to the right labelled “Output”; from that arrow a branch running downward and back to the left through a block labelled “Feedback element (sensor)” and returning into the summing point, with that incoming arrow marked with a minus sign; the whole return path labelled “Feedback path”
The minus sign on the returning arrow is the most important mark in the diagram. The measurement is subtracted from the setpoint, which is exactly the operation defined in section 16.1.3, and what leaves the summing point is therefore the error. Because the correction acts to oppose the departure from the setpoint, this arrangement is called negative feedback.
Get that sign the wrong way round and the system does not merely work badly; it works energetically in the wrong direction, driving the output further from the target with every pass round the loop.
A loop is not run once. It runs over and over — read, compare, correct, read again — many times each second, and each pass is a fresh attempt on a slightly smaller error. The interval between passes matters as much as the arithmetic inside them. A loop that repeats a hundred times a second can catch a drone tipping; a loop delayed by a long wait in the program may only notice the fall after it has become unrecoverable.
16.4.2 Closed-Loop Control in Robots
A robotic arm in industry carries an encoder on each joint: a sensor that reports how far the shaft has actually turned. The controller compares that reported angle with the commanded angle and applies torque in whichever direction reduces the difference, continuing until the difference is negligible. The same arm running its motors open loop would be far less precise, because friction and payload would decide where it really stopped.
A self-balancing robot on two wheels is the same idea applied to something that will fall over if the idea fails. Gyroscopes and accelerometers report the tilt angle, the setpoint is upright, and the controller drives the wheels forward or backward to bring the base under the falling body, as Fig. 16.4-2 shows.
Diagram
Fig. 16.4-2 – a two-wheeled self-balancing robot seen from the side, leaning slightly forward; a vertical dashed line through the wheel axle labelled “setpoint: upright”; the body’s centre line labelled “measured tilt angle”; the angle between them shaded and labelled “error”; a horizontal arrow at the wheels pointing in the direction of the lean, labelled “wheels driven forward to bring the base under the body”; a small block labelled “gyroscope and accelerometer” marked on the body
An autonomous drone holds its position in the same way against a very unhelpful environment. Wind pushes it off course, its sensors detect the drift, and the controller changes the thrust of individual motors to bring it back. Stable hovering is not the absence of disturbance; it is a loop correcting disturbance continuously.
Conveyor systems in a packing hall use photoelectric sensors or encoders to watch belt speed and the position of items on it, so the controller can hold the spacing between packets or stop the belt exactly where a packet must be picked up. The line-following robot of section 16.2.1 belongs in the same family: its sensors measure the sideways offset, and its setpoint for that offset is zero.
16.4.3 Advantages of Closed-Loop Control
Accuracy is higher, and it stays higher. Because the output is measured against the setpoint continuously, a departure is detected while it is small and corrected before it grows.
Error correction is automatic. Whether the disturbance is a heavier load, a stiffer joint, a slope in the floor or a drop in battery voltage, the system does not need to be told which one has occurred. All of them show up as the same thing — an error — and all of them are answered by the same corrective action.
The system adapts to disturbances in real time, which is what allows a robot to work in an environment it cannot fully predict. This is the property that separates a machine that works in a laboratory from one that works in a field.
Behaviour stays consistent. Two runs of the same task give closely similar results even though the conditions were not identical, and that consistency is what makes automated production possible.
Safety improves. Because the system is watching its own output, it can recognise a condition that should not be occurring — a speed above the permitted maximum, motion in the wrong direction, a joint that is not moving although full effort is being applied — and act on it before damage is done.
16.4.4 Limitations of Closed-Loop Control
Complexity increases. Sensors, their mounting, their wiring, the conditioning of their signals and the program that interprets them are all additional work, and each is an additional way for the machine to fail.
Cost increases with it. An encoder on every joint, and a controller with the capacity to service them all, is a substantial part of the price of an industrial arm.
The initial response is slightly slower. The loop must acquire a reading and compute a correction before it acts, and that processing takes time — a small delay in a fast microcontroller, a noticeable one in a system with slow sensors or a heavily loaded processor.
Power consumption is higher. Sensors draw current, the processor works harder, and the actuators are continually making small corrections rather than sitting still. On a battery-powered robot this is not a footnote; it is flight time or run time lost.
Two further limitations deserve more attention than they usually receive. The first is that the loop believes its sensor absolutely. A sensor that has come loose, or is reading through dust, or is returning a value in the wrong unit, produces an error signal that is confidently wrong, and the controller acts on it with full authority. The second is that feedback can make a system worse behaved rather than better: a correction that is too aggressive, or that arrives too late, can carry the output past the target and set up a swing that never settles. Section 16.6 returns to this.
16.4.5 Choosing Between Open-Loop and Closed-Loop Control
The distinction now needs to be drawn sharply, because in design work it is the first decision made and the hardest to reverse later. Table 16.2 sets the two side by side.
Reading the table as a designer rather than as a list, three questions decide the choice. Does the relationship between command and result stay stable in the conditions this machine will actually meet? How much error can the task tolerate before it fails? And is there a sensor that can measure the controlled quantity at all, at a price and a rate the machine can afford?
If the relationship is stable and the tolerance is generous, an open-loop design is the better engineering answer, not the lazy one. If either condition fails, no amount of careful calibration will save an open-loop machine, because the thing that defeats it will happen after the calibration was done.
Most real robots are not purely one or the other. A single machine may position its arm under closed-loop control while switching a cooling fan open loop, because the arm must be right to a millimetre and the fan only has to be on. The question is asked separately for each quantity being controlled.
16.5 Sensors, Controllers and Actuators in the Control Loop
A modern robot is a mechatronic machine: electronics and mechanics designed together, neither of them making sense on its own. When the block diagram of section 16.4 is replaced by real hardware, the loop is carried by three kinds of part — a sensor, a controller and an actuator — working round the plant.
Each of the three has to be adequate for the job, and “adequate” means something specific in each case.
16.5.1 The Sensor as the Measuring Element
In the control loop the sensor is the measuring element. It acts as the system’s sense organ, converting a physical quantity — position, speed, distance, tilt, temperature or pressure — into a signal the controller can read.
Its first requirement is easy to state and easy to get wrong: it must measure the quantity that is actually being controlled. If the setpoint is a joint angle, a sensor reporting motor current is not feedback for that loop, however useful it may be for something else.
Its second requirement is resolution — the smallest change in the quantity that the device can distinguish. Resolution has to be finer than the tolerance the task demands. A sensor that can only tell one degree from the next cannot help a loop that has to hold half a degree; the error will simply be invisible to it.
Fig. 16.5-1 shows the arrangement of a single-joint test rig of the kind a school workshop can build, with the encoder mounted where it can see the shaft.
Photograph
Fig. 16.5-1 – a geared direct current motor with a rotary encoder fitted at the rear of the motor shaft, photographed close up against a plain background; the motor body, the gearbox, the output shaft and the encoder disc or module with its ribbon of wires must all be identifiable in the frame. Sourcing note: a component photograph or workshop bench photograph is suitable; images in which the encoder is hidden behind the mounting bracket, or in which the motor is buried inside an assembled robot, are unusable.
Two further properties decide whether a sensor can serve in a loop. It must respond faster than the loop repeats, or the controller will keep acting on stale information. And its reading must be steady enough that random fluctuation is not mistaken for a real error, since the controller cannot tell noise from news.
16.5.2 The Controller as the Deciding Element
The controller is the deciding element. Each time round the loop it reads the feedback, subtracts it from the setpoint, and converts the error into a control signal of the right size and direction.
Everything it works with is a number. The encoder gives it counts, not degrees; the analogue input gives it a value between 0 and 1023, not millimetres. The engineer supplies the conversion between the two, and a loop built on a wrong conversion behaves confidently and wrongly, because the arithmetic inside it is faultless.
The controller also decides how often the loop runs, and that is a design choice, not an accident. Any time the program spends elsewhere is time the loop is blind.
16.5.3 The Actuator as the Correcting Element
The actuator is the correcting element, the part that carries the controller’s decision into the physical world. In robots this is usually a motor or a servo; in industrial plant it may be a hydraulic cylinder or a pneumatic device. Whatever the type, it converts a small electrical signal into force, torque or motion.
For an actuator to close a loop it must have authority: enough torque or force to move the plant against friction, gravity and load. A loop with an underpowered actuator is a loop that measures its error accurately, computes the correct answer, and then cannot do anything about it.
It must also be able to act in both directions, because a correction is as often a reduction as an increase. And it needs a driver between it and the controller. A microcontroller pin can supply only a few tens of milliamperes, while even a small geared motor draws hundreds, so the pin carries the decision and a driver module such as the L298N carries the current.
There is one honest limitation worth knowing before you meet it on the bench. Below a certain size, a control signal produces no movement at all, because it cannot overcome static friction in the gearbox. The loop then settles with a small error it can measure but cannot remove, and the joint sits stubbornly a fraction of a degree away from its target.
16.5.4 Closing the Loop in a Simple Robot
Putting the three elements together gives the method that every position loop follows, whatever the hardware. The method is written out before any program, because the program is only a translation of it.
Notice what step 6 does not say. It does not say “drive at full power until the target is reached”, which is the instinctive first attempt and the reason so many first attempts overshoot. Making the correction proportional to the error is the first real idea in control design, and the next section takes it further.
16.6 Proportional-Integral-Derivative Control
Closing the loop tells a robot that it is wrong. It does not by itself tell the robot how hard to push back. That second question has its own answer, and the most widely used answer in engineering is the PID control system, named for the three corrective actions it combines: proportional, integral and derivative.
16.6.1 Why a Simple On-Off Correction Is Not Enough
The obvious way to use an error is to ignore its size. Drive at full power while the joint is short of the target, and switch off the moment it arrives. This is on-off control, and it is the first thing most people try.
It fails for a reason that has nothing to do with electronics. A joint arriving at full speed carries momentum, and a motor switched off does not stop instantly. The joint sails past the target, which is called overshoot. The error is now negative, so the controller drives at full power the other way, and the joint sails past again. The output swings back and forth about the setpoint instead of settling on it.
Making the drive proportional to the error, as the algorithm in section 16.5.4 did, is a large improvement. The correction now fades as the target is approached, so the joint slows on its way in rather than arriving at full speed.
Even so, two problems survive. If the proportional response is made strong enough to move a stiff joint quickly, it is often strong enough to overshoot. And a proportional response has a subtler defect: a joint held against gravity or against friction needs a permanent, non-zero drive just to stay where it is. Since a proportional controller produces zero drive at zero error, the joint quietly settles at a small error where the drive it produces exactly balances the load. That leftover is called the steady-state error, and no amount of patience removes it.
Fig. 16.6-1 shows the three behaviours together.
Diagram
Fig. 16.6-1 – graph of joint angle against time; horizontal dashed line across the plot labelled “setpoint”; three curves starting from the same point at the left; curve A labelled “on-off control” swinging above and below the setpoint in large oscillations that do not settle; curve B labelled “proportional only” rising smoothly and levelling out just below the setpoint, with the small vertical gap marked and labelled “steady-state error”; curve C labelled “proportional, integral and derivative” rising smoothly, with only a slight overshoot, and settling on the setpoint line; axes labelled “time” and “joint angle”
16.6.2 The Three Corrective Actions
A PID controller answers the two surviving problems by adding two more terms to the proportional one. Each of the three looks at the error in a different way — at what it is now, at what it has been, and at where it is going — and the control signal sent to the actuator is the sum of the three.
The proportional action responds to the present size of the error. The bigger the departure from the setpoint, the stronger the correction. It does the main work of driving the output towards the target, and on its own it leaves the steady-state error described above.
The integral action responds to accumulated past error. A small error that persists is added up over time, and the correction grows steadily until it is large enough to remove the error completely. This is precisely what eliminates a steady-state offset. Its cost is sluggishness: an accumulated correction takes time to build, and takes time to unwind again once the target is reached, which can itself cause overshoot.
The derivative action responds to the rate at which the error is changing. If the output is closing on the setpoint quickly, the derivative term pushes back against the approach before the target is reached, damping the motion. It is the term that anticipates, and it is what reduces overshoot and sudden swings. Its cost is sensitivity to noise: a jumpy sensor reading looks, to a derivative term, like a violently changing error.
16.6.3 PID Control in a Self-Balancing Robot
A two-wheeled robot that stands upright, in the manner of a small self-balancing scooter, is the clearest demonstration of all three actions at once, because it fails visibly the moment any of them is wrong.
The gyroscope and accelerometer report the tilt angle; the setpoint is upright; the error is the lean. Each pass round the loop, the proportional action reacts to how far the robot is leaning, the integral action to a small lean it has been holding for some time — the kind produced by a battery mounted slightly off centre — and the derivative action to how fast the lean is growing. The sum of the three sets how hard, and in which direction, the wheels are driven so as to bring the base back under the body.
Diagram
Fig. 16.6-2 – three small panels side by side, each showing the same two-wheeled robot leaning forward; panel 1 labelled “Proportional: reacts to how far it has leaned”, with the lean angle marked; panel 2 labelled “Integral: reacts to a small lean held over time”, with a row of three faint outlines of the same slight lean and a clock symbol; panel 3 labelled “Derivative: reacts to how fast the lean is growing”, with two outlines a moment apart and an arrow showing the increasing angle; a caption strip beneath all three reading “the three corrections are added together and sent to the wheels”
This process repeats many times each second, which is why a well-tuned balancing robot appears simply to stand still. What looks like stillness is a rapid sequence of small corrections, each one made before the previous departure had time to become visible.
Push the robot gently and the same three actions answer the push: the proportional term reacts to the displacement, the derivative term to the speed of the shove, and the integral term to any residual lean left afterwards. It recovers and stands upright again, which no open-loop machine could do, because no open-loop machine would know it had been pushed.
16.7 Control for Accurate, Efficient and Safe Robot Performance
A control system is not added to a robot for its own sake. It is added because three demands are made of every working machine: that it does the job correctly, that it does not waste what it is given, and that it does not hurt anyone or destroy itself. Each of the three is met, or missed, in the design of the loop.
16.7.1 Accuracy and Stability
Feedback improves accuracy by making the machine’s own result part of its decision. A joint that has fallen short of its target produces an error, and the error produces the drive that removes it. The improvement is real, and it is the reason precision robots are built this way.
But feedback improves accuracy only up to the honesty of the measurement. The loop drives the measured value to the setpoint, not the true value. If the encoder was zeroed at a position that was not truly zero, or if the conversion from counts to degrees is out by a small factor, the loop will work faithfully and settle the joint in the wrong place, every time, without any sign of distress.
The second requirement is stability: the property of settling at the setpoint and staying there rather than oscillating about it or drifting away. Stability is not guaranteed by closing the loop; as section 16.6 showed, a correction that is too strong or arrives too late can make behaviour worse than doing nothing.
An unstable loop is easy to recognise on the bench. The joint buzzes about its target, or the balancing robot rocks in a swing that grows rather than dies away. What that behaviour indicates is not a broken component but a badly proportioned correction, and the fix is in the design of the control action rather than in the hardware.
16.7.2 Efficiency and the Cost of Correction
Correction is not free. Every pass round the loop, the sensor draws current, the processor works, and the actuator is asked to do something. A loop that fusses continuously — nudging the motor first one way and then the other because sensor noise keeps producing tiny errors — burns energy and wears the mechanism without improving the result at all.
The usual answer is a deadband: a small band on either side of the setpoint within which the error is treated as zero and no correction is issued. The band is set a little wider than the sensor’s noise and a little narrower than the tolerance the task demands. Fig. 16.7-1 shows the difference this makes.
Diagram
Fig. 16.7-1 – graph of joint angle against time, drawn twice one above the other; upper plot labelled “no deadband”: the trace jitters continuously in small rapid corrections about the setpoint line, with a row of arrows beneath labelled “motor driven on every pass”; lower plot labelled “with a deadband”: a shaded horizontal band centred on the setpoint line and labelled “deadband, wider than the sensor noise”, the trace entering the band and then running flat with no corrections, and only one arrow beneath, labelled “motor driven only when the error leaves the band”; both plots share the axes labels “time” and “joint angle”
Efficiency also depends on how the approach is shaped. A drive that fades as the target is neared, and stops without overshoot, does the job in one movement. A drive that overshoots and comes back does the same job two or three times over, using two or three times the energy and adding that much wear to the gears.
On a battery-powered robot this arithmetic shows up directly as running time.
16.7.3 Safety and the Detection of Unsafe Conditions
The same measurement that makes a robot accurate also lets it recognise that something has gone wrong. This is the safety argument for closed-loop design, and it is separate from the accuracy argument.
A loop that knows the commanded speed and the actual speed can detect an overspeed. A loop that knows the commanded direction and the measured direction can detect a reversal, which usually means a motor has been wired backwards. A loop that sees full drive being applied while the measured position does not change has detected a stall, and can cut the drive before the motor overheats. An open-loop machine can detect none of these, because it measures nothing.
Software limits work the same way: the controller refuses a command that would take a joint beyond the angle its mechanism allows, because it can compare the requested angle with a known limit. This prevents a great many collisions between an arm and its own frame.
What software limits cannot do is protect against the controller itself failing. If the program crashes or a driver latches on, the very part that was supposed to enforce the limit is the part that has failed. This is why serious machines carry protection that does not depend on the controller at all — a limit switch wired to interrupt the drive directly, and an emergency stop that removes power rather than politely asking the software to stop.
Taken together, these three demands explain why so much design effort goes into a part of the robot that never touches the work. Accuracy decides whether the task is done correctly, efficiency decides how long the machine can keep doing it, and safety decides whether it may be allowed near people at all. All three are settled by how the loop is built.
16.8 Summary
- A control system is an arrangement of parts that makes a device or machine behave in a specified, desired way, by acting on an input that states the required value of the quantity being controlled.
- Sending an instruction and achieving a result are two different things. Battery voltage, load, friction, wheel slip and small differences between nominally identical motors all mean that an obeyed command can still produce a wrong outcome.
- A disturbance is an outside influence that pushes a system away from the behaviour it was asked for. Real environments supply them constantly, and a machine that cannot answer them cannot be trusted to work unattended.
- The setpoint is the desired value of the controlled quantity, stated in the same unit as that quantity. The measured value is what a sensor reports the quantity actually to be.
- The error is the setpoint minus the measured value, taken at the same instant and in the same unit: \(e = \theta_{sp} - \theta_{meas}\). Its magnitude says how far off the system is and its sign says in which direction. Reversing the subtraction drives every correction the wrong way.
- A small angular error at a joint becomes a much larger displacement at the tip of a link, since \(s = r\theta\) with the angle in radians. An error invisible at the joint can be large enough to fail the task at the gripper.
- Every control system is built from four elements: the input, the controller, the plant and the output. These are roles rather than separate boxes, and one microcontroller may carry more than one of them.
- The input is the setpoint or reference signal, supplied by an operator or by the robot’s own program. An instruction that sounds verbal, such as “stay on the line”, still has a numerical setpoint underneath it — in that case, zero sideways offset.
- The controller receives the input, decides what action is needed, and issues the control signal, also called the actuating signal. The hardware only hosts the controller; the controller itself is the set of rules the program applies.
- The plant is the physical system being controlled, in which the controlled quantity is produced. The actuator sits between controller and plant, converting a small electrical signal into force, torque or motion.
- The output is the actual value reached by the controlled quantity, named with its unit — an angle, a speed, a temperature. It is not a component, and naming a component as the output destroys the comparison on which control depends.
- In an open-loop control system the output is determined by the input alone; it is not measured and does not influence the control signal. Such a system acts on a relationship established once by calibration.
- Open-loop control is simple, cheap, easy to implement and fast in response, because nothing is measured before acting. A microwave timer, a fixed-cycle traffic signal and a stepper-driven plotter axis all work this way.
- Open-loop control offers no error correction, low and drifting accuracy, no adaptation to disturbance and no performance monitoring. It is therefore unsuited to balancing, navigation and object manipulation, which need continuous adjustment.
- In a closed-loop control system the output is measured continuously, returned along the feedback path, and compared with the setpoint at the summing point; the controller then acts on the difference.
- Because the measurement is subtracted from the setpoint, the arrangement is called negative feedback, and the correction opposes the departure from the target. A sign reversed here drives the output away from the setpoint rather than towards it.
- Closed-loop control gives higher and better-sustained accuracy, automatic error correction whatever the cause, adaptation to disturbance, consistent behaviour and the ability to detect unsafe conditions.
- Its costs are greater complexity, higher price, a slightly slower initial response, higher power consumption, complete dependence on the honesty of the sensor, and the possibility of oscillation if the correction is badly proportioned or delayed.
- The choice between the two designs turns on three questions: whether the command-to-result relationship stays stable in service, how much error the task can tolerate, and whether the controlled quantity can be measured at an affordable price and rate. Many robots use both, one quantity at a time.
- A robotic control loop is carried by three kinds of part: sensors, controllers and actuators. The sensor measures, the controller decides, the actuator corrects; remove any one and the loop breaks.
- A sensor must measure the quantity actually being controlled, resolve changes finer than the tolerance demanded, respond faster than the loop repeats, and read steadily enough that noise is not mistaken for error.
- A controller works only in numbers read from and written to pins, so the conversion between counts and physical units is the engineer’s responsibility. Time spent waiting inside the loop is time the system is blind and uncorrected.
- An actuator must have the authority to move the plant against friction, gravity and load, must act in both directions, and needs a driver between it and the controller because a logic pin cannot supply motor current. Below a certain drive it cannot overcome static friction, leaving a small error it can measure but not remove.
- On-off correction overshoots, because a moving mass does not stop when the drive is removed; the error then reverses and the output swings about the setpoint. Making the drive proportional to the error fades the correction as the target is approached.
- A proportional response alone leaves a steady-state error wherever a permanent drive is needed to hold position against gravity or friction, since zero error produces zero drive.
- A PID control system combines three corrective actions on the same error: proportional to its present size, integral to its accumulated past value, and derivative to its rate of change. The proportional action does the main work, the integral action removes the steady-state error, and the derivative action damps the approach and reduces overshoot.
- Each PID action has a cost when it is too strong: proportional gives oscillation, integral gives a slow drifting response, derivative amplifies sensor noise. The strengths must be chosen by experiment for the particular machine.
- Feedback drives the measured value to the setpoint, not the true value. Returning repeatedly to the same wrong point is good repeatability with poor accuracy, and the cure is calibration rather than a change of controller.
- Stability is the property of settling at the setpoint and staying there. Closing the loop does not guarantee it; a correction that is too strong or too late produces buzzing, rocking or a growing swing.
- Correction costs energy and wear. A deadband set wider than the sensor noise and narrower than the task tolerance stops needless nudging, and a movement that reaches the target once, without overshoot, does the work a jittering loop repeats.
- For a roughly constant draw, running time is \(t = C / I\), so continuous unnecessary correction is paid for directly in hours of battery life lost.
- Measurement is what lets a robot recognise overspeed, a reversed direction, a stall or a joint limit being exceeded, and act before damage is done. Software limits cannot protect against failure of the controller itself, which is why serious machines carry limit switches and an emergency stop that remove power independently of the program.
16.9 Key Terms
- Actuator — the part of a system that converts the controller’s electrical decision into physical action, such as a motor turning a joint or a servo moving a gripper.
- Calibration — measuring in advance what a given command actually produces, and writing that relationship into the program so the machine can act on it later.
- Closed-loop control system — a control system in which the output is continuously measured and returned for comparison with the setpoint, the controller acting on the difference so as to reduce it.
- Control signal — the electrical instruction issued by the controller, stating how hard the driving parts must act and in which direction; also called the actuating signal.
- Control system — an arrangement of parts that makes a device or machine behave in a specified, desired way, by acting on an input that states the required value of the quantity being controlled.
- Controller — the element that receives the input, decides what corrective action is required, and produces the control signal.
- Deadband — a small band on either side of the setpoint within which the error is treated as zero and no correction is issued, used to stop needless correction caused by sensor noise.
- Disturbance — an outside influence, such as a load change, a slope or a gust of wind, that pushes a system away from the behaviour it was asked for.
- Encoder — a sensor fitted to a shaft that reports how far it has actually turned, used as the feedback element in joint position loops.
- Error — the setpoint minus the measured value of the controlled quantity, taken at the same instant and in the same unit; its magnitude gives the distance from the target and its sign the direction.
- Feedback — a signal derived from the actual output and carried back to the input side of the system for comparison with the setpoint.
- Negative feedback — an arrangement in which the measured output is subtracted from the setpoint, so that the resulting correction opposes the departure from the target.
- Open-loop control system — a control system in which the output is determined by the input quantity alone; the output is not fed back and has no influence on the control signal.
- Output — the actual value reached by the controlled quantity, named with its unit, such as the angle attained, the speed held or the temperature reached.
- Overshoot — the amount by which the output passes beyond its setpoint before the control action brings it back.
- PID (proportional-integral-derivative) control system — a closed-loop control method that forms its control signal from three corrective actions on the same error: proportional to its present size, integral to its accumulated past value, and derivative to its rate of change.
- Plant — the physical system being controlled, comprising the components whose behaviour is influenced by the control signal and in which the controlled quantity is produced.
- PWM (pulse width modulation) — a way of setting the average voltage delivered to a device by switching the supply on and off rapidly and varying the fraction of time it stays on.
- Resolution — the smallest change in a quantity that a measuring device can distinguish, which must be finer than the tolerance the task demands.
- Sensor — a device that converts a physical quantity such as position, angle, distance, tilt or temperature into an electrical signal the controller can read.
- Setpoint — the desired value of the controlled quantity, supplied to the control system as its input and stated in the same unit as that quantity; also called the reference input.
- Stability — the property of a control system of settling at its setpoint and remaining there, rather than oscillating about it or drifting away.
- Steady-state error — the small permanent error left when a proportional response alone must hold a load, since zero error produces zero drive; also called steady-state offset.
- Summing point — the place in a closed-loop system, drawn as a small circle with a cross, where the fed-back measurement is subtracted from the setpoint to produce the error.
16.10 Objective Questions
- In a control system, the quantity that states what the system is required to achieve is called the
- output
- setpoint
- plant
- control signal
- A machine that carries out its instruction and never measures the result is best described as
- a closed-loop control system
- a feedback control system
- an open-loop control system
- a PID control system
Fill in the blank: the point in a closed-loop block diagram where the fed-back measurement is subtracted from the reference input is called the ____________.
State whether the following is true or false, giving the correct statement where it is false: in a closed-loop system, the feedback signal is added to the setpoint so that the correction reinforces the motion already taking place.
Match each item in Column A with the description in Column B that fits it.
| Column A | Column B |
|---|---|
| a. Sensor | i. Converts the controller’s decision into force or motion |
| b. Controller | ii. The physical system in which the controlled quantity is produced |
| c. Actuator | iii. Reports the actual value of the controlled quantity |
| d. Plant | iv. Computes the error and issues the control signal |
- Assertion (A): a proportional-only controller usually leaves a small permanent error when a joint must be held against gravity. Reason (R): a proportional controller produces zero drive when the error is zero.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
- Assertion (A): closing the loop around a robot joint guarantees that the joint will settle at the correct physical position. Reason (R): a closed-loop controller drives the measured value of the controlled quantity towards the setpoint.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
16.11 Check Your Concepts
Define a control system, and give the full form of PID.
Name the four elements of a control system. For a fan-cooled enclosure held at 25 °C, state what fills each of the four roles, and name the output with its unit.
Differentiate between an open-loop control system and a closed-loop control system on any four points, giving one example of each from robotics.
The shoulder joint of a robot arm is commanded to 30.0°, and its encoder reports 27.2°. The link from the joint to its tip is 250 mm long. Calculate the error at the joint and the distance by which the tip falls short of its intended position, and state what the sign of the error tells the controller to do.
A robot arm under closed-loop control returns again and again to almost exactly the same point, but that point is 4 mm away from the hole it is supposed to enter. Give reasons for this behaviour, and state where the fault must be looked for.
A school team is building a robot that must (i) position a gripper on a marked target to within one millimetre and (ii) switch on a cooling fan whenever the robot is running. Justify, with reasons, the type of control you would choose for each of the two tasks, and state one cost that your choice for the first task imposes on the robot.
16.12 Diagram, Circuit & Output Reading
A block diagram is drawn with the following blocks and arrows. An arrow labelled “40 °C” enters a block labelled “microcontroller”; an arrow labelled “switching signal” runs from that block to a block labelled “heater and driver”; an arrow runs from there to a block labelled “drying chamber”; an arrow labelled “chamber temperature” leaves the chamber to the right and ends there. Identify the type of control system shown, name the element that each block is acting as, and state what would have to be added, and where, to convert it to the other type.
A student wires a joint drive as follows: the geared direct current motor’s two terminals are connected directly to two digital output pins of the microcontroller board; the encoder is powered from the 5V and GND pins of the same board and its signal goes to pin 2; the board is powered from a 9 V battery. Identify the single fault in this arrangement, state what would happen when the program switches the motor on, and describe the correct arrangement.
A joint carries an encoder producing 12 pulses per revolution of the motor shaft, and the gearbox between the motor shaft and the joint has a ratio of 30:1. The task requires the joint angle to be held within 0.2°. Calculate the counts per revolution of the joint and the smallest change in joint angle the encoder can detect, and state with a reason whether this sensor is suitable for the task.
The following method is written for a joint position loop. Read it and answer the questions below it.
1. setpoint = 60.0
2. read the measured joint angle
3. error = measured angle - setpoint
4. if error is positive, drive the joint forward
5. otherwise, drive the joint in reverse
6. repeat from step 2
The joint starts at a measured angle of 52.0°, and driving forward increases the measured angle. State the value of the error on the first pass, the direction the joint is driven, and what happens to the measured angle over the passes that follow. Name the single change that would make the method correct.
16.13 Case-Based Questions
- A warehouse uses a small wheeled trolley robot to carry cartons along a straight aisle to a picking station 3.00 m from its start point. In the first version, the robot is simply told to drive both motors at a fixed power for 4 s and then stop. The team measures where the front edge of the robot actually stops on five consecutive runs, and records the following.
| Run | Distance travelled (m) |
|---|---|
| 1 | 3.04 |
| 2 | 2.97 |
| 3 | 2.92 |
| 4 | 2.86 |
| 5 | 2.79 |
The picking station will accept the carton only if the robot stops within 100 mm of the 3.00 m mark.
- Identify the type of control system used in this first version, and justify your answer with reference to the block diagram it would have.
- Using the recorded data, state whether the robot meets the requirement, and give two physical reasons for the trend you can see across the five runs.
- The team decides to close the loop. Name the quantity that must be controlled, state its setpoint, name a sensor that could measure it in this aisle, and state one disadvantage the change will bring.
- For a school science exhibition, a team builds a two-wheeled robot that must stand upright on its own. Tilt is measured by a gyroscope and accelerometer, and the wheels are driven by geared direct current motors through a driver module. In testing, the team reports two problems. First, the robot rocks steadily backwards and forwards about the upright position and never settles. Second, when it does briefly settle, it holds a small permanent lean to one side, which the team traces to a battery mounted slightly off the centre line.
- Explain why this task cannot be attempted with open-loop control, whatever calibration is carried out beforehand.
- Name the corrective action of a PID controller that addresses each of the two reported problems, and explain in each case how that action produces the improvement.
- The team must test the robot on a workshop bench with the class watching. State two precautions they should take before switching on, and give the reason for each.