2018年2月27日星期二


Constant Water Flow System with Thermal Water Flow Sensor and
Variable Frequency Pump

Xiang Zheng Tu

 

It has been reported that electrical energy consumed by pumps, fans and compressors represents a significant proportion of the electricity used around the world. It is estimated that in industrial processes and building utilities, 72 % of electricity is consumed by motors, of which 63 % is used to drive fluid flow in pumps, fans and compressors.

Many heating, cooling and ventilation distribution systems operate at a constant flow rate, even though peak demand may only be required for a few hours. The conventional response to meeting the changing demand for heating and cooling within a building is to restrict flow to individual rooms, while maintaining peak flow in the central system. However, through the use of this approach, considerable energy is used and equipment lifetime is shortened.

For saving energy a better approach is to use a variable speed drive on pumps and fans to vary air or water flow to meet more precisely changing load demands. As shown in the above figure, a constant water flow system comprises a variable frequency pump and a POSIFA’s thermal flow sensor. When the water flow decreases in the user pipe the thermal flow sensor measurement signal decreases. This signal feedback to the variable frequency inverter and results its output frequency decreased. With decreased frequency the operation speed of the variable frequency pump is also decreased and the water flow in the user pipe starts to drop back as to original balance. When the water flow increases the similar process will happen only the direction is opposite.

There is an everyday analogy that can help explain the efficiency advantage of a variable frequency pump.  Imagine you are driving a car. If you are driving on a highway and entering a population area, speed must be reduced so that you do not risk your own and other lives. The best possible way to do that is to reduce motor-rotation speed by taking your foot off the gas pedal and, if necessary, changing to a lower gear. Another possibility would be to use the same gear, keeping your foot on the gas, and at the same time reducing speed simply by braking. This would not only cause wear in the engine and brakes, but also use a lot of fuel and reduce your overall control of the vehicle, which is the case for a "control valve."

In most traditional cases, the variable frequency pumps are controlled to maintain a constant pressure within air ducts or water pipes in which the pressures are measured by pressure differential flow sensors. The differential pressure flow sensor is based on Bernoulli’s Equation, where the pressure drop is a squared function of the fluid velocity.
This relationship can limit the ability of differential pressure sensors to measure large flow ranges. Generally the flow measurement range of 10-100 flow units (10:1 flow turndown) would require a differential pressure flow sensor range of 1-100 differential pressure units (100:1 differential pressure turndown). Therefore, the actual 10:1 flow turndown requires a 100:1 differential pressure flow transmitter turndown.

It would be much better to use the thermal flow sensors replacing the pressure differential flow sensors for controlling the variable frequency pumps. The thermal flow sensor measurement is based on heat transfer from a heated element. The measurement is in mass flow, and additional pressure and temperature correction is not required which is not like the pressure differential flow sensors. They also provide excellent accuracy and repeatability and are easy to install.

2017年12月3日星期日

POSIFA’s Mass Air Flow Sensor making the first Electronic Cigarette
to Adapt to User’s Draw

Xiang Zheng Tu

United States Patent 9,635,886 disclosed an electronic cigarette with a thermal flow sensor based controller as shown in the following figure.



The controller comprises a housing; a battery, a controller assembly; an air for allowing air to enter into the housing, a mouthpiece; a fluid reservoir; an atomizer; at least a light emitting diode; and a display. The thermal flow sensor is fabricated using micro-electro-mechanical systems (MEMS) technologies which is amenable to create the electronic cigarette with a thermal flow sensor based controller having stable evaporated liquid delivering, immediately response to smoker inhalation, like normal cigarette inhalation resistance, low power consumption, and no accidental actuation take place.

The controller has been used for new electronic cigarettes recently launched by Blu MAX in Brighton.

The new generation of e-cigarette, blu MAX™ boasts Responsive Draw™ technology that gives users complete control over their in-hale. The innovation has been created to provide smokers and vapers with an experience closer to smoking a cigarette than ever before, without the harmful tobacco or tar substances.

Responsive Draw™ is unlike any other technology in the e-cigarette market; responding to the strength of the in-hale, users can take in as much or as little vapour as they like, depending on their needs and mood. The sleek new e-cigarette also imitates the visual sensations of traditional drawing with its intelligent light system that illuminates with the intensity of the draw. “blu MAX is different from other vaping products due to its ‘Mass Air Flow’ technology making it the first electronic cigarette that adapts to the user’s draw.


In other words, vaping blu MAX is more enjoyable, since this is the first e-cigarette that responds to the intensity of your draw.” Titus Wouda Kuipers, CEO Fontem Ventures. blu MAX™ will be available on sale from the 17th November, exclusively in Brighton stores.

2017年10月11日星期三

Experiment design for measuring component of gas mixtures
using thermal conductivity sensors

Xiang Zheng Tu

 
Gas mixture is the combination of two or more gases. One example of a mixture is air which is made up of nitrogen, oxygen, and smaller amounts of other gases. The other gases include water vapor (humidity), carbon dioxide, and methane. These gases may pollute our air at any given time or place and affect human health and safety or environment protection. To avoid these things happen, many gas sensors are used to monitor the levels of the gases in the atmosphere so as to maintain each gas concentrations below a safe levels. They are recommended for carbon dioxide: 5000ppm, methane: 1000ppm and humidity: 30% to 50% (relative humidity).

All gases conduct heat to differing degrees, and the amount of heat transferred by a gas is determined by its thermal conductivity. This property can be exploited in sensing because each gas has a different thermal conductivity. POSIFA’s Thermal Conductivity Sensors use this property to accurately measure one of the three gases present in a pseudo-ternary gas mixture such as air, water vapor (humidity) and carbon dioxide or air, water vapor (humidity) and methane. The “pseudo-ternary” means the dry air here is treated as a simple gas.

The detection principle of thermal conductivity sensors is as follows. Temperature differences are produced between the hot junctions and cold junctions of one or tow thermopiles. The hot junctions and cold junctions are positioned on a hot plate and a frame both are created in a silicon substrate, respectively. The hot plate is heated by applying a required electrical power to a resister positioned a long the hot junctions. Heat is transferred from the hot plate to the substrate via thermal conduction through the gas mixture filled the cavity under the hot plate. A temperature gradient is established due to the thermal flow energy in the gas mixture. The temperature difference or thermopile(s) output for the thermal conductivity sensor, therefore, is a direct measure of the thermal conductivity of the gas mixture. Heat loss due to radiation, convection and heat conduction through the terminals of the hot plate has been minimized by the sensor MEMS structure.

According to Wassiljewa’s equation the thermal conductivity km for a mixture of three gases 1, 2 and 3 can be expressed as:

km = k1 / (1 + A12  x2  / x1 + A13 x3 / x1) + k/ (1 + A21 x1 / x2  + A23 x3 / x2)
+ k/ (1 + A31 x1 / x+ A32  x2 / x3)                                      (1)

Where k1, k2 and k3 are the thermal conductivity of gases 1 (air) , 2 (water vapor) and 3 (carbon dioxide or methane), x1, x2 and x3 are the mole fraction of gases 1, 2 and 3, and A12, A13, A21, A23, A31 and A32 are Wassiljewa’s coefficients which are the functions of the molar masses and viscosities of the two related gases.

The thermal conductivity of the pseudo-ternary gas mixture does not vary linearly with the composition of the mixture. As seen from the equation (1) if the changes of the mole fraction of the gases are small enough the equation will be reduced as:

km ≈ a1 x1 + a2 x2 + a3x3                                                          (2)

Where a1, a2 and a3 are constants related to the thermal conductivities k1, k2 and k3 respectively. For the water vapor (humidity) and carbon dioxide and air, water vapor (humidity) and methane the above mentioned assumption is true.

The output Seebeck voltage of the thermopile(s) of the thermal conductivity sensor Useebeck can be expressed as:

Useebeck = S k                                                                          (3)

Where S is sensitivity of the sensor, which is the determined by the input power and the parameters of the sensor structure. It has been shown that it is the functions of the width of the hotplate, length of the palate supporting beams and path of the cavity filled with the gas mixture.

It should be noticed that the three component mixture has 2 degrees of freedom and the mole fraction of gas 1 can be calculated by equation:

x1 + x2 + x3 = 1                                                                          (4)

Combine of equation (3) and (4) results an equation as:

Useebeck = b1 + b2 x2+ b3 x3                                                                                       (5)

Where b1 is a bias term in the output Seebeck voltage of the sensor so that the solution of the equation is no zero solution, and b2, b3 are sensitive to component 2 and 3 mole fractions, respectively. Since the output is expressed in unit of V, the coefficients b1, b2 and b3 are expressed as the same.

A three factorial experimental design may be used for determining the coefficients b1, b2 and b3 by the experimental measurements of the thermal conductivity sensors.The design includes three treatments x1, x2 and x3 of the experimental variable, nine levels L1, L2, L3 and L9 of the control variable and nine observations and has 9 different cells as shown below. In the design the means for the columns provide the researcher with an estimate of the main effects for treatments and the means for rows provide an estimate of the main effects for the levels. The design also enables the researcher to determine the interaction between treatments and levels.

 

The general linear model is a statistical linear model.  The general linear model system of equations may be expressed elegantly using matrix notation as:


Representing the indicated vectors and matrix with single letters, the form of the general linear model system of equations may be changed as:
U = X B + E                                       (7)
{\displaystyle \mathbf {Y} =\mathbf {X} \mathbf {B} +\mathbf {U} ,}
Where U is a matrix with series of multivariate measurements, X is a matrix that might be a design matrix, B is a matrix containing parameters that are usually to be estimated and E is a matrix containing errors or noise.

Given the data U and the design matrix X, the general linear model fitting procedure has to find a set of B values explaining the data as good as possible. The time course values predicted by the model are obtained by the linear combination of the predictors:

U = X B                                             (8)

A good fit would be achieved with B values leading to predicted values which are as close as possible to the measured values u. By rearranging the system of equations, it is evident that a good prediction of the data implies small error values:

E = U – X B = U – u                         (9)

An intuitive idea would be to find those beta values minimizing the sum of error values. Since the error values contain both positive and negative values (and because of additional statistical considerations), the general linear model procedure does not estimate B values minimizing the sum of error values, but finds those B values minimizing the sum of squared error values:

E’ E = (U – X B)’ (U – X B) > min    (10)

The term E’ E is the vector notation for the sum of squares. The apostrophe symbol denotes transposition of a vector or matrix. The optimal B weights minimizing the squared error values are obtained non-iteratively by the following equation:

B = (X’ X)-1 X’ U                                (11)


The term in brackets contains a matrix-matrix multiplication of the transposed, X', and non-transposed, X, design matrix. This term results in a square matrix with a number of rows and columns corresponding to the number of predictors. This X'X matrix corresponds to the predictor variance-covariance matrix. The variance-covariance matrix is inverted as denoted by the "-1" symbol. The resulting matrix (X'X)-1 plays an essential role not only for the calculation of beta values but also for testing the significance of contrasts. The remaining term on the right side, X'U, evaluates to a vector containing as many elements as predictors. Each element of this vector is the scalar product of a predictor time course with the observed voxel time course.

2017年9月11日星期一

Comparison of both MEMS Thermal Conductivity CO2 Sensors
And Non-dispersive Infrared CO2 Sensors

Xiang Zheng Tu

 

A major hazardous gas present in the atmosphere which creates various adverse effects to human is carbon dioxide (CO2). Measurement of CO2 gas using CO2 sensor will help to monitor its presence and indicate us above dangerous limits to prevent adversities. In a modern ventilation system CO2 sensors used as indoor air quality indicators help to ensure a fresh outside air supply to building occupants while simultaneously optimizing energy consumption. For such systems it has been recommended: CO2 sensors shall be certified by the manufacturer to be accurate within plus or minus 75 ppm at a 600 and 1000 ppm concentration. Carbon dioxide air-conditioning systems have been installed in cars. In these applications the CO2 leakage detection range is 0-50.000 ppm with a resolution of 10% while the comfort range is 0-5.000 ppm with a resolution of 200 ppm.

A non-dispersive infrared (NDIR) CO2 sensor is shown in the above first figure. The NDIR sensor comprises an infrared source, a sample cell, an optical filter and a detector system. The infrared source directs waves of light through the cell filled with air containing CO2 toward the filter and then detector which measures the amount of the light that hits it. As the light passes through the cell, any gas molecules that are the same size as the wavelength of the light absorb the light only, while letting other wavelengths of the light pass through. Next, the remaining light hits the filter that absorbs every wavelength of light except the exact wavelength absorbed by CO2. Finally, the detector reads the amount of light that was not absorbed by the CO2 molecules or the optical filter.
The difference between the amount of light radiated by the source and the amount of the light received by the detector is measured. The difference is proportional to the number of CO2 molecules in the air inside the cell.

The advantages of the non-dispersive infrared (NDIR) CO2 sensors are selective, sensitive, non contact and reliable. At present time this technology is accepted as a state-of-the-art. But it still has some serious problems such as inherently expensive (at least two components), large size, requiring drift compensation and complex packaging.
So many efforts have been made regarding more miniaturization and lower system costs compared to the non-dispersive infrared CO2 sensors.

POSIFA Microsystems Company announces a MEMS thermal conductivity CO2 sensor.
The sensor integrates all CO2 sensing components in a single silicon microstructure with a micro-hot-bridge, which is not like the non-dispersive infrared CO2 sensor which is assembled with at least 4 separated components. In additional the micro-hot-bridge the sensor further contains a resistor, a cavity, and a thermopile with its hot junctions near the resistor and cold junctions extending to the silicon frame along the bridge supporting beams.  

The thermal conductivity CO2 sensor performs a measurement as follows. By applying a voltage to the resistor on the micro-hot-bridge of the sensor, the resistor is heated up and becomes a “hot source”. The cavity is open to the atmosphere and filled with air containing a certain amount of CO2 gas or air mixture. The air mixture transfers a quantity of heat from the hot source to the cold bottom of the cavity via the air mixture. The quantity of heat is measured by the thermopile. The changes in the thermal conductivity of the air mixture can be detected by measuring the changes of the output Seebeck voltage of the thermopile. With the measured thermal conductivity of the air mixture the concentration of the CO2 in the air can be calculated by a humidity compensation algorithm which is based on the measurement results using the same sensor operated at two different temperatures.

Compared with the non-dispersive infrared CO2 sensors, the thermal conductivity CO2 sensors possess many advantages such as:
  • Size reduced to a single silicon chip,
  • Milliwatts grade power consumption,
  • Milliseconds grade response times,
  • Low cost, and
  • Able to identify different gases of a gas mixture.
 

It is not be surprised for the last advantage. The thermal conductivities of gases always change with temperature. As shown in the above second figure, the thermal conductivities of gases CH4, C2H6, N2 and CO2 increase slight-non-linearly with temperature. Based on this inherent character of the gases distinguishing single components of a gas mixture can be realized by modulating operation temperature of a thermal conductivity sensor.

Hear, as a gas mixture of Air, CO2 and humidity (water vapor) is measured as a gas mixture. The temperature modulation is conducted by applying heating voltages V1 and V2 with V2 higher than V1. The measured output signals of the thermopile are Y1 and Y2 respectively. Then two binary linear equations can be obtained as

Y1 = b01 + b11 NCO2 + b12 Nwater vapor       (1)

Y2 = b02 + b21 NCO2 + b22 Nwater vapor        (2)

Where Y1 and Y2 are the output of the thermopile, NCO2 and Nwater vapor  are the volume percentage of CO2 and humidity respectively, b01, b02, b11, b12, b02, b21 and b22 are constants determined by calibration tests. The volume Nair of Air is found by meeting the equation as

Nair + NCO2 + Nwater vapor = 1                   (3)

With the measured Y1, Y2 and the known b01, b02, b11, b12, b02, b21 and b22, NCO2, and Nwater can be found by solving the equations (1), (2) and (3).


All these advantages offer a high potential for mass markets. The most compact thermal conductivity CO2 sensors have been developed for human breath analysis that will focus on enabling low cost applications but without compromising on accuracy.

2017年9月1日星期五

Advantages of Thermal Conductivity Water Flow Sensors
over Plastic Spinning Water Flow Sensors

Xiang Zheng Tu

 

Reference to the above figure, a thermal conductivity water flow sensor is made up of two thermopiles, which is used as the sensing temperature difference element and operated in conjunction with a resistive heater element for thermoelectric sensing. The fabrication of such sensors is more complicated since less conventional materials are utilized for fabrication of thermopiles but CMOS (complementary metal oxide semiconductor) compatible processing is possible. The Seebeck effect of thermopiles enables higher sensitivity and unbiased output voltages with no offset or drift.

The thermopiles are constructed with thermocouples in series and so the output voltages due to temperature difference change is summed and increased over that of a single thermocouple. Since the thermal conduction between hot and cold junctions of the thermopiles and Johnson noise increases with increasing number of thermocouples, a high thermal isolation structure is desired in order to maximize temperature difference between hot and cold junctions.

The water mass flow (m) passing through the thermal conductivity sensor is calculated on the basis of the measured temperature difference (Thot - Tcold) between the hot and cold junctions of the thermopile, and the thermal conductivity (Cp) coefficient (k), electric heat rate (q), and specific heat (Cp) of water, as follows:

m = kq/(Cp(Thot – Tcold)                                    (1)

The electromotive force, or emf (V) created by the thermopile is directly proportional to the differential temperature (Thot - Tcold) between the two junctions as

EmfAB = nSAB (Thot - Tcold)                                (2)

Where n is the number of thermocouples of a thermopile and S (V/K) is called the Seebeck coefficient.

Still reference to the above figure, a plastic spinning water flow sensor has a rotor, a bearing, and a shaft, which are mounted in housing. The rotor spins as water passes over it. The measured flow rate is proportional to the rotational speed of the rotor. A variety of methods are used to detect the rotor speed, including a mechanical shaft and an electronic sensor.

Plastic bearings must be lubricated, not only to reduce friction and wear, but, in the case of plain bearings, to prevent them from seizing the shaft which they support. Self-lubricating plastic bearings contain a mix of dry lubricants. In operation, movement between shaft and bearing causes microscopic abrasion of the dry lubricant, filling and smoothing the shaft surface to reduce friction. The resulted micron particles will enter the water flow which is harmful to human health.

Most plastic bearing materials expand when exposed to heat and moisture. This factor is more significant when the running clearance between the bearing and shaft is less than 0.001 in. Plastic bearings and shafts are fabricated by injection molding process which has typical accuracy within 0.005 in. As a result, excessive wear or seizing of the shaft occurs very often.

Bubbles inevitably form as air is entrained in the water during the pouring process. The formed bubbles can create many problems in plastic spinning water flow sensors, such as:
● decreasing lubricity caused by an air emulsion,
● reduction of thermal conductivity,
● higher noise emission, and
● decrease water output efficiency.

Compare with plastic spinning water flow sensors, the thermal conductivity water flow sensors have the advantages as:
1.     Thermal conductivity water flow sensors have no moving parts, in which there are no any mechanical failures to take place.
2.     Thermal conductivity water flow sensors are MEMS devices with small size, higher sensitivity, higher reliability, low power consumption, ease of fabrication, and low cost.
3.     Thermal conductivity water flow sensors calculate mass flow rather than volumetric flow and do not require temperature or pressure correction, which means there is no additional expense for the purchase and installation of additional equipment.
4.     Thermal conductivity water flow sensors provide excellent accuracy and repeatability over a wide range of flow rates using bypass flow tube design. The sensor is placed in a bypass around a restriction in the main pipe and is sized to operate in the laminar flow region over its full operating range.

It should be emphasized that the thermal conductivity water flow sensors are not influenced by the air bubbles entrained in the water. The effect of the bubbles can be added to the series conductivity by using conductivity of the air-water mixture for the water conductivity. The thermal conductivity of continuous water phase with entrapped air bubbles can be calculated using Maxwell’s model as

km= kc (kd + 2kc – 2pd [ kc –kd])/(kd + 2kc + pd [kc –kd])            (3)

Where:
Km = conductivity of the mixture,
Kc, kd = conductivity of continuous and disperse phases, respectively, and
Pd = volume fraction of the disperse phase.

Replacing equation (3) into equation (1), the water mass flow rate measured by the thermal conductivity water flow sensor should be

 m = {(kd + 2kc – 2pd [ kc –kd])/(kd + 2kc + pd [kc –kd])}q/(Cp(Thot – Tcold)     (4)                        


It can be seen that the measured water mass flow rate does not contain the air bubbles entrained in the water.

2017年7月27日星期四

0~2000ppm Range and 232ppm Resolution
CO2 Thermal Conductivity Sensors

Xiang Zheng Tu

 
Figure 1 shows a thermopile thermal conductivity sensor provided by POSIFA Microsystems Company. The sensor mainly comprises a silicon chip, a hot plate suspending over a cavity recessed into the silicon chip, a resistor and a thermopile both disposed on the hot plate. The resistor is heated by applying a square pulse voltage and the thermopile is used to measure the temperature difference between the hot plate and the silicon chip. The temperature difference depends upon the thermal conductivity of the gas or gas mixture filled in the cavity. Since the sensor is ultra miniature its thermal time constant is short enough to allow for heating the sensor to work with very narrow pulses of electricity. So the power consumption throughout sensor's operation is quite low.


Figure 2 shows measurement data for indoor air. The heating square pulse voltage is supplied by Agilent 8110A 150 MHz Pulse Generator. The square pulse voltage is chosen to have: period = 1s, width = 20ms and amplitude = 8.96V. The out voltage of the sensor is measured by a TDS Digitizing Oscilloscope, which is shown as 1.86mV.



Figure 3 shows measurement data for 40% carbon dioxide and 60% nitrogen.
The heating pulse voltage is maintained as the same. The out voltage of the sensor is shown as 1.924V which is higher than the out voltage measured for indoor air. 

Using the above measurement data the sensitivity of the thermopile thermal conductivity sensor for carbon dioxide in nitrogen or in indoor air can be calculated as 1.65mV/1%.

In order to determine the resolution of a practical sensor measurement system in terms of voltage, we have to make a few calculations.
·      Assume the system capable of making measurements across 0 to 5V range,
·      Using a18-bits A/D converter, and
·      Using an averaging technique for reducing the noise contribution from four counts to one count.

Therefore, the smallest theoretical change we can detect is 153μV or 232ppm carbon dioxide in nitrogen. 

2017年7月7日星期五

Requirements for circuit design for natural gas calorific meters

Xiang Zheng Tu

The project is divided into two phases as:
·      The first phase is designing circuit for measuring the component mole fraction of a natural gas using POSIFA’s thermopile thermal conductivity sensors.  
·      The second phase is combining this circuit with an available mass flow measuring circuit. So as to obtain a complete circuit for natural gas calorific measurement.

A natural gas calorific meter comprises a MEMS thermal flow sensor and a MEMS thermopile thermal conductivity sensor which are provided by POSIFA Microsystems Company. The thermal flow sensor measures natural gas mass flow. A natural gas is a naturally occurring gas mixture, consisting of methane, ethane, propane and nitrogen. The heating value of a natural gas changes with its composition changes. The thermopile thermal conductivity sensors measure the component gas mole fraction in the natural gas flow. With the measured natural gas mass flow rate and component mole fraction the natural gas calorific flow rate and total calorific value can be calculated and displayed accordingly.

The component gas mole fraction of a natural gas can be measured based on the fact that the temperature curve of each component gas thermal conductivity coefficient is unique for each one, but highly correlated. A quaternary linear regression can be used to model the relationship between two or more explanatory variables and a response variable of a natural gas system by fitting a linear equation to observed data.

The thermopile thermal conductivity sensor is configured to have a polysilicon resistor used as heater (resistance = 250 to 350 Ω) and a thermopile used as temperature difference detector (resistance ~200 kΩ). In order to establish a quaternary linear system the heater must be driven using three square pulse voltage steps V1, V2, V3.  The square pulse voltage can be shown as: 

After driving the heater a temperature difference between the hot junctions and cold junctions of the thermopile is established and a corresponding thermopile voltage is generated as:


Three square pulse voltages are used to successively heat the heater in the way as:



With resulting thermopile voltages a quaternary linear regression can be obtained as:

Y1 =b10 +b11 NEthane +b12 NPropone +b13 NNitrigen                     (1)

Y2 =b20 +b21 NEthane +b22 NPropone +b23 NNitrigen                      (2)

Y3 =b30 +b31 NEthane +b32 NPropone +b33 NNitrigen                      (3)

And an identity as

xMethane +xEthane +xPropone  +xNitrigen=1                                     (4)      

Where Y1, Y2 and Y3 are the measured thermopile voltages when the heater is driven By 5, 7, and 9V square pulse voltages respectively, b10 through b33 are the parameters of the quaternary linear regression equation, which are determined by several experimental measurements, and NMethane,  NEthane,,  NPropone ,  NNitrigen  are the mole fraction of methane, ethane, propane, nitrogen.

With the measured values of Y1, Y2, Y3and the values obtained by fitting parameters b01 through β34, the values of NMethane,  NEthane,,  NPropone ,  NNitrigen  can be calculated by solving the equations (1) through (4).

A digital processing algorithm can also be build based on the equations (1) through (4). Using the obtained algorithm and the related program the component gas mole fraction of a natural gas coming from any different sources can be determined by operating a microcontroller.

                            
With the purpose of canceling the offset of the thermopile voltage of a thermopile thermal conductivity sensor a differential preamplifier is configured to have a sealed thermopile thermal conductivity sensor used as a reference input voltage. The sealed sensor may be filled with pure methane gas but not allowed to contact with natural gas to be measured. So its thermopile voltage will not change with the measured natural gas. Since the thermopile voltage of the exposed thermopile thermal conductivity sensor not only comprises natural gas signal and but also pure natural gas signal. After differential amplifying all common model signals will be canceled. That means the output of the amplifier should be no offset, no temperature drift and no noise. 

In the second phase the natural gas composition measurement circuit is incorporated with an available natural gas flow measurement circuit. The combined circuit is so called natural gas calorific measurement circuit.

Heating value of a natural gas can be calculated as:

Heating value = ( ṁ NMethaneMMethane/MMix) (HVMethane) + ( ṁ NEthaneMEtane/MMix) (HVEthane)
+ ( ṁ NPropaneMPropane/MMix) (HVPropane)                                          (5)                                                
Where: HVn = heating value of natural gas component n, in BTU/SCF
N= mole or volume fraction of natural gas component n. 
ṁ = mass flow rate.
Mn = natural gas component mole quality.
MMix = natural gas average quality.


The following table shows the heating value of natural component gas: