Vous êtes sur la page 1sur 7

Home Search Collections Journals About Contact us My IOPscience

Design and calibration of an inexpensive digital anemometer

This article has been downloaded from IOPscience. Please scroll down to see the full text article.

2008 Phys. Educ. 43 593

(http://iopscience.iop.org/0031-9120/43/6/005)

View the table of contents for this issue, or go to the journal homepage for more

Download details:
IP Address: 189.173.122.79
The article was downloaded on 19/02/2011 at 23:32

Please note that terms and conditions apply.


SPECIAL FEATURE: DI Y P HYSICS
www.iop.org/journals/physed

Design and calibration of an


inexpensive digital anemometer
R Hernández-Walls1, E Rojas-Mayoral2, L Baéz-Castillo3 and
B Rojas-Mayoral4
1
Facultad de Ciencias Marinas, UABC, Ensenada Baja California, Mexico
2
Centro de Investigación Cientı́fica y Superior de Ensenada, Ensenada, Baja California,
Mexico
3
Facultad de Ciencias, UABC, Ensenada, Baja California, Mexico
4
Facultad de Ciencias Naturales y Exactas, Unison, Sonora, Mexico

E-mail: rwalls@uabc.mx

Abstract
An inexpensive and easily implemented device to measure wind velocity is
proposed. This prototype has the advantage of being able to measure both the
speed and the direction of the wind in two dimensions. The device utilizes a
computational interface commonly referred to as a mouse. The mouse
proposed for this prototype contains an optical sensor which allows it to
situate itself in space. The prototype utilizes a pendulum with an attached
drag body. The pendulum’s drag body interacts with the fluid in motion,
causing an angle with respect to the vertical. The mouse measures the
displacement of a sphere attached to the pendulum and calculates the angle.
The resulting angle determines the relationship between the drag force and
the wind speed, thereby allowing the mouse to calculate the velocity. A
MATLAB script was written to process the data received from the mouse.
After calibration, the program determines the relationship between the pixels
measured and the pendulum’s angle, and so obtains information about the
wind. This system (device and software) eliminates human error in data
collection and storage, thereby considerably reducing the time and cost
associated with measuring wind velocity.
S Supplementary data are available from stacks.iop.org/physed/43/593

Introduction computer mouse as an electronic interface is an


alternative that avoids the design and construction
One problem in meteorology is that of obtaining
of an interface card between the computer and
reliable data in an autonomous way. In general, a sensor [4]. In this article, a prototype of an
meteorological instruments are expensive and anemometer is proposed that utilizes an optic
difficult to maintain. This problem can be solved sensor. Even though this prototype is similar
with a personal computer system. Any computer to a one-dimensional current meter, it has the
system will contain input and output devices, such advantage of being able to measure the wind’s
as a mouse and a monitor. It has been shown speed as well as its direction [4].
that a computer mouse can be used as an input This article is structured as follows. The
device for information [1–5]. The use of the next section contains the physical preliminaries

0031-9120/08/060593+06$30.00 © 2008 IOP Publishing Ltd PHYSICS EDUCATION 43 (6) 593


R Hernández-Walls et al
for obtaining an equation used to calculate the
speed and direction of the fluid in motion with the
proposed device. The following section describes
the assembly of the anemometer, consisting of
an optical mouse, a sphere and a pendulum. θ
Later, the calibration of the proposed device is
examined, followed by a description of how the
computer script captures the information. Finally,
the advantages, disadvantages and conclusions are
discussed. W T

Physical preliminaries
If we consider the case of a pendulum with weight
(W ), that, upon interacting with fluid in motion,
produces an angle with respect to the vertical (θ ),
resulting from the drag force ( Fa ) that the fluid Fa
exercises over the pendulum, then the resulting Figure 1. Right triangle representing the balance of
opposing force is the tension (T ). This can be forces obtained by modifying the free-body diagram.
described with a diagram of a free body, where
a balance of forces is obtained, as is shown in
following parameters can be considered constants,
figure 1. Using the trigonometric relationship
and that they may all be included in a constant:
between the angles and sides of a right triangle,
the following equation is obtained: 
2W
K ≡ . (6)
Fa Cd Aρ
tan θ = . (1)
W
Then equation for the velocity is
Solving for the drag force in equation (1),

v = K tan θ . (7)
Fa = W tan θ. (2)
If the value of the constant K is known, then
The drag force of an object surrounded by
only the deviation of the angle with respect to the
a stationary flow is defined by the following vertical is necessary to obtain a measurement of
equation [6]:
the velocity of the flow.
Fa = 12 Cd Aρv 2 (3)
Experimental device
where Cd is the drag coefficient, A is the
The main purpose of this project is to measure
area of the projection of the object on a plane
the drag angle with an optical computer mouse.
perpendicular to the direction of motion, ρ is the
The mouse is positioned on the upper portion
density of the fluid, and v is the flow speed.
of a sphere, which has free movement, while a
Setting equations (2) and (3) equal to each
pendulum is attached to the lower portion of the
other, the following equation is obtained:
sphere. When the pendulum interacts with fluid in
W tan θ = 12 Cd Aρv 2 . (4) motion, it changes its alignment, thereby causing
the attached sphere to rotate. The mouse detects
Solving for the velocity, we find the rotation of the sphere, as shown in figure 2.
 It was necessary to build a device that first
2W tan θ allowed the free movement of the sphere when
v= . (5) the drag object was interacting with the fluid,
Cd Aρ
and second, allowed the mouse to detect the
If we consider that the fluid and the object do movement of the sphere. The device is mounted
not change with time, it can be supposed that the on a triangular frame, inside which a sphere is

594 PHYSICS EDUCATION November 2008


Design and calibration of an inexpensive digital anemometer
Since the mouse detects any displacement of the
mouse surface below it by optical means, the mouse
has to be fixed to the upper part of the structure
sphere in such a way that it stays within a small and
constant distance to the sphere without making
any contact. A pendulum is attached to the
bottom of the sphere. A vane is used as a drag
body and is attached to the opposite end of the
pendulum
pendulum. When the vane interacts with the fluid,
the movement is transmitted to the sphere by the
flow pendulum. The mouse then detects the movement
(figure 3).
drag body The optical mouse is capable of measuring the
pixels of the rotating surface of the sphere, but not
the angle (θ ) resulting from the sphere’s rotation.
It is necessary to determine the relationship
Figure 2. Effect of the drag force on the pendulum. between the measured pixels and the drag angle
of the pendulum.

supported by skate bearings that allow the free


Pixel–angle relation
movement of the sphere without changing its
relative position with respect to the mouse. A For the rotation of the sphere, caused by an angle
board with a circular hole in the centre is affixed (θ ), there exists a specific quantity of pixels.
to the top of the frame. The mouse is attached Therefore the angle (θ ) can be defined as
to the board so that it can detect the movement
of the sphere through the hole in the board. θ = α · pixels. (8)

Figure 3. 3D model of the prototype.

November 2008 PHYSICS EDUCATION 595


R Hernández-Walls et al

55 16
50
14
45
12
40
speed (mph)

35 10

30 8
25 6
20 4
15
2
10
0
0
0 50 100 150 200 250 300 350 400
0 0.5 1.0 1.5 2.0 2.5 3.0 3.5
tan1/2 (θ) pixelsx
Figure 6. Angles plotted against the horizontal
displacement of the cursor in pixels.

proposed device. The weather gauge measures


wind speed based on the same physical principles.
The angles with respect to the vertical (θ )
were measured and the corresponding wind speeds
obtained via the weather gauge were plotted with
velocity (miles per hour) on the vertical axis and

tan θ on the horizontal axis (figure 4). A linear
regression with a correlation coefficient of 0.993
produced the following equation:

v = 15.179 tan θ . (10)

Figure 5. Calibration of the prototype with a protractor. The experimental device was calibrated
to measure the velocity of the air with K
(equation (7)) equal to the slope of equation (10).
The drag body must have the same weight (W ) and
Equation (8) describes a straight line with slope α . area ( A) as the drag body of the weather gauge.
Substituting equation (8) in (7): For obtaining the pixel–angle relationship,
 a protractor was placed on the base of the
v = tan(α · pixels) · K . (9) cage assembly (figure 5), and for each angle of
inclination (θ ) the movement of the surface of the
For the components: sphere was measured in pixels by the mouse in
 both the x -axis and the y -axis.
vx = tan(αx · pixelsx ) · K (9.1)
The measurements of the pixels against the
angles are shown in figures 6 and 7. The

vy = tan(α y · pixels y ) · K . (9.2) equation obtained from the linear regression, with
a correlation coefficient of 0.995, for the x -axis
The following section contains a description of was
how the estimation of the constant K was carried θx = 4.16 × 10−2 · pixels.
out.
For the y -axis, with a correlation coefficient of
Calibration 0.998, the equation obtained was
A commercial weather gauge (SELL-O-CRAFT θ y = 5.09 × 10−2 · pixels.
Sheboygan) was used for the calibration of the

596 PHYSICS EDUCATION November 2008


Design and calibration of an inexpensive digital anemometer

16
14
12
10
8
6
4
2
0
0 50 100 150 200 250 300
pixelsy

Figure 7. Angles plotted against the vertical


displacement of the cursor in pixels.

Therefore the value of the constant in equa-


tion (9.1) is αx = 4.16 × 10−2 , while in equa-
tion (9.2), α y = 5.09 × 10−2 .

Algorithm and script


The computer program for the calibration of the
prototype was written in MATLAB, since it offers
functions to obtain information from input devices
such as the mouse. The script is shown in box 1.
In order to obtain the coordinates of the
position of the cursor, it is necessary to obtain the
dimensions of the monitor. For this the function
get is utilized, as follows:

get(0, ‘screensize’).

In order to start using the prototype it is necessary


to set the initial position of the cursor. The
following function is utilized:
Box 1. MATLAB script for calculating wind velocity
set(0, ‘PointerLocation’, [x, y]).
with a mouse. This script is also available as a
supplementary data file in the online version of the
The function that obtains the position of the cursor journal at stacks.iop.org/physed/43/593.
when the prototype is in operation is

get(0, ‘PointerLocation’).
The calibration of the prototype is simple.
The high correlation coefficients obtained suggest
Advantages and disadvantages that the measurement of the wind velocity is
The materials of the proposed digital anemometer reliable.
are available at low cost. The software was This system can be easily adapted for other
designed with elementary programming concepts, environments, such as marine coastal zones or
making the reading and storage of the measured fluid mechanics laboratories. It is possible to
digital data and its subsequent processing efficient. measure the velocity in two dimensions of almost

November 2008 PHYSICS EDUCATION 597


R Hernández-Walls et al
any flow by calibrating the prototype for that [5] Ng T W 2003 The optical mouse as an inexpensive
specific fluid. device SPIE Proc. ETuF4 (San Diego, CA)
The main disadvantage of this prototype is (Bellingham, WA: SPIE Optical Engineering
Press) pp 1–3
that the mouse must be kept dry. [6] Roberson J A 1980 Engineering Fluid Mechanics
(Boston, MA: Houghton Mifflin)
Conclusions
The measurement range depends on the drag body Rafael Hernández-Walls received his
and the precision depends on the volume of the PhD in optics from CICESE, Ensenada,
Mexico. He currently works as a
sphere: the bigger the sphere, the greater the
professor and researcher at the School of
precision. Marine Sciences of the Universidad
It has been shown that an optical mouse can Autónoma de Baja California (UABC)
where he teaches physics and
be used as an inexpensive sensor of geophysical
computation, focusing on the
variables: in this case, the velocity of the wind development of new technologies for use
(speed and direction). in marine sciences.

Evaristo Rojas-Mayoral is a student


Acknowledgments currently working to obtain his Master’s
The authors acknowledge Andrea Liévana-Mac degree in physical oceanography from
CICESE, Ensenada, Mexico. In 2005, he
Tavish for her suggestions and comments. The earned his Bachelor’s degree in
first author also acknowledges support from SNI, oceanography from the Universidad
UABC and from SEP-CONACYT (México) under Autónoma de Baja California. Since
2001, he has worked on the design and
grants UABC-325 and SEP-2004-C01-47285. implementation of new methods and
technologies for measuring different
Received 14 May 2008, in final form 30 July 2008 properties of geophysical fluids.
doi:10.1088/0031-9120/43/6/005
Leonardo Baéz-Castillo is a student
working to obtain his Bachelor’s degree
References in physics from the Universidad
[1] Ochoa O R and Kolp N F 1997 The computer Autónoma de Baja California, Ensenada,
mouse as a data acquisition interface: Mexico. During his academic career, he
application to harmonic oscillators Am. J. Phys. has participated in the design and
65 1115–8 construction of instrumentation for both
[2] Yang Z and Maeda R 2000 Automatic micro flow physics and oceanographic laboratories.
rate measurement using a modified computer He is currently in the process of
completing his thesis in biophysics,
mouse device 1st Annual Int. IEEE-EMBS
carrying out his research in the laboratory
Special Conf. on Microtechnology in Medicine of Animal Reproduction and
and Biology (France) pp 288–91 Immunology.
[3] Modesto-Ortiz M, Martı́nez Y and González J I
2003 Observaciones De Nivel Del Mar Con
Instrumentos De Bajo Costo. Reunión Anual De
Braulio Rojas-Mayoral is a student
Geofı́sica (Mexico: UGM) p 159
working to obtain his Bachelor’s degree
[4] Hernández-Walls R, Luna-Hernández J R, in physics from the Universidad de
Rojas-Mayoral E and Navarro-Olache L F 2004 Sonora, Hermosillo, Mexico. His
Dispositivo electrónico, de fácil construcción, principal interest is in numerical
para medir la velocidad de un fluido Rev. Ing. modelling and the realization of applied
Hidráulica México 19 121–8 experiments.

598 PHYSICS EDUCATION November 2008

Vous aimerez peut-être aussi