1 Introduction

Over 85% of our energy requirements are met by fossil fuels, which significantly contribute to greenhouse gas emissions, global warming, and economic challenges [1]. In the coming years, because of energy shortages and environmental pollution, we will encounter numerous challenges in transitioning communities from nonrenewable energy systems to renewable sources [2, 3]. This underscores the importance of the scientific community exploring sustainable alternative energy options that align with Sustainable Development Goal 7, which aims for affordable and clean energy access for all. Both natural and synthetic polymers have been commonly employed in synthesizing solid blend polymer electrolytes (SBPEs) for optical and energy-storing device applications [4]. With the increasing use of electronic devices leading to significant electronic waste disposal, researchers are exploring biodegradable materials as substitutes for nonbiodegradable devices. Biodegradable polymers offer unique features, such as their abundance, nontoxic nature, easy processing, and cost-effectiveness, making them attractive alternatives [5]. Chitosan, carrageenan, tamarind seeds, starch, and agar are commonly used biopolymers to prepare SBPE for electrochemical devices [6]. For three to four decades, these biopolymer electrolytes have been extensively used in batteries [7], electrical double-layer capacitors (EDLCs) [8], supercapacitors, photovoltaic cells [9], and dye-sensitized solar cells (DSSCs) [10]. Significant research efforts have been dedicated to liquid electrolytes for energy storage applications because they produce high ionic conductivity, while relatively less attention has been given to solid biopolymer electrolytes [11]. While liquid electrolytes offer high ionic conductivity, SBPE provides the advantage of being leak-proof and allows for more compact device designs [12]. Prioritizing environmentally friendly energy storage devices is essential to balance the growing demand and environmental impact.

Combining various inorganic salts with polar polymers can alter their physical and chemical characteristics. Chitosan has been widely used as a polymer host base to incorporate high levels of salts such as H+, Li+, and Na+, making the resulting film more rigid [13]. Chitosan (CS) has very low conductivity in its actual state, and to make it conduct, we must add some inorganic salts [14]. Methylcellulose (MC) is an abundant, naturally occurring, biodegradable, renewable polymer [5]. Less work has been done on magnesium (Mg)-based salts. Magnesium-based salts offer benefits such as abundance, ease of handling, and no dendrite growth [16]. The ionic conductivity is a crucial parameter for energy storage device applications.

Several techniques, such as adding additives, copolymerization, and blending, have been adopted to achieve desirable ionic conduction at ambient temperatures [17]. Blends are physical mixtures of two or more polymers with various structural properties that interact with one another via secondary forces and noncovalent bonding [18]. Blending polymers are widely used for developing new materials due to their ease of formulation and ability to control material properties [19].

Abdalrahman et al. [20] used NaSCN salt to synthesize SBPE films using MC as a polymer host and obtained a conductivity of 3.6 × 10–6 S cm−1. Ahmed et al. [21] used LiBF4 as a salt to formulate an SBPE film of CS:MC and obtained a conductivity of 2.12 × 10–5 S cm−1. Using ammonium nitrate as a salt, S. Abdulkareem synthesized a blend polymer electrolyte film of CS:MC and achieved a conductivity of 3.54 × 10–4 S cm−1 [22]. O. Abdullah et al. [23] used CS:MC as a poly-blend, incorporated LiI salt, and reported a conductivity of 6.26 × 10–6 S cm−1. Figure 1 shows the ambient temperature ionic conductivity and ESW of the optimum SBPE films based on chitosan, methylcellulose, CS:MC poly-blend, and other polymers doped with Mg(ClO4)2. There are very few studies on CS:MC SBPE doped with Mg salts, and no attempt has been made to examine the impact of Mg(ClO4)2 salt doping on CS:MC blends for use in Mg batteries. Hence, this study focused on developing and characterizing SBPEs based on chitosan and methylcellulose. Methylcellulose and chitosan are derived from cellulose and chitin, respectively, and have attracted the attention of many researchers worldwide because of their exceptional properties, such as abundance, water solubility, compatibility with different solvents, and outstanding film-forming capacity [24]. According to our earlier work [25], the most amorphous blend matrix, i.e., 30 wt% MC and 70 wt% CS, was used as the host polymer matrix to synthesize the magnesium ion-conducting biopolymer electrolyte.

Fig. 1
figure 1

Previous research on chitosan, methylcellulose, CS:MC SBPE, and magnesium perchlorate salt, along with the ideal polymer electrolyte’s room-temperature conductivity and ESW

In this work, various amounts of magnesium perchlorate were incorporated into a CS:MC blend matrix to study the performance of the electrolytes. The uniqueness of our work is that we have incorporated deconvolution of XRD for all these electrolytes to understand the percentage crystallinity and thereby predict the conductivity trend. Moreover, we found that very few articles have discussed the transport properties of magnesium ions, especially in blended polymer electrolytes. As the blend possesses different functional groups in its matrix, the magnesium ions interact with them during its movement, which certainly has a different trend from that of sodium/lithium ions. The challenge of using Mg2+, which has bivalency and tends to be more attractive toward polymer segments, has been addressed in this paper. The nature and mechanism of charge transfer in these materials are thought to be revealed by studying their electrochemical characteristics.

2 Materials and instrumentation

2.1 Solid blend polymer electrolyte (SBPE) preparation

Chitosan (CS), methylcellulose (MC), and Mg(ClO4)2 are the materials employed in the present study, and they were all purchased from Loba Chemie Pvt Ltd. SBPE was synthesized using double-distilled water, and analytical grade acetic acid was obtained from S.D. Fine-Chem Pvt. Limited in Mumbai, India. The solution casting method was used to develop the SBPE comprising CS:MC:Mg(ClO4)2. The preparation of the SBPE samples followed our earlier research [26]. A series of SBPEs (70 wt% CS/30 wt% MC + x wt% Mg(ClO4)2, where x = 0 to 30 wt% in steps of 5 wt%) were prepared. In the present work, the total weight of all the components (polymers and the dopant) was fixed to 2 g. An appropriate amount of optimized polymer blend (70 wt% of CS/30 wt% of MC) and Mg(ClO4)2 salt with x = 0, 5, 10, 15, 20, 25, and 30 wt.% were dissolved separately in 100 ml of 1% acetic acid solution under continuous stirring at 40 °C for 7 to 8 h until a homogeneous viscous solution was obtained and labeled CMP0, CMP5, CMP10, CMP15, CMP20, CMP25, and CMP30, respectively. The thickness of the synthesized films ranged from 171 to 238 µm. Table 1 provides the weight percentages of the polymers and salt components used in the study.

Table 1 Sample label and wt% of each constituent of the polymer blend

A primary electrochemical cell consisting of an Mg (anode)/(CS-MC-Mg(ClO4)2) (70–30-30)/(cathode) configuration was assembled, employing the most conductive SBPE film, and the cell performance was examined. A magnesium metal piece with a 13 mm diameter was utilized for anode preparation. In terms of cathode preparation, a combination of MnO2, graphite (C), and CMP30 SBPE was mixed to produce a pellet with a 13 mm diameter (designated cell 1). Another pellet was created by mixing iodine (I2), C, and CMP30 SBPE, which was then compressed under a 5-ton pressure (designated cell 2). The third pellet was formed by mixing V2O5, C, and CMP30 SBPE (designated cell 3). One more pellet was formed by mixing PbO2, V2O5, C, and CMP30 SBPE (designated cell 4). All these pellets were used to assess the performance of the primary battery.

2.2 Characterization

A Rigaku Miniflex 600 instrument (5th Gen.) was used for X-ray diffraction (XRD) analysis of the SBPE samples. With a step size of 0.02°, the experiments were performed utilizing monochromatic Cu K-alpha radiation with a wavelength of 1.54 Å and glancing angles ranging from 5° to 80°.

The FTIR spectrum profiles were obtained using a Shimadzu IR Spirit ATR-FTIR spectrophotometer, with infrared beams passed through the samples at ambient temperature. The spectra were acquired in transmittance mode with a resolution of 4 cm−1 and a wavenumber range of 400–4000 cm−1.

The surface morphology of the polymer electrolyte film was examined by scanning electron microscopy (CARL ZESIS) at 1000 × magnification.

The thermal stability of solid polymer electrolyte films was studied using an SDT Q600 V20.9 instrument 20.

Electrical impedance spectroscopy (EIS) is a suitable method for understanding the electrical properties of SBPE. Before impedance analysis, the SBPE samples were cut into small pieces with a contact area of 1.44 cm2 and then pressed between two silver-blocking electrodes using spring pressure. An impedance study used an LCR meter in the 100 Hz to 5 MHz frequency range. The software was utilized to extract various parameters, such as the parallel capacitance (C), real part (Zr), and imaginary part (Zi), of the complex impedance spectra of the electrochemical impedance spectroscopy (EIS) plots. By identifying the point where the plot intersects the real axis, the bulk resistance (Rb) was determined [22]. Equation (1) was utilized to determine the electrolyte films’ ionic conductivity at ambient temperature based on the Rb value [27].

$$\sigma = \frac{t}{A{\text{R}}_{b}}$$
(1)

The complex permittivity illustrates the trends of dielectric relaxation in solid polymers.

$${\varepsilon }^{*}\left(\omega \right)={\varepsilon }{\prime}\left(\omega \right)-j{\varepsilon }^{{\prime}{\prime}}\left(\omega \right)$$
(2)

The ion transport properties, such as carrier concentration (n), diffusion coefficient (D), and mobility (µ), were evaluated using the Nyquist plot fitting technique.

The ESW of the SBPE was determined using a Keithley source meter unit (SMU) 2636B. Transference number measurements (TNMs) were performed utilizing a DC polarization technique, wherein the changes in polarization current were monitored over time to assess variations. The cell was polarized using a Keithley SMU 2636B at 0.5 V. For both voltage stability and TNM, the cell arrangement is shown in Fig. 9. tion can be calculated if the initial (Ii) and steady-state (Iss) currents are known utilizing the below-mentioned equation[19]:

$${t}_{ion}=\frac{{I}_{i}-{I}_{ss}}{{I}_{i}}$$
(3)

The electronic transference number can be calculated using the following equation:

$${t}_{elec}= 1 - {t}_{ion}$$
(4)

The voltage stability of the polymer electrolyte was tested using a Keithley source meter 2636B. The cell arrangement was [stainless steel | polymer electrolyte sample | stainless steel].

A cyclic voltammogram was generated using a potentiostat (Biologic) SP50e by sandwiching the highest conducting polymer electrolyte between two magnesium electrodes and two stainless steel electrodes separately at a scan rate of 100 mV s−1.

3 Results and discussion

3.1 XRD analysis

Figure 2 shows the X-ray diffractograms of the CS:MC blend polymer electrolytes with different salt contents. The XRD pattern of MC exhibits a hallow peak in the diffraction angle range between 19° and 21° due to intra/intermolecular hydrogen bonding[28]. Inter- and intramolecular hydrogen bonding between the hydroxyl groups of individual monomers and chains within the CS polymer resulted in XRD peaks at approximately 2θ = 11.3°, 18.3°, and 22.8° [19].

Fig. 2
figure 2

X-ray diffraction patterns of the prepared poly-blend electrolyte films

According to the diffractogram, CMP0 consists of two concave peaks, one at approximately 11° and the other at approximately 21°. The appearance of more crystalline peaks in the blended system is due to the greater content of CS over MC. The broad peak at approximately 21° suggested that the CS:MC poly-blend had an amorphous composition [29]. Blending plays a crucial role in decreasing crystallinity and subsequently enhancing conductivity [30]. As Abdullah et al. [31] reported that blending CS and MC triggered a decrease in the crystallinity of the blended system. An increase in the broadness and a decrease in the intensity of the peaks imply a decrease in crystallinity, thus providing a lower energy barrier for ion conduction [32]. According to Hodge et al.’s criterion [18], peak intensity reduction and peak broadening compared to those of the pristine polymer indicate the dominance of the amorphous state within a biopolymer blend electrolyte system[33, 34].

The X-ray diffraction peaks were analyzed using Fityk computer software and deconvoluted based on Eq. (5) below [35], as shown in Fig. 3a–g. X-ray diffractograms showed a decrease in crystallinity with increasing salt content, indicating a more amorphous composition in the blended system. The deconvolution of the XRD patterns provided insights into the percentage of crystallinity, which can be used to predict the conductivity trend.

Fig. 3
figure 3

a–g XRD deconvoluted pattern for different solid poly-blend electrolyte systems

$${X}_{C}=\frac{{A}_{c}}{{A}_{a}+{A}_{c}}100\%$$
(5)

3.2 Fourier transform infrared spectroscopy

The FTIR spectra shown in Fig. 4a and b can be used to understand the chemical identity, complex formation, and interactions between the biopolymer electrolyte’s different components. The complexation between the blend and the magnesium salt was indicated by shifts in the bands, broadening, and the emergence or disappearance of peaks [36]. The main advantage of polymer blending is that it provides additional complexation sites for the ions to hop or drift, thereby increasing the conductivity [37]. The peak near 2900 cm−1 matches the C-H stretching mode of the CMP0-poly-blend system [38], and as the salt concentration increases (CMP5-CMP30), a shift in the peak toward a lower wavenumber is observed due to hydrogen bonding between the oxygen of the perchlorate anion and the hydrogen of C-H. Between 1600 and 1700 cm−1, there is an absorption band corresponding to the stretching of C = O [39], and the intensity of this peak also decreases with the addition of a higher concentration of salt due to the interaction of cations with oxygen. The other modes, centered between 1500 and 1600 cm−1, are N–H bending modes [40]. Figure 4a illustrates how adding salt to the biopolymer blend system caused the peak centered at 3357 cm−1, which was previously identified as -OH stretching, to shift to lower wavenumbers, demonstrating the physical interactions between the salt’s magnesium ions and the biopolymer blend [41]. The C-O bending vibration peak was approximately 1057 cm−1, and the C-O stretching vibration peak was approximately 1026 cm−1 [15]. The various stretching and bending vibrations are tabulated in Table 2. The peak shift toward lower wavenumbers in the bands corresponding to C-H and C = O stretching vibrations provides compelling evidence of interactions between the biopolymer blend and the magnesium salt [24].

Fig. 4
figure 4

a Wavenumber variation in the FTIR spectra of synthesized poly-blend electrolyte films b Intensity variation in the FTIR spectra of synthesized poly-blend electrolyte films

Table 2 FTIR assignments for all the prepared SBPEs

Figure 5 illustrates the potential interaction between the Mg(ClO4)2 salt and the polymer blend. Mg2+ acts as a Lewis acid, and ClO4− acts as a Lewis base. The formation of the ion–dipole Mg2+…….OH complex is indicated by a change in the wavenumber of the -OH band. A Lewis acid and a Lewis base form a coordinate covalent bond, forming a Lewis acid–base adduct [30].

Fig. 5
figure 5

Probable interaction scheme of Mg(ClO4)2 with poly-blend CS:MC

3.3 SEM analysis

Figure 6 displays the SEM micrographs of a pure polymer blend and a blend doped with magnesium perchlorate salt. SEM images can be utilized to understand the morphological features of polymer electrolyte samples.

Fig. 6
figure 6

SEM micrographs of pure poly-blends and blends doped with 5, 10, 20, and 30 wt.% magnesium perchlorate salt along with an EDS image (bottom right) of the highest conducting sample (CMP30)

The surface morphology appeared consistent between the pure and doped blends, displaying a smooth surface texture. No cracks or agglomeration of the salt can be seen, even at higher concentrations. Figure 6 shows the EDS image of the highest conducting polymer electrolyte sample (CMP30). All the distinguishing elements (Mg, Cl, O, and C atoms) corresponding to the CS:MC:Mg(ClO4)2 material show that the sample is homogeneous.

3.4 Thermogravimetric analysis

The thermal stability of the SBPE is a crucial factor to consider in ensuring optimal electrolyte performance. Figure 7 presents the thermograms for the pure blend and the blends doped with various Mg(ClO4)2 concentrations. During TGA, the initial weight loss observed in the 30–210 °C temperature range is attributed to the vaporization of occluded moisture. The evaporation of confined liquids causes a 15% initial mass loss in the pure blend at 150 °C. The pure blend film exhibited significant thermal decomposition at 230 °C, indicating that the film remained stable up to this temperature. The highest conducting film (CMP30) is stable up to 220 °C. When the temperature reaches 220 °C, 75% of the mass remains. The second degradation started at 220 °C. The heavyweight loss may be due to the removal of unreacted free monomers from the polymeric chain. Hence, up to 220 °C, the complete stability of all the materials was observed, with an average mass loss of 25%. Given that electrochemical energy storage devices typically operate at temperatures significantly below 100 °C, our samples fulfill this criterion for thermal stability.

Fig. 7
figure 7

TG thermograms of CS:MC blends with different concentrations of Mg(ClO4)2

3.5 Impedance study

Figure 8 shows the Nyquist plot for the CS:MC:Mg(ClO4)2 SBPE system at ambient temperature. The existence of an inclined spike in the low-frequency region of the Nyquist plot is ascribed to ion blocking occurring at the interface between the electrode and electrolyte [42]. This behavior is represented by a constant phase element (CPE1). The depressed semicircle observed in the high-frequency region of the Nyquist plot can be described by the parallel combination of resistance (Rb) and bulk capacitance (CPE2) [43, 44]. The bulk resistance (Rb) indicates the resistance faced by Mg2+ ions within the sample’s bulk, whereas the bulk capacitance (CPE2) reflects the dipolar polarization of the polymer backbone chain [45]. Ions diffuse through the electrolyte membrane and assemble at the electrolyte/electrode interface as an AC electrical field is applied. Due to the presence of blocking electrodes, the movement of ions across the system is restricted. As a result, the real and imaginary components of the complex impedance can be determined at different frequencies. The Rb value is determined by the intersection of the semicircle with the real axis (Zr). Equation (1) can be used to calculate the bulk conductivity given the sample’s Rb value and the thickness of the SBPE [46]. Table 3 shows the change in bulk conductivity with respect to salt concentration. The ionic conductivity depends upon the type of salt incorporated into the polymer matrix and its extent of dissociation. In polymer networks, the random orientation of dipole moments within the polar side groups leads to a decrease in the diameter of the semicircular portion at higher frequencies, especially in samples with increased salt doping in the polymer electrolyte. This reduction signifies the non-capacitive nature of the SBPE, which contributes to more efficient energy storage by minimizing undesired leakage and self-discharge. As a result, the battery’s charge can be preserved for longer durations [47]. The undoped blended system has a conductivity of 2.90 × 10–8 S cm−1 at room temperature. With the addition of 5 wt% Mg(ClO4)2 to the CS:MC blend, the conductivity increased by approximately an order of magnitude. The addition of Mg salt to the biopolymer blend matrix led to an increase in conductivity from 10–8 to 10–6 S cm−1. CMP30 is found to be the highest conducting with an ionic conductivity value of 2.49 × 10–6 S cm−1, which is comparable with the value of 7.23 × 10–6 S cm−1 for 30 wt% added KOH salt by Mustafa et al.[48]

Fig. 8
figure 8

Nyquist plots for the pristine polymer and Mg(ClO4)2 salt-doped electrolyte samples. Inset: electrical equivalent circuit (EEC) model

Table 3 Sample notation, bulk conductivity, transport parameters, and voltage stability window of the pure blend and blend doped with various concentrations of Mg(ClO4)2 salt

3.6 Transport properties

The Nyquist plot was fitted using an appropriate EEC (Fig. 8). As part of the analysis of transport parameters, the carrier concentration (n), carrier mobility (µ), and diffusion coefficient (D) were determined.

$$Z_{r} = \frac{{R + R^{2} k_{1}^{ - 1} \omega^{{p_{1} }} \cos \left( {\frac{{\Pi p_{1} }}{2}} \right)}}{{1 + 2Rk_{1}^{ - 1} \omega^{{p_{1} }} \cos \left( {\frac{{\Pi p_{1} }}{2}} \right) + R^{2} k_{1}^{ - 2} \omega^{{2p_{1} }} }} + \frac{{\cos \left( {\frac{{\Pi p_{2} }}{2}} \right)}}{{k_{2}^{ - 1} \omega^{{p_{2} }} }}$$
(6)
$$Z_{i} = \frac{{R^{2} k_{1}^{ - 1} \omega^{{p_{1} }} \sin \left( {\frac{{\Pi p_{1} }}{2}} \right)}}{{1 + 2Rk_{1}^{ - 1} \omega^{{p_{1} }} \cos \left( {\frac{{\Pi p_{1} }}{2}} \right) + R^{2} k_{1}^{ - 2} \omega^{{2p_{1} }} }} + \frac{{\sin \left( {\frac{{\Pi p_{2} }}{2}} \right)}}{{k_{2}^{ - 1} \omega^{{p_{2} }} }}$$
(7)

The symbols have the usual meaning. The values of \({p}_{1}\) and \({p}_{2}\) lie between 0 and 1. By employing the parameters obtained from the fitting process in Eqs. (6) and (7), the charge transport parameters are estimated using the provided equations, where the symbols retain their conventional meanings:

$$D=\frac{{e\left({k}_{2}{\varepsilon }_{r}{\varepsilon }_{o}A\right)}^{2}}{{\tau }_{2}}$$
(8)
$$\mu =\frac{eD}{{k}_{B}T}$$
(9)
$$n=\frac{\sigma }{\mu e}$$
(10)

Table 3 shows the variation in the transport parameters for the CS:MC:Mg(ClO4)2 SBPE system. Key transport parameters such as mobility (µ), diffusion coefficient (D), and charge density (η) are assessed and scrutinized to determine the primary factors influencing the ionic conductivity of the SBPE. The mobility and diffusion coefficient are high for the samples with 5 wt% salt added to the polymer electrolyte. At low salt concentrations, the salt ions are less likely to interact with the polymer matrix, resulting in the dissociated ions moving freely through the medium. This lack of interaction between the ions and the polymer chains contributes to the elevated mobility and diffusion coefficients observed in the CMP5 sample. As the salt concentration increases, the ions begin to interact more significantly with the polymer chains. This interaction induces segmental motion of the ions in conjunction with the polymer chains, which in turn reduces mobility and diffusion coefficients. Supporting this interpretation, our FTIR studies reveal that the change in wave number is less pronounced for the CMP5 sample than for other polymer electrolyte samples. This indicates that the ion–polymer interactions in the CMP5 sample are less substantial, corroborating our findings related to mobility and diffusion coefficients. Table 3 indicates that as the salt concentration increases, there is a corresponding increase in carrier concentration, except at 20 wt% salt. The observed phenomenon can be attributed to the dissociation of the salt into free ions, which subsequently form complexes with the -CH and -OH groups present in the blend polymer. This is also evident from the impedance studies, where the conductivity decreases for the CMP20 sample. Table 3 demonstrates a consistent trend in ionic conductivity and carrier concentration across the CMP5 to CMP30 samples, suggesting a substantial influence of charge carrier density on the observed trend in ionic conductivity within the prepared SBPE system.

3.7 I-V characterization

It is crucial to determine the electrochemical stability window (ESW) during the fabrication of an electrochemical device, as it indicates the range where no oxidation or reduction occurs within the polymer electrolyte. In this regard, the ESW of all the synthesized SBPEs was experimentally determined using a Keithley source meter, and the cell layout is shown in Fig. 9. As seen in Fig. 10, the current was insignificant at 1.0 V, indicating that there were no electrochemical processes, and it rapidly increased as the voltage increased to 1.5 V. The ESW for the highest conducting sample (CMP30) was determined by extrapolating the higher voltage linear current along the x-axis [49], which was found to be 1.92 V, which is comparable to the value obtained by Aziz et al. for the plasticized CS polymer electrolyte[50]. The current exhibited a significant increase beyond this voltage, indicating that electrolyte breakdown occurred at the surface of the inert electrodes.

Fig. 9
figure 9

Typical cell configuration for the I-V and I-t studies

Fig. 10
figure 10

Graph of the current vs. voltage for the cell composed of SS/[CS:MC]:Mg(ClO4)2/SS

3.8 Transference number measurement (TNM) analysis

3.8.1 Wagner polarization technique

The polarization plot of the SBPEs is shown in Fig. 11. In an SBPE, the total conductivity is due to the involvement of both ions and electrons [51]. In battery or EDLC applications, ions should serve as the primary charge carriers, particularly cations, with minimal electron conductivity (tion >> tele) [52].

Fig. 11
figure 11

A plot of the current versus time for the cell made with SS/[CS:MC]:Mg(ClO4)2/SS

The experimental setup used is shown in Fig. 9. First, the ions and the electrons contribute to the elevated current, after which the current decreases significantly before reaching a constant value. Due to the accumulation of ions at the electrode/electrolyte interface, the current response to a steady state is driven solely by electrons, not ions [53]. SS electrodes, known to block ions, are responsible for this behavior. tion is computed for all the polymer electrolyte samples using Eq. (3), and for the maximum ion-conducting sample, the tion is found to be 0.83, which is close to an ideal value of 1, indicating that ions in the highest conducting polymer electrolyte (CMP30) film are the majority charge carrier [54]. The contribution from the magnesium salt’s cation and anion is approximately 0.83. The low electronic conductivity justifies the utilization of the prepared electrolytes as both separators and electrolytes in battery applications.

3.9 Cyclic voltammetry (CV)

Researchers commonly employ CV as a useful electroanalytical method for the comparative investigation of electrode material characteristics [55]. It is essential to further analyze the electrochemical reversibility of Mg/Mg2+ from an SBPE for application in magnesium-ion batteries. The following two symmetrical cells were used to test the CV of the SBPE containing 30 wt% Mg(ClO4)2, as depicted in Fig. 12.

Fig. 12
figure 12

Cyclic voltammograms (CVs) of the highest ion-conducting polymer electrolyte films

First cell: SS/CMP30/SS

Second cell: Mg/CMP30/Mg

Both cell types were scanned at a rate of 100 mV s−1 from − 2.0 V to + 2.0 V [56]. The first cell’s current window is significantly smaller than the second window. Furthermore, the first cell does not show distinct cathodic or anodic peaks, while the second cell shows small redox peaks at − 0.6 and + 0.6 V, respectively. This demonstrates that the SBPE films conduct Mg2+ ions reversibly [57].

$$Mg^{2 + } + \, 2e^{ - } \leftrightarrow Mg^{0}$$

3.9.1 Study of primary magnesium-ion batteries

Figure 13a–d shows the assembly of a primary battery that conducts magnesium ions. The CMP30 polymer electrolyte is sandwiched between a magnesium metal pellet and four different cathode materials in this battery design. In the realm of all-solid-state batteries, the decision regarding the anode material is influenced by the mobile species within the electrolyte, which leads to the selection of a magnesium metal pellet as the anode. The performance of the SBPE was investigated using four different cathode materials to determine how the choice of electrode material affects it.

Fig. 13
figure 13

a The OCV of the first cell (the image of the first cell is presented in the inset). b OCV of the second cell (the image of the second cell is displayed in the inset). c The OCV of the third cell (the image of the third cell is depicted in the inset). d The OCV of the fourth cell (the image of the fourth cell is depicted in the inset)

Adding graphite to cathode materials improves their ability to conduct electricity. In the second cell, iodine is used as the active material in the cathode. Combining the SBPE with the electrode material increases the surface area where the two materials meet, improving the interaction between them. This reduces the resistance between the electrode and the electrolyte, improving the battery’s overall performance.

The cell parameters are listed in Table 4. In the first cell, the initial OCV started at 2.03 V, decreased to 1.68 V, and remained stable for 24 h. During these 24 h, the voltage decreased further to 0.36 V upon applying a load of 100 kΩ. Cell 2’s initial OCV began at 1.95 V, decreased to 1.92 V, and remained constant for 24 h. The voltage of the second cell decreased from 1.92 V to 1.3 V when a 100 kΩ resistor was connected. In the third cell, the initial OCV began at 1.5 V and slightly decreased to 1.2 V over 24 h. The voltage decreased steadily for 24 h to 0.09 V after a 100 kΩ load was applied. In the fourth cell, the initial OCV started at 1.81 V, decreased to 1.61 V, and remained stable for 24 h. During these 24 h, the voltage decreased further to 0.41 V upon applying a load of 100 kΩ. The OCV, ESW, and conductivity obtained in the present study are comparable with the results of earlier studies, as depicted in Table 5. This indicates the possible application of the present polymer electrolyte in solid-state batteries. The reaction across the cell components is as follows:

Table 4 Cell parameters
Table 5 Comparison of the maximum ionic conductivity, ESW, and OCV obtained in the present work with those obtained in previous studies

Cell 1:

$$Mg \, + \, 2\left( {OH - } \right) \to Mg\left( {OH} \right)_{2} + \, 2e^{ - }$$
$$2MnO_{2} + \, H_{2} O \, + \, 2e^{ - } \to Mn_{2} O_{3} + \, 2OH$$
$$Mg \, + \, 2MnO_{2} + \, H_{2} O \to Mg\left( {OH} \right)_{2} + \, Mn_{2} O_{3}$$

Cell 2:

$$Mg \to Mg^{2 + } + \, 2e^{ - }$$
$$2Mg^{2 + } + \, 4I_{2} + \, 2e^{ - } \to MgI_{2} + \, Mg\left( {I_{3} } \right)_{2}$$
$$2Mg \, + \, 4I_{2} \to MgI_{2} + \, Mg\left( {I_{3} } \right)_{2}$$

Cell 3:

$$Mg \to Mg^{2 + } + \, 2e^{ - }$$
$$V_{2} O_{5} + \, Mg^{2 + } + \, 2e^{ - } \to MgV_{2} O_{5}$$
$$Mg \, + \, V_{2} O_{5} \to MgV_{2} O_{5}$$

Cell 4:

$$Mg \to Mg^{2 + } + \, 2e^{ - }$$
$$Mg \, + \, 2\left( {OH^{ - } } \right) \to Mg\left( {OH} \right)_{2} + \, 2e^{ - }$$
$$2PbO_{2} + \, H_{2} O \, + \, 2e^{ - } \to Pb_{2} O_{3} + \, 2OH^{ - }$$
$$V_{2} O_{5} + \, Mg^{2 + } + \, 2e^{ - } \to MgV_{2} O_{5}$$
$$2Mg \, + \, 2PbO_{2} + \, H_{2} O \, + \, V_{2} O_{5} \to Mg\left( {OH} \right)_{2} + \, Pb_{2} O_{3} + \, MgV_{2} O_{5}$$

Here, the methylcellulose polymer matrix is the source of hydroxyl (OH) ions.

4 Conclusion

The solution casting method synthesizes biodegradable SBPE membranes comprising methylcellulose, chitosan, and magnesium perchlorate salt. Chitosan and methylcellulose were used as the biopolymer blend matrix, where ions provided by Mg(ClO4)2 participate in the conduction process. The FTIR analysis results indicated the formation of a hydrogen bond between the two polymers and demonstrated good compatibility between the polymers and the magnesium salt via Lewis acid–base interactions. According to the XRD results, the maximum conducting system has the least crystallinity but is less stable above 200 °C. The highest conducting sample exhibited an ionic conductivity of 2.49 × 10–6 S cm −1. I-V analysis revealed that the highest ion-conducting electrolyte with an ESW of 1.92 V is suitable for battery application. The total ionic transference number of the highest conducting electrolyte was 0.83. Cyclic voltammetry revealed an electrochemical equilibrium between the Mg metal and Mg2+ ions in the SBPE. The Mg ion electrochemical cells assembled using the highest conducting polymer electrolyte membrane, which acts as an electrolyte and separator, show an open circuit voltage of 2.0 V, thus indicating its practical application. Consequently, the findings suggest that the developed polymer electrolyte exhibits the essential structural and electrochemical properties required for utilization as a separator or electrolyte membrane in magnesium-ion batteries. The battery performance could be further enhanced if suitable electrode materials were tuned to synchronize with the SBPE.