Design and realization of multi-channel wireless data acquisition system for laboratory-scale experiments on structural health monitoring

In this paper, we present the design steps of a low cost multi-channel accelerometer system accompanied with an open-source data acquisition software. Hardware part of the system, named KACC, is composed of battery powered tri-axial MEMS accelerometers that use IEEE 802.15.1 protocol for data transmission. The software part, named PyKACC, is developed under Python© open-source environment and handles initiation of data acquisition, data synchronization and data logging. The developed system is tested for synchronization and reliability via shake-table tests and results are presented.


Introduction
The accelerometers are widely used in studies such as human health monitoring [1][2][3][4], gesture (head, posture, etc.) detection [5][6][7][8][9][10] and driving safety systems [11][12][13].Being one of the sensor usage areas, structural monitoring, as its name suggests, is the observation of a quantity of a structure for risk detection.The observation period depends on the purpose of monitoring, that is, long-term observations are preferred for determination of landscape shifts and aging effects whereas short-term observations are more suitable for forced vibration effects (such as earthquakes, wind and etc.) on the structure.Research activities in this area is reviewed by Kim et al. [14] including piezoelectric sensors, optical fiber sensors, wireless smart sensors, and vision-based sensing systems.
Investigating these effects before the field, forced vibration tests have to be achieved on the lab-scaled structures by using earthquake simulators, shake tables and etc.To determine the characteristics or damage of the structure, one or several parameters, such as relative displacement, velocity, the story drift, vibration frequency, damping and tilt have to be measured via suitable sensors.Damage detection methods can be generally classified as one of two types: local-based and global-based damage detection methods.Local-based damage detection methods attempt to identify damage based on screening structures at their component or subcomponent length-scales (e.g.cracks, yielding).Global-based damage detection refers to numerical methods that consider the global vibration characteristics (e.g.mode shapes, natural frequencies) of a structure to identify damage [15].Implementation of the global-based damage detection requires densely located sensors with a sampling frequency that is sufficiently high to capture salient dynamic characteristics [16].In addition, as the number of sensors increase, the synchronization problem of acquired data becomes to be an important issue.
For measurement of global-based damage detection, displacement and acceleration sensors can be used for characterization and testing.Sensors such as LDS (Laser Displacement Sensor), UDS (Ultrasonic Displacement Sensor), linear potentiometric or inductive displacement sensors (LVDTs) require a stable reference frame to derive relative displacement or position measurement [17,18].Relevant method is not suitable for, i.e. tall structures, for which it would require an additional effort to construct an accurate and stable reference frame for such sensors.However, accelerometers do not require any referencing with the advantage of easy installation and can be operated alone.Thus, accelerometers are mainly preferred for indirect estimation of displacement in lab-scale and large-scale structures.
For testing lab-scale structures, the cabling between the sensors and the data acquisition system is a big problem.Taking the raw data quality into consideration, the cable length belong to the sensor array and measurement system affects the signal-to-noise ratio of the data and causes noisy measurements.Furthermore, in addition to the cabling cost, it makes the establishment of the experimental setup more complex and affects the experiment comfort.For light structures, weight of the cables has to be taken into consideration in the simulation model of structure to ensure convenient matching between simulation and measurement results.For these reasons, with the first study of Straser and Kiremijdian [19], many researchers and industry have developed wireless accelerometer networks.Accelerometer type and size, sensor output (analog/digital), noise-level and bandwidth, microcontroller board, battery capacity, wireless communication protocol and software are the customizable parameters for those systems with the developing technology and enables tailored wireless accelerometer network designs [20].
For accelerometer type, the force-balanced accelerometer architecture (FBA) can be used for very precise structural monitoring applications as its fine accuracy, ultra-low noise and high-level output [21].However, these type of sensors require dual-supply DC power and have very high price.Another type of possible low noise accelerometer architecture is Internal Electronic Piezoelectric (IEPE) sensor, which can measure acceleration signals over wide frequency ranges, typically 1 Hz to 10 kHz [22].IEPE accelerometers are charge mode piezoelectric accelerometers with a charge amplifier built into the accelerometer.They require a constant DC power source and wired type of operation.
Today, Micro-electro mechanical system (MEMS) based accelerometers are another good alternative as they are precisely integrated, have very small size, capable of measuring low accelerations and have a low-cost.MEMS sensors that are to be used for real concrete structure health monitoring should have a high sensitivity with ultra-low noise floor since most ambient acceleration in civil structures are characterized by low-amplitude acceleration.The natural frequencies of civil structures are relatively small and hence the MEMS accelerometers designed for Civil SHM and earthquake sensing do not need to have large bandwidths [23].Saboto et al. [20] gave a detailed review about latest wireless MEMS-based accelerometer sensor boards with focusing micro-vibration detection and analysis in SHM applications.In the review, optimal design parameters of accelerometers are summarized in Table 1.However, through SHM applications on lab-scaled structures, micro-vibration sensitivity is not crucial as much as values given in Table 1.A huge number of commercial off-the-shelf (COTS) MEMS accelerometers and modules are available in the market with suitable acceleration range and bandwidth.One can use multi-axis MEMS accelerometers with analog output.However, for wireless sensing and storage, sensor data must be digitized.Sensor datasheets involve characteristics such as sensibility, sensibility versus temperature, zero-g offset, and zero-g offset drift versus temperature and noise density.For temperature-stable, accurate and low-noise measurements without additional noise sources and drifts to those known characteristics of MEMS sensors [24][25][26], it is required have i) a carefully designed analog-to-digital conversion stage including a precision temperature-stable reference voltage, ii) low offset and drift buffer, iii) suitably selected low-pass filter for anti-aliasing, iv) a high speed and good resolution ADC with high SINAD (signal-to-noise-and-distortion ratio) and high ENOB (effective number of bits), v) correctly designed PCB lay-out that minimizes ground-loops and electromagnetic interference.Examples using analog MEMS accelerometers can be seen in [20], which presents several disadvantages correlated with above parameters.Considering those required additional precise components and efforts for a careful circuit design, digital MEMS accelerometer is a more compact and time saving solution for lab-scale SHM applications.Today, digital MEMS accelerometers enable flexible operations with selectable ranges and output data rates (ODR) via standard serial communication protocols like I 2 C and SPI.As given in Table 2, in selection of digital MEMS accelerometer type, various parameters such as sensitivity, noise power density, power consumption, zero-g level, drift and etc. should be taken in consideration depending on the required measurement sensitivity and operation.For microcontroller board selection, designer should firstly decide the microcontroller tasks.If, for example, system has to calculate natural frequency of structure without using a laptop or any remote computer, then Field Programmable Gate-Array (FPGA), digital signal processor (DSP) or Application-Specific Integrated Circuit (ASIC) based microcontroller boards with high RAM capacity and fast microprocessors can be selected to achieve high-speed computational operations like buffering large-data, multiplying, filtering and Fast Fourier Transform (FFT).But if the microcontroller is only supposed to receive accelerometer data and send it to the wireless transmitter, a relatively low-speed and low capacity a general purpose microprocessor (GPP) microcontroller would be a better choice [27].
For wireless connection, common used method is Radio Frequency (RF), which is an omnidirectional transmission and line-of-sight is not needed.A license free ISM (Industrial, Scientific, and Medical) band is defined by Federal Communication Commission (FCC), which includes frequency bands around 433, 868 MHz and 2.4 GHz for Europe.Transmitting power is limited to 1 W which results in a limited communication range.Generally, for wireless communication there are two-kinds of connections: star (single-hop) and peer-to-peer (multi-hop).The star connection includes a center server and multiple structural sensors, signal conditioning modules, and wireless sensing units.The responsibilities of the server include: (1) commanding all the corresponding wireless sensing units to perform data collection or interrogation tasks, (2) synchronizing the internal clocks of the wireless sensing units, (3) receiving data or analysis results from the wireless sensing units, and (4) storing the data or results.Any desktop or laptop computer connected with a compatible wireless transceiver can be used as the network server [28].Star connection supports high sampling rates, large data size, precise node-to-node synchronization, and limited data loss, as the routing of data packets only needs a queue for all of the nodes to transmit directly to the base station [20].For long-range communication, peer-to-peer connection where nodes between two communication endpoints work as relay nodes is used.Due to the increase of communicated data, interference that can produce data loss and time synchronization problems (e.g.jitter, delay, throughput, etc.) may occur among the nodes.
For wireless communication standards, IEEE 802.15.1 (Bluetooth) and the IEEE 802.15.4 (ZigBee) technologies have been seen as the primary standards to support a wireless real-time communication solution capable of coping with the limitations of open environment deployment [29].Today, Bluetooth Low Energy (BLE) modules (Bluetooth 4.0) are available but they are not very suitable for high-rate data stream compared to Bluetooth Classic [30,31].For the other alternative of low energy wireless data transfer, ZigBee, today's computers do not yet have a direct support for this data protocol.For useful and correct data evaluation, multi-channel data acquisition requires data transfer with instant time information to maintain time synchronization.If the start of the data and the sending period are known, time information can be estimated directly by using data index for each channel.In wireless data transfer, however, an amount of data might be lost depending on the wireless communication protocol.For this situation, direct approach will not work and time synchronization will be lost.Bluetooth is again more reliable transmission protocol that does not require additional management for data loss compared to ZigBee protocol.
Today, various wireless accelerometer systems can be found in the market, but they suffer from at least one of the following drawbacks; i) High weight or large size, ii) Offline recording or limited duration of real-time data recording, iii) Low battery life, iv) No support for multi-channel data acquisition, v) Not customizable software, Proposed system is designed by considering the drawbacks mentioned above.In the following sections the design and development steps of the proposed system and open source software are presented.To determine the synchronization and displacement measurement performance, the system was tested on a small scale model building that was vibrated periodically using a shake-table.

Hardware: the KACCs
The block diagram and top view of the completed device is shown in Fig. 1 and Fig. 2. In the design process, the device was planned to 1) acquire tri-axial acceleration data with maximum SNR and minimum temperature dependency by an adjustable sampling rate and measurement range, 2) have the ability to be used as a mobile device, 3) have a long-lasting and easily rechargeable battery in acquisition mode, 4) be as small and cheap as possible.Considering the specifications mentioned above, we have use LSM303DLH breakout board.LSM303DLHC has a linear acceleration full-scale of ±2 g / ±4 g / ±8 g that is fully selectable by the user and a resolution of 12-bit reading per axis.To transfer acquired data with low power in a cable free environment for mobile and comfortable usage, IEEE 802.15.1 data protocol (Bluetooth) is used.A serial Bluetooth v2.0 + EDR module (HC-06) was chosen.It's designed for 3.3 V level TTL but accepts 5 V TTL level as well.It supports baud rates from 1200 to 1382400 bps and can be powered with an input voltage between 3.3 V and 6 V.
To read 3-axis accelerometer data and communicate with Bluetooth module, a low-power 8-bit microcontroller PIC16LF877A is used.Device has a wide range of power supply level that is 2.0 V to 5.5 V.It supports I2C, SPI, USART communications and additional properties that enable further developments and modifications.
All electrical power that is needed to run the system is delivered via single-cell 3.7 V Li-Ion battery that has a weight of 22 grams and a dimension of 50.8 mm×33.5 mm×5.9 mm.Battery includes built-in protections against over voltage, over current, and minimum voltage.Battery voltage is regulated with 3.3 V fixed output boost converter TPS61097-33 that has an operating input voltage range of 0.9 V to 5.5 V.The boost converter is based on a current-mode controller using synchronous rectification to obtain maximum efficiency up to 95 %.The maximum average input current is limited to 350 mA.The fixed output device is packaged in a 5-pin SOT-23 package measuring 2.8 mm×2.9 mm.
For recharge of battery via mini-USB port, charge controller MCP73831 is used.It employs a constant-current/constant-voltage charge algorithm with selectable preconditioning and charge termination.The constant voltage regulation is fixed to 4.2 V.The constant current value is set to 100 mA via one external 10 kΩ resistor.Accelerometer board is embedded on the rear side of the PCB and thus not visible from top view When the device is in transmit mode, power consumption is measured as 120 mW, while in idle mode it is 17 mW, respectively.Thus, with a fully charged 3.7V 1000 mAh battery, the expected operation time is nearly 30 hours in transmit mode and 210 hours in idle mode which is enough mode laboratory testing.

Software: PyKACC
The software part, PyKACC, is developed under Python® (version 2.7.6) open-source environment.Through the development of software, Bluetooth data transmission was realized using a third-party Python library.The GUI of the software is developed via QT Designer, an open-source QT Tool that enables generation of ".ui" file that is then converted to Python GUI generator file.The GUI enables a) the selection of the KACC devices to be connected via check boxes, b) the setting of the name of the recording text file, c) initiation / finalization of the recording, e) the monitoring of multi-channel KACC data.For plotting KACC data, we have used a third-party scientific Python library that provides fast and interactive graphics.The received data sentence from KACCs is in form "X0000Y0000Z0000" where four hexadecimal digits are used to transmit 12 bits acceleration data acquired from each axis.The received data is divided into three vectors and written to a text (*.txt) file, where each column of the text file corresponds to an axis.To prevent receive (input) buffer overflows, the inquiry period and receiver buffer length of Bluetooth sockets should be optimized for multi-channel connections.In addition, Bluetooth connection with each KACC is established by a specific order and time lag which introduce delays between received data from different KACCs.To overcome these problems, after all of the desired KACC connections are established, the software only receives the data for a specific time interval to clear the accumulated data from the input buffers and then starts to record the synchronized data.The time interval is determined empirically.The data recording part of the software is tested under Microsoft Windows and Linux platforms.

Calibration and performance tests
Accelerometer sensors are normally calibrated by the sensor manufacturer using a six-element linear model [32].The model involves a gain and offset in each of the three axes.The original factory accelerometer calibration is less accurate due to packaging and requires recalibration for reliable usage.For this, again, a six element model is used.That is: where (g units) is the recalibrated output of the accelerometer that generates a factory calibrated output of in g units with an offset which is also in g units.By aligning + and -axis of KACC with gravity direction, the unknowns and can be solved where will be taken as +1 and -1, respectively.Thus, with KACCs aligned on their top, bottom, front, back, left and then right faces, yielding +1 g or -1 g in each channel and zero in the other channels, there have been made 18 measurements of which only 6 was used for six element model calculation.For each measurement, 60 seconds (6000 samples) of data were acquired.Afterwards, the recorded text files were loaded and analyzed for computation of model parameters.The calculated model parameters are shown in Table 3. Synchronization and structural monitoring experiments were conducted on two-story shear type frame building model placed on shake table (Fig. 3).Out-of-plane movement of the building was prevented by using cross-braces installed between the floors in the longitudinal direction ( -axis).Hence, the lateral and torsional vibration modes were minimized for the building.All the KACCs were placed on the first story level of the building and then hammer test was applied in + direction during a previously initiated silent recording in order to determine the synchronization of acquired data from different KACCs.Fig. 4 shows the overlaid KACC data where samples = 0 is the instance of hammer struck.Due to non-zero lateral and torsional bending of the model building, hammer impact had different initial effects on each KACC data.This yielded different peak values at initial samples of acceleration data (Fig. 4, left column graphs).However, as the transient response decayed, acceleration values became clearly more consistent and time synchronized, especially in -axis (Fig. 4, right column graphs).Once the synchronization was assured in hammer test, KACCs were placed their -axis aligned with movement direction on ground (KACC1), first story (KACC2) and second story (KACC3) levels of the building.A step displacement was applied to observe the forced vibration of the building.The ground level accelerometer (KACC1) data only reveal shake-table induced acceleration and do not involve any vibration response of the structure.However, the first floor accelerometer (KACC2) data reveal a damped oscillation with a dominant frequency of 7.641 Hz and a peak acceleration of 2 g.In addition, the top floor accelerometer (KACC3) data have two modes of vibration, with frequencies 2.658 Hz and 7.641 Hz.The data and corresponding spectrums are given in Fig. 5.

Conclusions
The design and realization of a wireless multi-channel accelerometer system with an open-source monitoring and recording software PyKACC is presented.Small and light-weight battery powered acquisition devices, named KACCs, enable cable free and multi-channel data acquisition at a rate of 100 Hz for more than 24 hours of continuous recording with time synchronization.Number of channels was 3 in this study, however it can be enlarged by additional KACCs.This specification is useful for indoor concrete laboratory vibration tests where cabling is an uncomfortable issue for multi-channel acceleration measurements.In addition, since KACC devices are small in scale, it is possible to setup dense KACC arrays for localized acquisition and damage detection.The operation duration may not be satisfactory for long-term observations (i.e.1-2 months), however, the devices can also be powered with a USB power source in such cases.Further focus on this study will involve higher range transmission choices with additional packaging improvements and temperature dependency tests.

Fig. 1 .
Fig. 1.Block diagram of KACCThe board includes an I2C serial bus interface that supports standard mode and fast mode.The

Fig. 2 .
Fig. 2. Top view and dimensions of KACC.Main components such as Bluetooth Module (A), microcontroller (B), mini-USB connector (C) and recharge circuitry (D) are visible from the top view.Accelerometer board is embedded on the rear side of the PCB and thus not visible from top view

Fig. 3 .
Fig. 3. Dimensions of the model building and installation on shake table

Fig. 4 .
Acquired data through impulse test: a) Hammer struck (Samples = 0) was applied in -direction and affected all channels due to lateral and torsional bending of the model building, b) after transient response decayed, only -axis acceleration had high amplitude due to model building dynamics

Fig. 5 .
Fig. 5. Observed -axis KACC data and corresponding spectrums after step excitation.The ground accelerometer (KACC1, bottom row) data only display the step vibration response whereas the first (KACC2, middle row) and the second (KACC3, top row) accelerometer data display damped oscillating response of the model structure on -axis

Table 2 .
Some of digital output MEMS accelerometers in the market and its main characteristics

Table 3 .
Six-element linear model parameters of KACCs calculated after alignments