Manual E-Structure - R5-2 - EN
Manual E-Structure - R5-2 - EN
March/2019 – R5.2
Manual e-structure_R5-2 - EN
2
Control of Editions and Revisions of Basic Manual for Construction and Use of ε-structure UNO
Edition Code Description Date Place Elaboration
1ª R5.1 Emission Dec/2018 Campinas, SP João Batista Lamari Palma e Silva
1ª R5.2 Inclusion of Mar/2019 Campinas, SP João Batista Lamari Palma e Silva
information
about the
App and
FireBase
Manual e-structure_R5-2 - EN
3
Summary
1. Introduction ...................................................................................................................... 4
2. System Construction ......................................................................................................... 5
2.1 Design and construction of Hardware .......................................................................... 5
2.2 Programming Firmware the Arduino UNO.................................................................. 10
2.3 Software Mobile Development ................................................................................... 11
3. Using the System ............................................................................................................. 14
3.1 Application for Operation (software mobile) .............................................................. 15
3.2 Strain Measurements .................................................................................................. 21
3.3 Displacement Measurements ..................................................................................... 26
3.4 Force Measurements .................................................................................................. 26
3.5 Temperature Measurements ...................................................................................... 27
4. Publications ..................................................................................................................... 29
Manual e-structure_R5-2 - EN
4
1. Introduction
The ε-structure UNO presents itself as an experimental system proposal for Structural Health
Monitoring (SHM), based on the Arduino platform®, for measurement of the following
quantities: strain, displacement, force and temperature.
This system has a hardware that is compatible with the Arduino® board, model UNO R3, as well
as software for mobile devices (smartphones and tablets) which those have been used in that
use an Android® operating system developed through the MIT App Inventor platform.
• Strain Gauge;
• Displacement transducers;
• Load Cell;
• Temperature sensor DS18B20®.
The development of another version (previous to the ε-structure UNO) of this experimental
system, occurred during a Master of Science research of the developer, with this fact,
complementary information could be obtained by consulting the dissertation and the
publications listed in the item Publications of this Manual.
The developer, in addition to the institutions, which have or had relationship with the author,
are not responsible for failures, errors, defects, damages or any other problems arising from the
construction and use of this system, since it has a didactic and experimental purpose. Thus,
under the full responsibility of the user’s management of this information and the results of
experiments and tests of any nature.
Your collaboration is very important, so if you find something that needs to be revised or
corrected in this Manual, please contact ([email protected]).
Manual e-structure_R5-2 - EN
5
2. System Construction
The system ε-structure UNO consists of a hardware and software, and the second of them has
been available by the author, according to the instructions at item 2.2 and 2.3 of this Manual.
On the hardware side, it has been recommended that it be made together with an printed circuit
board (PCB) or copper plate of fenolite, according to the design available on the EasyEda
platform, with complementary information described in item 2.1 in this Manual.
The composition of this circuit in a board of phenolite, after immersion in iron perchloride,
presents the characteristics of the image of Figure 2a and the manufacture of the PCB in
industrialized form, presents the characteristics of Figure 2b, which was made with material FR4,
and tracks (Copper Thickness) in the thickness of 1/1oz.
Manual e-structure_R5-2 - EN
6
Figure 2 - Circuit made of copper phenolite board (a); Industrialized PCBs (b)
(a) (b)
The constant components in the list, in Table 1, must be soldered to the board, except for items
1, 2, 3, 4, 11 and 14, which are recommended to be removable using pin bars specified in
mentioned Table. Some of the Table items have links to the components' datasheet, or to
illustrations, to make it easier to understand what is needed to build the hardware.
Table 1-List of materials and components
Manual e-structure_R5-2 - EN
7
Figure 3 illustrates the board with the installed components. The HX711 module must face the
main circuit board downwards. The insulated cables from item 22 of Table 1, are showed in
green and yellow on the board in Figure 3.
Figure 3 - Appearance of the Board with Components
Knowing that components of items 2 and 3 of Table 1, i.e. modules HX711 and HC-05, depend
on the installation of the pin bars, Figure 4 shows the board without said modules, which were
mentioned ,but with the pin bars, previously installed. The resistors R1 and R5 must be
Manual e-structure_R5-2 - EN
8
removable, therefore, it is recommended to install turned pins for installation of resistors which
were mentioned. The IC 4N25 (item 4, of Table 1) is installed over the 6-pin IC socket.
Figure 4 - Phenolite board with part of the installed components (a); PCB industrialized with part of the
installed components (b)
(a) (b)
The HX711 and HC-05 modules must display soldered pin bars as shown in Figure 5, therefore
pins for the main surface of their circuits.
Figure 5 - Pin bar installation on modules HX711 (a) and HC-05 (b)
(a) (b)
Figure 6 shows the welds of the components next to the copper track circuit of the phenolite
board (a) and PCB (b), which the male pins are distinguished for connection with Arduino® UNO.
Manual e-structure_R5-2 - EN
9
Figure 6 - Phenolite board with solder of components (a); PCB with soldering of components (b)
(a) (b)
Figure 7 shows ε-structure UNO’s hardware, with all components. Figure 8, which hardware was
mentioned and installed on an Arduino® UNO.
Figure 7 - Hardware of the ε-structure UNO with all the components
This video is available, describing the hardware of ε-structure UNO, at the following link
https://youtu.be/G2vdSBsBcMI.
Manual e-structure_R5-2 - EN
10
To obtain successful results, it is recommended that the resistors R1, R2 and R3 must be at high
precision, , in other words, the variation of resistance well be tolerated equal to or less than
0.1% and with low Temperature Coefficient Resistance (TCR), equal or less than ± 10 ppm/°C.
Trying to use resistors with 1% tolerance, it is suggested to acquire a large batch of the same
ones (due to the low cost) and to select with multimeter those which present the closest value
wanted.
#define ONE_WIRE_BUS 9
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup() {
Serial.begin(9600);
sensors.begin();
pinMode(porta_cal1, OUTPUT);
digitalWrite(porta_cal1, LOW);
}
void loop() {
sensors.requestTemperatures();
Serial.print("10X,"); // não alterar
Manual e-structure_R5-2 - EN
11
scale.set_gain(128);
Serial.print(scale.read());
Serial.print("A,");// não alterar
scale.set_gain(32);
Serial.print(scale.read());
Serial.print("B,");// não alterar
Serial.print(sensors.getTempCByIndex(0));
Serial.print("C,");// não alterar
valor = analogRead(potenciometro);
Serial.print(valor);
Serial.println("D,");// não alterar
{
if(Serial.available())
{
char numero = Serial.read();
if (numero == 'L')
{
digitalWrite(porta_cal1, HIGH);
}
else
if(numero == 'D')
{
digitalWrite(porta_cal1, LOW);
}
}
}
}
This code must be recorded on the Arduino® UNO for system operation. This code can be tested,
running on Arduino, via serial monitor. It is recommended that when recording the code on
Arduino® UNO the ε-structure UNO board is not connected to it.
Manual e-structure_R5-2 - EN
12
Figure 9 - Search for the ε-structure UNO App next to the MIT App Inventor Gallery
After finding the App in Figure 9, click which "aia" file will be uploaded to your
account. After loading the "aia" in your account, you must configure the Firebase server data
(Figure 10): FirebaseToken; FirebaseURL; and ProjectBucket. For a better understanding of how
to do this step, access the example server configuration video at
https://youtu.be/aM7cdRnzklQ. As well as read the other instructions below.
Figure 10 - setting Firebase information with App Inventor
Then click and choose between the first two options to generate “apk” file, according
to Figure 11 for later installation on your device (smartphone or tablet).
The can generate the "apk" file to download on the computer itself, or through a QR
code to install directly on the device (smartphone or tablet).
Manual e-structure_R5-2 - EN
13
Manual e-structure_R5-2 - EN
14
Manual e-structure_R5-2 - EN
15
1 2
4
3
6 7
8
5
10
11
14
13 15
12
After starting the application (App) from the access icon to it, "Home Screen" (Figure 13) allows
to choose between 4 options, i.e.: "Local Acquisition" (Aquisição Local); "Remote Acquisition"
(Aquisição Remota); "Instructions" (Instruções) and "Exit" (Sair).
Even, using remote acquisition feature, a device (smartphone or tablet) must be paired and
connected to the hardware of the ε-structure UNO which is done initially from accessing "Local
Acquisition" (Aquisição Local).
Manual e-structure_R5-2 - EN
16
After accessing the "Local Acquisition" (Aquisição Local) screen (Figure 14), the user must click
"Connect" to choose the "HC-05" Bluetooth® module. Previously, to access this stage, the
module which has been mentioned, should already be paired with the device (smartphone or
tablet), by accessing the settings of this type of connection, using the default password, which
will probably be "1234" or "0000".
For a better understanding of the use of this screen, access the sample data acquisition video at
the following link https://youtu.be/sbgeBgqNnYw. As well as reading the instructions below.
Manual e-structure_R5-2 - EN
17
1 2
10
11
12
The user’s interface elements are detailed below, according to the numbers, in Figure 14:
1. The Connect (Conectado) and Disconnect (Disconectado) buttons allow you to interact
with the Bluetooth® module, as well as to verify the status of the connection (connected
or disconnected);
Manual e-structure_R5-2 - EN
18
2. The Exit (Sair) button allows you to exit the Local Acquisition screen, ending the
acquisition and saving the data to the device memory, if the Record (Gravar) (item 12 -
Results) option is selected;
3. Select channels those which will be able to read how to use each CheckBox. Stop (Sair)
Button closes data acquisition;
4. You can apply the Moving Average Filter first, by entering the average range (numeric
value) and in sequence enabling this feature, by using the CheckBox. This Moving
Average Filter feature is not available in "aia" files available in MIT App Inventor Gallery,
because it depends on the installation of an external extension not supported by Gallery.
5. Ch means channel, in this case Channel 01, which is responsible for the strain readings.
Lr are the relative readings, of amounts of values received in bytes and not yet converted
into specific strain. In TextBox Nome a name can inserted for these strain readings. In
TextBox Rg(Ω), the resistance value of the strain gauge must be inserted, usually such
values as 120, 350 and 1000. In TextBox K, the value of the Gauge Factor Sensitivity
Coefficient must be also inserted. In TextBox Rc (Ω), the value of the calibration resistor
(Resistor Shunt) must be inserted too. The value of this resistor must be checked with
multimeter and the value used is detected. At the present time, Veng (με) is the value
of the equivalent strain calculated for calibration, by means of Equation 1, therefore
indirect calibration method. Finally, Deformação (με) is the final value of the specific
strain, without application of the Bridge Factor;
6. So, Channel 02, is responsible for temperature readings. Lr are relative readings,
consequently the values are received in degrees Celsius. In TextBox Nome, a name can
be inserted for these temperature readings. Which (°C) is the temperature in Celsius and
degrees (°F) is the temperature in Fahrenheit degrees;
7. Thus, Channel 03, which is responsible for the Force readings. Lr are relative readings,
and those are the values received in bytes and not yet converted into Force. In TextBox
Nome, a name can be inserted for these Force readings. In TextBox F.Conh. necessarily,
must be inserted the value of the known Force (numerical value without unit of
measurement) applied to the load cell at the appropriate time of the calibration and
must be inserted by direct method. Finally, Força, as the final value of the force, in the
same unit of measure of the Known Force applied in the calibration;
8. Then, Channel 04, is responsible for the Displacement readings. Lr are relative readings,
which are the values received in bytes and not yet converted into Offset. In TextBox
Nome a name can be inserted for these Displacement reads. In TextBox Curso,
necessarily, must be inserted the value of the transducer travel course (i.e. the
maximum value read by the transducer, for example 25 mm, inserted without an unit of
measure) because this displacement must be manually applied to the transducer during
the transducer process to calibration, by direct method. Finally, Deslocamento is the
final value of the displacement, in the same unit of measure of the course applied in the
calibration;
9. This is about how to refer, to bring up Calibration (Calibração) which can only be started
after all the fields have been followed by the enabled channels which have been filled.
Calibration is performed using the following buttons: after clicking Start (Iniciar), the
user must manually apply and maintain the Known Force in the load cell (if Channel 03
is enabled) and manually shift and maintain the maximum displacement transducer
travel course (if Channel 04 is enabled) and click Apply (Aplicar). After this, the known
force must be removed from the load cell and the travel course of the displacement
transducer back to the initial position, before calibration. Once this is done, click Finish
Manual e-structure_R5-2 - EN
19
(Finalizar), and then click Zero (Zerar). Calibration should only be started (when dealing
with channels 1 and / or 3) at least, after 3 (three) minutes of continuous operation of
the HX711 module connected to the power behind the Arduino, which it takes
approximately the same time – at room temperature of 25 ° C - for heating and
consequently stabilization of the readings !!!!!!!!!!
10. Besides visualizing and reading the magnitude (Resultados) of each channels, they can
be stored in the device. To do this, you must first select the number of acquisitions
stored per milliseconds (ms), by selecting one of the opitions, SelectBox Range
(Intervalo). After that, select CheckBox Save (Gravar). In the end, readings of
magnitudes can be exported in a Comma Separated Values (CSV) file, for use in
spreadsheet software such as MS Excel®. In this case, clicking Export (Exportar) the
system will ask for a name for the file, which is stored in the root of the device memory.
Lastly, about Delete (Apagar) button that deletes the information stored on the device,
which, at first, it will be not deleted from, even the information is coming from the
software, it only will occur, if the Delete (Apagar) button is not activated;
11. Using the Remote (Remote) features, it allows the device to share in real-time via
internet all the information which has been acquired by the system (Figure 15), for a
second device (smartphone or tablet) that also, has the same application installed, by
accessing "Remote Acquisition" (Aquisição Remota). The CheckBox Enable (Ativar) must
be selected in both applications. This feature works only between files generated by the
App Inventor Gallery as described in Item 2.3 of this Manual, since they have the same
Firebase server configuration properties with App Inventor (Figure 10), which is, the
same: FirebaseToken; FirebaseURL; and ProjectBucket.
12. Using the acquisition readings Chart (Gráfico), can be used by selecting CheckBox
Activate (Ativar). Using button Delete (Apagar) clears chart plots. The ratio of the
reading points can be adjusted by the cursor of the Plot Scale (Escala de Plotagem)
function and the Chart Size (Ajuste de Tela) can be changed by the cursor.
1 𝑅𝑐
𝜀𝑒𝑞. = 𝐾 (𝑅 − 1) 106 (Equation 1)
𝑔 +𝑅𝑐
ε-structure UNO
Manual e-structure_R5-2 - EN
20
To use "Remote Acquisition" (Aquisição Remota) feature (Figure 16), the application must be
installed on two devices (smartphone or tablet) and one of them must be connected to the
hardware of ε-structure UNO (Figure 1) which has been collected data with CheckBox Enable
(Ativar) selected in both applications connected to the internet.
Figure 16 - Remote acquisition screen
The user interface elements of the "Remote Acquisition" (Aquisição Remota) screen are detailed
below, according to the numbering contained in Figure 16:
1. CheckBox Enable (Ativar) must be selected and the device connected to the internet.
2. The Results (Resultados) received from the server can be stored on the device by
selecting CheckBox Record (Gravar). At the end, readings of magnitudes can be exported
in a Comma Separated Values (CSV) file, for using spreadsheet software, such as MS
Excel®. In this case, clicking Export (Exportar) system, and it will ask a name for the file,
which is stored in the root of the device memory. The button Exit (Sair) ends the
connection and closes the screen.
3. In these four fields, the readings of the magnitudes of each channel are displayed, as
well as, Time in the format "MM/dd/yyyy hh:mm:ss a" and the geographical coordinates
(Latitude and Longitude) of the device located near ε-structure UNO’s hardware;
4. The button Find (Localizar) allows to place the pin on the map, at the location of
geographic coordinates received from the server.
Manual e-structure_R5-2 - EN
21
The provisions of the strain gauges in ¼ bridge, ½ bridge and full bridge, as exemplified by
connections from Figures 17 to 19, were tested in ε-structure UNO system, however, other
arrangements and forms of strain gage connections can work in this system, although, it require
careful tests to be performed, to verify how it works in this operation.
The adjustment (balance or adjust) of the trimpots (potentiometers) must be done when
necessary, which must be performed before calibration and placing in positive values close to
zero (reading in bytes of channels 1 and 3, corresponding to module HX711), which will still be
in the thousands, means, it is can not effectively zero them.
The resistor R1 (of Figure 1) corresponding to Item 11 of Table 1, must be with the same
resistance, as the strain gauge which has been used, means, usually 120Ω, 350Ω or 1000Ω.
Equations 2 to 6 are used to obtain the final strain value, depending on the type of application.
A demonstrative video how to use ε-structure UNO with the usage of a strain gauge can be
available at the following link https://youtu.be/edhAKKO-mBk.
Manual e-structure_R5-2 - EN
22
Manual e-structure_R5-2 - EN
23
𝜀 = 𝜀𝑟𝑒𝑎𝑑 (Equation 3)
Manual e-structure_R5-2 - EN
24
𝜀𝑟𝑒𝑎𝑑
𝜀= (Equation 4)
1+𝜇
𝜀𝑟𝑒𝑎𝑑
𝜀= (Equation 5)
2
Manual e-structure_R5-2 - EN
25
𝜀𝑟𝑒𝑎𝑑
𝜀 = 2(1+𝜇) (Equation 6)
Manual e-structure_R5-2 - EN
26
A demonstrative video how to use ε-structure UNO with the usage of a displacement transducer
can be available at the following link https://youtu.be/mYjP0pcXmds.
A demonstrative video shows how to ε-structure UNO using a load cell can be available at the
following link https://youtu.be/pcRsR0FlHqU .
Manual e-structure_R5-2 - EN
27
A demonstrative video shows how to ε-structure UNO with the usage of a temperature sensor
DS-18B20, can be available at the following link https://youtu.be/kDHtFzm1SEA .
Manual e-structure_R5-2 - EN
28
Manual e-structure_R5-2 - EN
29
4. Publications
SILVA, João Batista Lamari Palma e. Development of System to Structural Heart Monitoring
with Arduino Platform Utilization. 2018. 163p. Dissertation in Masters of Science.
PosGraduate Program in Urban Infrastructure Systems, Pontifical Catholic University of
Campinas, Campinas, 2018.
Manual e-structure_R5-2 - EN