Your SlideShare is downloading. ×
  • Like
Btp Midsem
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Btp Midsem

  • 1,970 views
Published

 

Published in Business , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Hey ! have u completed this project??coz i m working on the similar project as my final year project and i m running short of time .i need the avr programming of this project ..Can u please send me (whatever u can regarding this project) on :
    rashidkhan03@gmail.com
    I will be truly greatful to u
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
1,970
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
36
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1.
    • Abhimanyu Sanghi (02/EC/05)
    • Ankur Verma (15/EC/05)
    • Ashish Bhandari (20/EC/05)
    • Kshitij Gupta (41/EC/05)
    Mentors Prof. Subrat Kar Astt. Prof. S.P. Singh
  • 2. A quick summary
    • This presentation discusses a Distributed Climate Control System (DCCS).
  • 3.  
  • 4. Motivation behind DCCS
    • Climate encompasses:
      • Temperature
      • Humidity
      • Atmospheric Gases e.g. CO 2, 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.
    • Thus, we propose to devise a system to control climate parameters.
  • 5. What is Distributed Control Climate System (DCCS) ?
    • Slave Nodes measure
    • parameters
    • Master logs and responds to changes
  • 6.  
  • 7. System Specifications
    • Cost of each node < Rs. 500.
    • Choice of microcontrollers-> ARM / MSP430 / AVR / PIC.
    • Interfacing with temperature (LM35), humidity and carbon dioxide sensors.
    • Interfacing with fan, mister and memory card– requires Serial Peripheral Interface and Analog to Digital Converter Channels.
    • Choice of communication networks
    • CAN / RF / RS485 / RS232.
  • 8. Choice of Components
    • eZ430-RF2500 Development board.
    • MSP430F169.
    • AT90CAN32.
    • ATmega16.
    • ATmega16 is selected which meets system requirements
    Selection of Microcontroller:
  • 9. Choice of Components (Contd.)
    • RS232.
    • RS485.
    • Zigbee.
    • CAN.
    • CAN Network is selected for our system.
    Selection of Communication Network:
  • 10. Choice of Components (Contd.)
    • CAN CONTROLLER :MCP2515, Microchip Technology
    • CAN TRANSCEIVER :MCP2551, Microchip Technology
    • TEMP. SENSOR :LM35
    • IC-MAX232, General Purpose Board, Resistors, Capacitors, Switches, LEDs etc .
    • Total Expenditure per node ~ Rs. 500
    Selection of Other Components:
  • 11. Block Diagram of System
  • 12. SPI CAN SPI SPI Working of System
  • 13. SPI CAN SPI Working of System
  • 14.  
  • 15. Interfacing Temperature Sensor with ATMega16
    • BLOCK DIAGRAM
  • 16. Interfacing Temperature Sensor with ATMega16
    • LM35 temperature sensor is used in the initial prototype of the system.
    The figures have been made using Eagle
  • 17. Interfacing Temperature Sensor with ATMega16
    • Features of LM35
    • Output Voltage is proportional to Celsius Temperature.
    • Outputs 10mv for each degree centigrade temperature.
    • Requires no external calibration.
    • Rated for full -55° to +150°C range.
    • Operates from 4 to 30 volts.
    • Suitable for remote applications.
    LM 35
  • 18. Interfacing Temperature Sensor with ATMega16
    • ADC Registers
    • ADC Multiplexer Selection Register – ADMUX : For selecting the reference voltage and the input channel.
  • 19. Interfacing Temperature Sensor with ATMega16 ADC Registers Cond….
    • ADC Control and Status Register A – ADCSRA : It has the status of ADC and is also use for controlling it.
      • The ADC Data Register – ADCL and ADCH : The final result of conversion is here.
  • 20. Interfacing Temperature Sensor with ATMega16
    • USART Registers
    • UDR - USART Data Register : When we read it you will get the data stored in receive buffer and when we write data it goes into the transmitters buffer.
    AVR USART registers
  • 21. Interfacing Temperature Sensor with ATMega16
    • UCSRA - USART Control and status Register A : It is used to configure the USART and it also stores some status about the USART. There are two more of this kind the UCSRB and UCSRC .
    • UBRRH and UBRRH : This is the USART Baud rate register, it is 16BIT wide so UBRRH is the High Byte and UBRRL is Low byte.
    USART Registers Contd.
  • 22. Interfacing Temperature Sensor with ATMega16
    • PORT settings of Hyper terminal
  • 23. Interfacing Temperature Sensor with ATMega16
    • The result was displayed on Hyper terminal on the computer and verified .
  • 24.  
  • 25. Introduction to Controller Area Network (CAN)
    • Bus Standard allows microcontrollers and devices to communicate with each other without a host computer.
    • Message based protocol
    • Bit rates up to 1 Mbps
  • 26. Introduction to CAN (contd.)
    • Data transmitted through dominant bits (0) and recessive bits (1).
    • All devices read bus value while transmitting.
    • Protocol implements Physical Layer and Data Link Layer of OSI Model.
  • 27. Requirements of a Node for CAN Communication
    • Host processor
    • ATmega16
    • CAN Controller
      • MCP2515
    • CAN Transceiver
    • MCP2551
  • 28. The Master Node - Schematic
  • 29. The Slave Node - Schematic
  • 30.  
  • 31. Device Driver for CAN Controller
    • Functions to read from and write to the controller
  • 32. Thus, SPI has:
    • 4 interface pins
    • MOSI, MISO,SCK, SS or CS
    3 registers SPDR data, SPSR status , SPSC control Writing SPDR -> Initiates Data Transfer All data movement is coordinated by SCK. SPI Data Register (SPDR)
  • 33. Thus, SPI has:
    • 4 interface pins
    • MOSI, MISO,SCK, SS or CS
    3 registers SPCR control , SPSR status , SPDR data Interrupt flag Set when serial transfer is complete SPI Status Register (SPSR)
  • 34. Thus, SPI has:
    • 4 interface pins
    • MOSI, MISO,SCK, SS or CS
    3 registers SPCR control , SPSR status , SPDR data Interrupt flag if set, interrupt occurs! SPI Control Register (SPCR) SPI enable if set, SPI interface enabled Clock Polarity and Rate Idle mode SCK and Rate
  • 35. Code Snippets for CAN Device Driver
  • 36. Configuration of CAN Controller
    • Resets the CAN Controller
    • How to transmit data bytes
  • 37.  
  • 38. Next Steps….
    • Communication between Master and Slave Node
    • Interfacing of Humidity and Carbon Dioxide Sensors
    • Implementation of Discrete PID Controller
    • Interfacing of Memory Card
  • 39.  
  • 40. Summary
    • Average cost of slave node is ~ Rs. 500.
    • Interfacing temp. sensor with microcontroller.
    • Design and Development of Test board that includes a master node and a slave node, interfaced with CAN controllers and transceivers.
    • Implementation of device driver for the CAN Controller
    • 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.
  • 41. References
    • For more information refer:
      • [1] Application Note: AVR 221: Discrete PID Controller for 8-bit AVR microcontrollers
      • [2] Development Tool User’s Guide for eZ430-RF2500, TI
      • [3] Datasheet: MSP430X16X, Texas Instruments.
      • [4] Datasheet summary: AT90CAN32, Atmel Corporation.
      • [5] Datasheet: ATmega16, Atmel Corporation.
      • [6] David Porter, Steve Gilson, “ Data Acquisition System With Controller Area Network and SD Card ”, Cornell Univ.
  • 42.