1. Introduction
Monitoring and non-destructive testing (NDT) has become a major topic in civil engineering (CE) in recent decades, as safety and environmental issues have shown the need for methods to ensure the structural integrity and increase the lifespan of constructions such as bridges. One of the most researched and widely spread methods of NDT is measuring with ultrasound. With the increasing demand for ultrasound measurements—especially for long-term monitoring—the need for a cost efficient, easy to build, and reliable measurement system has been identified by researchers at the NDT-CE department of the German Federal Institute for Materials Research and Testing (BAM).
Ultrasound transmission experiments for concrete are considered as a standard procedure for quality assessment. Time of flight (TOF) measurements with compressional waves are applied in a standardized manner to estimate concrete strength using ultrasonic velocity as a proxy [
1]. The method is also used to follow the hardening of fresh concrete [
2]. In research, ultrasound is used to monitor changes in concrete in controlled experiments by following changes certain features such as velocity and/or amplitudes, e.g., to assess fatigue strength [
3].
Since around 2000, several researchers have started to extend the capabilities of ultrasonic monitoring either by using more sensitive data evaluation techniques. This includes but is not limited to coda wave interferometry (CWI) or nonlinear acoustic features. Several laboratory experiments have been published in recent years showing that ultrasonic monitoring combined with these newly developed sensitive feature extraction techniques are very sensitive to stress, temperature, moisture, cracking and any material changes in general, even if they are minute or local. The potential of these approaches and progress of the early years has been compiled in several publications (see [
4,
5,
6]). The background of this research is to provide additional means for structural health monitoring of degrading concrete structures such as transportation infrastructure or in nuclear power generation and waste storage.
Recently the results of several experiments have been published which show the potential of CWI and other techniques for practical implementation (see [
7,
8,
9,
10]). In these experiments either commercial transducers mounted on the surface [
7] or special embedded transducers [
11] have been applied. For signal generation and data acquisition customized setups of commercial instruments have been applied so far. Most of them have limitations in terms of cost, ruggedness and availability. In the frame of the DFG FOR 2825 CoDA research unit, a collaboration of several German universities and BAM working on the improvement of CWI for concrete monitoring, the need arose for a compact, robust and affordable measurement device which can be built at university labs with limited resources in significant numbers. The device should not be limited to the purpose of the research unit, but also be useful in traditional ultrasonic transmission experiments. It will be made available in public the domain.
In cooperation with students from TU Berlin, a first prototype of a 5-channel ultrasound measurement system based on a Raspberry Pi was developed in 2015 [
12]. This prototype, called the W-Box due to its initial design, was further developed and improved over the years and is now being used by the research unit “CoDA” funded by the German Research Foundation (DFG) to investigate the changes in ultrasonic signals in reinforced concrete structures in order to detect changes and damage. Within the project, the system was extended to connect to up to 75 ultrasonic transducers, options for temperature and humidity measurements were added, automatic data upload and remote control were introduced, and the system was made more resistant to environmental effects such as rain or high humidity. In this paper, we will explain the design of the W-Box by describing the requirements and the individual components of the system. Detailed descriptions of each electronic board are presented, followed by a comparison between the measurement results acquired with the W-Box and those acquired with a commercially available measurement system, such as the system used in [
11,
13], which has been used in the past at BAM.
2. Materials and Methods
In the following, we will explain the design of the W-Box, the required electronic components, and their characteristics. Firstly, in
Section 2.1 and
Section 2.2, the general requirements posed to the system by the ultrasonic measurement task and the system design are explained. This is followed by a detailed explanation of the shared Raspberry Pi pins connection necessary for communication between the individual electronic components (
Section 2.3). The short introduction to the Raspberry Pi and the operating system (
Section 2.4) is followed by a detailed description of the individual boards of the measurement system (
Section 2.5–
Section 2.9).
2.1. System Requirements
The W-Box originated from the need for portable equipment with which to carry out ultrasound monitoring. Therefore, it needed to be small, light, easy to operate, simple to repair, and inexpensive. This would allow it to be used in variable locations which are often remote or hard to access. As several sensors are usually required for monitoring, the W-Box should be capable of connecting to at least 20 ultrasonic transducers, all operating as transmitters and receivers, adjustable signal amplification, switching between them using multiplexers and sending variable pulses of up to 300 Vpp. It also must be capable of restarting measurements after power outage, of saving data onto an external server, and being protected against high humidity (e.g., for operation in climate chambers). As ultrasonic wave propagation is influenced by temperature and moisture content in addition to the main objectives (damage, deterioration), additional capacities for connecting of temperature and humidity sensors had to be added to allow compensation. The main features and parameters are listed in
Table 1.
2.2. System Design
The system is designed around a Raspberry Pi 3 B+ and runs with an Ubuntu operating system. The W-Box is capable of providing a I2C protocol for communication between all micro-controllers, of connecting to the internet (because of embedded Wi-Fi or an RJ45 internet port), of connecting to an external server, of automatically restarting after power outage, and of being easily and fully remote-controlled, if required.
Figure 1 shows the latest version of the W-Box. It has 20 connectors for ultrasonic transducers (BNC female). The temperature and humidity board are in the final stage of development. It is capable of measuring with 3 NTC temperature sensors and 1 humidity sensor. The black case is a standard case and the frontal pink board is 3D printed. All circuits have the same Raspberry Pi pins between them in order to supply power and to communicate as described in
Figure 2. Its communication functions are explained in
Figure 3.
In
Figure 3, a schematic of the communication between all systems is shown. First, the Raspberry Pi sends the desired values for measurement to all boards, except the pulser board, via I2C. The power board provides the selected transmitter output voltage. The multiplexer prepares the chosen input/output combination of the ultrasonic sensors. The temp/humidity board sends the acquired values back to the Raspberry Pi via I2C. After that, the whole system is prepared for the pulse. The ADC board sends the digital pulse to the pulser board (orange arrow in
Figure 3), which forwards it to the selected transmitting transducer and records the input signal (green arrow in
Figure 3). After the ultrasonic signal from the currently selected receiving transducer is recorded on the ADC board, it is digitally sent to the Raspberry Pi via I2C. This measurement sequence takes around four seconds, depending on the number of samples recorded.
2.3. Protocol and Electric Communication Design
There are 3 electric connections between the boards. The first connection’s only function is to deliver the required voltage supply from the power board to the pulser board (
Figure 4 number 2). The second connection delivers the pulse from the pulser board, via the multiplexer, to the sending transducer (
Figure 5 number 1). The third connection opens the circuit for the measurement data; this travels from the receiving transducer through the multiplexer to the ADC board (
Figure 4 number 1).
In order to clarify how the boards communicate and how they are connected with each other, all data/electric connections between the boards and the Raspberry Pi will be explained in the following. As shown in
Figure 2, it provides the 5 V and 3.3 V needed for all circuits. GPIO 2 and 3 support the I2C communication protocol between each main microcontroller and the Raspberry Pi, allowing all the predetermined functions to be triggered and the measured data to be received after each measurement. This is also shown later in Figure 12 in the final section as a continuous blue line.
GPIO 16, 20 and 21 are used to trigger the pulse to the pulser board. This digital trigger is controlled by the microcontroller TM4C123GH6PM, which sends two digital pulses with a predetermined length defining the center frequency. This will be explained in
Section 2.8.
The Raspberry Pi extension pins are shown in
Figure 5, number 2. There are also three electrical connections out of the pins. They are shown
Figure 4, numbers 1 and 2, and also in
Figure 5, number 1.
Figure 4 shows an internal front view of the W-Box. Number 1 shows a section containing plates indicating the connection between the ultrasound input and the ADC board, via the multiplexers. Number 2 highlights the connection between the power board and the pulser board. Numbers 3, 4, 5, 6, and 7, indicate, respectively, the power board, the pulser board, the 4 multiplexer boards, the ADC board, and the Raspberry Pi.
Figure 5 shows an internal rear view of the W-Box. Number 1 indicates the connection between the pulser board and all 4 multiplexer boards. Number 2 indicates the Raspberry Pi pins explained in
Figure 2. Although UART0 TX, UART0 TX, GPIO 9, GPIO 10 and GPIO 11 are connected into the ADC board, they are not yet in use. However, these circuit connections are prepared for possible future protocol communication enhancements.
2.4. Software and Ubuntu OS
There are 3 main functions for the OS and the control software developed in Python. The first is to provide a graphic interface for the user (GUI), the second is to save the measured data in its own memory or on the internet, and the third is to send commands and receive data via the I2C protocol. As soon as the W-Box is connected to the power source, the operating system (Ubuntu) is booted and the ultrasound program automatically starts a measurement with the previously prepared configuration. After an eventual power failure, the W-Box restarts automatically and continues to acquire and store/send data.
Figure 6 shows the GUI after a single test between two embedded ultrasonic transducers (S0807, ACS International). The amplitude of the signal (from 7000 to 8500) is within the 16,384 possible values of a 14-bit ADC. The user can customize how the data are sent to an external server. He can as well access the internal memory via VNC and copy the saved data using Ubuntu automatic servers or native Linux VNC controllers. A “configuration.ini” file defines the parameters for the repeated and the automatically started measurements. The data are stored as integer values in a single file for every measurement.
2.5. Multiplexer Board
The function of the multiplexer is to define the channels for transmitting and receiving ultrasonic signals to and from the transducers. The board is directly controlled by the Raspberry Pi via I2C and switches between the output and input connectors before the transmitter impulse signal is sent.
In order to allow for additional multiplexer boards as well as easier testing, a DIP switch (see
Figure 7, number 7) is integrated on each multiplexer board. In this way, it is possible to manually change the address of each board between 0000 and 1110, allowing the use of up to 15 boards. When set to 1111, it automatically initiates the test mode. In test mode, all input and output channels of the multiplexer board are tested. The functionality of the W-Box can be easily checked with a multimeter. LEDs (Number 3) are integrated at the top of each relay (Number 4) to show if they are closed. Additional two LEDs at the top left of the board (Number 1) confirm that the 5 V and 3.3 V circuit currents are flowing through the board. They are protected against short circuit with a 2 A and 1 A fuse; (Number 1, green and blue SMD components). Number 2 in
Figure 7 shows the connection to the ADC. Number 5 shows the connection to the multiplexer. Number 6 is the programmable microcontroller (MSP430G2303 from Texas Instruments) which receives I2C commands from the Raspberry Pi and digitally controls all multiplexer board functions. Number 8 shows the five connections to the BNC connectors.
2.6. ADC Board
The ADC board is dedicated to acquire data and send a trigger pulse to the pulser board. The measurements begin when the trigger is sent, which goes through the GPIO 20 and GPIO 21, with positive and negative trigger signaling, respectively (see Figure 12).
On the ADC board, there are 2 main components (see
Figure 8, numbers 1 and 2); both have multiple connections in the middle. The first (TM4C123GH6PM from Texas Instruments), number 1, is a microcontroller programmed to receive and send I2C commands and to send the digital pulse to the pulser board. It also controls the second main component, number 2, which is an analog-to-digital converter (AD9241ASZ from Analog Devices Inc.) responsible for receiving the analog data and sending it back digitally to number 1. Number 4 shows the analog ultrasound signal received from the multiplexer. Before this signal goes into the ADC (Number 2), it is amplified and filtered in an analog filtering circuit (Number 5), as explained in the filtering and amplification paragraph.
Considering that the AD9241ASZ has 14 bits and is adjusted to measure between ±5 V, the resolution of the system without amplification is 610 µV.
Filtering and Amplification
The received signal is electronically amplified for each individual measurement by a factor of up to 150. The amplification gain is controlled by a variable resistor, which is controlled by the ADC board microprocessor.
To prevent aliasing effects and to reduce noise, the received analog signal is filtered after amplification. The analog filter is located between the analog input to the ADC (
Figure 8, number 2) and the output from the multiplexer (
Figure 7, number 4). The filter and amplifier electronics are positioned on the ADC board, as shown in
Figure 8, number 5. The filter used is a low-pass 4th order Bessel-Filter. This filter was chosen because of the small amount of overshoot compared to other filters, meaning that the signal will preserve the wave shape of filtered signals in the passband.
Figure 9 shows the calculated frequency response of the designed Bessel-Filter. As the system is supposed to work with piezoceramic ultrasonic sensors with a 60 kHz center frequency, the filter design results are in line with expectations. The input calculated specifications are: +Vs = 5 V, Vs = 0, GBW (gain–bandwidth product). Filter specifications are: Gain: 0 dB. Passband: −3 dB at 150 kHz, Stopband: −40 dB at 800 kHz. Component tolerances are: capacitor: 1 %; resistor: 0.5 %; inductor: 5 %; op amp GBW: 20 %.
2.7. Power Board
The power board is responsible for providing the desired voltage for the pulser board. It receives information from the Raspberry Pi via an I2C protocol, produces the chosen voltage, and is deactivated after the measurements.
In
Figure 10, number 1, there are 2 LEDs and fuses to indicate the normal energy supply and to protect the 5 V and 3.3 V circuits. The blue fuse is for protection of up to 1 A for the 3.3V circuit and the green is for 2 A for the 5 V circuit. The other LEDs in
Figure 10 (Numbers 2 and 3) serve to indicate the functionality in other circuits. Number 4 is the electronic connection to the pulser board. Number 5 is the transformer for the voltage capacitor charger controlled by the controller (Model LT3751 from Analog Devices), which is positioned in number 6. The main controller is the same as for the multiplexer board (MSP430G2303, number 7).
2.8. Pulser Board
The pulser board receives the user selected voltage from the power board and sends the pulse to the multiplexer board via the connectors indicated in
Figure 11, number 2. The pulse frequency and triggering are digitally controlled from the ADC board. These commands are sent through the GPIO 20 with positive pulse reference and through the GPIO 21 with negative pulse reference, while the GPIO 16 is the trigger reference (GPIO 16, 20, 21, as seen in
Figure 2). Briefly explained, the board is just waiting for a trigger signal to pulse the signal through the multiplexer. This board has no microprocessor due to its purely analogue function to replicate and amplify the received digital signal from the trigger input.
Figure 11, number 1 shows two LEDs which indicate whether energy is going through the 5 V and 3.3 V circuits. These circuits are also protected with the same fuse as the power board and multiplexer. These fuses are positioned at the left side of the LEDs. Number 2 is the connection to the multiplexer board and number 3 is the power voltage supply connection from the power board.
Pulse Signal
The square wave transmit pulse has been used in [
15,
16,
17]. It is also widely used by commercial ultrasound measurement equipment. Because of the simplicity, comparability and ease construction of the pulse electronics, the square wave transmit pulse was chosen in this project as well. The format of the sent impulse is detailed in
Figure 12, where it is labeled as the “Output pulse” and shown in green.
The length of the positive and negative parts of the output pulse are controlled by the digital signals GPIO 20 and GPIO 21, respectively, from the ADC board. These digital signals are shown in
Figure 12 in blue and red, respectively. The analog pulse frequency and amplitude can be modified from 20 kHz up to 100 kHz, and the voltage up to ±300 V.
2.9. Temperature and Humidity Board
The temperature and humidity board is in its last stage of development. It can acquires values data from up top three temperature NTC 10K Ω sensors and one humidity sensor in each measurement cycle.
As can be seen in
Figure 13, there are 5 outputs in the temperature board. Numbers 1, 2, and 3 show the connection to the temperature sensors. Number 4 (orange and brown cables) is the reference to the humidity sensor and number 5 (red and black cables) provides a specific voltage to the humidity sensor. Number 6 is the DIP switch in 1111, the I2C address of the board. Number 7 is the controller MSP430G2333.
The chosen temperature sensor (TT0210KC3-T105-1500 from TEWA sensors) was also used in the experiment described in [
18]. It is weatherproof (IP68) and thus ready to be embedded into wet concrete due to stranded tinned copper and insulation. It works accurate between −50
∘C and +105
∘C, and only loses precision up to 0.02
∘C per year, whereas a normal NTC sensor loses up to 0.2
∘C per year. The humidity sensor chosen for our experiment is the Honeywell HIH-5031 because of its low energy demand, linearity, reliability, and an embedded hydrophobic filter. According to the NTC thermo sensor specifications and its developed electronics, it is possible to calculate its repeatability, within the range of −10
∘C and +40
∘C, of 0.5
∘C for the temperature value. The accuracy has not been determined yet. The specified precision of the humidity sensor is 0.5%, and its accuracy is about 3% of the relative humidity values.
3. Results
In order to prove the functionality and accuracy of the W-Box, we have compared the measurements acquired with this novel system to a state-of-the-art industrial grade measurement system. At BAM, US measurements are typically conducted with a National Instruments DAQmx 6361 ADC, a custom build pulse generator, a Keithley 2700 multiplexer and a Stanford Research Amplifier as described in [
13]. In the following, we will compare results from both measurement systems and give an estimation of the measurement quality of the novel W-Box system. For this experiment, we used a concrete prism (40 × 10 × 10 cm) with two embedded ultrasonic sensors (see
Figure 14 and
Figure 15), the same as those used in [
11,
13,
18]. In the following, the results from the NI system displayed in
Figure 16 will be called “classic measurement”, or just “classic”, when comparing them to the measurements recorded with the W-Box.
In
Figure 16, the classic measurement equipment is shown together with the computer and the measurement program: an analog signal amplifier (1), DAQmx (2), and Keithley 2700 multiplexer (3). Even though the DAQmx can measure up to 2 MHz, for this comparison experiment it was adjusted to 1 MHz, the same sampling frequency as the W-Box. It is also important to acknowledge that DAQmx can measure with 16-bit and the W-Box with 14-bit resolution. This results in a precision difference of 2 bits, resulting in 4 times more precision in amplitude for DAQmx measurements. The maximum pulse capacity is 150 Vpp for Classic, and 300 Vpp for the W-Box.
Data acquired using both classic instrumentation and the W-Box are pre-processed by a Python script to remove the offset, suppress crosstalk (crosstalk is expected at the beginning of each measurement because of the electric pulse), to perform digital filtering with a band-pass filter from 10 kHz up to 150 kHz (based on the expected frequency range from our transducers), and to remove the pre-trigger samples (first 50 samples for the W-Box and 100 samples for classic instrumentation). The signals are averaged 24-fold, temporally interleaved between both setups, for a period of approximately one hour at the same temperature and humidity.
For normalization of the graphs in
Figure 17, the maximum received voltage values from both systems were acquired, showing the maximal voltage value of 0.270 Vpp for Classic and 0.513 Vpp for the W-Box. To compare the signals, it is necessary to use a regular method of error. According to [
20], the root-mean-square error (RMSE) is a widely used equation to compare a measurement with a predicted model or reference measurement. Additionally, according to [
21], some researchers recommend the use of the Mean Absolute Error (MAE) instead of RMSE. The method has some interpretability advantages over the RMSE. MAE is fundamentally the average magnitude of the errors and it is also easier to understand. One of MAE’s main characteristics is that each error influences in direct proportion to the absolute value of the error, which is not the case for RMSE. Due to this, both methods will be used. Both errors are calculated after the normalization and adjustment of the two graphs in order to facilitate correct error correlation calculation.
The square roots of the differences between Classic measurements values and W-Box values for each sample are the quadratic mean of these differences, as the Equation (
1) shows.
Quite similar to RMSE, MAE (Equation (
2)) is calculated with the average of the squares of the errors, corresponding to the expected value of the squared error loss. In both equations,
and
represent the value read on each of the compared measurement systems in the same time interval.
n represents the total number of data measurements (for this measurement 5000 samples).
In order to assess the sensibility of the system, a white measurement was made to assess the noise floor of the system.
Figure 18 shows the Fast Fourier Transform (FFT) of the raw signal in the frequency range of interest between 5 kHz to 110 kHz. The noise of the raw data is oscillating around ±1.22 mV, well below any actual signals.
According to [
15,
19,
22], a signal to noise ratio of 2:1 is required to clearly identify the maximum of a signal. Therefore, we assume that the sensitivity of the W-Box system is twice the system noise. Considering the measured white noise raw data ±1.22 mV, the sensitivity is ±2.44 mV. After maximal amplification of 150-fold, a sensibility of approximately 16.2 µV is calculated.
To demonstrate the real measurement limits of the transducers with the W-Box, a preliminary field test was made. With full power and amplification, the signal to noise ratio was calculated and compared with the transducer’s distance. This is shown in
Figure 19.
4. Discussion
The discussion focuses on the comparison between a reliable reference and the W-Box. The reliable reference used is a DAQmx from National Instruments and is in this paper referred as classic measurement device. The error results from the last section indicate 4.0% error with the RMSE method and 2.1% error with the MAE method. Regarding differences that spread the error, such as precision differences (14 bits for the W-Box ADC board and 16 bits for DAQmx) and different signal amplifiers, the calculated errors demonstrate satisfactory readability. The noise floor in
Figure 18 is considerably low, despite the small peak at around 78 kHz.
The amplification limits in the field will be discussed in future articles with ongoing experiments. However, preliminary tests have shown that measurements at a distance of 6 m can achieve a signal to noise ratio of 6.7. This value exceeds the maximum reached in previous experiments using the same sensors, such as [
11,
13,
19].
One point to acknowledge is that the new system is comparatively slower than the traditional system. This is because it has multiple boards depending on the I2C protocol to communicate. The higher the demand for samples, the longer the time to perform a measurement, which can vary from 5 to 20 s per measurement pair. A possible solution to speed up the measurements is to change the communication protocol of the ADC board from I2C to SPI. Replacing the relays for solid state high-voltage transistors could also greatly increase the measurement speed. However, these are suggestions for the next generations of the W-Box if increasing the speed of measurement is necessary. Since the development of the temperature measurement system, several W-Boxes have been used in experiments. The temperature measurement system works well and with the calculated precision [
23]. In a long-term bridge monitoring experiment, which was ongoing at the time this paper was written, the W-Box worked well even after several months. The system for sending data to the external server also worked correctly, as did the auto start system after a power outage in field tests.
Industrial equipment such as Consonic C2 (GS, ES and KS versions) from Geotron, V-Meter MK IV from James Instruments and Pundit Lab(+) from Prosec are available on the market. All of them exceed the W-Box in acquisition speed and other technical areas. Nevertheless, the W-Box has some significant advantages. Its design and the open source concept allow minimizing costs and simple reproduction, while the commercial systems are often more than 10,000 Euros, with limitations to raw data access, compatibility to different sensors and limited channels. The W-Box can measure up to 75 channels, be easily adapted to ones needs and integrated in, e.g., student projects, and other academic and teaching areas. The compact and robust design, combined with the open linux operating system allows monitoring experiments in remote locations and easy and cost efficient maintenance. The W-Box is not considered an industrial equipment, as it has no industrial certifications and no protection against vibration or electromagnetic induction.