The overall aim of the project is to investigate doped biobased material for carbon electrode material and gain detailed knowledge about prerequisite for a good electrochemical process by in-situ characterisation of bio-based batteries during charge and discharge. This project aims to addressthese objectives by focusing on two different types of feedstocks, namely spent mushroom substrate (SMS), rich in cellulose but poorer in lignin, and lignosulfonate (LS), that is rich in lignin.