Professional Documents
Culture Documents
Force Analysis of Blended Wing Body Aircraft: Department of Mechanical Engineering, NIE 1
Force Analysis of Blended Wing Body Aircraft: Department of Mechanical Engineering, NIE 1
Force Analysis of Blended Wing Body Aircraft: Department of Mechanical Engineering, NIE 1
Chapter 1
INTRODUCTION
Chapter 1
Introduction
The flight behavior of conventional aircraft configurations has been a long and
continuous process generating a large body of work. In recent years, air transportation has
increased and one of the developments to tackle the problems faced by the conventional
aircraft is the concept of a Blended Wing Body (BWB) aircraft. In the past decade, fuel
efficiency and noise reduction have proved to be the biggest challenges for aircraft
manufacturers. There has been a need to develop a new composite structure to push the
boundaries of current technologies and to breathe new life into civil transportation. BWB
bridges the gap between future requirements.
The BWB configuration is a new concept in aircraft design which provides greater
internal volume, aerodynamics and structural efficiency, noise reduction, and most
importantly significant improvement on cost-per-seat-mile. The design approach of BWB
is to maximize overall efficiency by integrating the propulsion systems, wings, and the
body into a single lifting surface. Wings are the major factor in any design considerations
for an aircraft, as it is the essential parameter which helps the designers for the calculation
of lift generated for that particular design. The wing design has undergone slow but
steady changes throughout the phase development of aircraft designs from the early days
to the present.
The aerodynamic force is the force exerted on a body by the air (or some other
gas) in which the body is immersed, and is due to the relative motion between the body
and the gas. The aerodynamic force arises from two causes:
Pressure acts locally, normal to the surface, and shear force acts locally, parallel to
the surface. The net aerodynamic force over the body is due to the pressure and shear
forces integrated over the total exposed area of the body. [1]
The other force acting on an aircraft during flight is its weight. Weight is a body
force and is not an aerodynamic force.
The roll axis is usually defined as the longitudinal axis, which runs from the nose to
the tail of the aircraft. A roll moment can be the result of wind gusts, control surfaces
such as ailerons, or simply by flying at an angle of sideslip
The Yawing momentis the aerodynamic force acting sideways along the length of the
aircraft i.e., along the yaw axis
Stability is the tendency of an airplane in flight to remain in straight, level, upright flight
and to return to this attitude, if displaced, without corrective action by the pilot. The axis
system is used in modeling all forces and moments is a modification of body-fixed axis
system (XYZ) called the stability axis system (XSYSZS). [4]
Fig 1.3 (a) shows how the stability system is defined in case initial sideslip is zero.
Fig 1.3 (b) shows how the stability system is defined in case initial sideslip is non-zero
The concept of Blended Wing body was introduced almost 30 years ago. The idea
was to build a new type of aircraft that would allow the aircraft to carry more passengers.
The BWB aircraft is not a fully novel concept because it was considered by Horten,
Northrop, and others from the mid-1930s to the mid-1950s, but was abandoned due to
stability and control issues. In addition, BWB aircraft was previously called “Tailless
[5]
Airplane” and “Flying Wing Aircraft”. BWB is a major advancement in wings from
conventional airplanes which involves a unique tailless single entity where the fuselage is
merged with wing and tail. Blended wing body has flattened and airfoil surface which
contributes higher lift than conventional ones.
The performance potential implied by the BWB concept provided the incentive for
NASA Langley Research Center to fund the study conducted by McDonnell Douglas to
develop and compare advanced technology subsonic transports for the design mission of
800 passengers and a 7000 mile range at a Mach 0.85.[6]
In the preliminary design the pressurized passenger compartment consisted of
adjacent parallel tubes, a lateral extension of the double-bubble concept.
On comparison with the conventional aircraft design configuration the newly
formulated concept by Douglas was found to be significantly lighter, had a higher lift to
drag ratio and a substantially lower fuel burn. [7]
Advantages of BWB
The major advantages of a BWB aircraft over conventional aircraft are
Disadvantages
a) High bending stresses resulting fromthe effect of pressure on the box-likeshape
of the BWB
b) High bending stress associatedwith a non-cylindrical pressurevessel.
c) typical aircrafts have a cylindrical shape which requires less strength and
iseasier to pressurize as opposed to the interior shape of a BWB
1.5 Objectives of the project
Any plane will have design characteristics upon which the planes are built. A
study is done on the characteristic properties required to design a blended wing
plane. Most contributing characteristic properties are chosen and planes are
designed, fabricated and tested numerically and physically to study the change in
aerodynamic characteristics with change in their factors.
1.6 Methodology
For finalizing the model it is required that the designed airplane generates lift at zero
angle of attack and no flow separation is observed.
Pre-Processing: This step is basically setting up of the flow problem using the
analysis software; geometry of BWB is created and is imported to suitable
meshing module. This meshed model is called as mathematical model.
Appropriate materials and boundary conditions are assigned to the various
domains of the meshed file in this step.
Solving the mathematical model: The solver of analysis software solves the
mathematical model based on boundary conditions and relevant algorithm is
employed.
Post-Processing: The air velocity and other desired parameter’s contours are
plotted which would help us in establishing a conclusion. The desired data is
plotted using any mathematical tool.
3. Fabrication of BWB
Suitable material and machining process are chosen based on cost, availability,
weight and ease of machining.
For the physical testing of BWB a suitable test rig is designed which is also
compactable with the available wind tunnel.
Using test Rig and wind tunnel the following models are tested for different Angle
of Attack
Readings are validated by comparing the physical analysis results with numerical
analysis.
Chapter 2
Literature Review
Chapter 2
Literature Review
The estimation and selection of aircraft design parameters, planform design, reflex
airfoils, and conduct thorough stability investigation of the aircraft requiresa conceptual
design of BWB aircraft after which the design has to be analyzed and refined to achieve
static stability. The CFD analysis of the BWB aircraft done at three different values of
Angle-of-attack (AOA) and the stall AOA can be determined from the computational
results.[10]
A six-component external balance of the first platform type balance designed and
manufactured in the Military Technical Institute (VTI), RatkaResanovića, and Belgrade,
SERBIA has shown that the balance has provided very good accuracy. Usually, design
and manufacturing of wind tunnel balances are based on very contrasting requirements.
The balance flexure elements should be optimized such that the magnitude of the strain
response is approximately the same for the individual application of each component of
the load. However, the magnitudes of the loads generated on a wind tunnel model in each
balance component are not equivalent; therefore, the flexure elements do not have the
same deflection in all directions.[12]
Method C: Extreme-value analysis of wind tunnel data and wind climate statistics
Method C applies an extreme value analysis of the measured extremes. This analysis is
combined with the wind climate statistics. A target probability of the load effect is used as
the basis for the determination of the wind loads.
Since there is a range of demands, often conflicting, when setting up an
experiment, there are still discussions going on about the optimal way to perform wind
tunnel experiments. When wind tunnel experiments are commissioned, expert judgement
of the modeling and analysis of the results is still an important issue. [13]
Various modelling techniques and design methodologies were used to simulate the
performance of a six component stress wave force balance. This variety in the modelling
techniques enabled a variety of design features to be investigated and their effects on the
balance performance quantified which in turn enabled the measurement capability of the
design to be optimized for the loading time histories expected in a reflected wind tunnel.
The performance of the design suggests that it should be capable of measuring three
forces and two moment components, but not suitable for accurate measurement of rolling
moment.[14]
2.4 Summary
BWB configured aircraft is more fuel efficient and has a higher lift to drag ratio
than conventional aircraft of the same capacity. Therefore it is worth analyzing the
characteristics.
A BWB section can be of any airfoil profile.
A low speed wind tunnel can be adopted for the project
External force balance can be used to effectively measure the forces as far as the
setup is appropriate.
Chapter 3
Design of BWB
Chapter 3
The design of BWB model revolves around the aerodynamic properties and
behavior of the entire structure. In this project, several airfoils of the same profile but
different sizes are chosen and these are placed in center body, blending area and outer
wing according to the BWB design requirements. The platform design variables are
defined with the airfoils and geometric constraints.
3.1Airfoil Selection
A Clark Y airfoil is chosen not for any particular specialty or properties but
because of the fact that it was very widely used for conventional aircraft design purposes
3.2Airfoil Characteristics
The characteristics of the Clark Y airfoil for a flow Reynolds number of 500,000 are
shown in the graphs below[16]*
*Generated from internet
Max Cl/Cd: 98.66 at α=3.75°
Platform and typical airfoils of BWB configuration are shown in Fig. Three
airfoils are located in span wise direction, where 1 is the center body, 2 is the blended
area and 3 is the outer wing. In this platform optimization design process, each wing
section’s thickness-to-chord ratio is changed so as to satisfy the thickness constraints.
Fig 3.4 (b): Outer wing Airfoil with 10° Angle-of Attack
Department of Mechanical Engineering, NIE 18
Force Analysis of Blended Wing Body Aircraft
Chapter 4
Chapter 4
Fabrication
Chapter 4
Fabrication
The model aircraft needs to have the following properties for the wind tunnel testing:
The following fabrication methods are considered in order to achieve the properties
listed above:
3D printing: Dimensional accuracy is high, process is easy and available. But the
expenses are too high
CNC Foam machining: Process is very accurate. Machining complexity and
expenses are high.
Mold and cast: Process is inexpensive but is considerably difficult and time
consuming. Accuracy is considerable
Foam hot wire cutting: XPS Pink foam is cut using a hot nichrome wire. The
nichrome wire is heated by a regulated power supply. This process is cheaper and
materials are easily available. Hence this process was selected.
The patterns of airfoils at the sections of the aircraft were laser cut on plastic plate
to the required scale. Then patterns are attached on the XPS Pink foam and are cut to loft
shape through hot wire cutting. The roughness of the surface is smoothened by sand
paper. The finished model is then accommodated on the fabricated test rig to test it on a
wind tunnel.
The Blended Wing Body prototype is fabricated using XPS Pink foam in the
following steps:
Generation of Clark-Y airfoil for various lateral sections of the BWB to the
required scales and dimensions.
Each section of the BWB is an airfoil, three sections were chosen and the
exact dimensions of these sections are laser cut to scale on plastic plate.
Hot wire cutting of the XPS Pink foam to the lofted shape of two airfoils for four
sections. Using two airfoils at a time, these airfoil plates are temporarily fixed to
two opposite faces of rectangular prismatic foam. The foam is cut into the lofted
shape of the two airfoil shapes. The rough surface of the wire cut model is
smoothened to the desired shape using a flat file and sand paper. This is done for
all the sections i.e. two symmetrical pairs for one model.
The sections plane are then joined using suitable adhesive to form a fully
developed model of a blended wing body aircraft
The assembly forming a BWB model is then surface finished by sand paper.
Chapter 5
Design and Fabrication
of Test Rig
Chapter 5
Aerodynamicists use wind tunnels to test models of proposed aircraft and engine
components. During a test, the model is placed in the test section of the tunnel and air is
made to flow past the model. Various types of instrumentation are used to determine the
forces on the model. They are as follows:
Directly measure forces and moments- Force balance: In some wind tunnel
tests, the aerodynamic forces and moments on the model are measured directly.
The model is mounted in the tunnel on a special machine called a force balance.
The output from the balance is a signal that is related to the forces and moments
on the model. Balances can be used to measure both the lift and drag forces. The
balance must be calibrated against a known value of the force before, and
sometimes during, the test. Force measurements usually require some data
reduction or post-test processing to account for Reynolds number or Mach number
effects on the model during testing. It is very important in data reports to always
specify the reference value of variables used in data reduction.
Measure pressure and derive performance: n some wind tunnel tests, the model
are instrumented with pressure taps and the component performance is calculated
from the pressure data. Total pressure measurement is the normal procedure for
determining aircraft inlet performance. Theoretically, the aerodynamic force on an
aircraft model could be obtained using pressure instrumentation by integrating the
pressure times an incremental area around the entire surface of the model. But, in
practice, pressure integration is not used because of the large number of taps
necessary to accurately resolve pressure variations. Airfoil drag can be determined
by integrating the total pressure deficit in the wake created by a wing model.
Measure pressures or velocity for diagnostic purpose: In some wind tunnel
tests, the model is instrumented to provide diagnostic information about the flow
of air around the model. Diagnostic instrumentation includes static pressure taps,
total pressure rakes, laser Doppler velocimetry, and hot-wire velocity probes. A
diagnostic test does not provide overall aircraft performance, but helps the
engineer to better understand how the fluid moves around and through the model.
There are a variety of flow control devices that are employed to improve
performance of the aircraft, if the local flow conditions are known. Depending on
the type of instrumentation used in the experiment, steady state flow or unsteady,
time-varying, flow information can be obtained. The engineer must use some
experience when employing flow diagnostic instrumentation to properly place the
instruments in regions of flow gradients or separations.
Flow visualization for diagnosis: In some wind tunnel tests, flow visualization
techniques are used to provide diagnostic information. Visualization techniques
include free stream smoke, laser sheet, or surface oil flow. The assumption is
made that the flow visualization medium moves exactly with the flow.
Shadowgraphs or schlierin systems are used to visualize the shape and location of
shock waves in compressible flows. For low speed flows, tufts or surface oil
indicate the flow direction along the surface of a model.
Finally, force balance was chosen as it involves less expensive parts and easy to
fabricate. Force balance can measure the all the moments and forces on the body placed
inside the wind tunnel.
It would be then a major asset if an affordable and flexible wind tunnel balance
was developed, that could still achieve an accurate estimation of the aerodynamic loads.
This way it would be possible to spread its use allowing smaller institutions or
organizations to take advantage of this kind of technology. This work is within the scope
of the rehabilitation project of the fluid mechanics laboratory of Instituto Superior
Técnico (IST). Based on past experience, the quality of the data acquisition, the reliability
of the equipment, and ease of use and maintenance has been privileged.
With the tunnel turned off and no air passing through the test section, the weight(W)
of the model and mounting system is determined as the sum of the forces from gages A,
B, and C. The tunnel is then turned on and air flows over the model. The model generates
aerodynamic forces and moments that changes the readings on the strain gages.
If there is no rolling moment, the values of A and B are equal. If there is a rolling
moment (RM), the value is given by:
RM = (A - B) * a / 2
Similarly, the yawing moment, (YM) is:
YM = (D - E) * c / 2
And the pitching moment, (PM) is:
PM = C * b
Material used for the base: Tubes and bars of mild steel
Material used for the mount: An acrylic floating plate is used onto which M8 threaded
rods made of mild steel are mounted as shown in the figure above. The threaded rods
enable easy articulation of the plane inside the wind tunnel. The load cells are connected
to the base using arms made out of mild steel bars. All the components are fastened using
M6 stainless steel bolts.
Chapter 6
Numerical Analysis
Chapter 6
Numerical Analysis
With the increased power of the computer, much improved computational fluid
dynamics (CFD) computations can be performed with higher flexibility and accuracy. In
the present work, laminar flow is provided in the entrance region of the BWB aircraft. A
finite volume approach is employed to obtain the lift and drag on BWB plane
6.1 Model Description
The BWB plane designed in the design stage of the project is used as model and
an enclosure of 500mm length, 200×200 mm2 is considered. The face in front of the nose
is considered as air inlet and face opposite to it is considered as air outlet. Different
angles of attack are attained by tilting the enclosure around the airplane.
Analysis is done for the angles of attack of 0°, 5°, 10°, 15°, 20°and 25°. The same is done
for flying and conventional plane.
The continuity, momentum and energy equation for the problem can be written as:
Continuity Equation:
∂u ∂ v ∂w
+ + =0
∂x ∂ y ∂z
X-Momentum Equation:
∂U ∂U ∂ U −dP 1 ∂2 U ∂2 U ∂ 2 U
( U
∂X
+V
∂Y
+W
∂Z
= + ) + + (
dX Re ∂ X 2 ∂ Y 2 ∂ Z 2 )
Y-Momentum Equation:
∂V ∂V ∂ V −dP 1 ∂2 V ∂2 V ∂ 2 V
( U
∂X
+V
∂Y
+W
∂Z
= +) + + (
dY Re ∂ X 2 ∂ Y 2 ∂ Z2 )
Z-Momentum Equation:
∂W ∂W ∂ W −dP 1 ∂2 W ∂2 W ∂2 W
( U
∂X
+V
∂Y
+W
∂Z
= + )
+ +
dY Re ∂ X 2 ∂ Y 2 ∂ Z 2( )
Energy Equation:
∂θ ∂θ ∂θ 1 ∂2 θ ∂2 θ ∂ 2 θ
( U
∂X
+V
∂Y
+W
∂Z
= ) + ( +
R e Pr ∂ X 2 ∂ Y 2 ∂ Z 2 )
x y z u v w
Where X =
Dh
, Y = Dh
, Z = Dh
, U = , V = , W = .
u¿ u¿ u¿
Lift and Drag are found out for the above mentioned values of Angles of Attack
2l
C l=
ρV 2 A
2D
C d=
ρV2 A
Table 6.1 Numerical Lift and drag values for Zero angle of
twist
Angle of
Speed Lift Drag
Attack(degrees
(m/s) (kgf)×10-3 (kgf)×10-3
)
0 7.5 12.31 3.64
5 7.5 18.23 4.43
10 7.5 23.62 5.11
15 7.5 35.56 8.52
20 7.5 24.54 12.51
Table 6.2 Numerical Lift and drag values Ten degree angle of
twist
Angle of
Speed Lift Drag
Attack(degrees
(m/s) (kgf)×10-3 (kgf)×10-3
)
0 7.5 26.82 3.95
5 7.5 23.34 5.78
10 7.5 20.84 7.79
15 7.5 18.08 13.51
20 7.5 40.52 16.67
Chapter 7
Physical
Experimentation
Chapter 7
Physical Experimentation
Objective:
To determine the lift and drag forces acting on a BWB aircraft for various values
of Angles of attack
Setup
A wind tunnel of the following specification is used to measure the forces on the
model planes.
• Cross-sectional area: □ 200×200mm
• Max wind velocity: 7 m/s at 10000 RPM
• Length: 500 mm
• Motor: 1000 KV
The following parameters can be altered to achieve different lift and moment values.
Angle of attack: airfoils are twisted with respect to other airfoil sections to
change the angle of attack and thus lift
Downward force can be generated at the trailing part of the airfoil to
account for the tail which is absent
Different airfoils can be used at different sections
For this project, the lift at different sections cannot be measured with the
available set up. Thus the overall lift and drag will be determined and
compared with conventional configuration of airplane and flying wing
configuration
The plane is mounted in the wind tunnel on the 3 probes of the force balance. The
following steps are followed to perform the test
The plane is mounted at zero degree angle of attack. Lift force and drag force is
measured for varying air velocities.
To measure the drag force, the three load cells in the lower part are removed the
readings are taken from the upper 2 load cells. The 2 readings are added to get the
value of force in grams
To measure the lift force, the upper 2 load cells are removed. The readings are
taken on the other three load cells and are added to get the lift force in grams.
Experimentation Readings:
Table 7.1: Zero angle of twist, 0⁰ AOA Table 7.2: Zero angle of twist, 5⁰ AOA
Table 7.3: Zero angle of twist, 10⁰ AOA Table 7.4: Zero angle of twist, 15⁰ AOA
Table 7.6: 10° angle of twist, 0⁰ AOA Table 7.7: 10° angle of twist, 5⁰ AOA
Table 7.8: 10° angle of twist, 10⁰ AOA Table 7.9: 10° of twist, 15⁰ AOA
Chapter 8
Results and Inference
Chapter 8
Table 8.1: For zero degree twist plane, the Lift and Drag at 7.5 m/s and different values of
angles of attack are as follows
0 11.76 3.51
5 16.16 8.95
10 21.81 4.68
15 33.6 6.85
20 18.76 9.58
Table 8.2: For ten degree twist plane, the Lift and Drag at 7.5 m/s and different values of
angles of attack are as follows
0 24.24 5.34
5 23.18 8.23
10 24.9 13.98
15 19.54 14.5
20 36.83 18.31
12
10 Zero degree AOA
8 Ten degree AOA
6
4
2
0
0 5 10 15 20 25
Angle of attack (deg)
The following inferences can be made about the zero degree angle of twist BWB aircraft
by the above results
It can be observed that the angle of attack is increased, the lift force increases till a
certain point and then decreases. The decrease may be due to the flow separation
on the surface of the plane and high angles
It can also be noticed that with the increase in the speed of the aircraft, the lift
force increases constantly with the velocity, until the flow separation starts. As
flow separation decreases the total wetted area, the lift force generated may be less
compared to when the wetted area is high which might be the cause of decrease in
the lift force
We can see that the drag force increases with increase in speed. It increases
significantly at higher speeds as the drag is a function of square of speed. So the
drag opposition is very high as the speed increases.
We can also see that the drag increases with the increases in angle of attack. This
may be because of the following reason. Though the skin friction drag remains
same for a constant speed, the pressure drag increases as the cross sectional area
increases with increase of angle of attack.
The following inferences can be made about the ten degree angle of twist BWB
aircraftas compared with the one with zero twist, by seeing the above results
At zero angle of attack, the 10° AOA plane generates more lift as compared to
the 0° AOA plane. This extra lift is generated from the twisted sections of the
airplane as they will have some angle of attack even when the angle of attack
of the plane is zero.
It can be observed that the drag force is more in the 10° AOA plane than the
latter. This may be because the twist results in the increased cross-sectional
area of the plane, increasing the pressure drag.
It can be observed that the lift at angle of attack of 20°, the lift force increases
significantly. This may be because at high angles, a vertical component of
pressure drag adds to the lift. This phenomenon can be seen in planes when
they are landing.
With increase in speed, the lift starts to decrease after a point. This may be due
to the flow separation at the high twist zones of the airplane.
25
20 Experimental
Numerical analysis
15
10
5
0
0 5 10 15 20 25
Angle of attack (deg)
10
8 Experimental
6 Nuerical analysis
4
2
0
0 5 10 15 20 25
Angle of attack (deg)
25 Experimental
20 Numerical analysis
15
10
5
0
0 5 10 15 20 25
Angle of attack (deg)
12
Experiental
10
8 Numerical analysis
6
4
2
0
0 5 10 15 20 25
Angle of attack (deg)
From the above graphs, it can be observed that the natures of the graphs of numerical
and experimental are similar. Still, there exist a deviation in the values of lift and drag.
The following may be the reasons for the errors observed
Chapter 9
Conclusion
Chapter 9
Conclusion
9.1 Conclusion:
Two characteristic factors that affect the design a BWB aircraft, choice of airfoil
and angle of twist, are studied and its influence on the aerodynamics of the airplane
observed using numerical and experimental approaches. Desirable properties of different
airfoil can be incorporated in a single aircraft by making a blend of those 2 airfoil at
different sections of the airplane. Different angles of twist can be given as per the lifting
and loading requirements. Lift and drag forces are observed for different angles of twist
and the variation of the same with change in speed of the aircraft. A Numerical approach
using ANSYS is used to find the lift and drag values of the aircraft at different angles of
attack. This numerical method is validated by an experimental approach.
A force balance is also designed to measure the aerodynamic forces and moments
of any body with a suitable wind tunnel. This force balance is capable of detecting the
forces at a resolution of 1 gram force. Different bodies can be adjusted by changing the
placement of the 3 probes on the force balance. An experimental procedure is also
defined to measure all the forces and moments. The results of the experimental approach
show a close correlation to the numerical analysis. The variations from the norm can be
attributed to the nascent stage of both the force balance and the wind tunnel used.
More experiments need to be carried out in order to refine the test rig so that the
variation in the numerical & experimental results is reduced.
The test rig designed is limited with respect to the physical & flight behaviour
characteristics of the wind tunnel and the aircraft. Modifications need to be done for
larger aircraft and/or wind tunnel.
References
[1] Anderson, J.D. Jr Aircraft performance and design. Section 2.2
[4] wpage.unina.it/agodemar/MS2011/2_ForzeMom_Aerod.pdf
[6] R.H. Liebeck, design of the blended wing body subsonic transport, Journal of
Aircraft, 41, 2004, 10-25
[7] N. Qin, A. Vavalle, A.L. Moigne, Aerodynamic studies for blended wing aircraft,
Proc. Of 9th AIAA/ISSMO Symposium on Multidisciplinary Analysis and Optimization, 4-
6 September 2002
[15] Robert Placek“Errors and problems while conducting research studies in a wind
tunnel”,Transactions of the Institute of Aviation No. 4 (245), pp. 169-177, Warsaw
2016Doi: 10.5604/05096669.1226885
[16] http://en.wikipedia.org/wiki/Clark_Y
[17] http://airfoiltools.com/polar/details?polar=xf-clarky-il-500000
Appendix
Connections:
Fig A1: Circuit connections for calibration of load cell using HX711 Amplifier
#include "HX711.h"
HX711 scale1(3, 2);
HX711 scale2(6, 5);
HX711 scale3(9, 8);
float calibration_factor_1 = 260;
float calibration_factor_2 = 283;
float calibration_factor_3 = 236;
float units;
float ounces;
float Rx1;
float Rx2;
float Rx3;
intFx,Fy, Fz;
float a = 0.04;
float h = 0.104;
void setup()
{
Serial.begin(19200);
Serial.println("HX711 weighing");
scale1.set_scale(calibration_factor_1);
scale1.tare();
scale2.set_scale(calibration_factor_2);
scale2.tare();
scale3.set_scale(calibration_factor_3);
scale3.tare();
Serial.println("Readings:");
}
void loop()
{
float sum1=0, sum2=0, sum3=0;
int j=5;
for(inti=0; i<j; i++)
{
Rx1 = scale1.get_units(),10;
ounces = Rx1 * 0.035274;
sum1+=Rx1;
Rx2 = scale2.get_units(),10;
ounces = Rx2 * 0.035274;
sum2+=Rx2;
Rx3 = scale3.get_units(),10;
ounces = Rx3 * 0.035274;
sum3+=Rx3;
}
float R1=sum1/j;
float R2=sum2/j;
float R3=sum3/j;
Fz = -(R1+R2+R3);
Fy = ((a/2)*(R3-R1))/h;
Fx = ((R2)*a*0.8660)/h;
Serial.print("Fx = ");
Serial.print(Fx);
Serial.print("\t\t");
Serial.print("R1 = ");
Serial.println(R1);
Serial.print("Fy = ");
Serial.print(Fy);
Serial.print("\t\t");
Serial.print("R2 = ");
Serial.println(R2);
Serial.print("Fz = ");
Serial.print(Fz);
Serial.print("\t\t");
Serial.print("R3 = ");
Serial.println(R3);
Serial.println(" ");
delay(1000);
}