1 Introduction

Detecting damages in structures such as buildings, aircraft, vehicles or pipelines is one of the aspects that have been studied and analyzed in every branch of engineering to avoid breakdowns, malfunctions or deficiencies that could lead to risks of accidents or high unforeseen economic costs [1,2,3]. To prevent this, several approaches are necessary such as visual inspection with highly specialized operators, preventive maintenance, and exclusive techniques for damage detection. For this reason, at present, it is necessary to corroborate the integrity of both public and private structures to ensure their safety. Thus, different experimental techniques have been used to evaluate deformation in structures such as digital holographic interferometry to learn to what extent the beam is deformed at the load and how much it can withstand [4], o the experimental research about mechanical properties of the high-strength steel S960 QL and its welded joints, carried out in fatigue-testing equipment at the laboratory level [5]. An important example occurs in the oil industry, which makes use of pipelines for the supply and transport of hydrocarbons in a liquid or gaseous state, requiring that such pipelines must be in optimal conditions for their use, therefore it is necessary to analyze their structure to detect possible failures or leaks that could endanger both personnel and distribution.

It is important to highlight that the mentioned analysis requires an extensive inspection process and, in some cases, demands for material to be analyzed, which is submitted to certain tests that affect its proper functioning or even cause the total loss of it, this type of analysis is known as destructive testing. Since it is very costly and there are some inconveniences when performing structural analysis by the tests or destructive tests, alternative methods are required, which do not interfere with regular activities, nor affect or damage the element to be analyzed. These methods are known as non-destructive tests, such as the magnetic memory method, eddy currents, and active vision using light scattering.

The optical NDT methods provide higher sensitivity and resolution for high precision applications, however, requires a high cost of implementation and have better penetration on most of dry non-metallic or insolating materials [6].

The advantage of the Magnetic Memory Method (MMM) over other non-destructive testing methods that apply magnetism, such as Magnetic Particle Testing, is that MMM does not require the artificial magnetization of the element to be tested [2, 7], but rather makes use of its residual magnetic field for the detection of faults or anomalies. This occurs in structures of a ferromagnetic nature. Another advantage of this method is the capacity not only to detect the superficial anomalies but also the internal ones that the element or structure can have. Magnetoresistive sensors have the ability to detect magnetic field disturbances, which is of great importance for the detection of anomalies in ferromagnetic structures when using the MMM [8, 9]. Such distortion may be a reaction of some defect in the structure, which can be flaws, fractures, hits or dents. The advantages of this method are mainly: (a) the detection of faults in the structure by means of a non-destructive analysis [1, 10], which is very economic and practical solution in the industry, (b)the possibility of detecting both external and internal faults in the structure, this feature is highly appreciated in the preventive maintenance of structures [11], and (c) there is an increasing production of sensors for the detection of magnetic fields due to the technological advances, and these sensors have multiple applications in different fields like monitoring and/or control of industrial processes [12], detection of hydrocarbon leaks [13], medicine, deformation of aeronautical structures, and petrochemical tanks [14]. For this reason, it is still necessary to develop new systems that meet the requirements of existing market needs, easy to use, low cost, efficient and portable.

Embedded systems are part of most of today's technological devices, which are usually composed of digital, analog, mixed-mode circuits and modules of one or several communication protocols. With the tendency to add up all the Systems on Chip (SoC), it is possible to find them in different applications, such as aerial controls, traffic signals, and robots. These lasts are very relevant, since they enable to reach hostile or dangerous places for the human being. The field of mobile robots is of great interest today and their use in structural failure analysis techniques is increasing [15]. Many of them are already used in non-destructive studies [16], and others are already employed in the field of ferromagnetic materials [17]. Even so, their use is still in development, so every day new types of mobile robots are created, and they are capable of performing different types of tasks [18, 19].

For example, a highly maneuverable mobile omniwheel robot is experimentally characterized in [20] for simple trajectories of motion using four 12 V DC motors with PID controllers, the system proposed is only suitable for movement at different angles without changing the orientation of the platform and is expected to be applied in computer vision system to bypass obstacles and navigation systems with graphic interfaces. Currently, there are electronic instrumentation equipment that include graphic interfaces for their manipulation, this equipment is adjusted to the specific needs of each application context. Generally, the interfaces have a design that is friendly and intuitive for the end user, some of these have certain modules that allow the handling of data in a fast and simple way. Also, the equipment includes communication modules based on universal protocols that allow the interaction between a personal computer (PC) and the system in an efficient way. This equipment is designed to do specific tasks, so the end user must adapt to the established parameters and does not have the possibility of expanding or modifying the measurement capabilities [21]. To solve this drawback, one can choose to design and implement virtual instruments based on software, sensors, interface cards and PCs. This can provide important advantages, which include data storage capacity, integration of alternative communication protocols, new operating systems and software portability.

This study develops a land-based mobile prototype for the detection of defects in ferromagnetic structures using the magnetic memory method. The detection prototype is formed by two embedded systems: a) the first has the purpose of performing the translational displacement of the robot on the earth surface through an object-oriented logic, it has the control module of the infrared sensors, motors and tracks, and b)the second consists of a magnetoresistive microsensor, a module for the data transmission via Bluetooth and a module for data processing. In addition, the latter maintains the communication, storage and processing of information obtained by the microsensor when performs the inspection.

This paper is organized as follows; in Sect. 2, we describe the mobile robot system composed of two blocks control and data acquisition, and the Python simulations of the magnetic field in rectangular defects. The measurement results of the ferromagnetic plate defects are described in Sect. 3. Next, in Sect. 4, we describe the discussions of the mobile robot system. Finally, we present the conclusions and future avenues of research in Sect. 5.

2 Materials and methods

2.1 Design of the mobile robot and signal processing system

The experimental method used to analyze ferromagnetic structures is based on reading, sampling and processing the residual magnetic field from the structure that is being tested. The alteration of the magnetic field is due to the presence of irregularities present in the structure. These irregularities, measured through the proposed system, are displayed in the graphical user interface (GUI) implemented for sampling, processing and storing the data obtained from the measurements. The data processing is generated in the embedded system, which has MAG3110 built-in commercial magnetic microsensors, capable of detecting magnetic field variations in a linear detection range of ± 1000 µT, with a sensitivity of 0.10 µT, this microsensor has an analog–digital converter, a filter and a multiplexer [22]. The embedded system is based on a 32-bit Atmel SAMD21 microcontroller, allowing a high digitalization of the data obtained from the scanning that the magnetic microsensor performs on the board. Then, the data are sent to a PC via the control protocol and adaptation of the logical link, using the HC-05 Bluetooth module. Also, the measurements can be store in a microSD, Fig. 1 shows the block diagram system. The complete system is within a structure designed and printed in 3D, which allows to the prototype to be linked with a mobile device for the analysis of structures of different sizes, this leads to the system in a reconfigurable device, as shown in Fig. 2.

Fig. 1
figure 1

Block diagram system for the mobile robot

Fig. 2
figure 2

Prototype executed for the inspection system of defects in ferromagnetic structures

The mobile robot can move in different topographic conditions and can be programmed to perform paths at different travel speeds (2.15–8.6 cm/s). For the current study, the speed of 2.15 cm/s was established to capture the variations of the magnetic field due to the defects present in a ferromagnetic plate as a test object. The ferromagnetic plate has dimensions of 76.5 × 17 cm and a thickness of 6.7 mm. Six cuts have been made along the plate in order to emulate rectangular defects, see Fig. 3. The cuts are separated at a distance of 10 cm in an equidistant manner and are characterized exclusively by having the same length of the incision, as shown in Table 1. Three pairs of cuts were made to determine the reproducibility of the system. Figure 4 shows the arrangement designed to perform the detection of the variations of the magnetic field, the separation between the plate and the microsensor is 0.5 cm, while the speed is kept constant along the axis of the plate.

Fig. 3
figure 3

Cuts made to the structure to emulate defects in the ferromagnetic plate

Table 1 Dimensions the cuts proposed in this study
Fig. 4
figure 4

Proposed arrangement for the path of the mobile robot along a ferromagnetic plate

A Finite State Machine (FSM) shows the robot´s behavior path in five states, see Fig. 5. The FSM always starts in ‘START’ state, waiting for 100 ms time required for setting registers and assigning variables, after this, FSM changes to ‘FOLLOW’ state, activating both motors and following a straight line, if at some point the robot detects an obstacle in the right side, then it stops and waits for 100 ms stopping the engine before a spin change because the variations in engine revs are not immediately translated into changes in drive shaft rotation speed and, after, goes in to “LEFT TURN” (stopping left motor), until there is no obstacles on the right side. If some obstacle exists, then it will return to “FOLLOW” state, however, when it is in “LEFT TURN” state and detects presence of an object on the left side, regardless of whether or not there is an object on right side, the robot stops 100 ms and changes to “BACKWARD” state. On the other hand, if the robot is in “FOLLOW” state and senses an obstacle on the left side, it stops 100 ms and switches to “RIGHT TURN” state. If the right sensor detects an object, then it will go to “BACKWARD” state. Finally, if robot is in “FOLLOW” state and is full blocking its path, then it will change to “BACKWARD” state, being able to change from this state to “RIGHT TURN” if there is no obstacle on the left side or to “LEFT TURN” if not there is an obstacle on the right side.

Fig. 5
figure 5

FSM of robot´s behavior path

2.2 Python simulations of the magnetic field in rectangular defect

In order to elucidate the relationship among the profiles of the magnetic field measured by the sensor and geometric characteristics of the flaws, numerical simulations were performed. In the simulations, the system was considered as formed by an ordered arrangement of magnetic moments representing the scenario of a magnetized system incorporating in the structure’s rectangular flaws of different aspect ratios. Hence, the magnetic flux density (strength of the B-field) in Teslas was determined by adding the contributions to the magnetic field of every magnetic moment (representing an average domain) at a given distance from the surface. Every dipolar contribution, being the curl of the vector potential A, reads as follows

$$\vec{B}\left( {\vec{r}} \right) = \vec{\nabla } \times \vec{A} = \frac{{\mu_{0} }}{4\pi }\left[ {\frac{{3\vec{r}\left( {\vec{m} \cdot \vec{r}} \right)}}{{r^{5} }} - \frac{{\vec{m}}}{{r^{3} }}} \right]$$

where m is the magnetic moment per domain, and r is the vector going from the position of every magnetic moment in the arrangement to the position where B is evaluated. By repeating iteratively this procedure, the cartesian components of B were obtained along the profile at a given distance from the surface. The corresponding experimental counterpart was set up using a pair of permanent neodymium magnets, as shown in Fig. 6, in order to magnetize the domains in the region where the sensor came through. Figure 7 shows the array of random and ordered magnetic domains using Python. The Fig. 8, 9 and 10 shows the behavior of the magnetic field on the plate under test by using the model implemented in software and written in Python programming language and running in a workstation Dell T7910.

Fig. 6
figure 6

Magnetization of the plate to orient the magnetics domain a top view, b side view of the setup using a permanent neodymium magnet

Fig. 7
figure 7

a array of random magnetic domains, b ordered magnetic domains on the plate AST A-27 under test

Fig. 8
figure 8

Magnetic field X of a rectangular defect with ordered magnetic domains

Fig. 9
figure 9

Magnetic field Y of a rectangular defect with ordered magnetic domains

Fig. 10
figure 10

Magnetic field Z of a rectangular defect with ordered magnetic domains

3 Results

In this section, measurements made through the MMM to a rectangular ASTM A-27 steel plate are presented, which has 6 defects that are mechanically induced. The complete system is powered by four 1.5 V batteries (see Fig. 11), which has an autonomy of 45 min and a power consumption of approximately 2 W. Additionally, the microsensor has a resolution of 0.1 µT, and the information obtained from it can be stored in a microSD or sent to the graphical user interface developed in Televiewer through the Bluetooth communication protocol. If the information is stored in the microSD, then it is processed on a PC.

Fig. 11
figure 11

Arrangement implemented for defect measurement on the ferromagnetic board

The mobile robot uses a proportional integral derivative (PID) controller, which was designed to stabilize the speed using an LSM6DS33 3-axis accelerometer, the infrared sensors are used to handle the turning left, right and the moving forward, backward and reverse. Figure 12 shows the structure of the control system for the mobile robot.

Fig. 12
figure 12

Complete system for mobile robot control

As can be observed in Figs. 13, 14 and 15, the maximum peak is -1987 µT, 3957 µT, and 3220 µT, respectively. This model is important, enabling that the experimental profiles are being almost reproduced. This type of comparisons allows to extract geometric characteristics related to the width and depth of the flaws.

Fig. 13
figure 13

Experimental result of magnetic field X of a rectangular defect A1 with ordered magnetic domains

Fig. 14
figure 14

Experimental result of magnetic field Y of a rectangular defect A1 with ordered magnetic domains

Fig. 15
figure 15

Experimental result of magnetic field Z of a rectangular defect A1 with ordered magnetic domains

Figures 16, 17 and 18, the maximum peak is -1949 µT, 3613 µT, and 2681 µT, respectively.

Fig. 16
figure 16

Experimental result of magnetic field X of a rectangular defect B1 with ordered magnetic domains

Fig. 17
figure 17

Experimental result of magnetic field Y of a rectangular defect B1 with ordered magnetic domains

Fig. 18
figure 18

Experimental result of magnetic field Z of a rectangular defect B1 with ordered magnetic domains

Finally, Fig. 19 shows the behavior obtained for flaw C1 where the maximum peak is at -2559 µT for the X axis, Fig. 20 shows for the Y axis a maximum peak from -3304 µT in Fig. 21 shows the Z axis the maximum peak is evident at 2724 µT.

Fig. 19
figure 19

Experimental result of magnetic field X of a rectangular defect C1 with ordered magnetic domains

Fig. 20
figure 20

Experimental result of magnetic field Y of a rectangular defect C1 with ordered magnetic domains

Fig. 21
figure 21

Experimental result of magnetic field Z of a rectangular defect C1 with ordered magnetic domains

4 Discussion

The mobile robot is capable to online defect monitoring on ferromagnetic structures. By using the MMM, no special treatment is required for sampling such as liquid penetrant techniques, emission of Eddy currents, industrial ultrasound, acoustic radiation or the use of destructive techniques. The proposed system reduces the use of expensive equipment and additional operators to monitor rectangular defects in ferromagnetic structures. The dynamic range for robot autonomy can be increased by using a higher value power supply or by modifying the path speed of the mobile robot.

5 Conclusions

In this paper a mobile robot was used to inspect rectangular defects in a ASTM A-27 ferromagnetic plate. The proposed prototype has two embedded systems, one for control and other for data acquisition, which is capable of measuring small variations of the magnetic field due to defects of the order of millimeters at a travel speed of 2.15 cm/s, so the prototype may be suitable for inspection tasks in preventive maintenance in ferromagnetic structures installed in industry settings to avoid serious accidents or environmental damage. The robotic prototype has an autonomy of 45 min, while the microsensor has a resolution of 0.1 µT. The size and depth of the defects measured are related to the shape of the magnetic field measured, the variations present are due to deformations or cracks that are not visible.

The results of the work allow us to appreciate the possible practical applications of the MMM, the ability to analyze defects with a simple device such as the one proposed is an advantage to be taken into account with other inspection methods, at the same time, the possibility of adapting the device to the needs of the structures to be analyzed highlight its potential even more since the design of the device can be modified for its use not only in plates as shown in the results but also in pipes or steel beams. The graphic user interface is easily accessible and user-friendly, where the records obtained from the magnetoresistive microsensor can be monitored. The algorithm implemented in Python programming language is an important model to determine magnetic defects in non-destructive testing, the results shows a high correlation between the flaw simulated and experimental measurements.

Future work will include the study of irregular defects according to the ASTM standard for intergranular or transgranular corrosion and the use of additional microsensors to determine the size and shape of the and FPGA for the embedded systems. Additionally, the universal algorithm implement in [23] for automatic control of movement of mobile wheeled robots using an inertial sensor data, can be integrated into the mobile robot presented in this work in order to record your position in the microSD memory. Specifically, it will be very useful to estimate the plate defects with the position where it occurs, during inspection processes.