Beruflich Dokumente
Kultur Dokumente
We are surrounded in our daily lives by many engineering systems that work
automatically at the push of a few buttons. The washing machine, toaster, air-
conditioning system or even the handphone are examples of such intelligent
systems. In fact, the human being is a sophisticated mega-system made of
many small intelligent systems.
Take Bob walking to the bus-stop, as an example.
By sensing the environment using his eyes, Bob’s brain checks this input
continuously and decides if he has reached his destination. If he has not, he
continues walking straight, else he stops walking.
Engineering systems are no different! Sensing the environment through
passive and active sensors gives us ‘eyes’, while modifying the environment
through motors (or actuators) gives us ‘legs’. However, to make our systems
smart, we need to give it a ‘brain’!
In this chapter, we will learn how systems are typically controlled and
attempt to control our very own drone in the studio sessions!
2 THE EPP TEAM
Student Preparation
In preparation for the studio sessions, students are expected to read and
understand this chapter.
Inputs vs Outputs
25◦ C.
Look around the house and pick one appliance (not the hair dryer or aircon
of course!). What are the inputs to and outputs of this appliance?
What-loop Control?
The hair dryer is an example of an open loop control system, as the out-
put is available regardless of how much your hair has dried or if your scalp
is burning! In open loop control systems, the output of the system is not
measured and there is no information provided on the current status of the
system. The input directly controls the output.
Just like a water dispenser, if you turn on the valve, water flows out, else
no water flows out. There is no information on the amount of water that has
flowed into your cup.
Earlier, we saw Bob walking to the bus-stop. Imagine now if Bob decides
to close his eyes! What would happen? Bob would continue to take steps
forward but without the input information provided on his location, Bob
would not be able to stop exactly at his destination.
4 THE EPP TEAM
The air-conditioning unit and Bob are examples of closed loop control
systems.
In contrast to open loop control, a closed loop control system requires
us to observe the effects of the output of the system. This lets us detect if a
specific measurable task has been completed.
1. First, let’s specify the inputs and outputs for our system.
2. Next, let’s represent the different actions of our system using boxes. Here,
the Air Cooler is either ON or OFF. These are called the different states of • Why is this important?
the system. Each state can also be labeled with a descriptive state name for • What happens if states are not mutually
easy reference. exclusive?
Notice how these states are mutually exclusive? This means that both of these
states cannot possibly be happening at the same time, eg. the Cooler cannot
be both ON and OFF at the same time.
H OW A R E S Y S T E M S C O N T RO L L E D ? 5
3. In the last step, we simply connect the different boxes using arrows to
define the conditions for how our system moves from state to state.
In our air-conditioning controller, if the air cooler was OFF, we would like to
turn it on if the temperature exceeds the desired setpoint of 25◦ C. Otherwise,
if the temperature was equal to or lower than 25◦ C, we should keep it OFF.
To represent this, we simply connect the boxes with arrows that signify
the transitions between the states. We label these transitions with conditions
that must be true for the transition to occur. These conditions are also called
guards as they guard the transition and prevent if from happening if the
condition is not satisfied!
• on (event)
• after (time)
• else
6 THE EPP TEAM
Consider what happens now if we were in the ‘Cooler ON’ state, but
the temperature stays persistently at 27◦ C because it is a sunny day? By all
means, we should keep the Cooler ON until the temperature drops to 25◦ C.
To represent this, we can use the else condition with an arrow from the
state and back to itself again.
Using these three handy steps, develop a state diagram for the appliance
that you picked earlier.
Supplementary Viewings