Potentiostat with arduino

I am stuck in a project because I have to make a potentiostat. I can’t afford to buy it. I want to make a potentiostat using Arduino. Can get the relevant design and codes?