a low cost distributed climate control system

48
A LOW-COST DISTRIBUTED CLIMATE CONTROL SYSTEM (DCCS) Abhimanyu Sanghi (02/EC/05) Ankur Verma (15/EC/05) Ashish Bhandari (20/EC/05) Kshitij Gupta (41/EC/05) Mentors Astt. Prof. S.P. Singh Prof. Subrat Kar (I.I.T. Delhi)

Upload: vermaankur

Post on 05-Aug-2015

457 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: A Low Cost Distributed Climate Control System

A LOW-COST DISTRIBUTED CLIMATE CONTROL SYSTEM (DCCS)

Abhimanyu Sanghi (02/EC/05)

Ankur Verma (15/EC/05)

Ashish Bhandari (20/EC/05)

Kshitij Gupta (41/EC/05)

Mentors

Astt. Prof. S.P. Singh

Prof. Subrat Kar (I.I.T. Delhi)

Page 2: A Low Cost Distributed Climate Control System

A QUICK SUMMARY…

Introduction

Work Completed

Future Work

Conclusion

This presentation discusses Distributed Climate Control System (DCCS).

Page 3: A Low Cost Distributed Climate Control System

Introduction

Page 4: A Low Cost Distributed Climate Control System

Climate encompasses Temperature Humidity Atmospheric Gases e.g. CO2, CO …

Ideal climatic conditions and parameter values vary. Climate control essential for

Manufacturing, processing, packaging, transport or storage of various sensitive goods

To prevent damage, deterioration or contamination of sensitive goods.

Motivation behind DCCS

We propose to devise DCCS to control climate parameters!

Page 5: A Low Cost Distributed Climate Control System

WHAT IS DISTRIBUTED CLIMATE CONTROL SYSTEM (DCCS) ?

Slave Nodes measure

parameters

Master logs and responds to changes

Sensor Data/Feedback Decision

Block Diagram of Proposed System

Page 6: A Low Cost Distributed Climate Control System

Work Completed

Page 7: A Low Cost Distributed Climate Control System

• Cost of each node ~ Rs. 600• Selection of suitable microcontroller

ARM / MSP430 / AVR / PIC

• Interfacing sensors with microcontroller• Interfacing with CAN, fan and external memory

Requires SPI and TWI

• Choice of communication networks CAN / RF / RS485 / RS232

SYSTEM SPECIFICATIONS

Page 8: A Low Cost Distributed Climate Control System

CHOICE OF COMPONENTS

1. eZ430-RF2500 Development board.

2. MSP430F169.

3. AT90CAN32.

4. ATmega16.

ATmega16 is selected which meets system requirements

SELECTION OF MICROCONTROLLER

Page 9: A Low Cost Distributed Climate Control System

CHOICE OF COMPONENTS (CONTD.)

1. RS232.2. RS485.3. Zigbee.4. CAN.

CAN Network is selected for our system.

SELECTION OF COMMUNICATION NETWORK

Page 10: A Low Cost Distributed Climate Control System

1. CAN Controller MCP2515, Microchip Technology

2. CAN Transceiver MCP2551, Microchip Technology

3. Temperature Sensor LM35

4. Other Components : IC-MAX232, General Purpose Board, Resistors, Capacitors, Switches, LEDs etc.

Total Expenditure per node ~ Rs. 675

SELECTION OF OTHER COMPONENTS:

CHOICE OF COMPONENTS (CONTD.)

Page 11: A Low Cost Distributed Climate Control System

Cost Analysis

Page 12: A Low Cost Distributed Climate Control System

Block Diagram of DCCS

Page 13: A Low Cost Distributed Climate Control System

SPICANSPITWI

Working of DCCS

Page 14: A Low Cost Distributed Climate Control System

SPICANSPITWI

FAN

Working of DCCS

Page 15: A Low Cost Distributed Climate Control System

Ext. Peripherals

Page 16: A Low Cost Distributed Climate Control System

Temperature Sensor

External Memory

LCD

DC Motor

External Peripherals

Page 17: A Low Cost Distributed Climate Control System

Temperature sensor LM35

ADCMicrocontroller

Temperature Sensor(LM 35)

Block Diagram

LM35

External Peripherals

Page 18: A Low Cost Distributed Climate Control System

EEPROMExternal Peripherals

Page 19: A Low Cost Distributed Climate Control System

Mask lower 4-bitsSend to the LCD portSend enable signalMask higher 4-bitsSend to LCD portSend enable signal

Send data/command Using 4-bit Mode

LCD

Block Diagram

External Peripherals

Page 20: A Low Cost Distributed Climate Control System

DC MOTORMOTOR DRIVER

Microcontroller

DC MOTOR

Block Diagram

Motor

External Peripherals

Page 21: A Low Cost Distributed Climate Control System

MOTOR

SLAVEµC

MASTER µC

MEMORY (EEPROM)

LCD

Temperature sensor LM35

MASTER NODESLAVE NODE

Block Diagram highlighting External Peripherals

External Peripherals

Page 22: A Low Cost Distributed Climate Control System

CAN

Page 23: A Low Cost Distributed Climate Control System

CAN -- Controller Area Network

Page 24: A Low Cost Distributed Climate Control System

Bus Standard Allows microcontrollers and devices to

communicate with each other without a host computer

Message based protocol Event triggered Bit rates up to 1 Mbps

Introduction to CAN

Page 25: A Low Cost Distributed Climate Control System

CAN & OSI Model

Communication between two nodes over CAN

Page 26: A Low Cost Distributed Climate Control System

Features of CAN Communication

Data transmitted through dominant bits (0) and recessive bits (1)

All devices read bus value while transmitting

Collision avoidance via bitwise arbitration

Error detection via bit stuffing

Page 27: A Low Cost Distributed Climate Control System

Requirements of a CAN Node

• Host processor ATmega16 • CAN Controller MCP2515• CAN Transceiver

MCP2551

Page 28: A Low Cost Distributed Climate Control System

Interfacing at Master Node

Page 29: A Low Cost Distributed Climate Control System

Interfacing at Slave Nodes

Page 30: A Low Cost Distributed Climate Control System

Code Design

Page 31: A Low Cost Distributed Climate Control System

Device Driver for CAN ControllerFunctions to read from and write to the controller

Page 32: A Low Cost Distributed Climate Control System

Thus, SPI has:

4 interface pinsMOSI, MISO,SCK, SS or CS

3 registersSPDR data, SPSR status , SPSC control

Writing SPDR -> Initiates Data Transfer

All data movement is coordinated by SCK.

SPI Data Register (SPDR)

Page 33: A Low Cost Distributed Climate Control System

Thus, SPI has:

4 interface pinsMOSI, MISO,SCK, SS or CS

3 registersSPCR control , SPSR status , SPDR data

Interrupt flagSet when serial transfer is complete

SPI Status Register (SPSR)

Page 34: A Low Cost Distributed Climate Control System

Thus, SPI has:

4 interface pinsMOSI, MISO,SCK, SS or CS

3 registersSPCR control , SPSR status , SPDR data

Interrupt flagif set, interrupt occurs!

SPI Control Register (SPCR)

SPI enableif set, SPI interface enabled

Clock Polarity and RateIdle mode SCK and Rate

Page 35: A Low Cost Distributed Climate Control System

Configuration of CAN Controller

Resets the CAN Controller

How to transmit data bytes

Page 36: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 1: INITIALIZATION

Receive Buffer Filters of Slave Nodes are set such that they receive onlycorresponding Master Node messages.

Reset

Filter Set

Filter Set

Page 37: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 2: Wait…

Slave Nodes 1 and 2 waits for incoming trigger messages from MasterNode.

Ready

WaitWait

Page 38: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 3: Node 1 Triggers

Master Node sends message intended for Slave Node 1 first and waits forits response.

Sending

Message

Msg. Rxd.

WaitTR

IGGER

Page 39: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 4: Node 1 Sends Data

Slave Node 1 replies with data and again waits.

Master Node logs data in EEPROM

Node 1Data

Logged

Sending

Sensor Data

WaitSen

sor

Dat

a

Page 40: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 5: Node 2 Triggers

Master Node sends message intended for Slave Node 2 and waits forits response.

Sending

Message

Wait

Msg. Rxd.

TRIG

GER

Page 41: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 6: Node 2 Sends data

Slave Node 1 replies with data and again waits.

Master Node logs data in EEPROM

Node 2Data

Logged

WaitWait

Sensor

Data

Page 42: A Low Cost Distributed Climate Control System

DCCS AlgorithmMaster Node

CAN Bus

Slave Node 2

CAN Bus

Slave Node 1

CA

N

Bu

sTemp. Senso

rFAN

Temp. Senso

rFAN

Step 7: Process Repeats

Master node send trigger signal to Node 1 and process repeats…

Sending

Message

Msg. Rxd.

WaitTR

IGGER

Page 43: A Low Cost Distributed Climate Control System

Testing : Loopback

Integration

Basic CAN Communication

Interfacing Peripherals

Selection of Components

DCCS – Working Demo

Page 44: A Low Cost Distributed Climate Control System

Future Work

Page 45: A Low Cost Distributed Climate Control System

Future Work Characterization of temperature sensor Interfacing slave nodes with other climate

sensors and controllers Effect of increase in number of nodes on

efficiency of system Effect of increase in length of CAN Bus

Page 46: A Low Cost Distributed Climate Control System

Conclusions

Page 47: A Low Cost Distributed Climate Control System

Conclusions

• Average cost of slave node is ~ Rs. 700• Prototype includes one master node and two

slave nodes• External Peripherals (EEPROM, LCD, Sensors and

Motor) are interfaced• System Development and Extensive Debugging

was done

We propose the use of this system as either a stand-alone system in the industry or workplace

or as an integrated device with climate modifying appliances such as an air conditioner

or a heater

Page 48: A Low Cost Distributed Climate Control System

Thank you.