1 Introduction

Recently, Additive Manufacturing (AM) technologies have started gaining a lot of interest in the soft robotics and biomedical field [1], due to several intrinsic features such as the possibility to: (i) employ soft materials, (ii) easily create complex structures, (iii) use more materials in the same manufacturing cycle, and (iv) fabricate smart structures [2,3,4,5,6]. Among the different material extrusion techniques, Fused Filament Fabrication (FFF) technology, seems to fit well with soft robotics requirements: in particular, as pointed out by Shintake et al. [7], several researchers focused on the study (design, optimization, simulation, fabrication, and control) of soft grippers. It is possible to classify the contribution of FFF into the soft robotic field as a function of the actuation mechanism underlying the fabricated soft robot, as follows: pneumatic actuation, shape memory polymers and tendon driven. 3D printed pneumatic actuators consist of a main body made up of soft material actuated by means of compressed air. The main body can be patterned in different ways to achieve several kinds of deformations (such as bending, twisting, elongating, and shortening). The bending actuator is the most widespread class fabricated by means of FFF [8]. Some examples of bending pneumatic actuators equipped with strain sensors (fabricated using a dual extruder machine) are provided in [9,10,11]. Several results have been achieved in this field such as: (i) a way to improve the object grasping capability, (ii) the possibility to fabricate embedded air connectors [12] and (iii) the possibility to obtain helicoidal motion [13]. Shape memory polymers actuator is based on phase change of the materials such that the change of Young’s modulus when the switching temperature (Ts) is reached resulting in a change of material softness. FFF has been largely employed for the fabrication of structures based on this actuation method [14,15,16,17] proving how printing parameters (infill and pattern) affect recovery time and recovery quality [18]. A new and promising way to exploit the shape memory effect in FFF structures is the creation of structures made up of at least two parts: joints made of shape memory polymers and links made of non-shape memory material. This design choice implies several advantages: (i) the time required to activate only the joint is just a couple of seconds (compared to more than 30 s to activate the whole structure), (ii) it is possible to take full advantage of multi-material 3D printing, and (iii) complex movements are enabled [19,20,21,22,23]. Finally, tendon-driven-based FFF robots have been largely exploited over the past few years and it consists of creating structures (for example fingers) actuated utilizing cables connected to motors. In [24] a soft manipulator has been fabricated using a custom-made FFF machine enabling the bonding strength when different materials (hard and soft) are extruded. The authors studied the best hinge geometry providing a new finger version (reducing the phalanges dimension) to improve the finger conformability around unknown objects for grasping tasks. Mohammadi et al. demonstrated that this approach can be used to fabricate a fully 3D printed hand (34 h for the manufacturing) costing 200 USD and characterized by at least 1 year of lifetime which can be employed as prostheses [25].

Shape memory alloys (SMAs) are a very promising class of actuators, largely employed in soft robotics to actuate soft structures: they are smart materials able to change their crystalline structure from martensite to austenite when thermally activated, leading to a change of young’s modulus. Compared to the above-mentioned actuation methods, SMAs do not require heavy systems to work such as pneumatic compressors or motors and their actuation is faster and less power-consuming than shape memory polymers. Silicone molding is the most used fabrication technique to embed SMAs into elastomeric matrices to achieve several kinds of motion such as bending and twisting [26,27,28,29].

Recently, AM has been used to fabricate structures activated by SMA, showing at the same time: (i) all the potentialities of AM technology (capability to create complex structures, capability to obtain complex motion paths using two materials with different stiffness in the same printing cycle), and (ii) a huge problem related to the manual embedding of SMAs wires after the fabrication [30, 31]

The accurate placement of SMAs into 3D printed structures is a big challenge and addressing this requirement would abruptly increase the impact of FFF in soft robots manufacturing, as a matter of fact solving this problem would (i) reduce the manual tasks leading to a completely automated manufacturing process, (ii) increase the accuracy of the SMAs placement and (iii) allow the placement of SMAs into complex structures. Although several interesting solutions have been discovered in the field of FFF fiber reinforcement [32,33,34] and wires placement [35], they cannot be applied to SMAs integration due to the high extrusion temperature of the common FFF filaments (180 to 250 °C), far above the austenitic start temperature threshold of SMAs.

The main goal of the proposed research is the one shot additive manufacturing of a soft robotic finger with embedded sensors (capacitive and resistive) and actuator (SMA spring) without recurring to assembly task. In this way, the 3D printed part results ready to be activated, providing feedbacks thanks to the sensor, after the removal from the machine build plate. At the best of the authors’ knowledge, despite a huge exploitation of FFF for the fabrication of 3D printed sensors [36,37,38,39,40,41,42] and actuators, structures equipped with both sensors and actuators have not been manufactured yet.

A flexible manufacturing approach to solve the problem of the automated SMAs placement into FFF structures is presented: using a commercial and inexpensive (300 USD) dual extruder FFF machine and a pick and place robot. The key enabler of the present research is related to the use of a material characterized by a printing temperature (\({T}_{p}\)) lower than the SMA austenitic starting temperature (\({A}_{s}\)): polycaprolactone (PCL) filament (extruded temperature of 70° C) in conjunction with a SMA spring, having \({A}_{s}\) equal to 90° C has been employed.

The present research aims to show that, using the proposed manufacturing approach, it is possible to create smart active structures closing the loop between actuation and sensing without recurring to any post-processing and assembly task.

2 Materials and methods

The main goal of the present work is the one-shot additive manufacturing of a soft robotic finger equipped with 3D printed sensing systems (a strain gauge for the bending sensing and a capacitive force sensor for the object detection) and a SMA spring actuator (see Fig. 1). To achieve this goal, a low-cost multimaterial extrusion machine and a custom-made Cartesian pick and place robot (to automatically embed the SMA spring) were employed. The proposed manufacturing approach aims to push the role of AM into a new dimension: structures having the capability to provide real-time feedbacks and with embedded actuation systems can be fabricated in a fully automated way without recurring to assembly tasks.

Fig. 1
figure 1

Research workflow

2.1 Compatibility among extruded material and SMA

Apparently, a huge temperature incompatibility issue occurs when SMAs need to be embedded, during the fabrication process, into FFF parts: generally, flexible materials such as common thermoplastic polyurethanes (TPUs) are characterized by a printing temperature (\({T}_{p})\) of 220 °C, far above the \({A}_{s}\) of Nickel-Titanium SMAs (ranging from 70 to 90 °C). The aim of automating the SMA placement into 3D printed parts motivated the authors to pause and restart the printing process in order to embed the SMA using a pick and place robot. This task has been made possible by exploiting polycaprolactone (PCL) filament: a non-conventional material, mainly used in the biomedical field for scaffold manufacturing [43,44,45,46]. PCL material is characterized by a \({T}_{p}\) ranging from 70 to 110 °C: it results compatible with SMAs’ \({A}_{s}\) without affecting its thermal memory. PCL is also well-known for getting softer when locally heated up to a temperature close to \({T}_{p}\). This behavior will take place when the SMA will be activated through the Joule effect. PCL (eMate-PCL, eSun, China) was used in this study, while a Dynalloy Inc. SMA spring with \({A}_{s}\) equal to 90 °C was employed (discussed in Section 2.2). PCL process parameters and softness behavior are analyzed in the “PCL process parameters” Sections 2.1.1 and 2.1.2, respectively.

2.1.1 PCL process parameters

The main process parameters to take into account through the present work are (i) printing temperature (\({T}_{p})\), (ii) printing speed (\(s)\), nozzle size (\(d\)) and layer height (\(h\)). In regard to \({T}_{p}\), the authors decided to set the minimum temperature in the range suggested by the filament manufacturer [70, 110] °C, to avoid any interaction to \({A}_{s}\) (equal to 90 °C) during the SMA integration. As well-known from scientific literature [47], \(s\) mainly affects the printing quality (dimensional accuracy and surface roughness): with a trial and error approach, we found 15 \(mm/s\) and 10 \(mm/s\) around the corners to be the best \(s\) values to set ensuring a good printing quality.

PCL material is stiffer than classic TPU (used for the fabrication of soft robots such as fingers) but softer than PLA: in Table S1 (Supplementary information) a comparison among the main mechanical properties of these 3 filaments is provided. The PCL structure should be easily deformable by the SMA actuators: a study on the stiffness has been conducted. To address this requirement, the relationship among \(d\), \(h\) and weight of PCL structures was studied using a factorial plan 22. The factorial plan is described in Supplementary information, section S2.

From the plan, several considerations can be drawn:

  • The two factors (namely \(d\) and \(h\), see Supplementary information, S2) affect the weight (g) of the structure while the interaction among the two factors does not affect the weight (see Fig. S1).

  • The way in which the two main parameters affect the weight of the PCL structures (shown in Fig. S1) is:

    • i) nozzle size: switching from a 0.4 mm to a 1 mm nozzle size, the weight increases.

    • ii) layer height: switching from 0.2 mm to 0.4 mm, the weight increases.

  • The residual analysis shows the consistency and robustness of the computed factorial plan (see Fig. S1).

In summary, the 22 factorial plan provides the best \(d\) and \(h\) value to set, to create a lightweight structure which is found to be 0.4 mm, and 0.2 mm respectively. The four most important process parameters for the proposed application have been analyzed and listed in Table 1.

Table 1 Summary of process parameters for PCL and SMA

2.1.2 PCL compliance

In this section, the relationship between PCL compliance and local heating is studied. Several PCL samples with embedded resistive wire (Nichrome wire, diameter 0.5 mm) have been fabricated. The sample dimensions were 70, 35, and 10 mm in size along the x, y, and z-axis. The printing process was stopped to embed the resistive wire and later resumed to incorporate the resistive wire into the PCL structure (see Fig. 2). The resistive wire has the function to mimic the SMA actuator: it was heated up in the same range of SMA temperature (up to 110 °C) which will be used for actuation later.

Fig. 2
figure 2

(a) Tested sample when Twire = Troom, and (b) Twire = 100 °C. (c) \(\Delta Cm/Cm0\) vs T for PCL and TPU, (d) absolute compliance vs T for PCL and TPU: only one point for TPU is shown in order to demonstrate that the PCL compliance at 110 °C is close to the TPU compliance at room temperature

The compliance of a structure is calculated as follows:

$$Cm=\frac{1}{S}$$
(1)

where \(Cm\) \([mm/N]\) is the compliance and \(S\) is the stiffness, calculated as follows-

$$S=\frac{F}{d}$$
(2)

where \(F\) is the applied force \([N]\) and \(d\) is the sample displacement \([mm]\).

An ad hoc set-up was used to evaluate the change of compliance, it consists of (i) a power supply to heat up the embedded resistance, (ii) a thermal imaging camera to evaluate the actual temperature of the wire, (iii) a calibrated weight (2.5 \(N\)) connected to the sample (see Fig. 2a), and (iv) a digital camera to take pictures at each increment of temperature to calculate the displacement. The applied force was the same for each temperature increment and the only variable to measure was the displacement of the tip (see Fig. 2b): in this way the compliance variation was measured.

Starting from \({T}_{room}\), the temperature of the embedded resistive wire was incrementally increased, and a picture was taken from 70 °C up to 110 °C with a step of 10 °C. Three PCL samples were analyzed, with three tests done for each sample, resulting in a statistically insignificant standard deviation (see Table 2).

Table 2 PCL samples: change in compliance \(\Delta {C}_{m}/{C}_{o}\) vs temperature

A significant change in compliance \(\Delta {C}_{m}\) compared to the initial compliance \({Cm}_{0}\) of almost 6 times occurs when the resistive wire is heated up to 110 °C (the maximum temperature that will be reached from the embedded SMA) making this material suitable for the proposed application (see Fig. 2c). To have a direct comparison with TPU, the same identical tests were performed on TPU showing a maximum change in compliance \(\Delta Cm/{Cm}_{0}\) of 0.4 (86% less than PCL): these data refer to the mean among 3 samples for PCL and TPU. From these tests, it is possible to get a comparison in terms of absolute compliance: when PCL is locally heated up to 110 °C (same temperature that will be reached by the SMA), its absolute compliance is almost 7 \(mm/N\) not that far from the compliance of TPU at \({T}_{room}\)(almost 9 \(mm/N\)). See Fig. 2d).

In conclusion, PCL material appears to be the right candidate to match with SMA integration, not only because of its low printing temperature but also because its compliance abruptly increases when it is locally heated up, making PCL soft when SMA will be heated to be actuated.

2.2 SMA actuators

For the current study, a shape memory alloy (SMA) spring with the following properties was used: (i) \({T}_{as}\) equal to 90 °C, (ii) internal diameter equal to 0.51 mm, and (iii) external diameter of 3.45 mm (see Fig. S2). It is important to note that the printing temperature of PCL equal to 70 °C helped the integration of the SMAs, otherwise, it would have been impossible to integrate SMA with lower \({A}_{s}\) without adversely affecting its thermomechanical behavior.

The length of the SMA spring depends on the finger dimensions (see Section 3.1), being the finger length equal to 122 mm, an overall spring length (in its extended state, including the two terminal-crimps as well) bigger than that threshold value is required.

The length of the only SMA spring in its extended state (in its pretension state) was 92 mm: 20 mm shorter than the finger length, in fact after crimping it with terminal metal crimps, it reached 140 mm in length.

Before embedding the SMA into the 3D printed structure, it has been characterized using a custom-made setup following [48, 49] (See supplementary information section S3, and Fig. S3) to determine the relationships between input and output. The following time-domain properties: applied current, voltage, displacement, temperature, and force were obtained. Three different current inputs were provided (2.8 A, 3.2 A and 3.6 A) for 2 s, followed by an off period of 50 s (corresponding to a frequency of 0.02 \(Hz\)): for each current input the following protocol was applied for a total of 5 cycles. The characterization results are summarized in Fig. 3a and b. From the SMA characterization, it stands out that the best current value to apply is 3.2 A, for the following reasons:

  • By applying 3.2A input current, the SMA temperature values reached a temperature of 110 °C, it corresponds to the highest compliance in PCL material (Section 2.1.2). The other two current inputs, 2.8 A and 3.6 A, provide respectively inadequate temperature to take full advantage of the PCL behavior and a too high-temperature value (around 160 °C) which would melt the PCL finger.

  • The average displacement obtained providing 3.2A is 11.2 mm, while the one obtained at 3.6 A is 11.5 mm: these two values are very close but using 3.2 A it is possible to reduce the power consumption.

  • The same observation can be seen with the force values: almost identical force values are reached providing 3.2 A and 3.6 A. Also, in this case, providing 3.2 A, the power consumption is reduced.

Fig. 3
figure 3

SMA characterization of 0.51 mm wire diameter, 3.45 mm coiled diameter, 92 mm length spring: (a) overall results for five consecutive cycles at different current inputs, and (b) relationship temperature-displacement for the first cycle (time 0 to 13 s corresponding to the peak of temperature) at 3.2A

3 Design and sensor evaluation

3.1 Soft finger design

To prove the potentialities of the proposed manufacturing approach, a soft finger with embedded sensors and a SMA spring actuator was fabricated in a single shot. We followed the design rules pointed out by Mutlu et al. [24] for this work.

The proposed finger (see Fig. 4a and b) can be subdivided into two portions: the active finger and a terminal block equipped with 4 holes to fix the finger to a custom-made platform during the tests. Finger dimensions are provided in S4 (Supplementary information). The hole in which the SMA spring will be embedded during the printing process is one of the most important parts of the finger. It has been drawn with the following features: (i) diameter of 4 mm (with a trial-and-error approach, this value was found to be the best diameter to ensure a complete and full embedding of the SMA spring) and (ii) above the neutral axis of the structure to provide a better bending when the SMA is activated.

Fig. 4
figure 4

Proposed finger: (a) finger dimensions, (b) finger components, and (c) strain gauge

The finger is equipped with two sensors which will be manufactured in the same printing cycle as the finger. In the bottom part of the finger, a strain gauge sensor has been drawn: it consists of 4 tracks having an active length of 84 mm and a width of 1.2 mm. A distance between two adjacent tracks of 1.2 mm was set. Also, end-loops (3.6 mm × 4 mm) were included to reduce stress sensitivity in the axis perpendicular to the deformation axis and to improve the measurement quality. The strain gauge geometry is shown in Fig. 4c.

The second sensor is placed on the tip of the finger, and it is used as a force/contact sensor. The sensor is based on the capacitive principle, and it has been fabricated using the same conductive material employed for the strain gauge and a different insulator material from PCL named NinjaFlex, well known for being one of the softest commercially available filaments. More details about the two just discussed sensors are provided in the next Section 3.2.

3.2 Sensor evaluation

Here in this section, the two manufactured sensors are analyzed and studied, showing all the potentialities of the dual extruder FFF technology in the manufacturing of embedded sensors. It is important to point out that the two proposed sensors are based on two different working principles: piezoresistive (change in electrical resistance) and capacitive (change in capacitance). In this work, we are showing for the first time, to the best of the authors’ knowledge, two sensors based on different principles are 3D printed and embedded in the same structure and evaluated in a fully functional robotic/ prosthetic finger.

3.2.1 Strain gauge

The dimensions of the proposed strain gauge sensor are described in Section 3.1. The length and the width are the same as the “active finger”. Exploiting the piezoresistivity effect (Eq. (3)), the strain gauge will provide a change in resistance when the finger will be actuated. The goal of embedding the strain gauge is to correlate the finger bending angle to the change of resistance and to have direct and real-time feedback.

$$R=\rho \frac{l}{A}$$
(3)

where \(R(\Omega )\) is the strain gauge electrical resistance, \(\rho (\frac{\Omega }{mm})\) is the material resistivity (a constant value which does not depend on the geometry), \(l (mm)\) is the track length, and \(A({mm}^{2})\) is the track surface area. When a stimulus is applied (i.e., bending, compression, tension and so on), only the \(\frac{l}{A}\) ratio changes, leading to a change in the final strain gauge resistance \(R\). FFF-based strain gauges [50] have been largely employed and several experimental and theoretical studies have been performed to improve the scientific knowledge in this field under different points of view (i.e., dynamic piezoresistivity [36], thermal effects [51, 52] and modelling of anisotropic electrical conductivity [53]).

The sensors were manufactured using a conductive thermoplastic polyurethane (CTPU), namely NinjaTek Eel, NinjaTek, USA, to address severe bending that would break conductive polylactic acid (henceforth CPLA). CTPU material data are provided in Section 3.2.2. One of the problems related to the fabrication of resistive sensors through FFF is the high electrical resistance (low conductivity) [54] involving electrical losses: as a matter of fact, these kinds of filament are made up of a polymeric matrix doped with conductive fillers (such as carbon black, carbon nanotubes and so on). To minimize the electrical resistance, it is important to study FFF process parameters to find out a correlation between them and the increase of conductivity. So far, in scientific literature, it has been proved that layer height and printing orientation affect the final electrical resistance in 3D printed strain gauges [55]. In the present paper, two more process parameters have been studied, correlating their effect to the final electrical resistance of the 3D printed samples: printing pattern \({P}_{p}\) and printing temperature \({T}_{p}\).

Considering \({P}_{p}\), the only 3 different patterns allowed by the combination between active strain gauge width (1.2 mm) and employed nozzle size (0.4 mm) were studied, the three \({P}_{p}\) analyzed are 3 lines (called “A”), line-zigzag-line (called “B”) and only zigzag (called “C”). The idea underlying the study of the best printing pattern is to investigate if it is possible to manufacture an optimal path for the current.

Considering \({T}_{p},\) 2 different values were changed, 230 °C (called “X”) and 240 °C (called “Y”): the minimum and the maximum value suggest by the filament manufacturer. The idea, in this case, is to investigate if the temperature affects the final electrical resistance. The studied process parameters are listed in Table 3.

Table 3 Process parameters studied for resistance minimization

A manufactured plan based on a total of 3 repetitions for each combination (fabricated in a random order to reduce the impact of external factors) was followed, and two outputs were measured for each combination: i) mean final electrical resistance (using a benchtop multimeter) and ii) standard deviation. The 3D printed samples consist of a 0.4 mm substrate of TPU and the proposed strain gauge (same dimension as Section 3.1). In Fig. 5 , the sample CAD model, the theoretical printing pattern generated by the slicing software (Ultimaker Cura 4.11) and the actual 3D printed tracks are shown.

Fig. 5
figure 5

(a) CAD model of the studied strain gauge, and (b) theoretical printing pattern in the slicing software (yellow = CPLA, red = TPU substrate) and actual 3D printed tracks (c) mean resistance vs printing temperature, and (d) standard deviation vs printing temperature

The results of the parameter investigation are shown in Fig. 5c and d.

From the results, the following conclusions can be drawn:

  • Both the studied process parameters, statistically affect the electrical resistance of the proposed strain gauge.

  • For each printing pattern, the increase of the printing temperature from 230 °C up to 240 °C involves a huge decrease in the final electrical resistance respectively of 27.6%, 36.5% and 32,1% for A, B and C. Also, the standard deviation decreases respectively of 35.1%, 39.2% and 52.2% for A, B and C, when \({T}_{p}\) switches from X (230 °C) to Y (240 °C). In the authors’ opinion, this behavior is related to the melting process of the conductive filler (carbon black) scattered into the TPU matrix: in accordance with the percolation theory, the conductivity of conductive polymers is due to the creation of conductive network in which the electrical current can flow. Because the size of carbon black nanoparticles scattered into the TPU matrix is not uniform (the melting point of conductive fillers depends on its size [56]), increasing the printing temperature (namely the melting point of the carbon-black), the probability that more carbon black is melted increases, and also the probability to create a stronger conductive network for the current flow increases too. For this reason, for each pattern when the printing temperature increases, the mean electrical resistance and also the standard deviation (a total of 3 repetitions for each pattern) decreases (see Fig. 5c d). For a good understanding of the percolation theory the authors suggest referring to [57]).

  • At \({T}_{p}=240^\circ C\), the best printing pattern in terms of minimized electrical resistance is B (line- zigzag- line) providing a mean resistance of 106,7 \(k\Omega\) and a reduction of electrical resistance of 11.9% and 142% compared respectively to A (lines) and C (zigzag). This result can be portrayed in the following way: pattern B provides the best current path [58] compared to the other two possible patterns, resulting in low electrical resistance.

  • The combination of the printing pattern and printing temperature that minimizes both electrical resistance and the standard deviation is “line-zigzag-line” and “240 °C”, which will be used for the embedded strain gauge fabricated into the finger.

3.2.2 Capacitive sensor

Over the tip of the finger, a capacitive sensor has been manufactured to obtain direct and real-time feedback (change in capacitance), when the tip of the finger touches objects.

The proposed capacitive sensor design is shown in Fig. 6a. It is made up of 4 main elements: a bottom electrode (0.6 mm thick), a separator layer (1 mm thick), a top electrode (0.6 mm thick) and a top plastic coverage (0.2 mm thick), for an overall thickness of 2.4 mm and the length and width are 21 mm and 14 mm.

Fig. 6
figure 6

(a) Capacitive sensor (b) contours vs no contours, (c) different infill percentage, (d) capacitive sensor during the manufacturing process, and (e) magnification of the manufactured sensor, it is possible to appreciate the air gaps into the separator layer

The equation governing the proposed sensor is:

$$C=\frac{A}{d} {\varepsilon }_{0}{\varepsilon }_{s}$$
(4)

where \(C\) is the capacitance of the sensor (\(nF\)), \(A\) is the surface area of the electrodes (\({mm}^{2}\)), \(d\) is the electrode distance (also known as separator layer thickness) (\(mm\)), \({\varepsilon }_{0}\) is the vacuum dielectric constant (\(\frac{pF}{mm}\)) and \({\varepsilon }_{d}\) is the relative dielectric constant of the separator layer, in particular, the latter can be expressed as

$${\varepsilon }_{s}={\varepsilon }_{air}*\%{V}_{air}+{\varepsilon }_{e}*\%{V}_{e}$$
(5)

where \({\varepsilon }_{air}\) is the air relative dielectric constant, \({\varepsilon }_{e}\) is the relative elastomeric dielectric constant (\(pF/mm\)) while \(\%{V}_{air}\) and \(\%{V}_{e}\) are respectively the percentage of volume of air and elastomeric material (it is important to point out that \({\varepsilon }_{air}=1\) and that \({\varepsilon }_{e}\) > \({\varepsilon }_{air}\)).

As well-known from scientific literature [59, 60], the separator layer needs to be a porous-based structure with air gaps due to the following reasons:

  • When a force is applied, it shows more flexibility (with the same applied force, the distance among the electrodes will be greatly reduced in the case of a separator layer with air voids compared to a full separator structure) resulting in a greater capacitance change

  • The percentage of the volume of air gaps (\({\%V}_{air}\)) will be reduced under a force/pressure stimulus whereas the percentage of the volume of the elastomeric material (\(\%{V}_{e}\)) will increase resulting in a greater capacitance change ( \({\varepsilon }_{e}\) > \({\varepsilon }_{air}\)).

The separator layer has been designed (Fusion 360, Autodesk) as a full structure: the porous structure (air gaps) has been generated into the slicing software (Ultimaker Cura 4.11.0) using gyroid infill (well known in the scientific literature for providing a good response when it is compressed [61]).

It is important to point out that the separator layer needs to be fabricated without any contour, otherwise the structure would be more rigid, and a huge amount of force will be required to compress the solid contours resulting in less sensor sensitivity (see Fig. 6b). To achieve this goal, three process parameters have been successfully set: wall line count, top layer, and bottom layer, respectively as 0, 0 and 0.

For the fabrication of the separator layer the TPU 85 A NinjaFlex (henceforth TPU), (NinjaTek, USA), was used due to the need to produce a separator layer as flexible as possible, to obtain a good sensor sensitivity.

Further details about process parameters are listed in Supplementary information (Table S3). As shown in Fig. 6c four different infill percentages of the gyroid separator layer were studied: 20%, 30%, 40% and 50%.

Two different conductive materials were used, CTPU and CPLA (material data are available in Table S4), to study the best one in terms of sensor sensitivity.

After printing the capacitive sensors with different infill percentages of the separator layer and conductive material for the electrodes, the following conclusions can be drawn-

  • Using CPLA and printing the separator layer setting 20% infill, 8 prints on 10 have failed, showing manufacturing inconsistency: the separator layer act as “support structure” during the manufacturing process and being not dense enough the top electrode collapse when printed. The top electrode meets the bottom one: no capacitance values can be read (instead resistance values were read).

  • Using CPLA and increasing the separator layer percentage (30%, 40% and 50%) the previous issue has been solved.

  • Using CTPU, it was possible to print the separator layer setting 20% infill (10 prints on 10) unlike for the CPLA. The authors justify the following behavior as follows: being CTPU made of TPU (82% TPU and 18% carbon black) the adhesion between the previous substrate (TPU) and the first electrode layer is abruptly increased if compared to CPLA.

  • Increasing the infill percentage (from 20 to 50%) for both conductive materials, the capacitance value of the final sensor (after wiring, at rest) increases too because the percentage of TPU volume increases while the percentage of air volume decreases.

After connecting electrical wires to the pads, the sensors have been characterized. The measurement protocol used is the following: calibrated weights have been placed over the capacitive sensor and the capacitance value has been recorded using a digital multimeter.

In particular, the applied weight has been increased in the following way: 0, 200, 400, 800, 1000, 1500, 2000, 2500, 3000, 3500 g. A force sensor has been placed under the proposed capacitance sensor to record actual applied force values.

Results are shown in Fig. 7a and b.

Fig. 7
figure 7

Capacitive sensors results (a) CPLA sensitivity at different infill percentage of the separator layer, (b) CTPU sensitivity at different infill percentage of the separator layer, and (c) CTPU stability at 20% of infill percentage when 50 consecutive force cycles are applied

From the characterization of the capacitive sensors, it stands out:

  • Increasing the infill percentage, the performance (sensitivity) of the capacitive sensor decreases both for CTPU and CPLA.

  • At the same infill percentage (30, 40 and 50%) the behavior of the CPLA and CTPU sensors is the same showing that the only reason to choose CTPU instead of CPLA is because of its composition allowing it to be 3D printed setting the separator layer at 20% infill.

  • Every curve has in common an initial straight line in which the capacitance changes with a small amount of force and a second phase characterized by a sort of saturation in which a huge force is required to slightly change the capacitance (i.e., in 20% CTPU to achieve a 23% in ΔC/C0 almost 10 N are required while to switch from 23 to 25% (2% increase) almost 15 N are required).

  • CTPU 20% infill is the best sensors in terms of sensitivity, calculated as the ratio of incremental output to incremental input.

    $$S=\frac{\Delta C}{\Delta F}$$
    (6)

    And it has been calculated in the linear region of the curve (from 0 N to 16,6 N corresponding to 0 g to 1000 g applied on the sensor) and is: \(S=0.53 \frac{pF}{N}\), with a minimum detectable change of capacitance force of 1.9 N.

  • Also, 20% infill is the best solution not only for the higher sensitivity but also because the amount of material used during the fabrication is reduced (and the time too).

One more test has been performed to evaluate the stability of the best sensor (see Fig. 7c): a 200 g weight (which corresponds to the minimum force detectable from the sensor) was applied for 2 s, removed for 2 s, and applied again for the same amount of time, for a total of 50 cycles. The sensor shows high stability, and it can be used as an ON/OFF sensor to detect a minimum applied weight of 200 g (force of 1.9 N).

In conclusion, although the sensitivity of the sensor is almost 2/3 order of magnitude less than the ones fabricated using traditional approaches, it can be used as ON/OFF sensors: the following advantages have been achieved using this manufacturing method-

  • Only one fabrication method is involved (in the traditional approach at least 3)

  • 0 assembly tasks are required (in the traditional approach at least 3)

  • It is possible to create smart structures embedding the following sensor in the same printing cycle.

4 Additive manufacturing and characterization

4.1 Additive manufacturing

For the manufacturing of the proposed finger with the two embedded sensors and the integration of the SMA spring, a commercial low-cost (350 $) dual extruder machine based on the IDEX (independent dual extrusion) mechanism was used (Tenlog TL D3 Pro, Tenlog 3D Solutions, USA). Three different filaments were extruded from 2 nozzles: PCL (for the finger, nozzle 1), CTPU (for both the sensor’s active parts, nozzle 2) and TPU (for the separator layer and top coverage of the capacitive sensor, nozzle 1).

Several G-code modifications have been made (see supplementary file S6) due to the following reasons: (i) to print at 70 °C, (ii) to stop the print at a certain layer number to embed the SMA spring and (iii) to stop the print at a selected layer height to change the filament (from PCL to TPU) to print the separator layer and the top cover of the capacitive sensor.

The filament change procedure used in the present work consists on (i) stopping the printing process (thanks to the G-code modification), (ii) manually changing the material (from PCL to TPU) by following the 3D printer changing filament procedure, (iii) extruding 10 m of the new filament in the build-plate corner in order to clean the nozzle from the previous filament, and (iv) resuming the print.

The most important process parameters used are summarized in Table 4: two 0.4 mm nozzles were employed, and 0.2 mm was set as layer height parameter (same value for each material).

Table 4 Process parameters used for the finger for the finger fabrication

In the slicing software, the 3D Printer was instructed to pause immediately following a critical layer (see Supplementary information): this layer represented half of the diameter of the holes in which the SMA nickel-titanium spring will be placed. Along with this instruction, the 3D Printer was also made to maneuver its axes to present the partial-completed print to the Cartesian Pick and Place Robot (CPPR): a custom-made machine developed as a small-form-factor alternative to larger, more industrial, and expensive versions. As it is composed of a 400 × 330 mm aluminum framework and 3D printed components, the design is highly modifiable and easily integrated with other machines. It is controlled with an Arduino Uno, as well as three A4988 Bipolar Stepper Motor Drivers, and utilizes a custom-written G-Code interpreter. The CPPR (see Fig. 8a) has been able to use two electromagnets to manipulate the steel crimpled SMA actuators into the desired position. These electromagnets are simultaneously activated through an Omron relay module, which is controlled by the Arduino using G-Code over a serial connection to the host computer. This method enabled precise delivery of the SMA actuators without direct action from the user. More details about the custom-made CPPR are provided in Supplementary materials S7.

Fig. 8
figure 8

(a) Custom-made Cartesian pick and place robot (CPPR) for SMA spring placement. (b) Infrared image during the 3D printing process: the central marker (temperature of 36.6 °C) refers to the just extruded PCL filament over the embedded SMA spring, proving that the temperature of the filament in contact with the SMA is less than its austenitic start temperature. Moreover, the highest temperature is reached on the build plate (43.1 °C) to guarantee a good adhesion between the plate and the extruded PCL layers

After placing the SMA spring, the print was resumed and the PCL filament was extruded above to spring to completely embed it into the finger: as discussed before, it is crucial that the temperature of the extruded filament above the SMA is lower than \({A}_{s}\) to avoid SMA activation. The PCL temperature above the SMA was measured by means of infrared thermal imaging: as shown in Fig. 8b, as soon as the filament flows out from the nozzle, due to the interaction with the air its temperature abruptly decreases from 70 °C (printing temperature) to 36.6 °C: the temperature of the just extruded PCL bead over the SMA is 36.6 °C, ensuring the preservation of the SMA martensite structure and avoiding any SMA activation.

In Fig. 9, the manufacturing steps and the final finger are shown.

Fig. 9
figure 9

Proposed manufacturing process to create a soft PCL finger with embedded sensors and SMA spring actuator: (a) first step: 3D printed PCL layer, (b) second step: 3D printed strain gauge, (c) third step: PCL coverage above the strain gauge, (d) fourth step: stop of the printing process and usage of the CPPR robot to embed the SMA into the channel, (e) SMA into the channel, (f) manufactured finger top view, and (g) manufactured finger bottom view

The total cost of the proposed finger, computed by the slicing software as a function of the amount of material employed during the manufacturing process, is 1.2 $, while the total printing time was 2 h and 51 min, which needs to be increased of almost 10 min to embed the SMA using the CPPR and to change material (from PCL to TPU).

In Table 5, a summary of the benefits brought from the proposed manufacturing approach over a traditional manufacturing approach are listed.

Table 5 Main difference between the proposed manufacturing approach and a traditional approach, considering the fabrication of a structure equipped with 2 sensors and 1 actuator

4.2 Characterization

The proposed finger has been characterized with several tests to evaluate: (i) PCL material behavior in terms of hysteresis, (ii) bending angle of the finger and its motion, (iii) correlation among change in resistance (embedded strain gauge) and bending angle, and (iv) usage of the capacitive sensor as ON/OFF sensor when the finger touches objects.

For the characterization test, a custom-made setup shown in Fig. 10a was used.

Fig. 10
figure 10

(a) Characterization setup (b) Finger with partially embedded SMA spring (embedded only into the two end parts) (c) Bending angle and phalanx position in 2D space (d) bending angle for both fingers version, (e) finger tracking in 2D space for the finger with embedded SMA (several x- and y- position from cycle 2 to cycle 10 overlap each other)

It consists of the following elements:

  1. i)

    A custom-made bracket where the terminal block of the finger has been attached used screws, nuts, and bolts.

  2. ii)

    A digital camera (Canon EOS 70D) to take video, to calculate bending angle and joint position in the 2D space.

  3. iii)

    Two digital multimeters, to take measurements of resistance and capacitance.

  4. iv)

    A power supply (BK Precision 9116) to provide current input to the SMA in accordance with the desired frequency.

  5. v)

    A custom-made circuit to calculate the voltage when current is provided to the SMA.

The following protocol was employed to characterize the finger: a current input of 3.2 A (chosen in accordance with the previous SMA characterization, Sect. 2.2) was applied to the SMA for 2 s followed by a cooling time of 50 s (in that period a dead weight of 100 g was applied to the finger to get it back at its rest position) for a total of 10 cycles.

Furthermore, two fingers were characterized: the one described so far (SMA spring completely embedded) and one more fabricated by embedding the SMA spring only into the two end parts (SMA partially embedded) shown in Fig. 10b, to understand the best SMA spring position.

5 Results and discussion

The bending angle and the position into the 2D space of each phalanx were measured as shown in Fig. 10c. The results in terms of bending angle are shown in Fig. 10d for both versions of the finger: “SMA completely embedded” and “SMA partially embedded”, as well as the finger tracking into 2D space for the “SMA completely embedded” (Fig. 10e).

The following considerations can be pointed out:

  • For both configurations, the initial cycles (only cycle one for “SMA completely embedded” and cycle one and two for its counterpart) are characterized by a smaller bending angle, subsequentially the bending angle increases becoming constant in a certain range: for the “SMA completely embedded” the mean bending angle from cycle 2 to cycle 10 is 37.3° with a standard deviation of 0.13°, for its counterpart the mean bending angle from cycle 3 to cycle 10 is 33.9° with a standard deviation of 0.99°. The change in the bending angle from the first cycles to the last ones can be addressed to the Mullins effect, affecting thermoplastic materials.

  • The “SMA completely embedded” version is better than its counterpart not only because the mean bending angle is 9.1% higher but also because the standard deviation is less.

  • From the finger tracking diagram, it stands out that the finger movement (the movement of each phalange) mimics very well the human finger motion, proving how the Mutlu et al. [24] design rules are important to achieve this goal.

The change in bending angle has been correlated to the change of resistance provided by the embedded strain gauge (see Fig. 11a): the measured data were fitted, obtaining the following linear regression equation:

Fig. 11
figure 11

(a) Strain gauge characterization. (b) Capacitive sensor embedded into the finger

$$\mathrm{y}=0.6748\mathrm{ \alpha }+ 390.79$$
(7)

With \({R}^{2}\) = 0.93.

From Eq. (7), the sensitivity of the strain gauge is found to be 674.8 \(\frac{Ohm}{^\circ }\).

Figure 11a shows that for the first cycle the change in resistance is less, in accordance with a smaller bending angle, while from cycle 2 to cycle 10 the change in resistance is almost constant. Moreover, from cycle 5 up to cycle 10 the resting point is slightly higher than the one obtained for the previously cycles: this behavior is attributable to the PCL hysteresis, as a matter of fact from cycle 5 the finger does not get back in its original rest position (the bending angle between the bottom part of the finger and the support is 2.5° instead of 0°).

The capacitive sensor (already characterized in Section 3.2.2) having a sensitivity of \(0.53 \frac{pF}{N}\), has been used in conjunction with different objects (adhesive tape, calibrated weight, lollipop, glue, and coffee cup) placed randomly into the 3D space, mimicking a real scenario. As shown in Fig. 11b the capacitive sensor provides fast feedback as soon as it gets into contact with target objects, getting back to its initial capacitance value when the finger is no longer pushing against the object. The following result suggests that this kind of sensor can be used at least as ON/OFF sensor to provide direct feedback about the presence/absence of objects: to achieve this aim, more characterization steps are required( for example a deep study about the interaction among the material surface of the object and the capacitive sensor). As shown in [62], the benefits due to the exploitation of force sensors over the soft finger tip are many and can potentially make these devices really appealing for the biomedical field.

It is worth mentioning that the following limitations have been found in the present study:

  • The modification of the G-code requires experience in the 3D printing field: the following manufacturing approach cannot be used from makers and hobbyists. In particular, the integration of another system (pick and place robot) requires further studies to create a unique software able to communicate at the same time with the 3D printing and the pick and place robot.

  • The strain gauge hysteresis needs to be compensate to obtain feedbacks useful for real-life applications

  • Although the SMA activation is really fast (about 2 s) compared to other actuation systems such as shape memory polymers, the cooling time is still quite high (about 10 s) and future studies are required to reduce it.

6 Conclusions

The main findings of the present papers can be summarized as follows:

  • A soft robotic finger composed of two embedded sensors (piezoresistive and capacitive sensor) has been 3D printed in a single cycle recurring to Material Extrusion (MEX) technology. The proposed finger was equipped with an embedded external shape memory alloy (SMA) actuator.

  • The proposed finger can be immediately activated after the removal from the 3D printing machine, providing real-time feedback thanks to the two 3D printed embedded sensors.

  • A new manufacturing approach to embed actuators (SMA springs) into 3D printed structures has been presented. The main pillars of the proposed approach are: (i) the usage of PCL material because its printing temperature is less than the austenitic start temperature of the embedded SMA, (ii) the exploitation of the stop and go method to embed the SMA actuator and, (iii) the usage of a custom-made cartesian pick and place robot to reduce manual tasks and increases the placement accuracy.

  • Two process parameters were studied to reduce the strain gauge electrical resistance, which has been reduced by 142% compared to the worst parameters set, to reduce power losses during its usage.

  • Several tests were carried out to characterize each element of the proposed finger: (i) the best current input for the activation of the SMA was found to be 3.2 A, (ii) the capacitive sensor sensitivity was found to be \(0.53 \frac{pF}{N}\) and (iii) the strain gauge sensitivity that was used to detect the finger bending angle, was 674.8 \(\frac{Ohm}{^\circ }\).

The proposed fabrication method paves the way for huge exploitation of the inexpensive FFF technology for the embedding of SMA, or other kinds of thermally activated actuators, like twisted coiled polymers (TCP), into complex FFF structures reducing human tasks and increasing placement accuracy. Future studies will be focused on the developing of a standardize fabrication method, based on the proposed approach, that can be used for the fabrication of several objects with embedded sensors and actuators. Moreover, several soft robots and gripper systems can be manufactured by embedding both sensing elements and actuators, resulting in assembly-free structures.