Wood and Black Liquor-Based N-Doped Activated Carbon for Energy Application

: Fuel cells, batteries and supercapacitors are critical to meet the rising global demand for clean, sustainable energy. Biomass-derived activated carbon can be obtained with tailored properties to fulﬁl the extensive need for low-cost, high-performance, catalyst and electrode materials. To investigate the possibility of nanoporous nitrogen-doped carbon materials as catalysts in fuel cells and electrodes in lithium-ion batteries, biomass precursors were thermochemically activated with NaOH at 800 ◦ C, nitrogen was introduced using dicyandiamide and doping was performed at 800 ◦ C. The chemical composition, porous structure, texture and electrochemical properties of the obtained materials change depending on the biomass precursor used. It has been found that the most promising precursor of the obtained materials is wood char, both as an oxygen reduction catalyst in fuel cells, which shows better properties than the commercial 20% Pt/C catalyst, and as an anode material in Li-ion batteries. However, catalysts based on black liquor and hybrid material have comparable properties with commercial 20% Pt/C catalyst and can be considered as a cheaper alternative.


Introduction
In terms of energy storage and production, plant biomass takes second place in the world right after fossil-based raw materials and is considered a renewable and affordable alternative. However, the use of renewable resources for electricity production is still insufficient to meet the ever-growing energy demand. Therefore, the importance and necessity of biomass-based energy sources have been emphasized in documents devoted to the world economy and energy forums. Mobile, renewable energy sources are essential for both portable electronics (mobile phones and laptops, etc.) and transportation.
The research and development of fuel cells, supercapacitors, Li- [1], Na- [2] and redox flow battery [3] technologies and their improvement are widely studied around the world. For fuel cells, one of the main problems is high cost, with the platinum catalyst being the main source of expenditure.
One of the most promising approaches to wood processing is pyrolysis, which allows obtaining carbon materials and liquid organic products from biomass [4][5][6]. In the processing of biomass, catalysts are increasingly used to accelerate chemical transformations, increase the yield of the target product and reduce harmful emissions. Although bioenergy in the modern sense began to develop relatively recently, a traditional approach to obtain biomass-based carbon materials with a developed porous structure, such as sorbents and activated carbons, has been developed and evolved over many years.

Materials and Methods
To synthesise activated carbon, two precursors were used: alder wood char (Ltd "Fille", Latvia) and black liquor (Horizon Pulp & Paper Ltd, Kehra, Estonia). Black liquor is a byproduct of the kraft pulping process, which is an aqueous solution (45% dry content) of lignin residues, hemicellulose and inorganic chemicals. Before activation, wood char was refined in a planetary mill Pulverisette 5/4 (Fritsch, Germany), and the resulting powder was mixed with NaOH, activator to precursor ratio K = 3 ( NaOH:precursor-3:1) and treated at activation temperature 800 • C in an argon atmosphere. Activated carbon based on black liquor was obtained using activator ratio K = 2 and activation temperature 800 • C in an argon atmosphere. To obtain hybrid material, wood char and black liquor were first mixed in a mass ratio of 1 to 2, and then activated using activator ratio K = 2.5 and activation temperature 800 • C in an argon atmosphere.
Nitrogen was introduced into activated samples using dicyandiamide (DCDA) solution in dimethylformamide (DMF) with mass ratio carbon material:DCDA-1:20. The solvent was then removed in a rotary evaporator. Doping was performed at 800 • C for 1 h in an argon atmosphere.
Specific surface area (m 2 g −1 ), total, micro-and mesopore volume (cm 3 g −1 ), and average pore width (nm) were determined from nitrogen adsorption isotherms at 77 K using Nova 4200e (Quantachrome, Boynton Beach, FL, USA) instrument. The structure was characterised using X-ray diffraction analysis XRD (PANalytical X'pert PRO) and Raman spectroscopy (TriVista CRS Confocal Raman Microscope by Spectroscopy & Imaging GmbH). The morphology of the prepared activated carbon was characterized using an SEM/TEM (Helios 5 UX, Thermo Fisher Scientific, Waltham, MA, USA).
Carbon, nitrogen, hydrogen, sulphur and oxygen content was evaluated using the Vario Macro CHNSO device and using X-ray photoelectron spectroscopy (XPS) (ESCALAB Xi, ThermoFisher).
To evaluate the oxygen reduction reaction on the catalyst surface, rotating disk electrode measurements (RDE) were used. Electrochemical measurements were carried out by employing rotating disc electrode setup from Origalys and Gamry potentiostat Reference 600+. The typical 5-neck cell was used, saturated calomel electrode (SCE) served as a reference electrode and for auxiliary electrode, graphite rod was used. Glassy carbon (GC) electrodes with a diameter of 5 mm were used as a substrate material. The catalyst ink concentration was 4 mg mL −1 and the ink also consisted of 4 µL of ionomer aQAPS-S14 (2%) from Hephas Energy per 1 mg of material. The electrodes were prepared by drop coating of 20 µL of the ink to the electrode, and the final loading of the catalyst material on the electrode was 0.4 mg cm -2 . Measurements were performed in 0.1 M KOH solution at room temperature (23 ± 1 • C) in a three-electrode cell by using Pt foil as a counter and saturated calomel electrode (SCE) as a reference electrode. The solution was saturated with O 2 (6.0) to study ORR and for measuring background, the solution was saturated with N 2 (5.0). A continuous flow of gases was maintained over the solution during the measurement. The software used for controlling the experiments was Nova 2.1.2 (Metrohm Autolab P.V., Utrecht, The Netherlands) and the potential was applied with a potentiostat/galvanostat Autolab PGSTAT 128N (Metrohm Autolab P.V., The Netherlands). The linear sweep voltammetry (LSV) curves were recorded by varying the rotation rate from 400 rpm to 4400 rpm (400, 800, 1200, 1600, 1900, 3600, 4400).
Electrochemical performance of obtained Li-ion battery anode material was tested using potentiostat Voltalab PGZ-301 and Battery Test Station BioLogic VMP3. Electrochemical measurements were carried out using Swagelok type two electrode cell with a lithium foil (thickness 0.38 mm, purity 99.9%, Sigma Aldrich, St. Louis, MO, USA) as a counter and reference electrode (assembled in an Ar-filled dry glovebox where both moisture and oxygen content were less than 1 ppm.) at room temperature. We used 1 M solution of LiPF 6 in ethyl carbonate (EC)/dimethyl carbonate (DMC) (1:1) as an electrolyte and Celgard glass fibre as a separator. In order to use Swagelok type electrochemical cell, thin layer of electrode ink (10 mL DMF, 0.1 g polyvinylidene difluoride (PVDF) and 0.5 g activated carbon) was applied to a flat stainless-steel substrate (discs of 1 mm thickness and 10 mm diameter) deposited sample mass was~2 mg. After coating, the electrodes were dried in the oven at 160 • C for 2 h. To examine electrochemical behaviour's cyclic voltammetry, galvanostatic charge-discharge and rate capability measurements were performed.

Characterization of the Materials
This research is devoted to the preparation and study of the properties of nanoporous carbon materials based on three types of precursors with different chemical composition and structure. Thermochemical activation was performed at 800 • C using NaOH to wood char (WC) in ratio 1:3, black liquor (BL) 1:2 and mixture (in a ratio of 1:2) of wood char and black liquor 1:2.5. After activation, the samples were demineralized with 10% hydrochloric acid and rinsed with demineralized water until neutral pH [22].
Wood, being a lignocellulosic biomass, consists of hemicellulose, cellulose and lignin and small amounts of minerals. On the other hand, due to the splitting of the bonds of the wood components in the kraft-pulping process, black liquor generally consists of lignin and a small part of hemicelluloses dissolved in the aqueous solution of NaOH and sodium sulphide (Na 2 S) [30]. In our case black liquor is an aqueous solution of lignin residues, hemicellulose, and inorganic chemicals used in the process of kraft-pulping (11.2% NaOH, 10.9% Na 2 CO 3 and 21.9% NaHCO 3 ).
To determine the chemical composition, elemental analysis was performed, and the results are shown in Table 1. After the activation of raw material under the influence of temperature and activator, carbon frameworks with different surface functional groups are formed. Activated wood char (AWC) consists mainly of carbon (96.18%) and oxygen (2.41%), whereas the activated black liquor (ABL) contains, in addition to the abovementioned carbon (70.07%), a significant amount of sulphur (15.94%). Activated carbon based on wood char and black liquor (AWC2BL) is a hybrid material of two raw materials and its chemical composition is in-between AWC and ABL. To improve the surface properties of the carbon materials and introduce new active functional groups, the samples were doped with nitrogen using DCDA. The nitrogen contents after doping are similar for all samples and are within the range from 4.0% to 4.7%. Judging by these results (Table 1) during N-doping, not only oxygen, but part of the sulphur in the ABL sample, are replaced by nitrogen. One of the most important properties of carbon materials is the pore size distribution, which determines the surface area and mass transfer of chemicals and ionic groups. The thermochemical activation of the lignocellulosic biomass is widely studied for the highly microporous activated carbons [31][32][33][34][35]; however, to improve electrochemical performance, mesopores are also required [36]. The porous structures of the obtained carbon materials pre-and post-N-doping were studied using nitrogen sorption at 77 K: the isotherms are shown in Figure 1a, and the pore size distributions calculated according to the quenched  Table 2. As can be seen, all of the activated samples have a specific surface area of more than 2000 m 2 g −1 , proving that activation was highly efficient. However, the structure and pore size distribution of the samples under study are related to the raw material's chemical composition and structure. In Figure 1a, the shape of the AWC-N isotherm is characteristic for microporous sorbents, but in the case of ABL-N adsorption-desorption the isotherm forms a hysteresis, which points to the significant input of the mesoporous structure into the porous structure. thermochemical activation of the lignocellulosic biomass is widely studied for the highly microporous activated carbons [31][32][33][34][35]; however, to improve electrochemical performance, mesopores are also required [36]. The porous structures of the obtained carbon materials pre-and post-N-doping were studied using nitrogen sorption at 77 K: the isotherms are shown in Figure 1a, and the pore size distributions calculated according to the quenched solid density functional theory (QSDFT) are shown in Figure 1b. The surface areas were calculated according to the Brunauer-Emmet-Teller (BET) theory and are shown in Table 2. As can be seen, all of the activated samples have a specific surface area of more than 2000 m 2 g −1 , proving that activation was highly efficient. However, the structure and pore size distribution of the samples under study are related to the raw material's chemical composition and structure. In Figure 1a, the shape of the AWC-N isotherm is characteristic for microporous sorbents, but in the case of ABL-N adsorption-desorption the isotherm forms a hysteresis, which points to the significant input of the mesoporous structure into the porous structure.  The total micro-and mesopore volume, as well as the average pore sizes are shown in Table 2: the microspore volumes for all samples are similar and with the increase in total pore volume, the mesopore volume increases and reaches a maximum in the case of  Table 2. Porous structure of activated carbon based on wood char (AWC), activated carbon based on wood char and black liquor (AWC2BL) and activated carbon based on black liquor (ABL) pre-and post-N-doping.

Material
Specific Surface Area (BET), m 2 g −1 Total Pore Volume, cm 3  The total micro-and mesopore volume, as well as the average pore sizes are shown in Table 2: the microspore volumes for all samples are similar and with the increase in total pore volume, the mesopore volume increases and reaches a maximum in the case of ABL-N 2.06 m 3 g −1 . Consequently, the average pore size is also the highest in this case-4.66 nm. Mesopore size changes in the range 2-4.5 nm for AWC-N and up to 2-10 nm for ABL-N, accompanied by the mesopores' volume increase. As expected, the porous structure of the AWC2BL-N hybrid material has a higher mesopore volume than AWC-N, and lower compared to ABL-N, which allows to adjust the properties of the activated carbon depending on the goal. The microstructure of the N-doped activated carbons was studied using SEM and is shown in Figure 2a,c,e. AWC-N and AWC2BL-N particle surface displayed a wavy, wrinkled layered carbon morphology. In contrast, ABL-N particles are rough layered agglomerates. The TEM image of AWC2BL-N (Figure 2d) shows a dense particle, coated with several graphenelike layers and the ABL-N ( Figure 2f) particle is dense and layered with a less dense structure at the outer edges, where the AWC-N ( Figure 2b) displayed transparent wavy layers with a graphenelike shell and denser multilayer core.
Sustainability 2021, 13, x FOR PEER REVIEW 7 of 17 (ID/IG) is estimated to indicate the degree of structural disorder with respect to a perfect graphitic structure [47]. In the present study, the ratios of AWC-N, AWC2BL-N and ABL-N reached 0.99, 0.88 and 0.87, respectively. The relative intensity ratio of the D and G bands (ID/IG) reflects the defect density on the surface of carbons under study, that is, the smaller the ID/IG ratio, the higher the degree of ordering in the carbon material. The ID/IG value of the AWC-N was smaller compared with that of AWC2BL-N and ABL-N due to a higher level of structural defects, which is in good agreement with XRD study. Compared to the AWC-N AWC2BL-N and ABL-N ID/IG decreases, which indicate the higher degree of ordering, there were fewer defects and the presence of fewer functional groups on the surface of the material. This makes AWC-N a more promising material from the standpoint of electrochemical reactions. The surface elemental composition was studied using XPS. From the overview spectra (Figure 3a), it is possible to distinguish between carbon, oxygen and nitrogen peaks and their relative contents were calculated and the obtained results are comparable with the literature data [37,38]. Although sulphur is detected in the ABL-N sample by elemental analysis, it was not found on the surface of the sample using XPS (164, 228 eV) [39], indicating that sulphur is deeply embedded into the carbon structure. Oxygen reduction reactions (ORR) activity can be improved by doping with nitrogen and sulphur, which change the local charge density and spin density of carbon material [40]. As already reported in the literature, the monolayer graphene sheets will give rise to a single and sharp 2D peak located below 2700 cm −1 , while the bilayer graphene sheets have a broader 2D peak and graphene sheets with more than five layers have a broad 2D peak with the positions shifted [48]. Therefore, the Raman spectrum indicates that AWC-N and AWC2BL-N samples have areas with more than five graphene layers, while ABL-N has areas with fewer than five graphene layers. Figure 4b displays the XRD patterns of N-doped activated carbon samples-all of them exhibit peaks at 26.5° and 43°, which correspond to C (002) and C (100). In the X-ray diffractogram of graphite, the (002) peak is attributed to the carbon aromatic ring orientation in three-dimensional arrangement, but the (100) peak is attributed to the aromatic AC samples correspond to the presence of C atoms as graphitelike sp2 C-C bonds, especially in the case of ABL-N.
The XPS survey spectra illustrate (Figure 3a) that ABL-N has significantly less oxygen than AWC-N and AWCBL-N, and after deconvolution of the O1s peak it can be observed that the way it binds is different as well (Figure 3c).
The crystallite structure and characteristics of the activated carbons (AWC-N, AWC2BL-N and ABL-N) were investigated using Raman spectrometry and XRD analyses. The three Raman spectra shown in Figure 4a are both dominated by two intense bands, which are attributed to vibrational modes involving sp 2 -bonded carbon atoms belonging to disordered microcrystalline domains. The origin of the band at~1350 cm −1 (band D, or D1 in the specialized literature) has been debated for a long time; it is usually assigned to a lattice breathing mode with A1g symmetry, which is forbidden in ideal graphitic crystals, but becomes Raman active in the presence of structural disorder. For crystalline graphite, the G mode has E2g symmetry and gives a band at about 1580 cm -1 and is commonly assigned to the bond stretching of pairs of sp 2 carbon atoms (either in aromatic rings or chains). Though the observed Raman shift of the D band varies with the laser wavelength, the appearance of the D band is related to the structural disorder at defect sites [45]. The area ratio of the D band to the G band is correlated with the disordered structure and the ratio will increase with increasing disorder [46]. The integral ratio (I D /I G ) is estimated to indicate the degree of structural disorder with respect to a perfect graphitic structure [47]. In the present study, the ratios of AWC-N, AWC2BL-N and ABL-N reached 0.99, 0.88 and 0.87, respectively. The relative intensity ratio of the D and G bands (ID/IG) reflects the defect density on the surface of carbons under study, that is, the smaller the ID/IG ratio, the higher the degree of ordering in the carbon material. The ID/IG value of the AWC-N was smaller compared with that of AWC2BL-N and ABL-N due to a higher level of structural defects, which is in good agreement with XRD study. Compared to the AWC-N AWC2BL-N and ABL-N ID/IG decreases, which indicate the higher degree of ordering, there were fewer defects and the presence of fewer functional groups on the surface of the material. This makes AWC-N a more promising material from the standpoint of electrochemical reactions.
As already reported in the literature, the monolayer graphene sheets will give rise to a single and sharp 2D peak located below 2700 cm −1 , while the bilayer graphene sheets have a broader 2D peak and graphene sheets with more than five layers have a broad 2D peak with the positions shifted [48]. Therefore, the Raman spectrum indicates that AWC-N and AWC2BL-N samples have areas with more than five graphene layers, while ABL-N has areas with fewer than five graphene layers. Figure 4b displays the XRD patterns of N-doped activated carbon samples-all of them exhibit peaks at 26.5 • and 43 • , which correspond to C (002) and C (100). In the X-ray diffractogram of graphite, the (002) peak is attributed to the carbon aromatic ring orientation in three-dimensional arrangement, but the (100) peak is attributed to the aromatic ring condensation degree [49]. AWC2BL has broad and barely visible (002) peak, but in case of the AWC-N and ABL-N it is narrower, which indicates a more ordered orientation of aromatic layers. The XRD pattern of the AWC-N show a broad and barely visible (100) peak while AWC2BL and ABL have narrow (100) peaks which indicate the size of the aromatic slice [50]. The peak at around 64 • belongs to the (103) crystal plane reflections assigned to graphite [51]. These are characteristics of a typical graphitic structure and are associated with the crystallite dimensions, becoming more prominent with the treatment of carbonaceous materials at higher temperatures [52]. In case of the AWC2BL-N and ABL-N Fe, peaks were observed at 37.5 • (311) and 62.5 • (440), which could be related to magnetite (Fe 3 O 4 ) in the activated carbon structure [53,54]. Iron in the structure of the carbon material may appear in the process of kraft-pulping, e.g., from the walls of the digester or other similar industrial equipment. It should be noted that while activated carbon is amorphous, crystallites of various sizes and orientations are a part of the amorphous carbon matrix. ring condensation degree [49]. AWC2BL has broad and barely visible (002) peak, but in case of the AWC-N and ABL-N it is narrower, which indicates a more ordered orientation of aromatic layers. The XRD pattern of the AWC-N show a broad and barely visible (100) peak while AWC2BL and ABL have narrow (100) peaks which indicate the size of the aromatic slice [50]. The peak at around 64° belongs to the (103) crystal plane reflections assigned to graphite [51]. These are characteristics of a typical graphitic structure and are associated with the crystallite dimensions, becoming more prominent with the treatment of carbonaceous materials at higher temperatures [52]. In case of the AWC2BL-N and ABL-N Fe, peaks were observed at 37.5° (311) and 62.5° (440), which could be related to magnetite (Fe3O4) in the activated carbon structure [53,54]. Iron in the structure of the carbon material may appear in the process of kraft-pulping, e.g., from the walls of the digester or other similar industrial equipment. It should be noted that while activated carbon is amorphous, crystallites of various sizes and orientations are a part of the amorphous carbon matrix.

Oxygen Reduction Reaction (ORR) on Catalysts in Alkaline Media
The rotating disc electrode technique (RDE) is widely applied to study the oxygen reduction mechanisms at the cathode for fuel cells [55]. Figure 5a illustrates ORR polarization curves of the obtained carbon-based electrodes comparing to commercial 20% Pt/Celectrode. To evaluate the ORR activity of a catalyst material, the onset potential is an important criterion, which for AWC-N, AWC2BL-N and ABL-N is 0.09 V vs. SCE (saturated calomel electrode). Despite increasing the rotation rate, the onset potential remained the same, indicating at least short-term stability of the catalyst. AWC-N shows slightly more positive onset and half-wave potentials compared to AWC2BL-N and ABL-N, and all samples have a slight negative shift of the onset potential in comparison to 20% Pt/C. At the same time, for all samples their diffusion limited current densities reach similar values, and AWC-N and ABL-N reaches even lower value in comparison to the commercial platinum catalyst.
The number of transferred electrons per O2 molecule (n) was calculated at various potentials using Koutecky-Levich (K-L) equation shown below from the ORR data [56]

Oxygen Reduction Reaction (ORR) on Catalysts in Alkaline Media
The rotating disc electrode technique (RDE) is widely applied to study the oxygen reduction mechanisms at the cathode for fuel cells [55]. Figure 5a illustrates ORR polarization curves of the obtained carbon-based electrodes comparing to commercial 20% Pt/C-electrode. To evaluate the ORR activity of a catalyst material, the onset potential is an important criterion, which for AWC-N, AWC2BL-N and ABL-N is 0.09 V vs. SCE (saturated calomel electrode). Despite increasing the rotation rate, the onset potential remained the same, indicating at least short-term stability of the catalyst. AWC-N shows slightly more positive onset and half-wave potentials compared to AWC2BL-N and ABL-N, and all samples have a slight negative shift of the onset potential in comparison to 20% Pt/C. At the same time, for all samples their diffusion limited current densities reach similar values, and AWC-N and ABL-N reaches even lower value in comparison to the commercial platinum catalyst.
The number of transferred electrons per O 2 molecule (n) was calculated at various potentials using Koutecky-Levich (K-L) equation shown below from the ORR data [56] 1 where, j is the ORR current density measured experimentally, jk and jd are the kinetic and diffusion limited current densities, respectively, F is the Faraday constant (96,485 C mol −1 ), k is the heterogeneous rate constant for O2 reduction, ω is the electrode rotation rate (rad s −1 [57]), DO 2 is the diffusion coefficient of oxygen (1.9 × 10 −5 cm 2 s −1 [58]), C b o 2 is  [58]) in 0.1 M KOH, and ν is the kinematic viscosity of the solution (0.01 cm 2 s −1 ). In Figure 5b AWC-N material showed a value of n close to 4 at all studied potentials, meaning that this catalyst produces little to no hydrogen peroxide and is highly active for ORR. It indicates that oxygen is directly reduced to water, but it is impossible to determine via the K-L analysis if this is a direct 4electron reduction of oxygen or reduction via the HO − 2 intermediate (2 e -+ 2 ereduction) pathway. For ABL-N and AWC2BL-N based electrode n value is around 3.5 in the potential range studied, this indicates that a rather mixed reduction process takes place.
where, j is the ORR current density measured experimentally, jk and jd are the kinetic and diffusion limited current densities, respectively, F is the Faraday constant (96,485 C mol −1 ), k is the heterogeneous rate constant for O2 reduction, ω is the electrode rotation rate (rad s −1 [57]), O2 is the diffusion coefficient of oxygen (1.9 × 10 −5 cm 2 s −1 [58]), is the oxygen concentration (1.2 × 10 −6 mol cm −3 [58]) in 0.1 M KOH, and ν is the kinematic viscosity of the solution (0.01 cm 2 s −1 ).
In Figure 5b AWC-N material showed a value of n close to 4 at all studied potentials, meaning that this catalyst produces little to no hydrogen peroxide and is highly active for ORR. It indicates that oxygen is directly reduced to water, but it is impossible to determine via the K-L analysis if this is a direct 4 -electron reduction of oxygen or reduction via the HOintermediate (2 e -+ 2 ereduction) pathway. For ABL-N and AWC2BL-N based electrode n value is around 3.5 in the potential range studied, this indicates that a rather mixed reduction process takes place.

Anode Material in Li ion Batteries
Carbon materials are currently the most popular commercialized anode material for Li-ion batteries because of their relative high capacity, long cycle life, low cost, and ease of processing. However, the limited theoretical capacity (330 mAh g −1 [59]) makes it difficult to use in the application of Li-ion batteries with higher energy density and fast chargeability.
N-doped activated carbons (AWC-N, AWC2BL-N and ABL-N) were tested as anode materials for lithium-ion batteries. Cyclic voltammogram tests were performed on a Battery Test Station BioLogic VMP3 electrochemical workstation within a voltage window of 0.05-3.0 V at a scan rate of 1 mVs −1 to analyse the charging/discharging mechanisms of electrodes for Li-ion batteries. The peaks occurring during these measurements should represent phase transformations, redox reactions, lithiation and delithiation at different potentials [60]. Cyclic voltammogram profiles of AWC-N, AWC2BL-N and ABL-N are

Anode Material in Li Ion Batteries
Carbon materials are currently the most popular commercialized anode material for Li-ion batteries because of their relative high capacity, long cycle life, low cost, and ease of processing. However, the limited theoretical capacity (330 mAh g −1 [59]) makes it difficult to use in the application of Li-ion batteries with higher energy density and fast chargeability.
N-doped activated carbons (AWC-N, AWC2BL-N and ABL-N) were tested as anode materials for lithium-ion batteries. Cyclic voltammogram tests were performed on a Battery Test Station BioLogic VMP3 electrochemical workstation within a voltage window of 0.05-3.0 V at a scan rate of 1 mVs −1 to analyse the charging/discharging mechanisms of electrodes for Li-ion batteries. The peaks occurring during these measurements should represent phase transformations, redox reactions, lithiation and delithiation at different potentials [60]. Cyclic voltammogram profiles of AWC-N, AWC2BL-N and ABL-N are shown in Figure 6a,c,e. In the first cycle, lithiation peaks can be clearly observed at 0.2 V, originating from the lithiation of carbon species [61] and 0.72 V potential for AWC-N and 0.75 V for AWC2BL-N, and the wide peak at 0.47 V for ABL-N, which can be attributed to the formation of the solid electrolyte interface (SEI) film on the surface of the anode materials and the reactions between lithium ions and the functional groups on the surface of the materials [62,63]. Further CV cycling profiles showed good electrochemical reaction reversibility, which indicates that this new battery is rechargeable [64].
originating from the lithiation of carbon species [61] and 0.72 V potential for AWC-N and 0.75 V for AWC2BL-N, and the wide peak at 0.47 V for ABL-N, which can be attributed to the formation of the solid electrolyte interface (SEI) film on the surface of the anode materials and the reactions between lithium ions and the functional groups on the surface of the materials [62,63]. Further CV cycling profiles showed good electrochemical reaction reversibility, which indicates that this new battery is rechargeable [64]. Galvanostatic charge-discharge profiles of the batteries were recorded in the potential window 0.05-3.0 V. The rate performance and voltage profiles of electrodes at the charge-discharge rate of 0.1 C, 0.5 C and 1 C are shown in Figure 6b,d,f. The sample AWC-N demonstrates a high performance and maintains gravimetric capacity of 543 mAh g −1 at the discharge rate of 0.1 C. A gradual decrease in discharge capacity vs. current rate is obvious for AWC-N and ABL-N samples. At the highest value of discharge, the gravimetric capacity decreases to 232 mAh g −1 for AWC-N, 64 mAh g −1 for ABL-N and 126 mAh g −1 Galvanostatic charge-discharge profiles of the batteries were recorded in the potential window 0.05-3.0 V. The rate performance and voltage profiles of electrodes at the charge-discharge rate of 0.1 C, 0.5 C and 1 C are shown in Figure 6b,d,f. The sample AWC-N demonstrates a high performance and maintains gravimetric capacity of 543 mAh g −1 at the discharge rate of 0.1 C. A gradual decrease in discharge capacity vs. current rate is obvious for AWC-N and ABL-N samples. At the highest value of discharge, the gravimetric capacity decreases to 232 mAh g −1 for AWC-N, 64 mAh g −1 for ABL-N and 126 mAh g −1 for AWC2BL-N. The gravimetric capacity was calculated based on the total mass of the electrode material. The AWC-N shows excellent electrochemical behaviour and superior performance compared to AWCBL-N and ABL-N. The gravimetric capacity for AWC-2BL-N is only 50% of the capacity of AWC-N, but the sample ABL-N has approximately 30% of the capacity of AWC-N at a discharge rate of 0.1 C. Figure 7 shows a lithium-ion storage capacity vs. cycle number at 0.5 C. The capacity retention after 500 cycles of AWC-N was~19% and for ABL-N was~5%. The capacity retention after 300 cycles of AWC2BL-N was~71%. This can be explained by interfacial lithium storage, inevitable formation of the SEI layer and electrolyte decomposition, which are common for most anode materials [65]. The gravimetric capacities of ABL-N electrodes after 500 cycles are 10 mAh g −1 and for AWC-N is 94 mAhg −1 . Before the degradation of anode material at 300 cycles, AWC2BL-N maintains a gravimetric capacity of 104 mAh g −1 . Compered to commercial above-mentioned carbon anode material, AWC-N disp 65% higher gravimetric capacity. The electrochemical performance data of different bon anode materials from the literature are listed in Table 3 and compered to obtaine doped activated carbons (AWC-N, AWC2BL-N and ABL-N)-the battery in this wo among the highest performing. It is worth mentioning that graphene and graphene o have superior performance, but are expensive and in limited production capacity, they cannot be obtained in large quantities. Considering capacity, cyclic stability and e trochemical reaction reversibility, we believe that the AWC-N is a relatively cheap renewable electrode material for high-performance Li-ion battery anode materials.  Compered to commercial above-mentioned carbon anode material, AWC-N displays 65% higher gravimetric capacity. The electrochemical performance data of different carbon anode materials from the literature are listed in Table 3 and compered to obtained Ndoped activated carbons (AWC-N, AWC2BL-N and ABL-N)-the battery in this work is among the highest performing. It is worth mentioning that graphene and graphene oxide have superior performance, but are expensive and in limited production capacity, i.e., they cannot be obtained in large quantities. Considering capacity, cyclic stability and electrochemical reaction reversibility, we believe that the AWC-N is a relatively cheap and renewable electrode material for high-performance Li-ion battery anode materials.

Conclusions
To investigate the possibility of the application of nanoporous nitrogen-doped carbon materials as catalysts in fuel cells and as electrodes in lithium-ion batteries, biomass precursors were thermochemically activated with NaOH at 800 • C, nitrogen was introduced using dicyandiamide and doping was performed at 800 • C. Depending on the precursor used-wood char, byproduct of kraft pulp production-black liquor and hybrid materialwood char impregnated with black liquor, the porous structures of the obtained carbon materials had large specific surface areas and different pore size distribution.
It was found that after the activation of wood char, either separately or as a part of the hybrid material, provides a microporous structure with micropore volume 0.8 cm 3 g −1 and a specific surface area more than 2500 m 2 g −1 , while the predominant development of mesopores, in the case of black liquor, provides a two times larger average pore size of 4.6 nm.
It is shown that N-doping of the obtained carbon materials leads to the introduction of approximately 4% of nitrogen. As a result of doping in the case of samples containing wood char the porosity parameters are reduced. On the contrary, in the case of black liquor doping, both the total pore volume and the specific surface area increase, possibly due to the replacement of not only oxygen, but also sulphur with nitrogen, which has a lower atomic mass. The results of the XPS analysis showed that the introduced nitrogen formed three types of bonds and the predominant one (more than 45% from all N) for all samples is the most electrochemically active pyridine form.
From the results of XRD and Raman spectra it can be concluded that all obtained N-doped activated carbon materials have an amorphous matrix with crystallites of different sizes and orientations. Comparing N-doped activated carbon based on black liquor with wood char-based samples, the structure of the former has fewer defects and graphenelike areas. SEM and TEM studies demonstrate that precursor also affects the morphology of the material. In the case of N-doped activated carbon based on black liquor particles, there are coarse layered agglomerates with a dense core and a less dense structure at the outer edges. In contrast, wood char-based and hybrid samples have a curved and wavy surface with a graphenelike shell and a dense core.
Analysing the results of the oxygen reduction reaction and comparing them with our previously published data, where carbon activation was performed at a lower temp at 700 • C [9,69], it was concluded that increasing the activation temperature improves the electrochemical properties. All samples have a slight negative shift of the onset potential in comparison with 20% Pt/C. At the same time, for all samples, diffusion limited current densities are reaching similar values and in the case of catalysts based on wood char and based on black liquor they reach an even lower value, showing better results in comparison to the commercial platinum catalyst. However, AWC-N showed the highest number of transferred electrons per O 2 molecule, close to 4, at all studied potentials, but for ABL-N and AWC2BL-N the values are lower, around 3.5. Obviously, not only the material composition of the surface functional groups and the porous structure, but also the texture, affects the activity, stability, and binding ability of the catalyst.
Performing Li-ion battery experiments for all samples in the first cycle of the voltammogram lithiation and the formation of a solid electrolyte layer are observed, and as a result the charge capacity decreases~3 times after this cycle. It should be noted that N-doped activated carbon based on wood char shows the highest gravimetric capacity (543 mAh g −1 ) compared to N-doped activated carbon based on black liquors and hybrid precursors (which demonstrated only 30% and 50% of AWC-N, respectively).
The chemical composition, porous structure, texture and electrochemical properties of the obtained materials change depending on the biomass precursor used. It has been found that the most promising precursor of the obtained materials is wood char, both as an oxygen reduction catalyst in fuel cells, which shows better properties than the commercial 20% Pt/C catalyst, and as an anode material in Li-ion batteries. The electrochemical activity of the precursors used decreases in the following order: wood char > hybrid material > black liquor.
However, black liquor is a byproduct and catalysts and electrodes based on black liquor and hybrid material can be considered as a cheaper alternative.

Data Availability Statement:
The data presented in this study are available on request from the corresponding author.