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

Number of pages: 153 File Format: word File Code: 30884
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.

    Dissertation for Master of Electrical Engineering degree in Electronics

    Abstract

    Precise temperature measurement and control in industrial and research systems is of particular importance, and the correct operation of some industrial and laboratory tools 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 an accuracy of up to 0.25 degrees Celsius, dispersion in a space of up to 900 meters (depending on the type of cable), measuring 64 channels in a maximum time of 1 second, accurate display of temperature on the computer and the possibility of uploading data.

    This system uses a powerful ARM7 microcontroller to perform the necessary calculations and communicate between two powerful and famous TCP/IP and RS485 networks. It uses an AVR microcontroller to measure the temperature and pack 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 good accuracy and temperature range, 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 K-type thermocouple, but with a slight change in the side boards, it is possible to read the value of any type of sensor (convert its data to digital) and send them to the computer program in a special package intended for data. It can also be converted into a control system with minor changes in peripheral boards and computer program.

    Keywords

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

    Foreword

    Measuring and recording tools for physical parameters, in the laboratory industry and General uses have many uses. Today, the advancement of technology and the use of electronic components, in addition to the ease of use of tools, have brought with them very high accuracy and greater economic efficiency. To measure this physical quantity, there are many different methods 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. To analyze, display, record information, load and also control the performance of the hardware part, a complex software has been designed in the LabVIEW environment.

    Since this system undoubtedly has its faults and deficiencies, 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.

    Concept Temperature

    From a physical point of view, heat is a quantity of the inherent energy of an object, which is caused by the random movement of its molecules and atoms. For example, just as increasing the speed of a tennis ball increases its energy, the internal energy of an object also increases with increasing temperature. Temperature is a parameter that expresses the amount of energy of an object with other parameters such as mass and the like.

    The primary standard of temperature is Kelvin. At zero degrees Kelvin, all molecules of a substance are at complete rest. In this state, they no longer have any heat energy of their own, and this means that in this state, we will not have a more negative temperature because the energy level of the molecules will not go lower than this..

     

    1-2- History of temperature measurement[2]

    In 1592, there was no correct definition of temperature. An Italian scientist named Galileo did a series of experiments and was able to build a thermometer consisting of a bubble, a glass tube connected to it and a container filled with water in which the tube was placed (Figure 1-1). In such a way that the inside of the glass bubble is full of air and as a result of the heating of the air trapped inside this bubble, a pressure was applied to the water column inside the tube and it moved the water downward. Measure the temperature. But there was a big problem in the work of this type of thermometer, and that is that the rise or fall of the liquid level did not happen only because of the heat or cold 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 the temperature of water) and closed the end of 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 he would not have 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 100 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).

    Fahrenheit: 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: (°C + 273) = °K.                                                                                                 (1-1)

    (°C × 1.8) + 32 = °F.

  • 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:

    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 to temperature conversion 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

         vi 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. 91

    Appendix P: An example of loaded charts 95

    Appendix T: System user guide. 100

     

    Source:

    References

    [1] Amirhossein Rezaei and Mohammadreza Zahabi, "Electronic Measurement" Fourth Edition, Daneshgar, 1384, pp. 194-201

    [2] J.P. Holman, "Heat Transfer" Sixth Edition, Kobri, 1368, pp. 1-22

    [3] Amir Rah Afrooz, "AVR microcontrollers and their application", 7th edition, 1392, text, pp. 55-66

    [4] Tanenbaum, "Computer Networks", 4th edition, text, 1388

    [5] Abdus Mohammad Ali, Sanat Houshmand, "Criteria for selecting temperature sensors", 1392, 16 49-51

    [6] http://www.atryco.com/en/index.php/download/16-2012-04-14-09-54-39/82-concept

    [7] http://www.omega.com/

    [8] “DataSheet Max6675”, MAXIM Co, 2002

    [9] http://www.gilsoneng.com/reference/THERMOCOUPLE GENERALINFORMATION.pdf

    [10] “SPI Block Guide V03.06” Motorola inc. , 2001

    [11] http://zone.ni.

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