You are on page 1of 3

Name: Abdullah Tareen

Roll No: 210690

Assignment: FSM of Air Conditioner

Step 1: Describe the machine in words.

The current state of the machine if OFF (The light is OFF at this stage). When the POWER is given to it,
its stage will change in ON (The light is ON at this stage). This is the selection stage where user has to
decide, whether user requires hot room temp, or cool room temperature. Hot temperature will indicate
Red Light, whereas Cold temperature will indicate Blue Light. In both stages, Hot and Cold, there are two
levels of fan speed which are Slow, Medium and High.

Step 2: Draw the FSM diagram.

ON

OFF ON

(No light) (Light On)

OFF

SET TEMPERATURE

OFF

COLD HOT

COLD HOT

(Blue Light ON, Red light OFF) (Red Light ON, Blue Light OFF)

DOWN UP UP DOWN UP

Slow Fast Slow Fast UP

DOWN DOWN

OFF OFF OFF OFF


Step 3: Select numbers to represent states and values

Before converting the above FSM diagram to a circuit, we need to represent every value in our example
as a binary number. Here is some convenient numbers to use.

ON = 1 COLD = 1 UP = 1

OFF = 0 HOT = 0 DOWN = 0

So here’s the FSM diagram with the words replaced by numbers:

OFF ON

(No light) (Light On)

SET TEMPERATURE

1 0

COLD HOT

(Blue Light ON, Red light OFF) (Red Light ON, Blue Light OFF)

0 1 1 0 1

Slow Fast Slow Fast 1

0 0

0 0 0 0
Step 4: Write the truth table

From the FSM diagram, it’s easy to read off the correct truth table.

CURRENT STAGE INPUT NEXT INPUT BLUE RED BLUE(SPEED) RED(SPEED)


0 0 0 1 0 0 1
0 1 1 1 0 1 0
1 0 0 0 1 0 1
1 1 1 0 1 1 0

Step 5: Draw a “big picture” view of the circuit

SLOW

BLUE FAST

OFF ON SET TEMP TEMP


RED SLOW

FAST

You might also like