1 Introduction

Conducting polymers are the materials of interest for researchers in contemporary times. Their electrical and physical properties have made them important with respect to many applications. Regular development proved them useful in applications like electromagnetic shielding, flexible LEDs etc [1,2,3,4]. Although considerable amount of work has been reported on conducting polymers, the conduction mechanism is yet not clear. It can be understood by looking at its internal arrangement. Electric properties of PANI depends upon the arrangement of chains. In addition, there are many other factors which alter the electrical behaviour of PANI i.e., synthesis process, surfactants used, temperature of synthesis etc. Also, PANI has negligible magnetic properties [5, 6].

Nanocomposites of conducting polymer and inorganic materials have resulted in enhanced electric and magnetic properties of the materials [2, 7]. One of the remarkable examples of nanocomposites is conducting polymers and ferrites nanocomposites. Many properties,specially, magnetic properties, of conducting polymers have been improved by blending it with ferrites [8, 9]. Although the electric resistivity of ferrites is generally high, they have very robust nature and generally possess good magnetic properties [10,11,12].

Further, conducting polymer and ferrite both are good materials for electrodes in pseudocapacitors [13]. Pesudocapacitors store chemical energy in form of redox reactions of electrochemically active materials and release it in the form of electric energy. Flexibility of polyaniline grab interest of researchers but found them very delicate and less sturdy to use [14]. Although ferrites have been studied for the same application but it has its own limitationssuch as high recombination rate, resistivity and leakage current [15, 16]. Introducing ferrites into a matrix of conducting polypyrrole may overcome these limitations and make them more useful material for electrodes with more robustness. A very few studies have considered electric, magnetic and electrochemical properties of these composites simultaneously. For example, Prasanna et al. and Tanriverdi et al. [17, 18] studied electric properties upto 10 MHz frequency. Present study aims to explore the application of fabricated electrodes of composites in a battery or a pseudocapacitor using electrochemical activity. Also, electric properties of composites of polyaniline and cobalt ferrite have been studied using electric circuit fitting and the role of ferrite nanoparticles in the conductivity of composites have been highlighted.

The pure PANI, cobalt ferrite (CF) and their nanocomposites wereprepared using in-situ chemical polymerization for composite and co precipitation for cobalt ferrite respectively. The nanocomposites series have increasing weight% of cobalt ferrite from 0.5%, 2.5%, 5% and 7.5% and they are named as HCP1, HCP2, HCP3 and HCP4 respectively for future references. Detailed analysis of structural, electrical, thermal, magnetic and electrochemical properties of PANI and its composites have been done to observe their electrochemical behaviour.

2 Synthesis of Materials

2.1 Materials Used

Cobalt nitrate (Merk), ferric nitrate (Merk), distilled water, oleic acid and ammonia were used to synthesis ferrite. Ammonium per sulphate (APS), Hydrochloric acid and freshly distilled monomer aniline (sigma) were used to synthesis the pure PANI and composites.

2.2 Synthesis of Cobalt Ferrite

Two different solutions of cobalt nitrate and ferric nitrate are prepared respectively. After stirring of half hour at room temperature, cobalt nitrate solution was poured into the ferric nitrate solution and stirred again for half hour. Then temperature of the solution was raised upto 70 °C and 10 ml of oleic acid was added to the solution. After stirring of 1 h, the solution mixture was reduced by adding ammonia drop by drop until the pH raised to 12. Precipitates thus formed were dried at 400 °C and sintered at 500 °C for 2 h.

2.3 Synthesis of PANI and PANI/CF Composites

Two molar HCL solution was prepared and 2 ml of aniline was added into it. Mixture was stirred for 2 h then oxidised by adding 50ml APS dropwise. Colour of reaction solution changes to dull yellow then green to dark bluish green. Occurrence of dark bluish green colour is an indication of formation of PANI. The mixture was then filtered and washed with distilled water and ethanol. Obtained paste was dried at 40 °C for 36 h and grinded to fine powder. To synthesis nanocomposites, CF is used as reinforcement and added in the reaction mixture of PANI after stirring aniline and HCl solution for 2 h. Then the similar to synthesis of PANI, solution was oxidised with APS and obtained precipitates were washed and dried.

3 Characterizations of Materials

XRD have been done in the range of angle 5°–70°, using powder X-ray diffractometer (Rigaku IV, Japan) to confirm the synthesis of materials as well as to dig structural analysis of the materials. Perkin–Elmer Frontier spectrometer was used for FTIR spectrum in the infrared range of 400–4000 cm−1. Optical properties were studied using Defuse reflectance spectroscopy (DRS) attachment on UV Vis spectrometer (LAMBDA 750, Perkin Elmer).Thermogravimetric analysis (TGA) was done to analyse thermal stability of samples. Wyen Kerr impedance analyser was used to analyse AC conductivity and Impedance of all materials within the frequency range of 100 Hz–100 KHz. The magnetic properties of the materials were measured through Vibrating Sample Magnetometer (VSM) technique (Microsense EV-9). Electrochemical studies were done using CHI 760E three electrode electrochemical workstation to investigate Cyclic Voltammetry. Complete process from synthesis of powder samples to synthesis of electrodes is explained with help of Fig. 1.

Fig. 1
figure 1

Graphical representation synthesis of electrodes for electrochemical analysis

4 X-ray Diffraction

The XRDdata was obtained at the rate of 4° per minute in the range of 5°–70°. Characteristic peaks of HCl doped PANI were observed at 2θ = 8.9°, 15.1°, 25.5°, 27°, 30.3°, and a small peak at 36.6° [19, 20]. Trend of crystallinity was estimated indirectly by calculating resolution (R) of XRD peaks from Manjunathan’s formula [21] as given below.

$${\text{R}} = \frac{{m_{1} + 2m_{2} + \ldots \ldots + m_{{n - 1}} }}{{h_{1} + h_{2} + \ldots \ldots + h_{n} }}$$
(1)

Where, m1, m2, mn−1, are depth between the peaks and h1, h2, hn are heights of the peaks. Obtained values of resolution are tabulated in Table no.1. The resolution thus calculated is inversely proportional to crystallinity [21] (see Fig. 2).

Fig. 2
figure 2

XRD Spectra of a HCP, b HCP1, c HCP1, HCP3, HCP4 and f CF

Value of resolution can vary from zero for completely crystalline region to one for completely amorphous region. It was found that HCP4 have least resolution thus highest crystallinity as compared to other samples. It is also quoted earlier that polyaniline is semicrystalline in nature [22]. The characteristic peaks of spinel crystal structure of ferrites at 2θ value 30°, 35°, 43°, 53°, 57°, 63° is ascribed to the reflection planes of 220, 311, 222, 400, 422, 511, 440 respectively. The average crystallite size (D) calculated from highest intensity peak (311), shown in Table 1, was estimated by Scherrer equation given as [23].

$$D = \frac{{k\lambda }}{{\beta cos\theta }}~$$
(2)

Where D is the average particle size, \(\theta\)  is the Bragg diffraction angle, \(\beta\) is the full width of the diffraction line at half the maximum intensity, \(\lambda\) is the wavelength and k (0.9) is a constant. Crystallite size is found to increase with increasing amount of CF i.e., from HCP1 to HCP4. This trend indicates increment of connectivity of ferrite NPs from HCP1 to HCP4. XRD results of composites show peaks of both PANI as well as ferrite together without any shift, implying successful synthesis of composites. Also increasing intensity of peak corresponding to (311) plane is due to increasing amount of cobalt ferrite [24].

Table 1 Resolution, crystallite size and optical band gap of HCP, HCP1, HCP1, HCP3, HCP4 and CF

5 FTIR

Fourier transform infrared spectroscopy (FTIR) is used to detect the information regarding bonding in the prepared samples (Fig. 3). It has been reported that in aniline oligomers and polymers, the region 3500–3100 cm−1 is because of N–H stretching. However, it may be of NH2or B-NH-B where B stands for Benzoid unit or terminal Q=NH where Q stands for quinoid unit of PANI [25]. Major peaks of the samples are tabulated in Table 2. The peak at 2850 cm−1 is due to some minor impurities, hence not considered for analysis [26]. The spatial configuration of PANI chain can be estimated because trans arrangement of QBQ unit cause absorbance at 1380 cm−1 while cis configuration of QBQ give rise to 1315 cm−1 peakin FTIR spectra. Here all composites as well as pure PANI gives a peak at 1384 cm−1 so their backbone chain have trans arrangement of benzene rings [26]. Doublet at 1638 cm−1 and 1617 cm−1 corresponds to conjugated C=C stretching [27]. As the benzene is substituted here, the absorption band near 600 cm−1 is due to out of plane bending of the ring. Further, metal-oxide bonds corresponding to ferrites also show low wave number band below 600 cm−1.

Fig. 3
figure 3

FTIR spectra a HCP, b HCP1, HCP2, HCP3 and HCP4

Table 2 FTIR transmission peaks of Polyaniline and the four composites

6 Scanning Electron Microscopy

The SEM images of all samples were observed at 100 nm scale. Particles of pure polyaniline have elongated capsule like shapewhereas cobalt ferrite particles appear spherical and grainy (Fig. 4a and b). In composites the spherical particles of CF covered the Capsule shaped particles of polyaniline. Also, in all composites CF particles are uniformly distributed causing agglomeration of PANI.

Fig. 4
figure 4

SEM Images of a HCP (PANI), b CF and c HCP1, d HCP2, e HCP3, f HCP4 composites

7 UV–Vis Spectroscopy

Basically, low energy band gaps were observed in doped conducting polymers [28]. Many theories like Su-Schrieffer Heeger model favours the fact that doping create polarons in polymers which results into formation of new energy bands in the otherwise forbidden region [29]. UV-Vis spectroscopy was done by Diffuse Reflectance Technique to know about these polaron bands and to measure the optical band gap of the prepared samples. Kubelka and Munk equation to convert reflectance data into absorption is given below [30]:

$$F(R) = \frac{{\left( {1 - R} \right)^{2} ~~~}}{{2R}}~$$
(3)

Hence obtained UV-Vis absorption spectra of CF show a broad band from 350 to 600 nm as also reported in literature (Fig. 5 Inset). For PANI and PANI/CF composites three absorption bands are observed at 320–360 nm, 400–450 nm and 595–650 nm. First two bands are amalgamated into a flat band. The peak1 and peak2 in Fig. 5 are attributed due to the π–π* transition of the benzenoid rings and π–polaron transitions respectively. Whereas, Peak 3 corresponds to polaron to \({{\uppi }}^{\text{*}}\) transition thus confirming the Cl doped emeraldine state of polyaniline in sample. Also, this peak show slight blue shift with increased amount of CF NPs which may be due to some sorts of interactions ferrite and PANI chains [31]. Kubelka Munk function is used to find out optical band gap using equation:

$${\text{F(R)hv = k(hv}} - {\text{E}}_{{\text{g}}} {\text{)}}^{{1/2}}$$
(4)

where, hv is the photon energy, k is a constant, Eg is a characteristic energy which is termed as optical band gap. Intercept of the linear part of the curve on the x-axis gives the value of Eg (Fig. 6). Optical band gap of composites is found to be lower than the PANI as shown in Table 1.

Fig. 5
figure 5

KM function vs. wavelength for a HCP, b HCP1, c HCP2, d HCP3, e HCP4 and CF (inset)

Fig. 6
figure 6

Tauc plots of a HCP, b HCP1, HCP1, HCP3, e HCP4 and f CF

8 Thermogravimetric Analysis

TGA is a technique in which variation in weight of a material is observed with respect to temperature in a controlled atmosphere. TGA thermograms of PANI and composites is shown in (Fig. 7). Thermal stability of PANI is not good but cobalt ferrite was found to be thermally stable. So, composites are expected to have high thermal stability as compared to PANI. It can be seen from TGA graphs (inset) thatCobalt ferrite degrade only 0.3% approximately upto 300 °C and then a sudden weight loss (0.5%) occurs between 300 and 400 °C. The first weight loss is attributed to solvent and humidity and second weight loss is due to degradation of surfactants like oleic acid etc. having boiling point near or 300 °C [32]. PANI and composites decompose in three different steps. First rapid weight loss from 30 to 120 °C is due to evaporation of water. This reflects hygroscopic nature of PANI [22]. Second weight loss is due to decomposition of the dopants. The temperature from which second weight loss started is called decomposition temperature and it tabulated for PANI and composites shown in Table 3. It has been found that the third weight loss started close to 300 °C and it is attributed to the degradation and decomposition of the backbone units of PANI. The degradation of polymeric backbone units leads to the generation of substituted aromatic fragments. It was found that higher the amount of cobalt ferrite higher the decomposition temperature of the sample. Thus, composites gain thermal stability with increasing amount of cobalt ferrite.

Fig. 7
figure 7

Thermographs of a HCP, b HCP1, c HCP1, d HCP3, e HCP4 and CF (Inset)

Table 3 Decomposition temperature and final residue of polyaniline and composites obtained from TGA

9 Impedance Spectroscopy

9.1 AC Conductivity

AC conductivity of PANI and its composites show linear behaviour (Fig. 8) at low frequency (100 Hz–10 kHz) and increase exponentially at higher frequencies (10 kHz–10 MHz). This is because at lower frequencies rate of change of polarity of applied electric field is low therefore, charge carriers take more time to transverse in a particular direction. But at higher frequencies polarity of applied filed changes rapidly and the charge carries moves to and forth motion. This hoping of charge carrier is supported in both PANI as well as in Cobalt Ferrite. Hence AC conductivity increases at higher frequencies.

The PANI shows an increase in AC conductivity with increase in frequency but at slow rate as compare to PANI/CF composites. AC conductivity also increases with increase in the amount of CF nanoparticles (from HCP1 to HCP4) in the PANI/CF composites. It is found that the presence of CF–NPs in the PANI/CFs causes a drastic increment in the AC conductivity at high frequency which may be attributed to the enhanced electron hopping phenomenon. However, at low frequency ac conductivity of most of the composites is lower than PANI but at high frequency all composites have conductivity higher than PANI. This clearly indicates that ferrite ions dominate in ac conduction as their charged ions can easily exchange charge in localized sites. To transverse freely inside the material, charge carriers need to overcome the percolation threshold [33]. Therefore, at low frequency, higher amount of ferrite nanoparticles is needed tointerconnectthem with each other (to overcome percolation threshold) and create a continuous path.

Fig. 8
figure 8

AC conductivity of a HCP, b HCP1, c HCP2, d HCP3, e HCP4 and f CF in the frequency range 100 Hz–100 MHz (Inset Zoom in frequency range: 100 Hz–10 kHz)

9.2 Cole–Cole

To study the mechanism of charge transitions into the materials Cole Cole plot have been used. It is a plot of real impedance against imaginary impedance of materials obtained from impedance spectroscopy. Arc of cole cole plots (Fig. 9) of both polyaniline as well as PANI/CF composites seems to have centre below the x axis, and indicates the presence of more than one semicircle with poor resolution [34]. This is supported by fitted equivalent circuit which consists of two sub circuits (Fig. 9(b)). Each sub circuit contains one resister named as R1 and R2, representing bulk resistance of the materials. First sub circuit has capacitor (C1) and second have constant phase element (CPE1). Values of each parameter have been mentioned in Table 4. These components represents space charge accumulation on electrodes and grain boundaries. Thus, grain and grain boundaries both are active in PANI and PANI/CF composites [35]. This also support the suggested reason behind the AC conductivity variation in the studied materials. Further, radius of semicircular arcs decreasing gradually from HCP to HCP4, indicating enhanced conductivity of composites.The Cole Cole plot of all the samples are found to fit well in the circuit shown in Fig. 8.

Fig. 9
figure 9

Nyquist plot of a CF, b Fitted circuit to Nyquist plot of c HCP, d HCP1, e HCP2, f HCP3, g HCP4

Table 4 Grain, grain boundary parameters of HCP, HCP1, HCP2, HCP3 and HCP4 obtained from fitting

Further, for the confirmations and predictions of curve fitting and to distinguish two type of conduction mechanisms (long and short range) imaginary parts of different dielectric functions i.e., Z″, M″ and tanδ have been plotted. Overlapping of Z″ and M″ peaks imply pure long range conductivity mechanism e.g. in HCP3 (Fig. 10c), while separation between above said peaks imply mixed conduction mechanism, Fig. 10a,b [36]. Thus, Samples are moving from mixed to pure long range conductivity mechanism as the amount of CF is increased from HCP(0%) to HCP4(7.5%).

Fig. 10
figure 10

Log ν vs. imaginary Z” and M” for a HCP, b HCP1, c HCP3

Fig. 11
figure 11

Tangent loss of a HCP, b HCP1, HCP2, HCP3 and HCP4

Tangent losses are high at high frequencies (Fig. 11) because of lack of synergy between polarity of applied field and induced dipoles in the samples.The losses of composites are higher at lower frequencies as compare to PANI and vice versa at higher frequency. This fact can be combined with their conductivity behaviour.

10 VSM

The magnetic properties of CoFe2O4 and CoFe2O4/PANI composites were measured by vibrating sample magnetometer at room temperature (Fig. 12). The measured value of retentivity (Mr), coercivity (Hc) and saturation magnetisation (Ms) are tabulated in Table  5. As obvious CF have highest retentively and saturation magnetization due to high magnetic moments of Cobalt ions. PANI have negligible retentivity as compared to CF. As the fraction of CF in composites increasing, retentivity also increases.Both Ms alsoshows linear increase with increasing amount of ferrite in the composites. This is due to the increase of magnetic domains and consequently increasing number of total spin moments which contribute to the values of Ms and Mr.

Fig. 12
figure 12

Hysteriesis loop for a HCP, b HCP1, HCP1, HCP3, e HCP4 and CF (inset)

Table 5 Coercivity and retentivity of polyaniline (HCP), CF and their composites

11 Electrochemistry

Three electrode electrochemical workstation (CHI 760E) was used to obtainedCyclic voltammetry (CV) measurements. Out of the used three electrode one is the working electrode of the sample prepared. Second is the reference electrode for the measurement of potential of working electrode and it is made of Ag/AgCl. Third one is counter electrode which is a platinum wire. Considering its high ionic conductivity and low solvated ionic radius, 2MPotassium hydroxide was used as electrolyte. In this \({OH}^{-}\) donating electrolyte the process of doping (Eq. 5) and dedoping (Eq. 6) of PANI are as follow

$$\left( {{\text{PANI}}} \right)_{{\text{n}}} - {\text{xe}}^{ - } + {\text{xA}}^{{ - {\text{1}}}} \leftrightarrow \left( {{\text{PANI}}} \right)_{{{\text{x}} + {\text{n}}}} \left( {{\text{A}}^{{ - {\text{1}}}} } \right)_{{\text{x}}}$$
(5)
$$\left( {{\text{PANI}}} \right)_{{\text{n}}} + {\text{y}}e^{ - } + {\text{yM}}^{{ + {\text{1}}}} \leftrightarrow \left( {{\text{PANI}}} \right)_{{{\text{y}} - {\text{n}}}} + \left( {{\text{M}}^{{{\text{ + 1}}}} } \right)_{{\text{y}}}$$
(6)

When oxidation occurs, ions get transferred to PANI backbone chain and ions get released from PANI into electrolyte during reduction. And similar redox reactions for Cobalt ferrite are as follow.

$${\text{CoFe}}_{2} {\text{O}}_{4} + {\text{OH}}^{ - } + {\text{H}}_{2} {\text{O}} \leftrightarrow {\text{CoOOH + 2FeOOH + 2e}}^{ - }$$
(7)
$${\text{CoOOH + OH}}^{ - } \leftrightarrow {\text{CoO}}_{{\text{2}}} {\text{ + H}}_{{\text{2}}} {\text{O + e}}^{ - }$$
(8)
$${\text{FeOOH + OH}}^{ - } \leftrightarrow {\text{FeO}}_{{\text{2}}} {\text{ + H}}_{{\text{2}}} {\text{O + e}}^{ - }$$
(9)

The CV curves corresponding to HCP, HCP1, HCP4 and CF samples at different scan rates (2, 4, 6, 8, 10 mV/s) are shown in Fig. 13. Potential window was taken in between 0.0 V and 0.5 V. Occurrence of sharp peaks of current is due to redox reactions taking place in the system on working electrode. And this current can be resolved into two parts. One is current due to diffusion and other is current due to fast faradaic reactions on the surface of the electrode.

$${\text{i = i}}_{{{\text{diff}}}} + {\text{i}}_{{{\text{surf}}}}$$
(10)

And this total current is related to scan rate as follow:

$${\text{I}} = {\text{av}}^{{\text{b}}}$$
(11)

Where v is scan rate,a and b are adjustable parameters depending upon properties of electrode material. b Value actually compares the rate of change of current with changing potential. If current fails to maintain its reverberance with potential it means diffusion process is involved which is causing lag of current. Thus, value of b = 0.5 is for battery and b = 1.0 is for pseudocapacitors and any value between 0.5 and 1.0 corresponds to transition region between battery type material and pseudocapacitive material [37]. Calculated values of b for anodic current, cathodic current and average of b is tabulated in Table 6. The value of b shift towards 1.0 for composites, thus, it represents decrement in diffusion current of PANI after adding CF into it. Thus,CF support pseudocapacitor type behaviour of PANI.

The behaviour of electrode can be further evaluated by observing the separation of anodic and cathodic peaks along the potential axis (δEac) and shifting of current peaks. Large values ofδEac (Table 7) and its variation with scan rate gives poor reversibility. Cobalt ferrite have largest value of δEac due to high recombination rates of ions. But nanocomposites have low values of δEac, thereby again supporting that composite have better capacitive type behaviour as compared to PANI. Specific capacitance was calculated from CV using (Eq. 12) and is 57, 61 and 66 F/g, for HCP, HCP1 and HCP4respectively.

$$C_{a} = \frac{A}{{2~m{\text{v}}V}}$$
(12)

where Cs, m, v, ΔV, and A are the specific capacitance (F/g),active mass (mg), scan rate (mV/s), potential window (V), and the area under the curve, respectively. Results are in consent with b values and δEac values. Change in surface morphology, enhanced conductivity strengthen the capacitive behaviour of PANI [38, 39].

Fig. 13
figure 13

Current vs. Voltage Plots for a HCP, b HCP1 and c HCP4

Table 6 b Values for HCP, HCP1 and HCP4
Table 7 δEacvalues for HCP, HCP1 and HCP4 for different scan rates (v = 2–10)

12 Conclusion

Spinel ferrite based PANI nanocomposites were successfully synthesised by In situ polymerization method. PANI is well supported by Cobalt ferrite with respect to its thermal, optical, magnetic and electric properties. This is due to reforms in morphology of the polymer and addition of spin particles after embedding ferrite into it. Optical energy band gap of HCP4 is reduced upto 1.44 eV and 17% increase in final residues was observed in TGA. Conductivity of the nanocomposite with highest amount of ferrite is found to be highest of all samples. The nanocomposites showed the highest specific capacitance of 66Fg− 1 obtained in potassium hydroxide solution at a 2 mV/s scan rate. Depending on electrochemical performance, nanocomposites are useful as electrode materials in pseudocapacitor.