Designing and building a multi-channel temperature measurement system with the capabilities of storage, processing, display and sending through the network

Number of pages: 155 File Format: word File Code: 32132
Year: 2014 University Degree: Master's degree Category: Electronic Engineering
  • Part of the Content
  • Contents & Resources
  • Summary of Designing and building a multi-channel temperature measurement system with the capabilities of storage, processing, display and sending through the network

    Master of Electrical Engineering, Electronics Orientation

    Abstract

    Precise temperature measurement and control in industrial and research systems is of particular importance, and the correct operation of some industrial and laboratory instruments is possible only in a specific location with a small number of channels (maximum 8 channels). Therefore, we decided to build a 64-channel temperature measurement system with the goals of measuring with a maximum accuracy of 0.25 degrees Celsius, scattering in a space of up to 900 meters (depending on the type of cable), measuring 64 channels in a maximum time of 1 second, accurately displaying the temperature on the computer and the possibility of uploading data.

    It uses TCP/IP and RS485 and uses an AVR microcontroller to measure the temperature and package it. Each AVR microcontroller on the side boards measures the temperature of 4 thermocouples and packages them in a special format and sends them to a computer program at the same time. Also, a powerful computer software has been written for this system that performs display, storage, loading and various processing tasks. To evaluate the accuracy and performance, we tested the system for a long period of time (2 to 3 days) and the desired results were obtained. This system has a suitable temperature range and accuracy, so it can be used in industrial buildings, greenhouses, poultry breeding centers and research works.

    This system is currently designed to measure the temperature of the K-type thermocouple, but with a slight change in the side boards, you can read the value of any type of sensor (convert its data to digital) and send them to the program in a special package intended for data. Posted under computer. This system can also be converted into a control system with minor changes in peripheral boards and computer program.

    Key words

    Temperature Datalogger, Displaying Temperature, Processing on Temperature Signal, Ethernet, Digital Filter Filter

    Foreword

    Instruments for measuring and recording physical quantities are widely used in the laboratory industry and for general use. Nowadays, the advancement of technology and the use of electronic components, in addition to the ease of use of the tools, have also brought with them very high accuracy and greater economic efficiency.

    As can be seen from the topic of this master's degree project, systems for measuring temperature are designed and built with a special method. There are many different methods for measuring this physical quantity, and we have chosen the thermocouple measurement method, which is widely used in the industry. This project consists of two parts, hardware and software, in the hardware part, it has been tried to use common chips in the market, and standard methods of communication between electronic chips have been used to connect different parts of the hardware with each other. For analyzing, displaying, recording information, uploading and also controlling the performance of the hardware part, a complex software has been designed in the LabVIEW environment.

    Since this system undoubtedly has its faults and shortcomings, all of you professors, enthusiasts and students are requested to help me improve the next versions of this system with your criticisms and suggestions regarding possible software and hardware defects and deficiencies. Say.

    The rise of the liquid level was not only due to the heat or coldness of the air. Rather, other factors such as changes in atmospheric pressure also contributed to this work, which revealed the inaccuracy of Galileo's thermometer.

    In 1631, Ray proposed changes to Galileo's thermometer. His proposal was Galileo's inverted bottle, in which only cooling and heating were recorded due to the contraction and expansion of water.

    In 1635 Duke Ferdinand of Tuscany, who was interested in science, made a thermometer in which he used alcohol (which freezes at a temperature much lower than that of water) and closed the tube so tightly that the alcohol could not evaporate. Finally, in 1640, scientists at the Lynchian Academy in Italy made a prototype of a new thermometer that used mercury and removed at least some of the air from the top of the closed tube. It is interesting to note that it took about half a century for the thermometer to fully evolve.

    Following the discovery of the thermometer by Gabriel Daniel Fahrenheit, the Dutch scientist in the 17th century made a type of gas and alcohol thermometer that can measure air temperature with greater accuracy. In 1714, he designed a mercury thermometer and calibrated it with a high accuracy factor in a special way. Fahrenheit published the results of his research in 1724. He also defined a special scale for heat, which later and even to this day has been named after him. He was inspired by the cold winter of 1709 and used a mixture of ice, solid ammonium chloride, and water to determine the zero degree. By choosing this zero, he hoped that there would be no more negative temperatures.

    In 1742, the Swedish Celsius announced that he had discovered a simpler and more practical scale instead of the Fahrenheit thermal scale. He used two specific points that could be produced anywhere in the world as a reference for his work. One was the melting point of ice at zero degrees Celsius and the other was the boiling point of water at 100 degrees Celsius. He divided the distance between them into one hundred equal parts, and this made it possible for any thermometer to be easily adjusted and calibrated at these two points (0 and 100 degrees Celsius). Zero degrees is the freezing point of water and one hundred degrees is the boiling point of water at a pressure of one atmosphere. Fahrenheit degree: The origin of this scale is not exactly clear, but it has been reported that zero Fahrenheit was obtained by placing the thermometer bubble in a mixture of ice and chloroammonium, and the highest point of this scale is the temperature at which mercury begins to boil; Between these two temperatures, it is divided into 600 degrees, where the freezing point of water is 32 degrees and the boiling point of water is 212 degrees Fahrenheit.

    Kelvin: In the SI system, absolute temperature is measured in degrees Kelvin. In fact, absolute zero on the Kelvin scale is -273 degrees Celsius, considered by its inventor, Lord Kelvin, this temperature is the lowest possible temperature and at this temperature the kinetic energy of molecules reaches zero. The following relationships can be used to convert temperature units:                                                                                                 (1-1)

    (°C × 1.8) + 32 = °F.                                                                                           (1-2)

    1-4- Types of temperature measurement methods

    There are two main methods for temperature measurement:

    1-4-1- Temperature measurement using non-electric transducers

    1-4-1-1- Thermometers (fluid content thermometers)

    1-4-1-1-1- Liquid content thermometers: the basis of the work of this type of thermometers is the relationship between temperature and liquid volume.

    VT = V0 (1+ ?T + ?T2 +...).                                                                                   (1-3)

    The liquid used in this type of device is generally alcohol, hydrocarbons and mercury.

  • Contents & References of Designing and building a multi-channel temperature measurement system with the capabilities of storage, processing, display and sending through the network

    List:

    Foreword. 1

    1- Temperature and its measurement. 2 1-1- The concept of temperature 3 1-2 History of temperature measurement 3 1-3 Temperature measurement units 4 1-4 Types of temperature measurement methods 5 1-4-1 Temperature measurement using non-electric transducers. 5

             1-4-1-1- Thermometers (fluid content thermometers). 5

               1-4-1-1-1- liquid content thermometers. 5

               1-4-1-1-2- Gas content thermometers. 6

               1-4-1-1-3- steam content thermometers. 6

             1-4-1-2- bimetal thermometers. 7

             1-4-1-3- Pyrometers 7

          1-4-2- Temperature measurement using electrical transducers. 9

             1-4-2-1- Thermistor. 9

             1-4-2-2- thermocouple. 9

               1-4-2-2-1- thermoelectric effect. 10

               1-4-2-2-2- methods of using and measuring temperature 12

               1-4-2-2-3- Sibak coefficient. 16

                1-4-2-2-4- Chip    MAX6675. 19

                  1-4-2-2-4-1- Chip bases. 19

                  1-4-2-2-4-2- signal conversion to temperature 21

                   1-4-2-2-4-3- serial interface (SPI). 21

                  1-4-2-2-4-4- Output data package. 22

                1-4-2-2-5- Principles governing thermocouples 23

               1-4-2-2-6- Types of thermocouples. 25

               1-4-2-2-7- thermocouple protection. 30

               1-4-2-2-8- Advantages of thermocouples 34

               1-4-2-2-9- Disadvantages of thermocouples 34

               1-4-2-2-10- Series and parallel connection of thermocouples 35

    2- Getting to know the measurement system and how it works. 36

       2-1- Processors 38

       2-2- The package received by the computer from boards 41

       2-3- Thermocouples 44

       2-4- MAX6675 chip. 44

    2-5- communication channels. 44

    2-6- Computer software. 45

       2-7- Computer program sending package. 46

       8-2- Some important features of the system. 47

    2-8-1- Hardware. 47

    2-8-2- Software. 48

    3- Communication protocols. 51

    3-1- SPI protocol 52

    3-1-1- Details. 52

          3-1-2- Mode of operation. 53 3-2-Serial communication 56 3-2-1- RS485 protocol 56 3-2-1-1 Applications 58 3-2-2 Comparison of RS485 and RS232 protocols. 58

    3-3- TCP/IP. 60

    3-3-1- Introduction of TCP/IP protocol. 60

    3-3-2- TCP/IP protocol layers. 61

             3-3-2-1- Application layer. 62

             3-3-2-2- Transport layer 62

             3-3-2-3- Internet layer. 62

             3-3-2-4- Network Interface layer 63

    3-3-3- IP address. 63

    3-3-4-TCP/UDP port. 63

    3-3-5- Sending information using TCP. 64

    3-4- LAN local network. 65

    3-5- Software and hardware implementation. 65

    4- System technical guide. 66

    4-1- Some specifications of the computer program. 67

          4-1-1- PC-BOARD.vi 69

          4-1-2- Data send receive (TCP).vi 69

          4-1-3- Receive ASCII.vi 69

          4-1-4- Convert String number to number.vi 70

          4-1-5- %d to Hex.vi 70

    4-1-6- Check valid board and T.vi 71

    4-1-7- Extract data.vi 71

    4-1-8- F_CRLF_tcp read.vi 71

    4-1-9- Error Dialog.vi 72

        4-1-10- Send ASCII.vi 72

    4-1-11- Zero before Number less 10.vi 72

    4-1-12- Max Min Median Data.vi 73

    4-1-13- Load Data Mode APPENDED (T).vi 73

    4-1-14- Fill WDT.vi 73

    4-1-15- Name Legend.vi 74

    4-1-16- Number to time String. 74

          4-1-17- Save WDT Graph.vi 74

          4-1-18- Fill Menu.vi 75

          4-1-19- Selected T.vi 75

          4-1-20- Save name termo.vi 76

          4-1-21- Load namevi 76

          4-1-21- Load name termo.vi 76

          4-1-22- Select Thermocouple.vi 76

          4-1-23- Selected Board.vi 77

          4-1-24- Select board.vi 77

          4-1-25- Load setting.vi 77

    4-1-26- Load and fill board or thermocouple.vi 78 4-1-27- Match Array (TF).vi 78 4-1-28 Save setting.vi 79 4-1-29- Search Board in PC.vi 79 4-1-30- First Check BN.vi 79

          4-1-31- Folder Permission access.vi 80

          4-1-32- Dialog Path for Save. 80

          4-1-33- Dialog path.vi 80

       4-2- ARM microcontroller program. 81

          4-2-1- ARM-BOARD.vi 82

    4-2-2- Serial Port Init.vi 82

          4-2-3- Byte at Serial Port.vi 83

          4-2-4- Serial Port Read.vi 83

          4-2-5- Serial Port Write.vi 83

          4-2-6- MCB2300 Turn On LED.vi 83

          4-2-7- MCB2300 Turn Off LED.vi 84

          4-2-8- MCB2300 Init LCD.vi 84

          4-2-9- MCB2300 Clear LCD Screen.vi 84

          4-2-10- MCB2300 Set Text on LCD.vi 84

    Conclusion and suggestions. 85

    References. 86

    Appendix A: Type K thermocouple table. 87

    Appendix B: Reentrant in LabVIEW software.

Designing and building a multi-channel temperature measurement system with the capabilities of storage, processing, display and sending through the network