1 Introduction

Metal oxides represent an important class of materials for the electronics industry [1, 2], owing to their diverse properties such as piezoelectricity [3], superconductivity [4], ferromagnetism [5] and electrochemical activity [6]. Patterning metal oxide into micro/nanometer-scale 2D and 3D architectures are significant not only for improving device performance [7,41,42,43]. On the other hand, the more concentrated inks result nozzle clogging due to the solvent evaporation (Fig. S2, Clogging). The storage moduli (G′) are always lower than loss moduli (G″) with an increasing PEI/EDTA concentration (Fig. 2b), implying that the inks exhibit a liquid-like response and are not able to form self-supportive spanning features required for 3D printing (Fig. 2c). To further understand the ink solidification mechanisms, oscillatory rheology measurements are conducted for 51.9 wt% ink (Fig. 2d). As solvent evaporates in dry environment (relative humidity, RH ~ 35%), the inks gradually exhibit a solid-like behavior (G′>G″). When exposed to humid air (RH ~ 60%), the inks returned to show a liquid-like behavior (G′ < G″). This humidity-dependent viscoelastic response is ideal for DIW, allowing rapid ink solidification upon printing. This gelation process is dominated by the chain entanglement of PEI polymers and the electrostatic attraction between EDTA and PEI (Fig. 1c, c-1). Notably, the printed microscale filaments have a much higher specific surface area than the bulk material, resulting in an accelerated solvent loss of the printed filaments. In fact, the printability tests reveal that the physical gelation of the printed filaments could occur in an environment with a relative humidity of 35 ~ 40%.

Fig. 2
figure 2

Rheological properties of 3D printable polymer inks: a Ink viscosity at a shear rate of 100 s−1 as a function of total concentration of PEI and EDTA (PEI: EDTA = 1:1, by weight). Inset shows viscosity as a function of shear rate for polymer inks of varying PEI/EDTA concentration. b Storage and loss moduli as a function of shear amplitude for polymer inks of varying PEI/EDTA concentration. c Optical image of inks extruded through a 2 µm glass nozzle as spanning filaments on a substrate composed of parallel rectangular silicon ribbons. d Storage and loss moduli as a function of time for inks with 51.9 wt% of PEI/EDTA concentration upon exposure to different humidity environment (oscillatory frequency = 1 Hz, stress amplitude = 10 Pa). The drying-induced gelation occurs in the moment of ink extrusion and endows PEI/EDTA inks with shape-retaining property

3.2 Thermal Crosslinking Mechanism

The structural integrity of the printed samples upon pyrolysis depends strongly on the thermosetting behaviors of the polymer precursors which effectively prevent the 3D structures from softening or collapsing during the organic-to-inorganic transformation [45]. For the precursor inks without glucose, with an increasing temperature, their storage moduli move closer to their loss moduli. However, an abrupt drop in both storage and loss moduli occurs at ~ 105 °C (Fig. S3a), corresponding to the collapsing and spreading of the 3D-printed structures in a process similar to melting (Fig. 3a, bottom right). One possible reason for this phenomenon is the chain scission during thermal degradation of PEI, which involves the activation of carbon–carbon bond by an initially formed hydroperoxide and then breaks into two formamide groups (Fig. 3b, bottom) [46]. The resulting polymers with shorter chains exhibit lower storage moduli than loss moduli which fail to withstand structure fidelity at ~ 105 °C. To overcome such abrupt phase change in printed 3D structures, high-density and permanent covalent cross-links are required. Thanks to the presence of amino groups in PEI polymers, we conduct the Maillard reaction for crosslinking PEI polymers by adding a certain amount of glucose. Many reports in food chemistry have demonstrated that Maillard reaction is a sophisticated polymerization reaction with three main stages [47] (Fig. 3b, top): (i) condensation, (ii) Amadori rearrangement, (iii) browning. Among them, the known mechanism of the initial stage in Maillard reaction involves the condensation between an amino group of a nitrogenous compound and a carbonyl group of reducing sugar. The rheological measurements show that the addition of glucose to precursor inks leads to the crossover point of storage and loss moduli occurring at ~ 95 °C, indicating the formation of crosslinked networks (Fig. S3b-h). However, when glucose/PEI ratios are less than 0.3, a significant drop in these inks moduli still occurs above 105 °C (Fig. S3b–e). Increasing the glucose-to-PEI weight ratio to 0.3 ensures that the derivative of the storage modulus with respect to temperatures remains positive at all temperature points (Fig. 3a). As the temperature increases from 95 to 110 °C, the storage modulus increases by three orders of magnitude continuously (Fig. S3f–h), and the 3D-structured polymer precursor still exhibits the excellent shape-retaining ability (Fig. 3a, upper left). It implies that sufficient crosslinking density were required for preventing the structure collapse due to polymer chain scission.

Fig. 3
figure 3

Thermal crosslinking mechanisms of the polymer precursors with glucose: a Derivative of the storage modulus with respect to temperature at ~ 105 °C as a function of glucose-to-PEI weight ratio. Inset images show the morphologies of 3D polymer precursors after heating to 200 °C with adequate (upper left) and inadequate (bottom right) glucose contents. b Illustration highlights two chemical reaction routes possibly in thermal crosslinking of polymer inks. The blue arrow indicates that polyethyleneimine (PEI) undergoes Maillard reaction with glucose to form a dark brown and robust resin, i.e., advanced glycation end products (AGEs). The red arrow reveals the “melting” and softening phenomenon possibly attributed to chain scission during PEI degradation. c Transmittance change of 380 nm light with temperature increasing from 30 to 120 °C. Inset shows the UV–vis transmittance spectra for precursor films on glass substrates after heating to different temperatures for 1 h. d N 1s XPS spectra of PEI/glucose mixture after heating to 30, 80 and 100 °C for 1 h. The dotted lines are the raw data. After deconvolution using Gauss–Lorentz curves, the blue, green, and red curves represent primary, secondary, and tertiary amino or amide groups centered at 399.16, 398.63, and 399.83 eV, respectively. e In situ ATR-FTIR spectra obtained from the same freeze-dried PEI/glucose mixture samples, heated at 30, 80, and 100 °C for 5 min. (Color figure online)

Meanwhile, we next employed a suite of spectroscopic techniques to characterize the Maillard reaction in PEI/glucose mixtures. The color of PEI/glucose film changes from colorless to dark brown as a proof of the nonenzymatic browning processing (Fig. 3c), which is an important characteristic of Maillard reaction [48, 49]. These resulting dark brown polymeric aggregates known as advanced glycation end products (AGEs) are mainly formed from further crosslinking between Amadori compounds and adjacent amino groups and they exhibit thermosetting property (Fig. 1c, c-2) [47]. We next investigated the changes in the functional groups on PEI after thermal crosslinking by X-ray photoelectron spectroscopy (Fig. 3d). N1s signals of all samples can be deconvoluted into three peaks at the binding energies of 399.16, 398.63 and 399.83 eV, corresponding to primary, secondary, and tertiary amino groups or amide groups, respectively [50,51,52,53]. The shift to higher binding energy of the original N1s peak implies that a large number of primary and secondary amino groups are converted into tertiary amino and amide groups during the Maillard reaction. We also obtained FT-IR spectra on the PEI/glucose films which are heated to 30, 80 and 100 °C using an attenuated total reflectance (ATR) module (Fig. 3e and Table S1). A broadening of peak in the range of 1260–1400 cm−1 (green) is a result of the increasing number of –CH groups (1347 cm−1), possibly attributed to the graft of glucose chains on PEI polymer. Meanwhile, the disappearance of the peak at 1576 cm−1 (blue) demonstrates that –NH groups participate in the reaction with glucose. Notably, the characteristic peaks of –NH2 and –C=N groups overlap with each other. Since –NH2 groups are consumed to form tertiary amino and amide groups, the increase in the intensity of the peak at 1654 cm−1 suggests the appearance of Schiff base (–C=N groups).

3.3 DIW of Metal Oxides

For the design of direct ink writable metal oxide polymer precursor inks, sufficient targeted metal ions should be coordinated in the crosslinked polymer networks to avoid fragmentation of the printed structures after pyrolysis [36]. Therefore, we evaluate the adsorption effect of polymers on metal ions for maximizing the amount of zinc ions in polymer precursor inks after ultrafiltration (Fig. 4a). In an alkaline environment, only non-protonated PEI polymers can produce the lone-pair electrons on the nitrogen atoms and directly coordinate with certain metal cations, such as Zn2+, Cu2+, Ba2+, and Sr2+ for the formation of homogeneous and transparent complex solutions (Fig. S4a, b, g, h). However, the alkaline environment not only causes the highly reactive metal ions (such as In3+, Ga3+, Ti4+, and Y3+) to hydrolyze and precipitate (Fig. S4c–f), but also triggers the nucleophilic attack by non-protonated amino group on the carbonyl group of the glucose to form chemically crosslinked gels even at room temperature [54], resulting in significantly increased ink viscosities and moduli (Figs. 4b and S5). These problems can be solved by introducing EDTA to chelate with metal ions. Different from PEI/Zn2+, the metal-EDTA complexes with negative charges are bound to the protonated PEI electrostatically (Figs. 1a and S4). The maximum retention of Zn2+ ions appears in a pH 4 environment where both amine groups of PEI polymers and partial carboxyl groups of EDTA are ionized [55, 56]. At room temperature, the rheological properties of PEI/EDTA-Zn2+ precursor ink remain stable in a long period of 15 days (Fig. 4b). Based on this composition design in pH 4 solution, the optimal molar ratio of Zn2+ to EDTA is determined as 1:1 for achieving the maximal adsorption of PEI to Zn2+ after ultrafiltration (Fig. S6). Besides, the cross-sectional morphologies shows that the saturated adsorption of PEI to Zn2+ endows extruded ink filaments with rod-like structures after pyrolysis at 650 °C (Fig. S7). The organic-to-inorganic transformation for the polymer precursor is strongly dependent on pyrolysis temperature, which undergoes three typical stages as indicated by TGA–DSC profiles (Fig. 4c). First, the solvent evaporation results in an endothermic peak at 117 °C. Next, a rapid weight loss occurs along with an exothermic reaction at ~ 295 °C which is due to the degradation of oxygen-containing groups (Fig. S8). Finally, as the temperature increases further to 630 °C, the organic compositions are eliminated in a relatively long exothermic process. X-ray diffraction patterns reveal that the pyrolyzed products are identified as ZnO phase with an onset crystallization temperature of ~ 450 °C (Fig. 4d).

Fig. 4
figure 4

3D printing of ZnO architectures: a The adsorbed Zn2+ ions content of purified precursor inks (blue: PEI/EDTA-Zn2+, red: PEI/Zn2+) with varying pH values, measured by ICP-MS analysis. b The effect of pH value on long-term rheological stability demonstrated by the viscosity (shear rate = 1 s−1) and the ratio of G′ to G″ (in the linear viscoelastic range) of inks stored in ambient environment for 0, 10 and 15 days. c Thermogravimetry and differential scanning calorimetry (TG-DSC) curves of zinc-containing ink. d X-ray patterns obtained from samples of crosslinked zinc-containing inks sintered at different temperatures ranging from 400 to 700 °C for 1 h. e SEM images of spanning structure, 1D array, and 2D mesh (patterned with a 2-µm nozzle) after sintering the zinc-containing ink at 650 °C for 1 h. f A 32-layers polymer precursor woodpile (left) printed with a 2-µm nozzle was converted to the ZnO structure (right) upon sintering at 650 °C for 1 h. g High-magnification surface morphologies of 3D-structured ZnO. h Element distribution and the corresponding EDS spectrum of as-fabricated ZnO woodpile. i Low-magnification TEM image of printed ZnO structure and an electron diffraction pattern (inset). j Grain size distribution of 100 particles measured from the dark and bright field TEM images (Fig. S11). (Color figure online)

To demonstrate the high-resolution printing of metal oxide structures achievable with this method, we printed 1D planar array and 2D planar mesh composed of ZnO filaments by extruding polymer precursor inks through a capillary nozzle with a 2 µm inner diameter (Fig. 4e, top). Upon pyrolysis at 700 °C, polymer decomposition results in a reduction of filament width down to ~ 550 nm while the grain growth induces the appearance of nanopores at the grain interface (Fig. S9). Interestingly, the spanning structures of ZnO filaments printed on Si microribbons still maintain their structural fidelity upon pyrolysis (Fig. 4e, bottom). We next printed complex 3D architectures, such as 150-layer cylinder, 100-layer pyramid and 32-layer woodpile, which are composed of parallel arrays of orthogonally stacked filaments (Figs. S10 and 4f). The first layer of the structure is printed on substrates pre-coated with a sacrificial organic layer to mitigate anisotropic shrinkage of the underlying structure. During the pyrolysis process at 650 °C, the 32-layer woodpile undergoes isotropic shrinkage with the overall lateral dimensions change from 437 to 150 µm (Fig. 4f), yet it still retains its initial geometry with final microfilament diameter of 766 nm (Fig. 4g). The energy-dispersive X-ray spectroscopy (EDS) elemental maps of the pyrolyzed structures reveal a uniform distribution of zinc, oxygen, and carbon in the whole structure without apparent element segregation (Fig. 4h, left), showing atomic percentages of Zn and O of 49.04 and 50.96%, respectively (Fig. 4h, right), which is consistent with that of ZnO powders from elemental analysis (Fig. S8). To confirm the conversion of 3D-printed polymer precursor to monolithic polycrystalline ZnO, we analyze the atomic-level microstructures of the 3D-printed structures by transmission electron microscopy (TEM). The electron diffraction pattern taken from the red region confirm the hexagonal wurtzite crystalline phase of ZnO (Fig. 4i), while the bright and dark field TEM images reveal that the pyrolyzed ZnO structures is composed of nanocrystalline with a mean grain size of 58.5 nm (Figs. 4j and S11). Besides ZnO, our ink formulation strategy can be readily applied to a variety of metal ions, such as Cu2+ ions for CuO, In3+ ions for In2O3, Ga3+ ions for Ga2O3, Ti4+ ions for TiO2, and Y3+ ions for Y2O3 (Figs. S12-S16). We also demonstrate the 3D printing of some ternary metal oxides, such as SrTiO3 and BaTiO3 (Figs. S17–S18).

3.4 Optical Properties of 3D-Printed ZnO Woodpile Architectures

We next demonstrate 3D-printed ZnO woodpiles as a three-dimensional photonic crystal. The cross-sectional SEM images of the woodpile samples reveal that the average diameter (\(d\)) of the individual filament is ~ 0.766 µm and the average in-plane distance (\(a\)) between the two adjacent filaments is ~ 2.151 µm in every layer (Fig. 5a). Each layer rotates 90° relative to the layer below and offsets by \(\frac{1}{2}a\) from two layers below. Hence, the structure repeats itself every four layers in the stacking direction, and the four-layer distance (\(h\)) is calculated as 2.961 µm, taking into account tilt correction for the cross-sectional SEM measurement. Notably, the ZnO woodpile belongs to a face-centered-tetragonal (FCT) Bravais lattice because the ratio of \(h\) to \(a\) is not strictly equal to \(\sqrt{2}\). Given the geometric parameters of FCT lattice (Fig. S19a) and a refractive index of Zinc oxide (Fig. S20), we calculated the photonic band structure by probing along all symmetry points in the Brillouin zone of FCT lattice (Fig. S19b, Table S2). The calculated band diagram shows that existence of partial photonic bandgap (PBG) along the symmetry directions of Г–W′-K′–W″–U–Г and Г–X–W–K–Г at the wavelengths of 3.623–3.772 µm and 3.727–3.885 µm, respectively, while along symmetry direction of Г–X′–U′–L–Г, light propagation inside the photonic crystal was not prohibited in the above-mentioned wavelength ranges (Fig. S19c). It is because that the refractive index of ZnO is lower than the threshold value of ~ 2.3 required to open a complete PBG in FCT woodpile (Fig. S21). Nevertheless, a high reflectance/low transmittance band centered at 3.72 µm is detected using a Cassegrain objective with infrared light with an incident angle from 16° to 35° (Fig. 5a, b). To verify the experimental results, we map out the band structure projected along ГX′ orientation (Fig. 5c). The azimuth angle θ is set in range from 0° to 45°, considering the rotational symmetry of tetradecahedron geometry (the first Brillouin zone) about the z-axis. The red and green light lines are plotted in each projected band structure, corresponding to incidence angles of light at 16° and 35°, respectively. Each projected band structure predicts two sets of stop-band positions influenced by off-normal light incidences (Table S3). The group of all sets of stop-band positions indicates the existence of a partial PBG located between 4.14 and 3.47 µm, which match well with the peak and valley of the experimentally characterized reflectance and transmittance spectra (Fig. 5b). We next implement plane wave excitation to simulate the transmittance spectra for the 16-layer woodpile. To mimic actual angular spread of the incident light, we calculated spectra for several incident angle (\(16^\circ \le \theta \le 35^\circ ,0^\circ \le \varphi \le 90^\circ\)) in the respective relevant range and averaged over the obtained results associated with S and P- polarized light illumination (Figs. 5d and S22). The simulated and experimental spectra agree well on the edge of the partial bandgap. However, the deviations of transmittance depth are observed especially in the short wavelength region and partial PBG, attributed to the imperfect periodicity, surface roughness and uncertainty of refractive index [14, 57]. To further investigate the light propagation characteristics in the woodpile, two different electric field distribution profiles are calculated with incident light wavelengths of 5 and 3.8 µm (Fig. 5e). With 5 µm incident light, the electrical field was distributed over the entire simulated domain. By contrast, the significant attenuation of electric field amplitude occurs in the light propagation with the wavelengths of 3.8 µm, due to complete reflection. These results manifest the 3D-printed woodpile photonic crystals show strong coupling effects with mid-infrared light.

Fig. 5
figure 5

Optical characterization and simulation analysis of ZnO woodpile: a Illustration of a standard FT-IR measurement setup with a Cassegrain objective having an acceptance angle range between 16° and 35°, and SEM images of focused ion beam (FIB)-milled cross section of the woodpile structure, obtained with a substrate tilt angle of 55°. b FTIR reflectance and transmittance spectra taken from the ZnO woodpile, and the calculated bandgap in orange region. c Illustration for the first Brillouin zone of the FCT Bravais lattice and calculated band structures projected along ГX′ orientation, with varying azimuth angle, θ. d Simulated transmittance spectra of S and P-polarized light for 16-layer woodpile structure. e Calculated electric field distributions along the xy and yz planes, as the P-polarized light propagates with an elevation angle (φ) of 25.5° (an averaged acceptance angle of Cassegrain objective) and an azimuth angle (θ) of 0°. (Color figure online)

4 Conclusions

In summary, we have developed a facile and generalized design strategy of polymer precursor inks for DIW of metal oxide into 3D architectures with a sub-micrometer resolution. Benefitting from the ink composition with strong adsorption effect on a wide range of metal ions, the design strategy has an ability to expand to other metal elements, and even potential to be compatible with multiple metal ions coexisted in aqueous solution. Furthermore, the homogeneous distribution of compositions at the molecular level facilitates ink extrusion continuously through a micronozzle. The polymer chain entanglement and electrostatic attraction effect are tailored easily upon the solvent evaporation resulting in the ideal rheological properties required for printability. The Maillard reaction between PEI and glucose endows the as-printed polymer precursor with the excellent shape-retaining property during the pyrolysis process. As a demonstration, we fabricated 2D- and 3D-structured metal oxides after the organic-to-inorganic transformation. We further demonstrated that as-printed 3D periodic dielectric structure with woodpile geometry has a significant light-matter effect in mid-infrared region. Importantly, our polymer precursor inks suggest a feasible and versatile pathway to the design and development of new functional oxide inks for DIW.