Professional Documents
Culture Documents
MULTIPLE
AIR CONDITIONER
CONTROLLER
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
F=1
End If
Loop Until F = 1
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