Docsity

Fluid Flow Measurement System-Microcontroller and Assembly Language-Project Report, Thesis of Microcontrollers

Partial preview of the text

Download Fluid Flow Measurement System-Microcontroller and Assembly Language-Project Report and more Thesis Microcontrollers in PDF only on Docsity!

Fluid Flow

Measurement System

An 8051 Microcontroller Project

Introduction to the Project:

Main Task:

The task assigned to us was to design a device for measuring the flow of a fluid through a certain area. The project demanded an in depth study of the operation of an 8051 microcontroller. We were also required to implement an effective sensing mechanism in order to measure the fluid flow in an efficient manner.

We encountered various design issues and constraints during the course of this project, which will be brought to light in this report. The sensing scheme employed by us will also be discussed in detail, and the problems that we had to cope with will be suitably highlighted. The future recommendations will form an integral part of this short report, and these recommendations will serve the basis for further research in this domain. The results and the schematic of our sensor board will also be provided. The report will culminate with certain concluding remarks and references.

Sub Tasks:

  1. To study the various features of the 8051 microcontroller in considerable detail
  2. To search for various sensing devices available
  3. To design our sensor board using IR transmitter receiver
  4. To count the number of pulses received by the use of the sensing device through the 8051 microcontroller.
  5. To make communication with the serial port possible.

Flow Meter:

A flow meter is an instrument used to measure linear, nonlinear, mass or volumetric flow rate of a liquid or a gas. The fluid whose flow rate needs to be measured is passed through a certain area, with an obstacle such as a constriction in the middle. The sensing mechanism is used to detect the rise and fall of the flow rates, and gives its output accordingly. The sensors may take various forms, and they will be discussed in considerable length in the next sections of the report. These may be pressure sensors, electromagnetic sensors or even infrared transmitter receiver devices.

Use of the 8051 Microcontroller:

The task assigned to us demanded extensive use of the 8051 microcontroller. The timing operation of this microcontroller is of considerable importance with reference to our project. The serial port communication also owes profound importance.

Issues on the Availability of Sensors:

The choice of the appropriate sensing mechanism rested heavily on the availability of the sensors. The pressure sensors and the electromagnetic sensors were not available to us locally. Their lack of availability forced us to look for alternatives. Also, the cost of these sensors was quite high, which prevented us from going for them. The delivery time was also quite long and it was not feasible for us to go for these devices. Hence we decided to implement our own sensing device based on IR transmission-reception.

Our Sensor Board:

Description:

The schematic diagram of our sensor board will be shown a bit later. The board consists of an infrared transmitter, and an infrared receiver. A small disk/ wheel is used to model the obstruction to fluid flow that we have already mentioned. The disk contains a very small hole on its surface. The basic idea is that the fluid will strike the disk, and rotate it. While rotating, the disk will pass between the transmitter and the receiver. When the small hole will come in between the transmitter and the receiver, the infrared signal will cross the disk, and a corresponding pulse will be generated. The pulse will turn an LED on in the process. The number of times this event happens is directly proportional to the rate of fluid flow through the entire area of consideration. The larger the flow rate of the fluid, the greater will be the number of counts, and hence the sensing scheme will be implemented. It will be mentioned as well that a Schmitt trigger is required for efficient noise rejection of this device. The number of pulses will be counted by the 8051 microcontroller, and the flow rate will be measured accordingly.

Schematic:

The schematic diagram of our sensing device is shown below:

Problems Encountered:

The sensing mechanism mentioned above suffered from the problem of noise. The noise added to our signal and produced an output that is distorted. The additive noise corrupted the counting operation, because a pulse is counted several times before the next transition. Hence we could not achieve our desired number of counts in accordance with the flow rate. The effect of noise had to be catered in order to provide the correct value at the output. For minimizing this effect, we decided to use the Schmitt trigger (74LS14).

Use of Schmitt Trigger:

If we do not use a Schmitt trigger, the output swing can be pretty slow for a slowly varying input. Worse still, if the input is noisy, the output may make several transitions as the input passes through the trigger point. Both these problems combine to give a distorted effect whereby the counter does not work appropriately. We suffered from the same problem in our project. These issues can be remedied by the use of a Schmitt trigger.

In this case a noisy input is less likely to cause multiple triggering. We set the threshold values of our Schmitt trigger to be equal to +1 volts and +5 volts.

The IC used for the Schmitt trigger is 74LS14.

Recommendations for Future Work:

The project can be improved and further additions can be made in the future. The availability of pressure sensors or electromagnetic sensors can help immensely. The proper mechanical design and layout of the final product can be made. We have implemented this project taking water as the fluid under consideration. We can enhance this concept to include more viscous fluids and make the design more generic. If these things are incorporated in the future, the results will certainly turn out to be more appreciable (and as close to the specifications as possible).

Conclusion:

On the whole, it was a great learning experience for us, as we came to know how the microcontrollers can be used to achieve such fascinating objectives. The issues faced at several stages, and the steps taken to cope with the design problems certainly helped us develop a much better understanding of the subject.

References:

  1. www.wikipedia.org
  2. Mazidi, M.A. and J.G. Mazidi, The 8051 Microcontroller and Embedded Systems, New Jersey: Prentice Hall, 1999
  3. Scott MacKenzie and Raphael C.W.Phan, The 8051 Microcontroller, 4 th^ Edition.