Electrochemical Performance of Nitrogen Self-Doping Carbon Materials Prepared by Pyrolysis and Activation of Defatted Microalgae

Pyrolysis and activation processes are important pathways to utilize residues after lipid extraction from microalgae in a high-value way. The obtained microalgae-based nitrogen-doped activated carbon has excellent electrochemical performance. It has the advantage of nitrogen self-doping using high elemental nitrogen in microalgae. In this study, two kinds of microalgae, Nanochloropsis and Chlorella, were used as feedstock for lipid extraction. The microalgae residue was firstly pyrolyzed at 500 °C to obtain biochar. Then, nitrogen-doped activated carbons were synthesized at an activation temperature of 700–900 °C with different ratios of biochar and KOH (1:1, 1:2, and 1:4). The obtained carbon materials presented rich nitrogen functional groups, including quaternary-N, pyridine-N-oxide, pyrrolic-N, and pyridinic-N. The nitrogen content of microalgae-based activated carbon material was up to 2.62%. The obtained materials had a specific surface area of up to 3186 m2/g and a pore volume in the range of 0.78–1.54 cm3/g. The microporous pore sizes of these materials were distributed at around 0.4 nm. Through electrochemical testing such as cyclic voltammetry and galvanostatic charge–discharge of materials, the materials exhibited good reversibility and high charge–discharge efficiency. The sample, sourced from microalgae Chlorella residue at activation conditions of 700 °C and biochar/KOH = 1:4, exhibited excellent endurance of 94.1% over 5000 cycles at 2 A/g. Its high specific capacitance was 432 F/g at 1 A/g.


Introduction
To address overconsumption of fossil resources, increasing levels of greenhouse gases in the atmosphere and the rise in the Earth's temperature, many renewable energy technologies had been developed [1].Microalgae are potential biomass feedstock for liquid biofuel production and industrially important by-products.Lipids in microalgae are generally used for biodiesel and liquid hydrocarbons via transesterification and hydrogenation/cracking processes.However, there are large amounts of defatted microalgae residue after extraction of lipids, which need further utilization with high added value [2].Pyrolysis of microalgae residue can produce biochar, which can be further upgraded into activated carbon materials.Most of the pyrolysis reactions for microalgae and their defatted residue occurred at 400-550 • C with inert environment [3].Biochar was activated by activators such as KOH and KMnO 4 into carbon materials that can be used as supercapacitors [4,5].
Supercapacitors can be divided into three categories including electric double-layer capacitors (EDLCs), pseudocapacitors, and hybrid supercapacitors [6].Although EDLCs have high electrical conductivity, thermal stability, and chemical stability, their specific capacitance (<400 F g −1 ) is generally lower [7].The theoretical capacitance of pseudocapacitors (>1000 F g −1 ) is usually higher than that of EDLCs [8,9].Pseudocapacitors generate and store electrical energy through a rapid reversible redox reaction at surface/near surface to obtain capacitance formed by metal oxides materials [10].But attributed to agglomeration of particles, strain accumulations during charge-discharge processes, and low conductivity of metal oxides, pseudocapacitors' practical performance was poor [11][12][13].Therefore, these two energy storage mechanisms are combined by introducing heteroatoms into carbon materials, adjusting porosity of materials, or synthesizing a composite of carbon materials and metal oxides [14].Heteroatom doping can significantly alter the elemental composition of carbon materials.Currently, heteroatom doping of carbon materials has been mainly studied by doping Nitrogen, Boron, Sulfur, and Platinum atoms [15][16][17][18].Heteroatom doping, especially N doping, had shown a clear promise for high-performance supercapacitors and played an important role in carbon material doping [19].For example, nitrogen-and oxygen-co-doped hierarchically porous carbon material from carbonization/activation of algae showed a high specific capacitance of 201 F/g at 1 A/g.In the meantime, its capacitance retention ratio was 61% at 100 A/g, and its capacitance loss was 9% after 10,000 cycles [20].Nitrogen-and oxygen-doped hierarchically porous carbons from algae Enteromopha prolifera had a high capacitance of 234 F/g at 0.5 A/g and good cycling stability of 95% after 2000 cycles.Unique hierarchical nanopores in the carbon structure provided active sites for enhancing the diffusion rate of ions.These carbons had natural heteroatoms from algae-contributing pseudocapacitance [21].One fact that should not be overlooked is that after the extraction of lipids from microalgae, the nitrogen content of the microalgal residue (5-12%) is higher than that of the raw microalgae.Therefore, it is necessary to research nitrogen distribution during pyrolysis and activation processes and its effect on pseudocapacitance activity.
Nitrogen atoms introduced into carbon materials could be divided into chemical nitrogen and structural nitrogen [22].In general, chemical nitrogen was found as nitrogen functional groups on the surface of materials, such as amino groups and nitroso groups.These nitrogen functional groups improved the surface hydrophilic properties of porous carbon materials.It likewise increased the compatibility of electrolytes and electrodes.Structural nitrogen is doped directly into the carbon skeleton and bonded to carbon atoms.There are four main types of structural nitrogen, including graphitic-N, pyridinic-N, pyrrolic-N, and quaternary-N, and their function vary.Pyridinic-N and pyrrolic-N were effective for improving pseudocapacitance activity [23], while graphitic-N promoted the rapid transference of electrons in the carbon lattice, and quaternary-N improved the wettability between the material and the electrolyte [24].During pyrolysis, there are different characteristics of migration and transformation for these nitrogen elements [25].For example, high reaction pressures promoted the formation of pyrrolic-N and quaternary-N compounds in bio-oil and decreased pyridinic-N and nitrile-N compounds, while pyrrolic-N in biochars were transformed into pyridinic-N and quaternary-N at elevated pressures [26].The step pyrolysis of N-rich industrial biowastes demonstrated that NH 3 -N was the main NO x precursor in gaseous products at lower temperatures, which was due to the decomposition of labile amide-N/inorganic-N in fuels, while two-step pyrolysis with low heating rates minimized NO x precursor yield by 36-43% with a greater impact on HCN-N (75-85%) than NH 3 -N (9-37%) [27].Moreover, the distribution of nitrogen in biochars was also different in various reaction conditions [28,29].For example, KOH dosage on the surface morphology, internal structure, and electrochemical performance of biomass-based nitrogen-doped carbon materials had significant influence.Graphitic-N (54.1-68.2 at %) accounted for a large proportion in structural nitrogen.However, with the increase in the mass ratio of KOH/porous carbon, the relative content of graphitic-N declined [30].In the N-enriched pyrolysis of bamboo at the temperature of 400-800 • C with the reaction environment of NH 3 , pyrolysis temperature apparently decreased the relative content of pyridinic-N, while the relative content of pyrrolic-N, quaternary-N, and pyridone-N-oxide increased gradually [31].However, there is little information about the role of elemental nitrogen in improving the electrochemical properties for microalgae-based carbon materials.
In this study, pyrolysis and activation of microalgae residue have been conducted at 500-900 • C under nitrogen flow.The characteristics of microalgae-based N-doped carbon materials have been explored to reveal the N-type distribution and its effect on pseudocapacitance activity of carbon-based materials.Finally, the electrochemical performance of microalgae-based N-doped activated carbon materials (MNAC) has been evaluated in a three-electrode system and two-electrode system with electrolyte of 6 M KOH.The items tested were cyclic voltammetry (CV), single and multiple times of galvanostatic charge-discharge cycling (GCD), and electrochemical impedance spectroscopy (EIS).

Porosity of Microalgae-Based N-Doped Activated Carbon
The porosity of MNAC samples was examined through N 2 physisorption under the condition of 77 K liquid nitrogen.In Figure 1a,b, the N 2 adsorption isotherms of MNAC were isotherms of Type I.It indicated that MNAC were typical microporous materials [32].The adsorption and desorption isotherms had typical hysteresis loops (Type H4).In the N 2 isotherms, the quantity adsorbed of N 2 rose rapidly at low relative pressures (P/P 0 < 0.3).As the relative pressure gradually increased, the N 2 isotherms were almost platform, indicating that the pore size distribution of MNAC samples was dominated by micropores, which was also observed in Figure 1c,d.It is worth noting that the two samples, N-800-1 and C-800-1, both with an activating agent ratio of 1:1, exhibited larger hysteresis loops, which was attributed to the smaller proportion of KOH increasing the proportion of mesopores, and a higher proportion of KOH easily led to the collapse of pores.
KOH activation could effectively enlarge the surface areas and pore volumes of carbon materials [32].6KOH + 2C → 2K + 3H 2 + 2K 2 CO 3 [33] is a conventional mechanism of carbon activation by KOH.In this reaction, potassium compounds as chemical activators etched the carbon structure by the redox reactions and then created a network of holes [34,35].Small molecules from the decomposition of K 2 CO 3 also created micropores.The prepared metal K was effectively intercalating into the carbon lattice of the carbon matrix during the activation process [36].After washing off potassium ions and other potassium compounds with deionized water, the swollen carbon lattice would not be restored to its previous nonporous structure.Hence, a large surface area and pore volumes were created.In Figure 1c,d, the pore size distribution showed that the majority of pores were micropores (<2 nm), and the very few pores were mesopores (2-50 nm) and macropores (>50 nm).Meanwhile, Figure 1e,f presented that the micropore size distribution of the MNAC samples from microalgae Nanochloropsis and Chlorella all showed a peak at around 0.4 nm.All these results indicated that micropores were dominated in MNAC, which made a key contribution to the storage of charge in electrodes of EDLCs [37].Such a pore size distribution was more conducive to the storage of charge and the transport of ions in electrochemical reactions.This is because, under low charge density, micropores were the main contributors to capacitors [13].The micropores were mainly used for charge storage, trapping ions, and increasing capacitance, but they also impeded ion diffusion; the mesopores were responsible for ion transport and electron conduction, reducing the resistance to ion diffusion and providing a fast channel for ion diffusion [38].However, the pore size distribution had a great impact on the specific capacitance of these carbon materials [39], which was explained in detail in Section 3. The specific surface area (Sbet), total pore volume (Vt), micropore surface area (Smic), micropore pore volume (Vmic), and other parameters measured from N2 adsorption and desorption isotherms are shown in Table 1.It was clear that the Sbet and Vt of MNAC materials are much higher than those of biochar samples N-500 and C-500 in Table 1.Among these MNAC materials, the samples of N-900-2 and C-900-2 had the highest Sbet (3186.74m 2 /g and 2815.04 m 2 /g) and Vt (1.54 cm 3 /g and 1.29 cm 3 /g).In Figure S1 of the Supplementary Materials, it is clear that at, the same ratio of biochar to KOH, the Sbet of the MNAC rose with the increase in the activation temperature.When activation temperature was the The specific surface area (S bet ), total pore volume (V t ), micropore surface area (S mic ), micropore pore volume (V mic ), and other parameters measured from N 2 adsorption and desorption isotherms are shown in Table 1.It was clear that the S bet and V t of MNAC materials are much higher than those of biochar samples N-500 and C-500 in Table 1.Among these MNAC materials, the samples of N-900-2 and C-900-2 had the highest S bet (3186.74m 2 /g and 2815.04 m 2 /g) and V t (1.54 cm 3 /g and 1.29 cm 3 /g).In Figure S1 of the Supplementary Materials, it is clear that at, the same ratio of biochar to KOH, the S bet of the MNAC rose with the increase in the activation temperature.When activation temperature was the same, the specific surface areas firstly increased and then decreased with the ratio of biochar to KOH.With the increase in temperature and the ratio of biochar to KOH, the proportion of microporous areas gradually decreases.This indicated that part of the pore structure of carbon materials shifted from micropores to mesopores.When combined with the data from the subsequent electrochemical tests, there was more than a simple linear relationship between the C m and the S BET of these carbon materials.Other research had shown that the depth of the pores also determined the amount of charge accumulated on the inner wall of the pores [13], thus affecting the specific capacitance of carbon materials.When the size of the micropores matched the size of the electrolyte ions, it resulted in high transfer efficiency [38,40].Thus, by combining with the data in Table 1 and the results of electrochemical testing in Section 3.4, it was found that the two samples with the highest specific capacitance, N-700-2 and C-800-2, had a micropore volume percentage of 78%, and their average pore diameters D d were around 3.5 nm.This finding illustrated that, in order to achieve superior electrochemical properties, it was necessary to increase the specific surface area of the materials, apart from paying attention to factors such as the pore size and pore size distribution.

Morphology of Biochar and Microalgae-Based N-Doped Activated Carbon
Through the activation process, MNAC with high specific surface area and porous structure were obtained.To visualize biochar and MNAC, SEM images of some typical samples were obtained.The SEM of biochar (C-500 and N-500) and activated carbon (C-800-2 and N-800-2) are shown in Figure 2. In Figure 2a,b, at relatively low magnification, C-500 and N-500 had some rough formations similar to sponge structures, obvious cracks, and large pores.The pores of Figure 2b present a shape similar to the leaf veins.Compared to cylindrical pores, such shaped pores had the advantage of amplifying the specific surface area of the material and the contact area between the material and the electrolyte.Additionally, in Figure 2d,e, the samples C-800-2 and N-800-2 had a rough surface and irregular pore structures, indicating a high surface area.In the higher magnification images, as shown in Figure 2e,g, there were no visible pores on the surfaces of the biochar C-500 and N-500.However, compared to the biochar C-500 and N-500, the MNAC were etched by the alkaline activating agent KOH and presented densely packed pores with different pore sizes, especially at high magnification in Figure 2f,h.

Elemental Composition of Carbon Materials and Valence States of Nitrogen Atom
In Figure 3, The XPS survey spectra displayed elements O, N, and C with energy at around 533, 401, and 284.8 eV.The content of each element corresponding to each sample is listed in Table 2. Since nitrogen of microalgae was mainly concentrated in proteins, Chlorella with more protein content also presented more nitrogen content.In the XPS analysis, the surface nitrogen content retained by biochar (N-500 and C-500) was also high.By observing the change in nitrogen content of the materials, it could be seen that after the temperature increased, the content of nitrogen decreased significantly.This may be due to the fact that, during pyrolysis and activation processes, the higher the temperature, the more unstable nitrogen became, and detached from the carbon backbone in other forms (such as HCN and NH 3 ).For environmental purposes, no additional source of nitrogen was added, but rather nitrogen in the microalgae was self-doped.The nitrogen in the MNAC could still improve the wettability of the interface between electrodes and the electrolyte, in addition to increasing the pseudocapacitance.The electrochemical properties of MNAC were presumed to be affected by a combination of surface area, pore size distribution, nitrogen content, and nitrogen doping efficiency.In Table 1, the process of activation led to a decrease in nitrogen of the materials and an increase in the specific surface area of the materials.It was therefore important to find experimental conditions that maximize the contribution of both factors at the same time.

Elemental Composition of Carbon Materials and Valence States of Nitrogen Atom
In Figure 3, The XPS survey spectra displayed elements O, N, and C with energy at around 533, 401, and 284.8 eV.The content of each element corresponding to each sample is listed in Table 2. Since nitrogen of microalgae was mainly concentrated in proteins, Chlorella with more protein content also presented more nitrogen content.In the XPS analysis, the surface nitrogen content retained by biochar (N-500 and C-500) was also high.By observing the change in nitrogen content of the materials, it could be seen that after the temperature increased, the content of nitrogen decreased significantly.This may be due to the fact that, during pyrolysis and activation processes, the higher the temperature, the more unstable nitrogen became, and detached from the carbon backbone in other forms (such as HCN and NH3).For environmental purposes, no additional source of nitrogen was added, but rather nitrogen in the microalgae was self-doped.The nitrogen in the MNAC could still improve the wettability of the interface between electrodes and the electrolyte, in addition to increasing the pseudocapacitance.The electrochemical properties of MNAC were presumed to be affected by a combination of surface area, pore size distribution, nitrogen content, and nitrogen doping efficiency.In Table 1, the process of activation led to a decrease in nitrogen of the materials and an increase in the specific surface area of the materials.It was therefore important to find experimental conditions that maximize the contribution of both factors at the same time.The XPS spectrum was fitted to four or three peaks representing different valence states of elements.Figure 4 (Figures S4 and S5 of the Supplementary Materials) shows that the N-containing constituents of activated carbons were mainly quaternary-N, pyrrolic-N, pyridinic-N, and pyridine-N-oxide.The results showed the formation of rich nitrogencontaining functional groups on the carbon framework.The nitrogenous structure, especially negatively charged pyrrole-N and pyridine-N in carbon materials, provided more active sites for faradaic pseudocapacitor reactions, while quaternary-N promoted the transport of electrons in the carbon lattice [24].Pyrrole-N is more stable than pyridine-N, and its effect on oxygen reduction is also greater.In combination with the electrochemical performance of MNAC materials prepared at activation temperature of 800 • C, it could be concluded that the actual capacitance C m of the MNAC varied with the total content of pyrrolic-N and pyridinic-N in the MNAC materials.The reason may be due to the larger binding energy of pyrrolic-N and pyridinic-N with ions in the electrolyte, such as the potassium ions in the KOH electrolyte in this experiment [41].Even for a given surface area of electrodes, larger binding energy allowed a larger number of ions to be accommodated on the electrode surface, thus contributing to higher capacitance.Pyridine-N-oxide and quaternary-N are positively charged, facilitating the transfer of electrons through the carbon and improving capacitive performance under high current loads [42].As shown in Table 3, N-Q (quaternary-N) was more stable under high-temperature pyrolysis relative to N-5 (pyrrolic-N) and N-6 (pyridinic-N).Pyridine-N-oxide and quaternary-N also provided excellent capacitance retention, while the presence of quaternary-N could enhance the electron transfer and conductivity of carbon materials, resulting in enhanced capacitance performance [10].Cyclic voltammetry curves of the samples N-900-2 and C-900-2 with various scan rates are symmetrically quasi-rectangular in Figure 5a,b.In addition, it was observed that  Cyclic voltammetry curves of the samples N-900-2 and C-900-2 with various scan rates are symmetrically quasi-rectangular in Figure 5a,b.In addition, it was observed that the CV curves remained as quasi-rectangular at scan rates of 5 mV s −1 and 10 mV s −1 , which suggested the typical EDLC behavior [43].CV curves also presented a slight distortion, which reflected the combination of EDLC and pseudocapacitors related to nitrogen-containing functional groups.The introduction of nitrogen-containing functional groups on the surface of the material not only enhances the electrochemical activity of the electrode, but it also increases the hydrophilic polar sites to enhance the wettability of the electrolyte.CV curves for other samples were similar in shape to that of the samples C-900-2 and N-900-2.The shapes of the curves were closer to the rectangle after the activation temperature increased (Figures S2 and S3 of Supplementary Materials).As shown in Figure 5c,d, the specific capacitance (C p ) measurements were calculated under the condition of sweep speed of 100 mV s −1 , and it was found that when the activation temperature was 900 • C and the ratio of biochar to KOH was 1:2, the MNAC materials sourced from the two microalgae had the maximum value for C p , respectively.the surface of the material not only enhances the electrochemical activity of the electrode, but it also increases the hydrophilic polar sites to enhance the wettability of the electrolyte.CV curves for other samples were similar in shape to that of the samples C-900-2 and N-900-2.The shapes of the curves were closer to the rectangle after the activation temperature increased (Figures S2 and S3 of Supplementary Materials).As shown in Figure 5c,d, the specific capacitance (Cp) measurements were calculated under the condition of sweep speed of 100 mV s −1 , and it was found that when the activation temperature was 900 °C and the ratio of biochar to KOH was 1:2, the MNAC materials sourced from the two microalgae had the maximum value for Cp, respectively.Galvanostatic charge-discharge (GCD) cycling experiments provided the best representation of the real operation of capacitors, investigated the electrode performance, and demonstrated the characteristics of energy and power [14].The official specific capacitance, C m was often measured using the GCD cycling test, a test that was consistent with the actual charge-discharge of capacitors, while the specific capacitance C p obtained from integration of the CV curve was only used as a reference.In Figure 6, the GCD curves of the MNAC materials were approximated by an isosceles triangle with excellent symmetry at various current densities, showing reversibility and high charge-discharge efficiency.Comparatively, the curves of sample N-700-2 and sample C-700-4 presented a larger area of closed curves and longer time intervals of discharging, indicating the superior electrochemical activity and higher accessible capacitance.The curves in Figure 6 exhibited the process of charging first and then discharging.For accurate calculation, the discharge processes were chosen to calculate the specific capacitance in Table 4.In Figure 6c,d, the GCD curves of the electrodes were measured at different current densities from 0.5 to 10 A g −1 .The rate performance of samples was tested by calculation in Supplementary Materials Table S3.The capacitance retention of samples was mostly above 80% (Supplementary Materials Figure S6) when the current density was increased to 10 A g −1 .In combination with the results of XPS analysis, it was found that among the twenty samples tested for XPS, the two samples N-800-1 and C-700-4 with the highest total nitrogen content were also the samples with the highest specific capacitance C m of 403.30 and 432.33 F g −1 , respectively.This showed that there was a certain relationship between C m and the nitrogen content of materials.It could be concluded that in MNAC capacitors, nitrogen was successfully doped into the carbon skeleton and enhanced the generation of pseudocapacitance, resulting in capacitors with higher C m .
the actual charge-discharge of capacitors, while the specific capacitance Cp obtained from integration of the CV curve was only used as a reference.In Figure 6, the GCD curves of the MNAC materials were approximated by an isosceles triangle with excellent symmetry at various current densities, showing reversibility and high charge-discharge efficiency.Comparatively, the curves of sample N-700-2 and sample C-700-4 presented a larger area of closed curves and longer time intervals of discharging, indicating the superior electrochemical activity and higher accessible capacitance.The curves in Figure 6 exhibited the process of charging first and then discharging.For accurate calculation, the discharge processes were chosen to calculate the specific capacitance in Table 4.In Figure 6c,d, the GCD curves of the electrodes were measured at different current densities from 0.5 to 10 A g −1 .
The rate performance of samples was tested by calculation in Supplementary Materials Table S3.The capacitance retention of samples was mostly above 80% (Supplementary Materials Figure S6) when the current density was increased to 10 A g −1 .In combination with the results of XPS analysis, it was found that among the twenty samples tested for XPS, the two samples N-800-1 and C-700-4 with the highest total nitrogen content were also the samples with the highest specific capacitance Cm of 403.30 and 432.33 F g −1 , respectively.This showed that there was a certain relationship between Cm and the nitrogen content of materials.It could be concluded that in MNAC capacitors, nitrogen was successfully doped into the carbon skeleton and enhanced the generation of pseudocapacitance, resulting in capacitors with higher Cm.

Sample
N-700- Electrochemical impedance spectroscopy (EIS) was performed to analyze the kinetic behavior of electrochemical reaction of MNAC [44].The Nyquist plots of all MNAC electrodes are shown in Supplementary Materials Figure S7.All Nyquist plots were similar in shape, consisting of a small diameter semicircle in the high-frequency region and an oblique line in the low-frequency region.In the Nyquist plots line, the more the line in the high-frequency region was perpendicular to the real axis (X-axis), the closer the capacitor was to an ideal electric double-layer capacitor (EDLC).As shown in Figure 7, in the equivalent circuit for the impedance spectra of the electrodes, R s is the electrolytic solution resistance, C d is the contact capacitance, R ct is the charge-transfer resistance, and W is a Warburg diffusion element attributable to the diffusion of ions [45].The simulation results of the equivalent circuit elements from EIS data for all of the MNAC electrodes using ZView 3.5.0.10 software are shown in Table S4.It was well known that the semicircle in Nyquist plots corresponded to charge-transfer resistance (R ct ).In Table S4, it shows that N-700-4, N-800-2, N-900-2, C-800-2, and C-900-2 had lower R ct of 0.094, 0.083, 0.090, 0.142, and 0.179 Ω, respectively, facilitating faster charge transfer and easier access of electrolyte to MNAC electrodes.Combined with the data in Table 1, the lower R ct values of MNAC electrodes were mainly attributed to their higher S BET , abundant mesopores and micropores.In the middle frequency range, the lines represented the ions diffusion resistance (W) and approached 45 • (Warburg line), reflecting the process of ion transport/diffusion between the electrode/electrolyte [46].In Table S4, the higher values of W for MNAC electrodes (such as the sample C-900-4) indicated that the diffusion of ions in the electrode was significantly hindered [47].Smaller values of R sum facilitated faster charging and discharging of the electrodes at high current densities and increased the capacitance of MNAC [32,47].Electrochemical impedance spectroscopy (EIS) was performed to analyze the kinetic behavior of electrochemical reaction of MNAC [44].The Nyquist plots of all MNAC electrodes are shown in Supplementary Materials Figure S7.All Nyquist plots were similar in shape, consisting of a small diameter semicircle in the high-frequency region and an oblique line in the low-frequency region.In the Nyquist plots line, the more the line in the high-frequency region was perpendicular to the real axis (X-axis), the closer the capacitor was to an ideal electric double-layer capacitor (EDLC).As shown in Figure 7, in the equivalent circuit for the impedance spectra of the electrodes, Rs is the electrolytic solution resistance, Cd is the contact capacitance, Rct is the charge-transfer resistance, and W is a Warburg diffusion element attributable to the diffusion of ions [45].The simulation results of the equivalent circuit elements from EIS data for all of the MNAC electrodes using ZView 3.5.0.10 software are shown in Table S4.It was well known that the semicircle in Nyquist plots corresponded to charge-transfer resistance (Rct).In Table S4, it shows that N-700-4, N-800-2, N-900-2, C-800-2, and C-900-2 had lower Rct of 0.094, 0.083, 0.090, 0.142, and 0.179 Ω, respectively, facilitating faster charge transfer and easier access of electrolyte to MNAC electrodes.Combined with the data in Table 1, the lower Rct values of MNAC electrodes were mainly attributed to their higher SBET, abundant mesopores and micropores.In the middle frequency range, the lines represented the ions diffusion resistance (W) and approached 45° (Warburg line), reflecting the process of ion transport/diffusion between the electrode/electrolyte [46].In Table S4, the higher values of W for MNAC electrodes (such as the sample C-900-4) indicated that the diffusion of ions in the electrode was significantly hindered [47].Smaller values of Rsum facilitated faster charging and discharging of the electrodes at high current densities and increased the capacitance of MNAC [32,47].

Electrochemical Performance of the Materials in the Two-Electrode System
In the previous electrochemical evaluation, sample C-700-4 presented an outstanding electrochemical performance with a specific capacitance C m of 432.33 F g −1 and was therefore selected for testing the practical application of MNAC electrode materials.A symmetric supercapacitor based on C-700-4 was tested in a two-electrode system in 6 M KOH electrolyte.In Figure 8b, the GCD curves of the C-700-4 supercapacitor at current densities from 0.25 to 20 A g −1 are approximately isosceles triangular in shape, indicating ideal supercapacitor behavior and excellent electrochemical reversibility.Figure 8a presents the relationship between the current density and specific capacitance (C s ) of C-700-4, from which it can be seen that the specific capacitance decreases with the increase in the current density, and the specific capacitance of C-700-4 reaches as high as 286 F g −1 at a current density of 0.5 A g −1 , and its specific capacitance is 132 F g −1 when its current density is increased from 0.5 to 20 A g −1 , and the final capacitance retention is 46.2%.
was conducted at a current density of 2 A g −1 , between 0 and 1 V for 5000 cycles.In Figure 8c, the capacitance retention for the sample C-700-4 was highly up to 94.1% over 5000 cycles.It confirmed that the sample C-700-4 had an excellent and long-term stability as an electrode for supercapacitor.In Figure 8d, the energy density (E) of C-700-4 demonstrates a high energy density of 42.6 Wh kg −1 at the power density (P) of 250 W kg −1 , while it retained 18.3 Wh kg −1 at elevated power density of 2000 W kg −1 .In order to prove the practical outstanding working performance of this work, these supercapacitor materials prepared by other algae-based carbon materials were compared in the Ragone plot [13,[48][49][50].It was shown that the supercapacitor C-700-4 had the highest energy density and power density among the other algae-based carbon materials in recent reports.To test the cycling stability of C-700-4 electrode, a galvanostatic charge-discharge test was conducted at a current density of 2 A g −1 , between 0 and 1 V for 5000 cycles.In Figure 8c, the capacitance retention for the sample C-700-4 was highly up to 94.1% over 5000 cycles.It confirmed that the sample C-700-4 had an excellent and long-term stability as an electrode for supercapacitor.In Figure 8d, the energy density (E) of C-700-4 demonstrates a high energy density of 42.6 Wh kg −1 at the power density (P) of 250 W kg −1 , while it retained 18.3 Wh kg −1 at elevated power density of 2000 W kg −1 .In order to prove the practical outstanding working performance of this work, these supercapacitor materials prepared by other algae-based carbon materials were compared in the Ragone plot [13,[48][49][50].It was shown that the supercapacitor C-700-4 had the highest energy density and power density among the other algae-based carbon materials in recent reports.

Microalgae and Lipid Extraction
The powder microalgae samples (Nanochloropsis and Chlorella) used in this study were collected from Qingdao, China, with the particle size of 0.25 µm.Before each experiment, both microalgae samples were dried at 105 • C for 24 h.The extraction of lipids was conducted via organic solvent extraction method.The used organic solvents were CH 2 Cl 2 (analytical reagent, >99%) and CH 3 OH (analytical reagent, >99%), which were mixed into 300 mL of organic solution according to the volume ratio of 1:2.About 15 g of microalgae powder was mixed with the organic solvent and extracted in an ultrasonic machine for 120 min.The temperature of the extraction system was maintained at 20 • C through a water bath.After extraction, the resulting mixture was centrifuged for 12 min at 6500 rpm to separate solid product from organic solvent, and the solid product was washed with deionized water and centrifuged several times to remove any residual organic solvent.Finally, the solid product was dried at 80 • C in an electrothermal blowing dry box to obtain dried microalgae residue.About 10.5 g of microalgae residue was obtained after lipid extraction of 15 g of microalgae powder.The yield was approximately 70%.The composition of microalgae Nanochloropsis and Chlorella and their profiling of amino acids are shown in Tables S1 and S2 of the Supplementary Materials.The lipid content of microalgae was determined by the method of organic solvent extraction.The organic solvents were the previously mentioned methanol and dichloromethane.The mass balance method was used to calculate carbohydrate content.The premise is that the sum content of protein, lipid, water, and ash in microalgae was 100%.Microalgae were completely burned in a muffle furnace to determine their ash content.The elementary analysis (C, H, S, and N) of microalgae Nanochloropsis and Chlorella was performed by an elemental analyzer (Thermo Scientific FlashSmart, Stoney Creek, NC, USA).The amino acid composition of microalgae was determined by an amino acid analyzer (MembraPure A300, Berlin, Germany).

Pyrolysis of Microalgae and Activation of Biochar
A scheme of the pyrolysis and activation setup is shown in Figure 9.The microalgae residue after extraction of lipids was put into a cylindrical graphite crucible (50 × 40 × 50 mm) with a lid.In order to obtain biochar, the microalgae residue was firstly pyrolyzed for 1 h in a furnace at 500 • C under N 2 flow.The flow rate of N 2 flow was 400 mL/min.The heating rate of the furnace was 5 • C/min.After pyrolysis with 10.5 g of microalgae residue, about 3.2 g of biochar could be obtained, indicating that the yield of biochar was approximately 30%.Then, the obtained biochar was mixed with the activating agent potassium hydroxide (KOH) in ratios of 1:1, 1:2, and 1:4 in the form of powder.The mixture was put into a crucible of the same size.Finally, the crucible was put back into the furnace and activated at 700 • C, 800 • C, or 900 • C for 1 h.Both the nitrogen flow rate (400 mL/min) and the heating rate (5 • C/min) were the same as the pyrolysis process.The obtained activated carbons were mixed with excess of 1 mol/L HCl, stirred at 25 • C for 12 h to make the acid and base react completely, and rinsed with distilled deionized water until the pH reached neutrality.Afterwards, it was dried at 80 • C for 12 h in an electrothermal blowing dry box.Finally, the resulting solid was microalgae-based N-doped activated carbon material (MNAC).After activation with 3.2 g of biochar, about 1.5 g of MNAC could be obtained, indicating that the yield of MNAC was approximately 47%.

Characterization of Biochar and Microalgae-Based N-Doped Activated Carbon
Under the condition of 77 K liquid nitrogen, the samples were tested for nitrogen adsorption and desorption with an N2 adsorption-desorption analyzer (Micromeritics ASAP 2460, Norcross, GA, USA).The micropore volume and micropore surface areas were determined by the t-plot method.The total specific surface areas of the materials were obtained by the BET method.At a relative pressure (P/P0) of 0.95, the adsorption amount of nitrogen is used to determine the total pore volume.In order to study the elemental composition and relative content of the surface of the materials and the valence state of nitrogen atoms, X-ray photoelectron spectroscopy (XPS) (Thermo Scientific K-Alpha, Stoney Creek, NC, USA) analysis was carried out.An electron microscope scanning electron microscopy (SEM) (TESCAN MIRA LMS, Brno, Czech Republic) was used to observe the morphology of the materials with an acceleration voltage of 3 kV.

Electrochemical Measurements of Microalgae-Based N-Doped Activated Carbon
The electrochemical performance of MNAC prepared by the pyrolysis and activation

2. 4 .
Electrochemical Performance of Microalgae-Based N-Doped Activated Carbon 2.4.1.Electrochemical Performance of the Materials in the Three-Electrode System

Table 4 .
Specific capacitance of microalgae-based N-doped activated carbon at 1 A g −1 .

Figure 8 .
Figure 8. Electrochemical performance of supercapacitor based on C-700-4 tested in two-electrode system: (a) Specific capacitance from 0.25 to 20 A g −1 ; (b) GCD curves at various current densities; (c) The cycling performance at 2 A g −1 ; (d) Ragone plot.

Molecules 2023 ,
28, x FOR PEER REVIEW 15 of 19 from pyrolysis and activation of microalgae Chlorella with activation temperature of 900 °C and the ratio of biochar/KOH of 1:1.

Figure 9 .
Figure 9. Scheme of pyrolysis and activation setup.

Figure 9 .
Figure 9. Scheme of pyrolysis and activation setup.The MNAC samples at different experimental conditions were denoted as N-T-p or C-T-p.The first letter N represented the microalgae Nanochloropsis, and the letter C represented microalgae Chlorella.The second number T represented the activated temperature, and the third number p represented the different ratio of KOH.For example, the named sample of N-700-2 means the activated carbon sourced from pyrolysis and activation of microalgae Nanochloropsis with activation temperature of 700 • C and the ratio of biochar/KOH of 1:2, while the named sample of C-900-1 means the activated carbon sourced from pyrolysis and activation of microalgae Chlorella with activation temperature of 900 • C and the ratio of biochar/KOH of 1:1.

Table 1 .
Specific surface area and pore structure of biochar and microalgae-based N-doped activated carbon.
a Total pore volume was determined by less than 40.3 nm diameter.b Average pore diameter was calculated by BJH desorption.c Micropore area was calculated by t-Plot method.d Micropore volume was calculated by t-Plot method.

Table 2 .
Elemental content of carbon materials measured by XPS.

Table 3 .
The content of different forms of nitrogen in carbon materials (at %).

Table 3 .
The content of different forms of nitrogen in carbon materials (at %).
2.4.Electrochemical Performance of Microalgae-Based N-Doped Activated Carbon 2.4.1.Electrochemical Performance of the Materials in the Three-Electrode System