Introduction

The spatiotemporally controlled migration of ions is widely involved in the biological domain1,2,3. It plays significant roles ranging from mediating communications between cells to the sensory perception in human skins4,5. To replicate such an ion-selective behavior and leverage it for normal bodily sensing and signal processing, the ionic diodes, in which ions serve as the charge carriers, have emerged as prominent iontronic devices enabling the regulation of ion migration and rectification of ionic currents6,7,8,9,10. Unlike conventional electronic diodes that rely on electrons, ionic diodes offer a more direct interface with biological systems as they share the same type of charge carriers; therefore are promising candidates for the development of next-generation neuromorphic devices11,12,13,14, ionic circuits15,16 and human–machine interactions17,18.

Early endeavors on ionic diodes employed charged membranes, nanochannels, or polyelectrolytes-modified carbon nanotubes to create micro-/nano-fluidic devices, selectively controlling the migrations of cations and anions through the channel via external voltage modulation19,20,21,22. However, the presence of liquid solutions and fluidic channels in these devices limited their adaptability to biological systems due to their low stretchability and high rigidity. More recently, solid-state ionic diodes based on gels have been designed to address the instability and low stretchability inherent in fluidic-based counterparts. By establishing a PN junction using two pieces of stretchable gels with oppositely charged polyelectrolytes, the ionic gel system behaves as a diode while maintaining a tissue-like stretchability (i.e., elongation at break >100%)7. For instance, ionic diodes constructed with double-network hydrogels exhibited a stretchability exceeding 400% strain23, and the solvent-free ionogel-based ionic diode can be stretched up to 100%14, showcasing superior mechanical compatibility with biological systems compared to rigid fluidic-based ionic diodes. Owing to their tissue-like stretchability and softness, gel-based ionic diodes hold significant potential as iontronics for skin-like sensors, energy harvesters, and soft semiconducting devices24,25.

Despite achieving tissue-like ion-selective behavior and mechanical properties, stretchable gel-based ionic diodes still exhibit a relatively low rectification ratio. For instance, current hydrogel-based stretchable ionic diodes have a rectification ratio ranging from 2 to 507,23,26,27,28. The solvent-free ionogel-based ionic diode showed an enhanced rectification ratio of 50 attributed to non-faradaic processes. The relatively low rectification ratio may limit the rectification effect of the ionic diode, thereby potentially impacting the electrical performance of the integrated iontronics. Efforts have been directed towards enhancing the rectification ratio of the ionic diode. Strategies include reducing the thickness of the positive–negative (PN) junction, utilizing microporous or reactive electrodes14, and incorporating nanochannels or films into the device22,29,30. While these improvements have shown promising results in enhancing the electrical performance of ionic diodes, they often involve complex fabrication processes or structural design alterations that may compromise the device’s stretchability. Therefore, material-level adjustments to enhance the diode’s rectification effect would be preferable for improving adaptability and versatility across various applications.

Here, we utilized hydrogel-based stretchable ionic diodes as our platform and found a method to enhance their rectification effect by incorporating cations with high valence into the positive-type (P-type) hydrogel layer. High-valence cations were incorporated through neutralization reactions between mobile hydrogen ions (H+) in the P-type hydrogel and added bases. We selected cations with the valence of 1, 2, and 3 to replace the pristine H+ within the P-type hydrogel layer. With the replaced cations in the P-type layer, we studied the rectification effect of ionic diodes and observed that the rectification ratio would increase with the valence of cations. This adjustment resulted in a substantial increase in the rectification ratio, elevating it from 3 (with cations of valence 1) to over 70. Furthermore, the rectification ratio showed further enhancement under stretching, reaching a ratio exceeding 100 at 100% strain. Both the rectification ratio and stretchability surpassed those of most previously reported stretchable ionic diodes. The enhanced rectification effect allows us to apply the ionic diodes in iontronics such as ionic circuits. We demonstrated the functionality of our hydrogel-based ionic diodes by constructing ionic rectifiers and bipolar junction transistors (BJT), highlighting the promising applications of our approach in augmenting the performance of iontronics.

Results

Design of hydrogel diodes

Figure 1a shows a schematic of the hydrogel-based stretchable ionic diode, consisting of bilayer hydrogels with positively charged and negatively charged polyelectrolytes23. The P-type layer comprises negatively charged polyelectrolytes with mobile cations, while the N-type layer consists of positively charged polyelectrolytes with mobile anions. While the charged polyelectrolytes are normally immobilized in the P-type and negative-type (N-type) layers, the mobile cations and anions can be driven by the electric field applied to the hydrogel diode. When a forward electric bias is applied to the hydrogel diode as shown in the left schematic of Fig. 1a, the mobile cations in the P-type layer migrate towards the N-type layer, and vice versa, mobile anions in the N-type layer move towards the P-type layer, resulting in the ion accumulation. This movement of ions enhances the conductivity of the hydrogel and features an “on” state for the hydrogel diode. Conversely, when a reverse electric bias is applied, most mobile cations and anions in the P-type and N-type layer cannot traverse the bilayer interface. Instead, they form an internal electric field generated by the ionic double layer (IDL) at the PN interface, establishing a depletion region14. The presence of the depletion region limits current flow, leading to an “off” state for the hydrogel diode. As a result, the hydrogel bilayers function as a diode. The development of a gel-based ionic diode circumvents the need for leachable liquids and non-stretchable materials that were commonly used in the fluidic-based ionic diodes. In the meantime, the ion selectivity is achieved through the incorporation of oppositely-charged polyelectrolytes trapped in the gel matrix, eliminating the necessity for membranes31 or nanochannels32 and thus simplifying the device fabrication. All of these advantages are realized through the use of hydrogel networks that offer good stretchability and capability of immobilizing polyelectrolytes in a solid-state system33,34. Therefore, we employed the stretchable hydrogels to construct the ionic diode and evaluated its rectification effect and mechanical behaviors.

Fig. 1: The design of hydrogel diodes.
figure 1

a A schematic of the hydrogel ionic diode showing ion migrations within the diode under the “on” and “off” state, respectively. b The chemical formula of agarose, AAm, MBAA, AAc(H+), DAC(Cl), and polymerized PAAm-co-PAAc(Mm+) and PAAm-co-PDAC(Cl). Mm+ represents cations with the valence of m. c The neutralization reactions used to replace the H+ with different cations. d A photograph showing the soft hydrogel ionic diode and rigid conventional electron-based diode

Here, we selected the double-network hydrogel as our material matrix for constructing the hydrogel diode due to its commonly acknowledged enhanced toughness and stretchability compared to single-network hydrogels33,34. Specifically, we employed the conventional agarose-polyacrylamide (Agar-PAAm)-based double-network hydrogel as the uncharged neutral polymer networks owing to its well-established mechanical properties and biocompatibility35 (Fig. 1b). Within this system, the Agar serves as a rigid polymer network to improve the toughness and the PAAm serves as a soft polymer network to enhance the stretchability. In our previous work23, the polyelectrolytes were introduced into the double-network hydrogels by doping either positively charged polyelectrolytes such as poly(diallyldimethylammonium chloride) [PDAC(Cl)] or negatively charged polyelectrolytes such as sodium polystyrene sulfonate [PSS(Na+)] into the Agar-PAAm hydrogel networks. However, the non-crosslinked polyelectrolytes had the potential to migrate under the applied electric field, potentially impacting the rectification ratio. Hence, in this work, instead of directly doping the PSS and PDAC polymers, we used a co-polymer system that is crosslinked by the neutral polymer PAAm and polyelectrolytes (Fig. 1b), aiming to mitigate the possible migration of isolate polyelectrolytes. For instance, for the P-type layer, the monomer acrylamide (AAm) was co-polymerized with monomer acrylic acid [AAc(H+)] to produce negatively charged polyelectrolytes PAAc(H+)-co-PAAm. As for the N-type layer, the AAm was copolymerized with [2-(Acryloyloxy)ethyl]trimethylammonium chloride [DAC(Cl)] to generate positively charged polyelectrolytes PDAC(Cl)-co-PAAm23,36. With the presence of crosslinker N,N′-methylenebisacrylamide (MBAA), the copolymers were crosslinked into a network (Fig. 1b). As a result, the crosslinked copolymers served as polyelectrolytes within the Agar-copolymer double-network hydrogels, where the mobile cations and anions acted as primary charge carriers that can be freely driven by the electric field.

As the primary mobile charge carriers within the hydrogel ionic diode, the properties of ions could possibly influence the overall electrical performance of the diode. Factors such as the ion size, mass, and charge may impact the rectification effect of the hydrogel diode. Here, we hypothesize that altering the valence of mobile ions within the hydrogel diode could potentially modulate the diode’s ionic conductivity and modify its rectification ratio. To test this hypothesis, we incorporated cations with varying valences into the P-type hydrogel layer through neutralization reactions. This process allowed us to replace the original hydrogen ions (H+) in AAc(H+) (Fig. 1c). For instance, the sodium ions (Na+) were introduced by adding the corresponding base sodium hydroxide (NaOH) into the acid monomer AAc(H+). The molar ratio of NaOH and AAc(H+) was set as 1:1 so the hydrogen ions in AAc(H+) can fully react with hydroxide ions (OH-) and form water. The Na+ ions remained as mobile cations with the valence of 1. Thus, the pristine monomer AAc(H+) was replaced to AAc(Na+). This newly formed monomer AAc(Na+) was further copolymerized with AAm and MBAA, and crosslinked into the polyelectrolytes network PAAc(Na+)-co-PAAm (Fig. 1b). Various bases including sodium hydroxide (NaOH), potassium hydroxide (KOH), magnesium hydroxide [Mg(OH)2], calcium hydroxide [Ca(OH)2], and aluminum hydroxide [Al(OH)3] were used to introduce Na+, K+, Mg2+, Ca2+, and Al3+, respectively, into the P-type hydrogel layer. It should be noted that the In3+ were introduced by adding the salt indium(III) chloride (InCl3) due to the poor solubility of indium hydroxide [In(OH)3]. To ensure complete reaction between H+ and OH, the molar ratio of AAc(H+) to the added base [e.g., M(OH)m with the cation Mm+ having a valence of m] was initially set as m:1 (Fig. 1c). For example, when incorporating cations with the valence of 2, such as Ca2+ and Mg2+, the molar ratio of AAc(H+) and base [e.g., Ca(OH)2 or Mg(OH)2] was set as 2:1. It should be noted that for the N-type hydrogels, we used a copolymerized network PAAm-co-PDAC(Cl-) and did not replace the anions, due to the challenge of applying the same neutralization reaction to replace Cl ions. As a result, in our modified hydrogel diode, we can vary the valence of mobile cations in the P-type hydrogel, and the valence of mobile anions (Cl) in the P-type hydrogel remained as 1. By employing the crosslinked PAAm-co-PAAc(Mm+) P-type layer and PAAm-co-PDAC(Cl) N-type layer, we could easily assemble a soft and stretchable hydrogel ionic diode by attaching the two layers together (Fig. 1d). With different mobile cations within the hydrogel diodes, we can assess the impact of mobile cations on the overall electrical performance.

We prepared the PAAm-co-PDAC(Cl) N-type hydrogel layer and PAAm-co-PAAc(Mm+) P-type hydrogel layer with different cations. During the preparation of the P-type hydrogel layer, we observed that NaOH and KOH readily dissolved in water and efficiently reacted with AAc(H+). While Mg(OH)2 and Ca(OH)2 have lower solubility in pure deionized (DI) water, they can be fully dissolved with the presence of acid AAc(H+) and yield a colorless transparent hydrogel precursor. However, Al(OH)3 is insoluble in water and cannot fully dissolve even with the presence of AAc(H+). As a result, at the molar ratio [AAc(H+):Al(OH)3] of 1:(1/3), the hydrogel precursor and cured hydrogels appeared white and opaque, due to undissolved Al(OH)3 particles within hydrogels. To address this issue, we reduced the amount of Al(OH)3 and adjusted the ratio of AAc(H+):Al(OH)3 to 1:(1/6), 1:(1/9), 1:(1/12), and 1:(1/15). One can see that the transparency of hydrogels increases with the decrease of Al(OH)3 amount, indicating fewer undissolved Al(OH)3 particles within hydrogels (Fig. S1). Similarly, indium(III) hydroxide [In(OH)3] and zirconium(IV) hydroxide [Zr(OH)4] have poor solubility in the AAc(H+) hydrogel precursor solution. Therefore, the maximum valence we chose was 3 due to the difficulty of neutralization reactions for bases containing high-valence cations. Following the preparation of the P-type and N-type hydrogels, we assembled the ionic diode by physically attaching the P-type and N-type layers together. When the P-type and N-type hydrogels are attached, the depletion of mobile cations and anions at the interface leads to the formation of electrostatic adhesion23,27. Shear tests confirm that the interfacial bonding strength between the P-type/N-type hydrogel layers is significantly higher than that of P-type/P-type and N-type/N-type hydrogel layers (Fig. S2), validating the electrostatic adhesion driven by oppositely charged polyelectrolytes. The resulting diode was then cut into a circular shape with an overall thickness of 2 mm and a diameter of 8 mm for further electrical characterizations.

Enhanced rectification effect by incorporating high-valence cations

We first compared the electrical performance of hydrogel ionic diodes with different cations, by applying forward electric field and backward electric field to the diodes. Figures 2a and S3 show the current response of the hydrogel diode after a fixed time (t0 = 80 s) of ion migrations until the current reached a plateau. The forward voltage bias and the backward voltage bias applied on the hydrogel diode were 5 and −5 V, respectively. One can see that for P-type layer with H+, the current under the forward bias (If) is higher than that under the backward current (Ib), yielding an average rectification ratio (If/Ib) of 3.57, consistent with previously reported results7,23,26,27,28. Substituting the H+-based P-type layer with the Ca2+ or Mg2+-based P-type layer resulted in increased forward current and decreased backward current, indicating a higher rectification ratio. This trend was further validated if using Al3+ or In3+-based P-type layer. Although their forward currents remained at a similar level (~2.75 mA) to those measured using the Ca2+ or Mg2+-based P-type layer, their backward currents were notably lower (~0.06 mA for Al3+ and In3+) compared to that using Ca2+ (~0.28 mA), Mg2+ (~0.48 mA), and H+ (~0.55 mA). The lower backward current associated with high-valence cations suggests a superior ability to block the reverse current and an enhanced rectification effect. It should be noted that for K+ and Na+, they showed relatively high backward currents, indicating poorer rectification effects. This is possibly due to a high level of ion diffusions through the PN interface. The current–voltage (I–V) curves obtained by sweeping the applied voltage from 5 to −5 V further validated the enhanced rectification effect by using cations with high valence (Fig. S4). With the enhanced rectification ratio by introducing high-valence cations (e.g., Al3+ cations), an asymmetric I–V curve with a distinct reverse cut-off region can be obtained (Fig. S4). We summarized the rectification ratio and backward current of hydrogel diodes using H+, K+, Na+, Mg2+, Ca2+, Al3+, and In3+, respectively (Fig. 2b). By increasing the valence of cations, the rectification ratio from diodes with trivalent cations was the highest, while the rectification ratio from diodes using monovalent cations was the lowest. The rectification ratio of using Mg2+ and Ca2+ ranged from 8 to 25, and the rectification ratio of using Al3+ and In3+ ranged from 42 to 77. On the other hand, backward current from diodes with monovalent cations was substantially higher than that from diodes with trivalent cations. Overall, the rectification ratio was found to increase with the valence of cations, and the backward current decreased accordingly (Fig. 2b).

Fig. 2: Characterizations of hydrogel diodes.
figure 2

a The current response of hydrogel diodes with H+, K+, Mg2+, or Al3+ after a fixed time (t0 = 80 s) of ion migrations until the current reached a plateau, showing the decreased values of backward currents and enhanced rectification performances of diodes with high-valence cations. b The rectification ratios and backward currents of hydrogel ionic diodes with different cations including H+, Na+, K+, Mg2+, Ca2+, Al3+, and In3+, showing the enhanced rectification ratios and decreased backward currents for diodes high-valence cations. c The rectification ratios and backward currents of hydrogel ionic diodes with different amounts of added Ca(OH)2 and d Al(OH)3. The Ca2+ and Al3+ were incorporated through Ca(OH)2 and Al(OH)3. e The rectification ratios of hydrogel diodes made with AlCl3 and Al(OH)3, respectively. f The rectification ratios and backward currents of hydrogel ionic diodes with different amounts of added InCl3. The In3+ was incorporated through InCl3. g The Nyquist plot of hydrogel ionic diodes with different cations, measured under a negative voltage bias of −5 V and sweeping frequency from 106 to 10−1 Hz, showing increased impedances of diodes with cations having higher valence. Here, Cl–Cl represents a control sample made by two attached N-type hydrogel layers. h The rectification ratio of hydrogel ionic diodes with Al3+ under different stretching strains. The two insets show the rectification performance of diodes under the strain of 0% and 100%, respectively. i The Ashby plot of previously reported ionic diodes and our hydrogel ionic diodes comparing their rectification ratio and stretchability. Data points are from references labeled in Fig. S10 and Table S3

Then, we investigated how varying the amount of added bases would affect the rectification effect of the hydrogel diode. The amount of added bases is relevant to the extent of neutralization reactions. When the molar ratio of OH in the bases and H+ in the acid AAc(H+) equals 1:1, complete neutralization between the acid and base is anticipated. However, if a lesser amount of bases is added, it’s possible that H+ may not be entirely neutralized, resulting in excess monovalent cations (H+) within the hydrogel system. We adjusted the molar ratio of OH (from the added bases) and AAc(H+) to be 0:1, 0.2:1, 0.6:1, and 1:1. It can be seen that for hydrogel diode with Ca2+ or Mg2+, the rectification ratio increased with the addition of bases and the backward current decreased accordingly (Figs. 2c and S5). The initial increase in backward current at a molar ratio [OH:AAc(H+)] of 0.2 may be attributed to the coexistence of Ca2+ and H+ in a mixed-cation system, which likely alters ion transport dynamics and enhances diffusion flux37,38. However, as the base concentration increases, the backward current steadily decreases, indicating an enhanced rectification effect once monovalent cations are mostly replaced by divalent cations. The highest rectification ratio was achieved at the molar ratio of 1:1. The results indicate that replacing more H+ with high-valence cations can enhance the rectification effect. At the ratio of 0:1, 0.2:1, and 0.6:1, there was less OH compared to H+, resulting in incomplete replacement of H+ with Ca2+ or Mg2+. As a result, the extra H+ in the hydrogel system affected the rectification effect. For hydrogel diode with Al3+, the rectification ratio increased as the molar ratio of OH:AAc(H+) changed from 0:1 to 0.2:1, but there was no substantial enhancement in the rectification effect as the molar ratio continued to increase to 0.6:1 and 1:1 (Fig. 2d). This can be attributed to undissolved Al(OH)3 which failed to provide mobile Al3+. This result aligns with our observations in Fig. S1, where Al(OH)3 or In(OH)3 cannot be fully dissolved in the AAc(H+) solution. When the ratio of Al(OH)3:AAc(H+) was set to (1/15):1 [equivalent to a ratio of 0.2:1 for OH: AAc(H+)], the hydrogel sample became fully transparent, indicating that the Al3+ were properly dissolved.

Due to the poor solubility of bases containing trivalent cations, we attempted to introduce trivalent cations into the hydrogel system using soluble salts such as aluminum chloride (AlCl3) and indium(III) chloride (InCl3). However, it should be noted that using salts like AlCl3 or InCl3 would introduce additional anions Cl into the P-type layer. These extra anions in the P-type layer can migrate and induce reverse leakage current when the diode is under the backward electric field (in the “off” state), thereby negatively impacting the rectification effect. We prepared the hydrogel diode containing AlCl3 and Al(OH)3, respectively, and compared their rectification ratios and backward currents. For the hydrogel diode made from AlCl3, the molar ratio of Cl:AAc(H+) was 0.2:1. Similarly, for the hydrogel diode made from Al(OH)3, the molar ratio OH:AAc(H+) was set to 0.2:1. It can be seen that the hydrogel diode made from Al(OH)3 showed a higher rectification ratio (average: 55.31) than that (average: 34.62) made from AlCl3 (Fig. 2e). The backward currents of diodes made from Al(OH)3 were lower than that made from AlCl3 (Fig. S6). The lower rectification ratio and higher backward currents from diodes using AlCl3 could be attributed to the extra anions Cl that affected the rectification effect. As previously discussed, for hydrogel diode made from Al(OH)3, increasing the molar ratio of OH:AAc(H+) from 0.2:1 to 1:1 did not significantly enhance the rectification effect due to the undissolved Al(OH)3. While for hydrogel diode made from AlCl3, increasing the molar ratio of Cl:AAc(H+) from 0.2:1 to 1:1 could increase the amount of mobile Al3+ in the hydrogel system due to good solubility of AlCl3. This increase also introduced extra Cl into the P-type hydrogel, resulting in a lower rectification ratio and higher backward currents compared to that from the diode using Al(OH)3. Similarly, we used InCl3 to introduce In3+ into the hydrogel diode due to the poor solubility of In(OH)3. It can be seen that the rectification ratio increased with the added amount of InCl3 until the molar ratio of Cl:OH reached 0.6:1 (Fig. 2f). However, further addition of InCl3 did not lead to a significant increase in the rectification ratio, possibly due to the detrimental effect of the additional chloride ions Cl on the rectification effects. We also characterized the effect of thickness to the diode rectification performance. As shown in Fig. S7, the rectification ratio of the hydrogel diode (cations: Al3+) increases with the decrease of thickness. This can be attributed to the shorter ion migration distance and enhanced ion transport efficiency due to the thinner PN junction, therefore strengthening the rectification effect37,39. However, current fabrication constraints may limit the minimum achievable thickness. Although thin-film fabrication methods such as spin coating or spray coating can enable thinner hydrogel layers, the high water content and the increased surface-area-to-volume ratio of the hydrogel thin film could accelerate water evaporation, presenting a fabrication challenge that needs to be carefully addressed. To address this issue in the future, a more stable ionic diode system, such as an organogel or ionogel-based diode, could mitigate dehydration issues and potentially enable further thickness reduction for improved rectification performance.

In addition, we compared the frequency response of the hydrogel ionic diodes with different cations. Here, hydrogel diodes with Ca2+ and Al3+ were selected for this comparison due to their improved rectification effect. We applied triangle waves with the amplitude of 5 V and frequencies ranging from 0.01 to 2 Hz as the input, and measured the current response of the hydrogel diodes. It can be seen that for hydrogel diode with divalent cations Ca2+, the reverse leakage current started to increase at the frequency of 0.05 Hz (Fig. S8). This can be attributed to the limitation of ion itself that cannot display a fast response to the high frequency input. The migration of ions requires sufficient time, and higher input frequencies result in shorter response time for ion migrations, thus affecting the rectification effect of diodes. However, although the reverse leakage current showed a similar trend of increase with the frequency, the hydrogel diode with trivalent cations Al3+ can maintain a certain level of rectification effect even at the frequency of 1 Hz (rectification ratio: ~3). This observation suggests that incorporating cations with high valence can enhance the rectification effect in terms of the range of working frequencies.

Analysis of the enhanced rectification effect

Under the forward electric field, the mobile cations are driven by the electric field and migrate from the P-type layer to the N-type layer. Similarly, the mobile anions will migrate from the N-type layer to the P-type layer. The migrations of cations and anions accumulate at the PN interface, and form the forward current flow. On the contrary, under the backward electric field, the mobile cations and anions are driven to migrate towards the electrodes, impeding the ion flow through the PN interface, thereby establishing a reverse cut-off for the ionic diode. However, from our results in Fig. 2a, f, a non-negligible current flow (backward current) through the PN interface was observed when the backward electric field was applied. This non-negligible backward current indicated a certain level of ion flow through the PN interface, potentially impacting the rectification effect of the ionic diodes. We attribute this backward current to the ion diffusion through the PN interface. For instance, even under the backward electric field, the mobile cations in the P-type layer can still diffuse through the interface, and on the other hand, the anions in the N-type layer can diffuse from the N-type layer to the P-type layer, contributing to the backward current flow. Different cations with varying valences showed distinct levels of backward current. Therefore, their differing rectification ratios could be linked to the discrepancy in ion diffusion of cations. Here, we used electrochemical impedance spectroscopy (EIS) to investigate the impedance response of the reverse-biased diodes with different cations. By applying a backward voltage of −5 V to the ionic diodes, we recorded the impedance (including the real impedance Z’ and imaginary impedance Z”) while sweeping the frequency from 106 to 10−1 Hz (Figs. 2g and S9a). One can see that in the low frequency range, the impedance of diodes with high-valence cations was higher than that with low-valence cations, indicating that higher valence can lead to higher impedance for the diodes. This result aligns with our previous results in Fig. 2a, b, wherein the lower backward current observed in diodes with high-valence cations was attributed to their higher impedance.

We speculate that the higher impedance of diodes with high-valence cations (under the backward electric field) could be attributed to the fewer diffusions of ions. To further investigate this, we characterized the diffusion of cations in the ionic diodes. Given the linear correlation between the differential capacitance (CDiff) and diffusion coefficients of ions40,41, the ion-diffusion-based mechanism could be further elucidated by comparing the capacitance derived from EIS. Utilizing the equation provided in the supplementary information [Eqs. ((1) and (2)) in the supplementary information] to determine the total impedance42, we calculated the capacitance of the ionic diodes by measuring the slope of the impedance spectrum at the low-frequency region43 (Fig. S9b). The calculated capacitance of diodes with different cations were summarized in Table S1. It can be seen that C(M3+, e.g., Al3+, In3+) < C(M2+, e.g., Mg2+, Ca2+) < C(M+, e.g., Na+, K+) < C(Cl–Cl). where “Cl–Cl” denotes the control sample, comprised of two pieces of N-type PDAC(Cl)-co-PAAm hydrogel layers, which exhibited no rectification effects. The lower capacitance of diodes with high-valence cations (Al3+ and In3+) suggests reduced diffusions within the ionic diodes. The diffusion coefficients of ions can be evaluated based on the Nernst–Einstein equation44,45:

$${D}_{{{{ion}}}}=\frac{{RT}{\varLambda }^{0}}{|{Z}_{{{\rm {ion}}}}|{F}^{2}}$$

where \({{D}}_{{\rm{ion}}}\) is the diffusion coefficient of the ion (m2/s), \({{\Lambda }}^{{0}}\) is the molar conductivity, \({R}\) is the gas constant, \({T}\) is the temperature, \({F}\) is the Faraday constant, and \({{Z}}_{{ion}}\) is the charge number of the ion. The ion diffusion coefficients are related to the charge number of ions and the molar conductivity of the ion. The molar conductivity of the ion is related to the number of moles of cations. In our work, to maintain consistent charge concentration of cations within the diode, we kept the number of moles [i.e., v (mol)] of added cations proportional to the valence, such that v(M3+) = (1/3)v[AAc(H+)], v(M2+) = (1/2)v[AAc(H+)], v(M+) = v[AAc(H+)]. This approach indicated that the concentration of cations decreased with the increasing valence (see Table S2 and details in the supplementary information). Hence, the conductivity of cations (\({{\Lambda }}^{{0}}\)) in the diodes can be written as Eqs. (14)–(16) in the supplementary information, wherein the conductivity of ions is related to the valence (\({{Z}}_{{\rm{ion}}}\)) and ionic conductivity (\({{\Lambda }}_{{+}}\)) of the cation. Therefore, for systems with the same charge concentrations, higher valence leads to a lower the diffusion coefficient (see details in the supplementary information). In addition, we checked literature and summarized the diffusion coefficients and molar conductivity of different cations in Table S2. It should be noted that the diffusion coefficients were calculated based on equivalent charge concentrations (e.g., 1/3M3+, 1/2M2+, and M+ sharing identical charge concentrations), due to different number of moles of cations within the ionic diodes. The table shows that for ions with the same charge concentration, cations with higher valence have lower coefficients. These results also validated our experimental results from EIS: diodes with high-valence cations exhibited low diffusion coefficients. Based on the Fick’s first law46 (see details in the supplementary information), we can further investigate the diffusion flux. As the charge concentration remained to be the same for our diodes with different cations, a lower diffusion coefficient results in a lower diffusion flux. Consequently, this reduction curtailed backward currents through the PN interface under the backward electric field, ultimately enhancing the rectification effects.

Most biological tissues, such as skin, exhibit stretchability ranging from 0% to 100%47. Considering the potential applications of ionic diodes in biological settings, we set 100% strain as our target stretchability. The modified hydrogel diode containing high-valence cations (e.g., Al3+) can be stretched to more than 100% without breaking and maintain a good rectification ratio (>140) at 100% strain (Fig. 2h). Thanks to the interfacial adhesion at the PN junction, there is no layer separation and the hydrogel diodes can maintain the electrical functions during stretching. The increased rectification ratio with the strain can be attributed to the reduction in thickness of the hydrogel diode, which promotes the efficiency of ion migrations. Both I–V curves at the strain of 0% and 100% show a clear asymmetric current response, exhibiting an “on” state under the forward electric field (e.g. 5 V) and an “off” state under the backward electric field (e.g. −5 V). The high stretchability of our hydrogel ionic diodes surpasses that of nano-membrane or nano-channel based fluidic diodes, and the enhanced rectification ratio by using high-valence cations exceeds that of most stretchable ionic diodes ever reported (Figs. 2i, S10, and Table S3). This is also the first work on enhancing the rectification effect of ionic diodes through tailoring the properties of charge carriers and improving the electrical performance at the material level. In comparison to other methods, such as adopting highly-porous or reactive electrodes, shrinking down the size of PN junctions, and adjusting the structure of ionic diodes, our approach offers greater versatility across various application scenarios and can be seamlessly integrated with previously proposed methods. For instance, by shrinking down the size of PN junctions we can further increase the rectification ratio, as demonstrated by our stretched ionic diodes that exhibited thinner thickness and higher rectification ratio.

Soft iontronics based on optimized hydrogel diodes

The improved rectification effect of our hydrogel diodes allows us to apply them in iontronics. Here, we selected hydrogel diode with Al3+ due to its elevated rectification ratio. We first demonstrated ionic half-wave rectifier and full-wave rectifier by integrating the hydrogel diodes into circuits (Fig. 3a, b). By applying the input waves with an amplitude of 5 V and frequency of 0.01 Hz (Fig. 3c–e), the half-wave rectifier constructed with a single diode can successfully pass half of the input waves (including triangle wave, sin wave, and square wave) and block the other (Fig. 3f–h). The full-wave rectifier integrated by four diodes converted the input into output with the same polarity (Fig. 3i–k). We also applied input waves with a higher frequency of 0.05 Hz, the outputs from the half-wave rectifier shows larger reverse leakage currents that were not fully blocked, but the results still show a satisfactory ability to rectify input electric signals (Fig. S11). The presence of larger reverse leakage currents can be attributed to the limitation of ion mobility in response to higher frequencies, indicating the importance of selecting an appropriate frequency range when employing ionic diodes in iontronics.

Fig. 3: Ionic rectifiers based on hydrogel diodes.
figure 3

a The schematic of circuit showing the half-wave rectifier containing one hydrogel ionic diode and b the schematic of circuit showing the full-wave rectifier containing four hydrogel ionic diodes with Al3+. ce The input triangle wave, sin wave, and square wave with an amplitude of 5 V and frequency of 0.01 Hz. fh The output currents from the hydrogel ionic diode-based half-wave rectifier under the three different inputs. ik The output currents from the hydrogel ionic diode-based full-wave rectifier under the three different inputs

Additionally, we fabricated a soft negative–positive–negative bipolar junction transistor (NPN BJT) based on two N-type hydrogel layers with trivalent cations Al3+ attached to one P-type hydrogel layer with monovalent anions Cl (Fig. 4a). We first validated the functioning of the two PN junctions by setting the collector voltage (VC) to 0 V and applying a square wave with an amplitude of 5 V and a frequency of 0.05 Hz at the base as the input: base voltage (VB) (Fig. 4a). When VB was 5 V and VC was 0 V, the base became positively polarized, causing the two PN junctions to be at the “on” state, thereby allowing the base current (IB) to flow from the base to the collector and emitter. Thus, positive IB and positive collector current (IC) were obtained (Fig. 4b), with IC being lower than IB due to current division from IB. On the contrary, when VB was −5 V and VC was 0 V, the base became negatively polarized, and the two PN junctions were at the “off” state. As a result, no currents could flow through the two PN junctions, and both IC and IB remained close to 0 (Fig. 4b). These results suggested that the two PN junctions were functioning correctly, and the BJT would conduct only when the base was positively polarized. Then, we applied a base current IB (ranging from 0 to 0.6 mA) at the base and measured the collector current IC in response to the collector voltage VC. When VC was negative, the base-collector junction was at the “off” state, allowing only limited currents (e.g., induced by ion diffusion) to pass this junction, thereby keeping IC low. It should be noted that when IB was 0 mA, the BJT was in the cut-off region and could not be operated. However, when IB > 0 mA and VC > 0 V, the base-collector junction was at the “on” state, allowing the BJT to operate. With the increase of VC (from 0 to 1.5 V), the BJT started to conduct. Under a fixed VC, IC increased with the input IB, showing a clear saturation region, where both the base-collector and base-emitter junctions were forward-biased (Fig. 4c). As VC continued to increase, the emitter voltage (VE) would equal the base voltage VB, causing the base-emitter junction to become reverse-biased, allowing few currents to pass the base-emitter junction. As a consequence, all the current from the base IB flowed to the collector, and IC remained constant regardless of VC (from 1.5 to 3 V), making the BJT reach the active region. However, as VC continued to increase (from 3 to 5 V), IC increased accordingly with IB (Fig. 4d). This was because VC was high enough to make the base-emitter junction “breakdown” and currents flowed from the emitter to the base, and ultimately to the collector. Thus, this breakdown region led to enhanced ion injection at the emitter-base junction and made IC increase with VC accordingly (Fig. 4d). On the other hand, we have also applied a voltage input VB at the base rather than applying the current input IB. One can see that in the operating region where VC > 0 V, IC increased with the input VB. This was because higher VB enhanced the forward-bias for the two PN junctions in the BJT, thereby increasing the current flow from the base to collector. All these results demonstrated that an ionic BJT can be successfully realized using our hydrogel ionic diodes. These demonstrations showcase the potential of our optimized hydrogel diodes for broader applications and more practical uses, such as soft semiconductor devices.

Fig. 4: The ionic BJT based on hydrogel diodes.
figure 4

a The schematic of the ionic switch circuit and a photograph showing the Al3+-based hydrogel ionic NPN BJT. b The current response of IB and IC with VB as the input. VB was a square wave with an amplitude of 5 V and a frequency of 0.05 Hz. VC was set as 0 V. c IC versus VC with different IB as inputs, showing a typical output characteristic curve for NPN BJT. d IC versus IB under different voltages of VC. e IC versus VC with different VB as inputs

Discussion

To enhance the relatively low rectification ratio of the gel-based stretchable ionic diodes, we have modified the rectification effect by incorporating cations with high valence in the P-type hydrogel layer. Through neutralization reactions based on the monomer acid AAc (H+) and added bases with different cations, we replaced the original monovalent H+ with high-valence cations such as divalent cations Mg2+ and Ca2+, and trivalent cations Al3+ and In3+. It was found that the rectification effect of hydrogel ionic diodes can increase with the valence of incorporated cations. The trivalent cations (e.g., In3+) enabled an enhanced rectification ratio of >70, significantly higher than that (rectification ratio: ~3) using monovalent cations. This enhancement was due to the higher valence of cations leading to a lower ion diffusion, which reduced the diffusion flux of cations and backward currents through the PN interface under the backward electric field, and ultimately enhanced the rectification effects. Moreover, our hydrogel ionic diodes can be stretched to over 100% strain and possess an increased rectification ratio of >140. The high stretchability of our hydrogel ionic diodes surpasses that of conventional nano-membrane or nano-channel based fluidic diodes, and the enhanced rectification ratio achieved by employing high-valence cations exceeds that of most stretchable ionic diodes reported to date. This work is also the first attempt to enhance the rectification effect of ionic diodes through the tailored properties of charge carriers (e.g., cations) and the improvement of electrical performance at the material level. The enhanced rectification effect enabled improved electrical performance and allowed us to apply the hydrogel diodes in iontronics such as rectifiers and BJT. We demonstrated the functionality of a half-wave rectifier, full-wave rectifier, and NPN BJT using the modified ionic diode, highlighting its potential in developing integrated ionic circuits or bioinspired iontronics based entirely on ions as charge carriers. While we only modified the valence of cations in the P-type layer, it is conceivable that tuning the valence of anions in the N-type layer or altering the structure of polyelectrolytes (e.g., highly branched polyelectrolytes) could also impact the rectification effect. Additionally, employing methods to incorporate mobile ions with higher valence, such as direct chemical synthesis of polyelectrolytes with high-valence mobile ions, may further enhance the rectification effect. Compared to electrons, there is a wider variety of naturally occurring ions that could be utilized in iontronics. As the famous architect Zaha Hadid has ever raised and adhered to: “There are 360 degrees. Why stick to one?”, this principle can be applied to the construction of electronics based on ions. Drawing inspiration from biological systems that employ varying ions as charge carriers rather than the single electrons, the manipulation of different ion properties and the utilization of soft materials in iontronics could potentially unlock more versatile and expansive applications for future ion-based electronics.

Materials and methods

Materials

Acrylamide (AAm, A8887-2.5KG), agarose (Agar, A9539-100G), crosslinker N, N’-methylenebis(acrylamide) (MBAA, 146072-100G), photoinitiator 2-hydroxy-4′-(2-hydroxyethoxy)-2-methylpropiophenone (Ir2959, 410896-50G), [2-(Acryloyloxy)ethyl]trimethylammonium chloride [DAC(Cl-), 496146-200ML], acrylic acid (AAc, 8.00181.0500), sodium hydroxide (NaOH), potassium hydroxide (KOH), magnesium hydroxide [Mg(OH)2], calcium hydroxide [Ca(OH)2], aluminum hydroxide [Al(OH)3], aluminum chloride (AlCl3), and indium (III) chloride (InCl3) were purchased from Sigma Aldrich.

Preparation of hydrogel ionic diodes

The P-type hydrogels and N-type hydrogels were first prepared separately, and then physically attached to form the hydrogel diode. The hydrogels were prepared by a one-pot method36. Briefly, for N-type hydrogels, 200 mg Agarose, 0.025 mol AAm, 0.0125 mol DAC(Cl), 0.0375 mol MBAA, 0.042 g Ir2959 (0.5 mol% of AAm), and 10 mL DI water were added into a beaker. The mixture was heated at 100 °C and stirred for 20 min until achieving a transparent solution. The precursor solution was then perfused into the 70 mm × 70 mm × 1 mm mold and cooled at 4 °C to form the first agarose network. Then, the cured hydrogel was photopolymerized under UV (365 nm, 10 mW cm−2) for one hour to form the second copolymer network. The prepared double-network hydrogels were sealed in Ziploc bag and stored under 4 °C for further use. For P-type hydrogels with original H+ as mobile cations, 200 mg Agarose, 0.025 mol AAm, 0.0125 mol AAc(H+), 0.0375 mol MBAA, 0.042 g Ir2959 (0.5 mol% of AAm), and 5 mL DI water were added into a beaker. For P-type hydrogels with replaced cations Mm+ as mobile cations, 100 mg agarose, 0.025 mol AAm, 0.0125 mol AAc(H+), 0.0375 mol MBAA, 0.042 g Ir2959 (0.5 mol% of AAm), and 5 mL DI water were added into a beaker. The bases were added into the beaker with the amount of (0.0125/m) mol M(OH)m [e.g., 0.0125 mol NaOH, or 0.00625 mol Mg(OH)2, or 0.0042 mol Al(OH)3], to replace the original H+ through neutralization reactions. The mixtures were then heated at 100 °C and stirred for 20 min until achieving a transparent solution. Curing the P-type hydrogels followed the same procedure with that for the N-type hydrogels. To prepare the hydrogel diodes, the cured P-type hydrogel piece and N-type hydrogel piece were physically stacked together. All the hydrogel diodes were sealed in Ziploc bags and stored at 4 °C before testing.

Electrical characterization

The current response of the hydrogel ionic diodes was measured using a source meter (Keithley 2602A, Keithley Instrument Inc.). The hydrogel ionic diodes have a diameter of 8 mm and thickness of 2 mm. Platinum wires were used as electrodes for the electrical measurement. Forward electric bias of 5 V and backward electric bias of −5 V were applied to the ionic diode to perform long-term (>80 s) current response of the ionic diodes. The forward current was the current response under 5 V and the backward current was measured under −5 V. The I–V curves of different ionic diodes were measured by the source meter through sweeping the voltage from 5 to −5 V. The AC-impedance spectra were measured by an electrochemical workstation (Metrohm Autolab), with testing frequency ranging from 10 MHz to 0.1 Hz. The input amplitude was 10 mV and a negative bias of −5 V was applied. To measure the rectification performance of the diodes under strain, the hydrogel ionic diodes were stretched to strains of 0%, 25%, 50%, 75%, and 100%, and the I–V responses were characterized under different strains.

Demonstrations of the iontronics

For the rectifiers, a function generator (33500B, KEYSIGHT) was used to supply input, and the output was measured by a source meter. For the BJT, a DC power supply (UC305, UNIROI) was used to provide VB, and the source meter was used to provide IB. The source meter was used to record the I–V responses.