A Microcontroller Based System For Determining Instantaneous Wind Speed and
A Microcontroller Based System For Determining Instantaneous Wind Speed and
Fig 3(a). Wind Vane. adequate memory (for matching purpose). We have
used an eight bit microcontroller, P89C51RD2 manu-
A transparent disk with a peripheral track divided in factured by PHILIPS [7]. This microcontroller has sev-
360 blocks (as shown in figure 3b) is attached to the eral internal timers and an automatic 8 bit event counter,
vertical shaft of the wind vane. Using a Back-tracking along with 128 byte of internal ram and 64kb of flash
algorithm [6], each of the blocks of the track has been memory.
made either transparent or opaque in such a way that
any nine consecutive blocks, when considered, produce
an unique pattern. There are nine opto-couplers working V. SOFTWARE AND ALGORITHM
as optical switches to detect the patterns as the disk is
moving through them. Since the position of the vane To start the system, LCD is first initialized for display-
and hence the orientation of the disk is determined by ing the results. The signal generated by the nine optical
the wind direction, the nine optical switches generate an sensors (opto-couplers) identifying the direction is then
unique nine-bit pattern for each of the 360 positions of read by the microcontroller. The nine bit pattern is then
the vane. The nine bit pattern thus produced is read by matched with the values stored in the memory which
the microcontroller and is matched with the entries of a corresponds to the direction of airflow measured in de-
table stored in the memory. Each of the nine bit entry of gree from the reference, and is displayed. The Auto
the table corresponds to the angular distance in degree event counter of the microcontroller is then started to
from the reference direction, north in this case. The count the events or pulses generated by the optical
result is displayed through the LCD display. switch of the anemometer for speed calculation. The
Instead of using a microprocessor, a microcontroller has calculated speed is then displayed through the LCD
been used to fulfill the requirements of timers and display. The algorithm used in the system is shown in
Figure 4.
S ta rt system with computer, LCD display unit should be re-
moved and the free port of microcontroller should be
connected to the parallel port. Two control lines of the
In it ia liz a tio n
parallel ports can be used for handshaking between the
th e s y s te m device and the computer.
REFERENCES
VI. CONCLUSION
The system presented here provides an easy, yet effi-
cient way for measuring wind speed and detecting di-
rection. The device being automated, accurate and at the
same time cost effective, has potential use in weather
forecasting and in airports for identifying flying condi-
tions. The device has been fully developed and tested in
the Digital Laboratory of East West University, Bangla-
desh and has been found to have satisfactory perform-
ance. It has been found that the device has one degree
precision in identifying wind direction. The wind speed
measured by the presented system has been compared
with that obtained from standard devices and is found to
be in good agreement. It is worth mentioning here that
the total cost of developing the system is approximately
3500 Taka, which is much lower compared to the de-
vices used for the same purpose. For interfacing the