Introduction

Three-dimensional (3D) printing of soft materials, such as hydrogels, elastomers, and conductive polymer composites, is an attractive approach in materials science, tissue engineering, soft robotics, and flexible electronics1,2,3,4,5,6. Structures 3D printed from stimuli-responsive hydrogels can undergo reversible volume-phase transitions in response to environmental changes, such as changes in temperature, pH, electric field, and light, making these materials highly interesting research targets7,8,9,10,11. By taking advantages of the reversible and repeatable mechanical movements induced by abrupt volume changes in hydrogels in response to external stimuli, one can use stimuli-responsive hydrogels to control the mechanical actions of soft actuators. Shape morphing of 3D printed structures in response to an external stimulus is called four-dimensional (4D) printing, where time is considered as the fourth dimension. Four-dimensional printing utilizing stimuli-responsive materials and advanced 3D printing strategies is the next-generation fabrication technology12,13,14,15, aiming to create dynamic 3D structures capable of transforming shape or behavior in response to stimuli in a manner that mimics the movements and structures in nature, such as nastic motions in plants16.

Current research in 4D printing mainly focuses on (1) the development of novel materials that are able to respond to various stimuli17, and (2) the implementation of various shape memory geometries through physical designs for more applications18. However, if the gripping motions of soft robotics machines19 or the snapping motions of the Venus flytrap leaf (<100 ms)16 are to be realized, a highly precise rapidity is a core property. In this regard, a fast rate of volume change, particularly for stimuli-responsive hydrogels which undergo volume expansion upon hydration, is vital for the widespread application of 4D printing20. However, most polymer actuators suffer from relatively slow and small-scale movements7,8,9,12,13, and they involve complex preparation procedures, such as multistep lithography. The ability to manufacture polymer actuators by using 3D printing would enable easy fabrication and programmable shape morphing by design. Motivated by previous studies21,22,23,24,25,26 of the enhanced swelling and shrinking rates of hydrogels with macroporous architectures, we have designed a process that prepares hydrogel architectures containing macropores (i.e., pores larger than 10 μm) to overcome slow actuation kinetics. Sugar has been used as a porogen to induce macroporosity22,23,27. Adding sugar to hydrogels not only results in macropores but also can modulate the viscoelastic properties of a hydrogel ink, making it suitable for 3D printing.

Among the various 3D printing methods (e.g., inkjet printing, laser-assisted printing, and microextrusion), direct ink writing is an accessible approach that is adaptable to a range of materials and that balances printer cost and printing quality3,6. The rheology of the ink is the most important factor for manufacturing 3D structures via direct writing. However, structures printed with existing hydrogel inks have soft and fragile mechanical properties, requiring them to be strengthened via the incorporation of an extra supporting layer (e.g., polycaprolactone), additives (e.g., nanoclay or nanocelluose), or interpenetrating polymer networks (IPNs) to increase viscoelasticity1,2,12,28. Single component hydrogels, such as native PNIPAAm hydrogel29 and alginate hydrogel30 have been reported, and they are physically weak, being in the range of ~10 kPa. By incorporating alginate hydrogel into a PNIPAAm hydrogel matrix, however, the mechanical strength can be increased by orders of magnitude; for example, the tensile strengths for alginate/PNIPAAm29 and alginate/PAAm31 hydrogels increased to 120 kPa and143 kPa, respectively.

In this study we created programmed, reshaping hydrogel architectures by direct write assembly and investigated their swelling characteristics. Toward this objective, we developed a new hydrogel ink composed of monomers (acrylamide [AAm]) and N-isopropylacrylamide [NIPAAm]), a cross-linker, a photoinitiator, sodium alginate, sugar, and water as a solvent. We hypothesized that the addition of sugar to the ink would enable us to (1) improve printability by increasing the ink’s viscoelastic properties and (2) induce the formation of macropores to enable large deformation and fast responses in the printed structures.

Results and Discussion

We used the following process to direct write a hydrogel architecture by using this new hydrogel ink. A bilayer containing AAm and NIPAAm was printed from the new ink and immediately UV-photopolymerized with an initiator to synthesize poly(N-isopropylacrylamide) (PNIPAAm) and polyacrylamide (PAAm) hydrogels and to form chemical bonds between the bilayer. The polymerized structure was then immersed in calcium-chloride (CaCl2) solution, resulting in calcium ion–induced fast cross-linking of alginate chains in both layers and the leaching of sugar molecules to create macropores (Fig. 1a–c). The addition of alginate chains was intended not only to increase the viscosity of the ink but also to enable a double-network hydrogel in the printed structure after ionic cross-linking to improve its mechanical strength and toughness7,32.

Figure 1
figure 1

Method for printing and polymerizing macroporous hydrogels and their stimuli-responsive behavior. (a) Schematic of the 3D printing technique involving two cross-linking steps: (i) Three-dimensional printing of a bilayer structure with sugar/hydrogel ink, where green indicates the passive PAAm layer and red the active PNIPAAm layer; (ii) exposure to UV light to initiate polymerization and chemical cross-linking; (iii) exposure to calcium ions to initiate physical cross-linking of alginate. (b) Procedure for synthesizing bilayer macroporous hydrogels. (i) Prior to UV treatment, the sugar/hydrogel inks contain unlinked NIPAAm, AAm, alginate, a photoinitiator, and sugar. (ii) UV treatment induces chemical polymerization and chemical bonding between layers. (iii) Treatment with a CaCl2 solution induces simultaneous physical cross-linking of alginate and leaching of sugar, producing macropores inside the hydrogels. (c) Cross-sectional SEM image of a printed bilayer structure. The PNIPAAm layer is above the dashed line, and the PAAm layer is below it. (d) Reversible temperature-induced bending motion of a PNIPAAm/PAAm bilayer. T stands for temperature. (e) Shape morphing of a printed bilayer structure from a flat strip into a helix at high temperatures. Scale bars are 100 μm for (c) and 1 cm for (e).

The programmed, reshaping principle of hydrogel actuators is inspired by the actuating behavior of pine cones, wheat awns, and the Venus flytrap, all of which are composed of multilayered materials with different swelling/shrinking properties9,10,15. A bilayer consisting of two kinds of hydrogels can bend in different directions, depending on the swelling/shrinking properties of each polymer. PNIPAAm is a typical temperature-sensitive polymer that shrinks at temperatures above a lower critical solution temperature (LCST) of ~32 °C whereas PAAm exhibits no substantial change7. Immersion in warm water leads to contraction of the thermoresponsive PNIPAAm and deformation of the bilayer, causing it to bend (Fig. 1d). This asymmetric contraction induced by a change in the external environment is the driving force behind the bilayer’s bending motion9. Fig. 1e demonstrates shape change in a PNIPAAm/PAAm bilayer structure that has been immersed in warm water at 50 °C.

The ink’s viscosity directly influences shape fidelity after deposition. For direct ink writing, an ink viscosity of 102–106 mPa·s (depending on the shear rate) is required3. An aqueous solution of monomers, a cross-linker, and a photoinitiator was not printable because its viscosity was too low. This ink formed droplets at the nozzle and spread out on the substrate’s surface, failing to form a pattern (Fig. 2a). However, the addition of alginate increased the viscosity (>4,500% at 10−1 s−1), sufficient to enable the ink to form a cylindrical shape rather than a droplet at the nozzle, so that it could be printed as a pattern (Fig. 2b). Alginate is a typical high-viscosity material that exhibits a strong shear-thinning behavior; both characteristics are important for 3D printing25. A liquid phase in ink is required for effective extrusion whereas a gel/solid phase is required to maintain the as-printed structure. High-molecular-weight polymeric materials that exhibit shear-thinning behavior, such as sodium alginate, decrease in viscosity with increasing shear rate secondary to shear-induced reorganization of the polymer chains from an entangled to a more stretched conformation. After the alginate ink had been deposited onto the substrate, however, the stacked layer collapsed, and the printed layers of the ink could not maintain a cylindrical shape. The addition of sugar to the alginate ink enabled the printed structure to maintain its shape without extra support (Fig. 2c).

Figure 2
figure 2

Three-dimensional (3D) printing with monomer ink, alginate ink (0 wt% sucrose), and sugar ink (200 wt% sucrose). (a) The monomer ink formed droplets at the nozzle and spread out on the surface. (b,c) The alginate ink and the sugar ink formed cylindrical shapes at the nozzle and could be printed in multilayers; however, the alginate ink collapsed, whereas the sugar ink maintained its printed shape. (d) Plot of the apparent viscosity as a function of the shear rate for the three inks. (e) Storage and loss moduli as functions of oscillation stress for different sucrose concentrations. (f) The shape of the intersections in the printed patterns can be seen to depend on the sucrose concentration in the ink. The inset shows a cross section of the structure printed with the sugar ink containing 200 wt% sucrose. The wt% values in (e,f) are sucrose concentrations with respect to the solvent. Scale bars are 1 cm for (a–c) and 1 mm for (f).

To facilitate printing, inks must exhibit substantial shear thinning to allow them to be extruded through fine nozzles while simultaneously exhibiting a sufficiently large storage modulus, G′, and yield stress, τy, to retain both their filamentary shape upon exiting the nozzle and their shape after printing. The yield stress is the minimum stress to be applied for deformation and flow. Whereas high viscosity only delays the collapse of a deposited 3D structure, the presence of yield stress can potentially prevent flow and collapse33. The rheological properties of different inks are shown in Fig. 2d,e. Upon the addition of alginate, the ink’s viscosity increased compared with that of the monomer ink. The alginate ink exhibited strong shear-thinning behavior, as evidenced by the decrease in its apparent viscosity from 2500 to 0.1 Pa·s as the shear rate increased from 10−1 to 103 s−1. This nearly four-fold decrease in viscosity with increasing shear rate was very similar to the value, obtained in the suitably printable range in the shear-thinning properties with hydrogels34. Its plateau G′ value was high (~2 × 105 Pa), but its τy was rather low (~800 Pa), which seemed to result in the collapse of the stacked layers of the printed structure.

Adding sugar to the alginate ink changed the rheological properties of the ink. The sugar/hydrogel ink with 200 wt% sucrose (the percentage by weight of sugar indicates the weight of sugar relative to the deionized water used as a solvent) showed a zero shear rate viscosity and a shear-thinning behavior similar to that of the alginate gel (Fig. 2d), but was able to sustain the printed layered architectures. The plateau G′ value of the ink unexpectedly decreased from ~2 × 105 Pa for 0 wt% (alginate ink) to ~7 × 104 Pa for 100 wt% sucrose and ~6.5 × 103 Pa for 200 wt% sucrose. In contrast, the ink’s yield stress increased dramatically from ~800 Pa for 0 wt% sucrose to ~1300 Pa for 100 wt% sucrose and ~2500 Pa for 200 wt% sucrose, which provided enough physical support to prevent collapse of the printed structure.

The printing fidelity of the sugar/hydrogel ink varied with its sucrose concentration (Fig. 2f). The ink with the lowest sucrose concentration exhibited a smaller yield stress and lost its cylindrical shape immediately after extrusion. Printing fidelity improved dramatically with increasing sucrose concentration owing to the higher yield stress, which prevented flow and collapse. The extruded 200 wt% ink maintained a cylindrical shape, as shown in the inset (a cross-sectioned image) to the 200 wt% image.

Glucose was also added to the sugar/hydrogel ink to modulate its rheological properties further. Compared to the ink with 200 wt% sucrose, the ink with 200 wt% glucose showed a dramatic increase in modulus to ~5 × 105 Pa; however, its yield stress decreased to ~200 Pa (Fig. S1). The final composition of the sugar/hydrogel ink for 3D printing was set to 200 wt% of sucrose with 60 wt% of glucose to ensure both an adequate storage modulus and sufficient yield stress.

Increasing the amount of sugar in the ink modified not only the rheology of the ink but also the physical properties of the fabricated hydrogels (Fig. 3). A series of macroporous PNIPAAm hydrogels were prepared using solutions with various concentrations of sucrose. In terms of morphology, the conventional PNIPAAm hydrogel (0 wt%) exhibited a dense surface and small micropores. With increasing sucrose concentration, while maintaining 60 wt% of glucose, the hydrogels became more porous (Fig. 3a), and the relative porosity of the freeze-dried samples increased linearly with increasing sucrose concentration (Fig. 3b). A relatively homogeneous distribution of micropores was observed in hydrogels using formulations with less than 100 wt% sucrose. On the other hand, with 100 wt% to 200 wt% sucrose, the pore size of the hydrogels dramatically increased, presumably due to the sucrose crystals (Fig. 3c). Thus, the addition of sucrose strongly affected the pore structure of the resulting hydrogels.

Figure 3
figure 3

Morphology and physical properties of PNIPAAm prepared with 1-M NIPAAm and various sucrose concentrations. (a) SEM images showing the effect of sucrose concentration on the micropore size. (b) Relative porosity of hydrogels as a function of sucrose wt%. (c) SEM images of PNIPAAm hydrogels with higher sucrose concentrations. (d) Mass swelling ratio of the PNIPAAm hydrogel. (e) Dynamic thermoresponsive shrinking ratio (Rt)25→50 of the hydrogels. Scale bars are 5 μm for (a) and 50 μm for (c). Error bars represent the standard deviations of 7 experiments for Figs. 3b and 5 experiments for Figure for 3d and e.

As the cross-linking of alginate induced by calcium ions and the macropore formation by dissolution of sugar occur simultaneously under the same condition, it is necessary to consider how each process affects each other. According to the literatures35,36, the diffusion coefficient of calcium ions (~13.12 × 10−10 m2/s)34 is known to be 2-3 times faster than that of sucrose in water (~5.15 × 10−10 m2/s)35. Therefore, the crosslinking of alginate is expected to occur first, followed by the removal of sugar. As a result, the presence of sugar in the 3D structure made with this ink is considered to play an important role in determining the shape of the pores during the formation of additional double-network hydrogels.

The mass swelling ratio (Rm) is one of the important parameters for evaluating hydrogels37. Fig. 3d shows the Rm values calculated for PNIPAAm hydrogels prepared with sucrose concentrations ranging from 0 wt% to 200 wt% with a fixed glucose concentration of 60 wt%, according to the following formula:

$${R}_{m}=\frac{{M}_{w}}{{M}_{d}},$$
(1)

where Mw is the mass of the fully swollen hydrogel in deionized water and Md is the mass of the dry hydrogel. Rm increases with increasing sucrose concentration. We speculate that this improved swelling property results from the highly porous structure of the gels, which would induce more water absorption into the gel networks.

Compared with the conventional PNIPAAm hydrogel, the macroporous hydrogels not only had higher swelling ratios but also exhibited much faster response rates during shape morphing. To investigate how the shrinkage dynamics of the hydrogels were affected by macroporosity, we defined the dynamic thermoresponsive shrinking ratio (Rt) as follows:

$${({R}_{t})}_{25\to 50}=\frac{{A}_{t}}{{A}_{0}},$$
(2)

where At is the area (cm2) of the hydrogel at t seconds after increasing temperature from 25 °C to 50 °C and A0 is the area (cm2) of the hydrogel at 0 s21. Approximately 1-mm-thick PNIPAAm hydrogels prepared in 35-mm round Petri dishes were used. After the hydrogel had been equilibrated by immersing it in deionized water at 25 °C for at least 24 h, the sample was transferred to a 50 °C bath. Compared with the conventional hydrogel (0 wt%), the hydrogels prepared with 100 wt% and 200 wt% sucrose (with a fixed glucose concentration of 60 wt%) showed faster and larger shrinking dynamics (Fig. 3e). This enhanced thermosensitivity may be important for applications such as soft actuators and robotics.

Thermosensitive shrinkage of the PNIPAAm hydrogel by heating it temperatures above the LCST can be explained by expulsion of the water molecules surrounding –CH(CH3)2 groups owing to their hydrophobicity38. The gel network starts to shrink, which squeezes water molecules out of the gel matrix. This reaction occurs from the outer surface of the gel, so the water molecules inside the conventional gel cannot be squeezed out immediately. In contrast, macroporous hydrogels prepared with high concentrations of sugars provide sufficient water-releasing channels for inner water molecules to be easily squeezed out of the gel matrix during transition, resulting in a much faster rate of shrinking. In addition to a fast response rate, hydrogels with large swelling ratios are also preferred. For instance, as smart actuators, hydrogels with larger swelling ratios exhibit higher degrees of shape change than those with smaller swelling ratios do; this extends the actuating performance17. The presence of numerous interconnected hollow spaces in macroporous gels with an open-celled structure can promote shrinkage to a compact state (Fig. S2). The results in Fig. 3 show that macroporous PNIPAAm hydrogels fabricated using our method exhibit both a large swelling ratio and a fast response rate. This approach to forming macropores inside hydrogels can easily be adapted to other polymer hydrogels. Large-amplitude shape morphing and robust responsiveness, coupled with large-scale displacement, can be attained in this way for stimuli-responsive hydrogels.

To investigate the bending behavior of the printed architectures, we characterized the influence of the temperature and the thickness of the hydrogel (Fig. 4a–c). The temperature-induced bending curvatures of 5-cm-long printed bilayers of PNIPAAm and PAAm were measured. Immersing the bilayers in hot water led to a change in their curvature owing to asymmetric strain induced by the substantially larger amount of water expulsion from the PNIPAAm hydrogel7,8,9. The bending curvature and the bending rate increased with increasing temperature (Fig. 4a,b). Compared with the conventional PNIPAAm hydrogel, the macroporous hydrogel showed a faster response to temperature change. Whereas conventional hydrogels required tens of minutes to hours to change shape7,8,9,12,13, our macroporous hydrogels changed shape within only a few seconds to minutes. The dimensions of each hydrogel layer in a multilayer structure can, thus, be adapted to trigger and control its bending precisely. Printing was repeated to vary the width of the passive (PAAm) layer underneath the PNIPAAm layer. The bending curvature decreased as the width of the passive layer (PAAm) increased (Fig. 4c). Thus, the shape-morphing properties of the printed architectures could be controlled by changing the external temperature and the thickness of the printing design.

Figure 4
figure 4

Characterization of the bending behaviors of printed bilayers consisting of PNIPAAm and PAAm hydrogels (with a constant length of 5 cm, printed with an 800-μm nozzle) and predicted 4D printing of biomimetic architectures. The inks used here were formulated with the composition of 200 wt% of sucrose with 60 wt% of glucose. (a) Bending curvature versus temperature in water. (b) Changed curvature versus immersion time in water at various temperatures. (c) Bending curvature as a function of the number of passive PAAm layers (green) at 40 °C. (d) A bellflower, the inspiration for the 4D printing experiment. (e) 3D printing design based on the bellflower. Red is PNIPAAm, and green is PAAm. (f) Final printed structure. (g) Temperature-induced shape changes in the printed design. (h) Recovered shape after the structure had been cooled to 20 °C. Scale bars in (f-h) are 1 cm. Error bars in (a–c) represent the standard deviations of five experiments.

As an example of 4D printing of hydrogel architectures, we created a printed structure that mimicked the shape and petal movements of a bellflower, which has multiple curvatures (Fig. 4d). The printing design called for three different layers (Fig. 4e) to mimic the S-shape curvatures of the bellflower’s petals because the structure curves toward the PNIPAAm layers. The resulting printed pattern (Fig. 4f) was immersed in water to initiate swelling and shape morphing in response to temperature changes (Fig. 4g). The printed pattern, which was initially flat-printed, folded into a flower shape, and the curvature of the “petals” increased with increasing temperature. As previously explained, because this architecture was composed of macroporous hydrogels, the total shape-morphing process of the printed structure was faster than that of conventional PNIPAAm hydrogels (Movie S1, Supporting Information). The process of unfolding the structure, caused by swelling of the PNIPAAm layer in response to decreasing temperature, was slower than the folding process. We should point out that the shape morphing during temperature rise could be measured systematically with accurate temperature control. However, the shape morphing was irregular and inconsistent during the recovery process of cooling. In most cases, the structure fully recovered its initial shape,which ccurred at 20 °C after 15 min (Fig. 4h).

Conclusion

In summary, we fabricated sugar/hydrogel inks for 3D printing and used them to print multilayered architectures that demonstrated temperature-induced shape morphing. Temperature-sensitive PNIPAAm hydrogel was used as the active layer, and PAAm was used as the passive layer. Sugars added to the inks increased their yield stress and led to macropore formation, which in turn enabled fast responses in the printed architectures. This ink fabrication and printing technique is easy to perform, does not require organic solvents, and is widely applicable to various materials. The sugar-enhanced hydrogel ink can also be used to print biocompatible materials, such as gelatin methacryloyl and other stimuli-responsive materials, such as poly(acrylic acid). Four-dimensional printing through control of the printing parameters (i.e., thickness and orientation) and the temperature of the immersion water enabled fabrication of multilayered architectures with programmable morphing into a targeted shape. By using representative examples of PNIPAAm and PAAm, varying the thickness of each layer, and varying the temperature, we were able to vary the speed and the extent of shape morphing. Our flexible ink design, thus, can provide a new fabrication method that can open new avenues for creating programmable shape-morphing architectures in various applications, such as soft robotics and tissue engineering.

Experimental Methods

Preparation of sugar/hydrogel ink

For each ink, monomers (3-M NIPAAm or 4-M AAm) were dissolved in deionized water. N,N′-Methylenebisacrylamide (MBAA) was added to the aqueous monomer solution as a chemical cross-linker. Analytical-grade ground sucrose of 200 wt% and glucose of 60 wt% relative to the amount of solvent were added to the solutions with vigorous stirring at 60 °C to melt the sugars. A photoinitiator, (2-hydroxy-2-methylpropiophenone, 90 mM) and a medium-viscosity alginic acid sodium salt (30 wt% of AAm and 20 wt% of NIPAAm) were added to the solutions. All chemicals were purchased from Sigma-Aldrich.

Characterization of sugar/hydrogel ink

The rheological properties of the sugar/hydrogel inks were characterized at 25 °C by using a controlled stress rheometer (Discovery HR-1 hybrid rheometer, TA Instruments). A 40-mm plate (0.4-mm measuring gap) was used for the monomer ink, and a 25-mm plate (1-mm measuring gap) was used for alginate ink and sugar ink. Flow sweeps were performed at speed between 0.1 and 1300 s−1. Oscillatory measurements were performed at an angular frequency of 10 rad s−1 for pressures between 0.1 and 10,000 Pa.

Characterization of macroporous hydrogels

In experiments involving morphological testing of gels (not prints), all samples were prepared in 1-M NIPAAm for clear observation. For each sample, 1-M NIPAAm and 20-mM MBAA were dissolved in deionized water. Sucrose with a certain concentration (wt% relative to the solvent) was added to study the effect of sugar on the porosity of the gel. The photoinitiator (30 mM) and the alginic acid sodium salt (20 wt%) were added to the aforementioned solutions. Pre-gel solutions were exposed to UV light for 30 min to induce polymerization, and the resulting hydrogels were immersed in a 10% (w/v) CaCl2 solution.

Hydrogels were swollen to equilibrium at room temperature for at least 24 h with the water changed every 6 h; the hydrogels were subsequently freeze-dried in a freeze dryer (FDU-1200, EYELA) for at least 24 h to remove the water completely. After drying, the gel samples were sputter coated with gold and then visualized using a scanning electron microscope (JSM-7100F, Jeol). The relative pore area of the sample was measured using the ImageJ program (National Institutes of Health).

The mass swelling ratios (Rm) of the hydrogels with different sucrose concentrations are given by Mw/Md, where Mw is the weight of a swollen hydrogel and Md is the weight of the hydrogel after it has been dried in an oven at 60 °C for at least 24 h. The Mw was measured gravimetrically after the gel had been incubated in deionized water for at least 24 h at 25 °C and the excess surface water blotted with moistened filter paper.

To investigate the dependence of the hydrogels’ shrinkage dynamics on their macroporosity, we defined the dynamic thermoresponsive shrinking ratio of PNIPAAm hydrogels (Rt)25→50 as At/A0, where At is the area (cm2) of a hydrogel at t seconds and A0 is the area (cm2) of the hydrogel at 0 s. Sample hydrogels were prepared to a thickness of approximately 1 mm in 35-mm round Petri dishes. Before the experiment, the hydrogels were allowed to swell to equilibrium in deionized water at 25 °C for at least 24 h. The swollen gels were then transferred into a water bath at 50 °C for measuring the shrinkage at different times. Parameter A0 is the area (cm2) of the initial swelling state before the hydrogel was transferred to the 50 °C bath. Temperature control of the water was carried out using a water bath (WiseBath, Wisd Co.).

Three-dimensional (3D) printing procedure

Computer-aided design (CAD) models were developed using AutoCAD 2016 (Autodesk) and exported as stereolithography (STL) data. The STL data were imported into the Simplify3D (Simplify3D LLC) software, which converted it to print paths via G-codes. The printed samples were fabricated layer by layer according to the G-code instructions by using a DeltaBot printer (lab311, Korea) and a BIO X (Cellink, Sweden). The inks were loaded into a 50-mL syringe and deposited using a pneumatic pump through tapered nozzles with diameters of 600 µm and 800 µm under pressures ranging from 60 to 100 kPa. The printing speed was 10 cm s−1.

Synthesis of macroporous hydrogels

Immediately after printing, the samples were cured for 1–5 min by using a UV source (8 W, 254 nm, VL-8.MC, Vilber Lourmat). After curing, the samples were immersed in a 10% (w/v) CaCl2 (aq) solution for simultaneous ionic cross-linking of alginate and leaching of sugar.

Characterization of bending behaviors

Samples with a 5-cm bilayer design were printed, as described above, by using the 800-µm-diameter nozzle. The samples were immersed in a water bath for precise temperature control. The bending curvature of the samples was measured from videos recorded using an iPhone 6 S. Images extracted from the video were analyzed with the ImageJ program to determine the bending curvature of the samples. Shape-morphing motions of the samples in the water bath were recorded under LED UV flashlight (3 W, 390–395 nm).