You are on page 1of 30

DESIGN AND SIMULATION OF

MULTIPLE
AIR CONDITIONER
CONTROLLER

Created and presented by:


NIKHIL PANDEY
&
AASHISH RAWAT
INTRODUCTION
 Multiple (more than one) air
conditioners increasingly becoming
common even in small level firms
and our household.
 But the generator capacity is
limited and high capacity
generators are very expensive.
WHAT IS AN AIR CONDITIONER CONTROLLER ??

 The generator is able to handle limited load


(typically 2-3 ac’s) out of the 5 or 6 AC’s.
 For running all the AC’s and cooling every room
in which the AC is installed, this CONTROLLER has
been designed.
BASIC THOUGHT BEHIND AC CONTROLLER
 The basic idea behind the controller
design is to create a microcontroller
based circuit that is interfaced with
all the ACs .
 The circuit is able to selectively
switch on the air conditioners so as
to keep all the rooms cool and the
load on the generator is also within
limits.
ADVANCING IN THE DESIGN PROCESS OF THE
CONTROLLER
The controller system controlling 5 air
conditioners in 5 rooms will consist of a
microcontroller with:
 Inputs from 5 temperature sensors in
different rooms.
 A program code with all the logic loaded
into it .
 Outputs to the 5 air conditioners with
appropriate circuitry for their switching.
BASIC BLOCK DIAGRAM OF THE CIRCUIT

SENSOR
AC 1
1
SENSOR
AC 2
2

SENSOR MICRO
CONTROLLER AC 3
3

SENSOR
AC 4
4
SENSOR
AC 5
5
CHOICE OF MICROCONTROLLER
The microcontroller chosen for this project is ATMEGA
16(AT89S52), an 8-bit microcontroller.
 Has an in built ADC(analog to digital converter) so no
need for external ADC circuit(Unlike 8051).
 Is very inexpensive(around 100 rupees), as opposed
to other microcontrollers with desires features.
CHOICE OF SENSOR
TEMPERATURE SENSOR : The temperature
sensor to be used in the controller circuit is
LM35 which is a precision centigrade
temperature sensor IC with a range of
-55degrees to 140 degrees.

WHY LM35 ??
 We can measure temperature more
accurately than using a thermistor.
 The sensor circuitry is sealed and not
subject to oxidation.
 The LM35 generates a higher output voltage
than thermocouples .
ATMEGA 16 MICROCONTROLLER
FEATURES:
 Two 8-bit Timer/Counters with separate Prescaler.
 One 16-bit Timer/Counter with separate Prescaler.
 Four PWM channels
 8-channel, 10-bit ADC
 On-chip Analog Comparator
 Internal Calibrated RC Oscillator
 32 Programmable I/O lines (3 programmable I/O ports)
 Operating Voltage: 4.5-5.5V
 Industrial temperature range (-40°C to 85°C)
CIRCUIT DIAGRAM
RELAY
FOR AC
TEMPERATURE
SENSORS

ATMEGA 16
LCD FOR IC
DISPLAYING
SENSOR AIR
VALUES CONDITIONER
CIRCUIT DESIGN

I N INPUT FROM

D
LCD
SENSORS
CONNECTIONS

C O
G OUTPUT TO THE RELAYS
CODING LANGUAGE AND COMPILER
• The programming was done in BASIC language.
• The compiler used to generate the hex code of the
program was BASCOM-AVR (MCS Electronics).
KEY BENEFITS
-Compiled programs work with all AVR microprocessors that
have internal memory.
Structured programming with IF-THEN-ELSE-END IF, DO-LOOP,
WHILE-END, etc.
- Fast machine code instead of interpreted code.
- Variables and labels can be as long as 32 characters.
- Bit, Byte, Integer, Word, Long, Single and String variables.
PROGRAM CODE
$regfile = "m16def.dat"
$crystal = 4000000

Config Porta = Input


Config Portb = Output
Config Portc = Output
Config Portd = Output

Config Adc = Single , Prescaler = Auto Reference =


Avcc
Start Adc
Dim T1 As Integer
Dim T2 As Integer
Dim T3 As Integer
Dim T4 As Integer
Dim T5 As Integer
Dim C As Integer
Dim F As Integer
C=0
Dim W1 As Integer
Dim W2 As Integer
Dim W3 As Integer
Dim W4 As Integer
Dim W5 As Integer
W1 = 0
W2 = 0
W3 = 0
W4 = 0
W5 = 0
F=0
Start:
Do
T1 = Getadc(0)
T2 = Getadc(1)
T3 = Getadc(2)
T4 = Getadc(3)
T5 = Getadc(4)
Waitms 100
Cls
Lcd T1 ; "-" ; T2 ; "-" ; T3 ; "-" ; T4 ; "-" ; T5 ;

If T1 > 49 Or T2 > 49 Or T3 > 49 Or T4 > 49 Or T5 > 49 Or


T1 < 41 Or T2 < 41 Or T3 < 41 Or T4 < 41 Or T5 < 41 Then

F=1
End If
Loop Until F = 1

If T1 > 49 And W1 = 0 And C < 2 Then


Portc.0 = 1
C=C+1
W1 = 1
F=0
Goto Start
Elseif T2 > 49 And W2 = 0 And C < 2 Then
Portc.1 = 1
C=C+1
W2 = 1
F=0
Goto Start

Elseif T3 > 49 And W3 = 0 And C < 2 Then


Portc.2 = 1
C=C+1
W3 = 1
F=0
Goto Start
Elseif T4 > 49 And W4 = 0 And C < 2 Then
Portc.3 = 1
C=C+1
W4 = 1
F=0
Goto Start

Elseif T5 > 49 And W5 = 0 And C < 2 Then


Portc.4 = 1
C=C+1
W5 = 1
F=0
Goto Start
Elseif T1 < 41 And W1 = 1
Then
Portc.0 = 0
C=C-1
W1 = 0
F=0
Goto Start

Elseif T2 < 41 And W2 = 1


Then
Portc.1 = 0
C=C-1
W2 = 0
F=0
Goto Start
Elseif T3 < 41 And W3 = 1 Then
Portc.2 = 0
C=C-1
W3 = 0
F=0
Goto Start

Elseif T4 < 41 And W4 = 1 Then


Portc.3 = 0
C=C-1
W4 = 0
F=0

Goto Start
Elseif T5 < 41 And W5 = 1 Then
Portc.4 = 0
C=C-1
W5 = 0
F=0

Goto Start
Cls

End If
Goto Start
End
SIMULATION ON PROTEUS
• Proteus is a software for microprocessor
/microcontroller simulation, schematic
capture, and printed circuit board (PCB)
design. It is developed by Labcenter
Electronics.
SYSTEM COMPONENTS
OF PROTEUS
• ISIS Schematic Capture – It is an easy to use yet
extremely powerful tool for entering the designs.
• PROSPICE Mixed mode SPICE simulation -
Industry standard SPICE3F5 simulator combined
with high speed digital simulator.
• ARES PCB Layout - High performance PCB design
system with automatic component placer, rip-up
and retry auto-router and interactive design rule
checking.
THE USER INTERFACE OF THE ISIS
CAPTURE COMPONENT
WORKING ON THE ISIS CAPTURE

The circuit diagram of the design is drawn in


the CAPTURE schematic design file.

All the components of the circuit are first


searched in the library and then placed on the
design sheet.

ISIS CAPTURE has a rich library containing


almost all parts that are usually required in a
microcontroller circuit.
SEARCHING COPMPONENTS FROM THE LIBRARY
DETAILED CIRCUIT DIAGRAM OF THE DESIGN
INSERTING THE HEX CODE OF THE PROGRAM IN THE DESIGN

•The compiler of any language generates a low level hex code


of the program.
•This hex code is the basic code that a machine or
microcontroller understands.
•This hex code is to be inserted into the microcontroller of
the design file so that it is able to perform
the desired tasks.
•The hex code is inserted into the microcontroller by double
clicking on the controller and then selecting the hex file.
OUTPUT OF THE WORKING CIRCUIT

You might also like