I have to simulate a battery by designing a customized simulator using a digipot as the internal resistance of the battery, which is the best digipot to use for this purpose and is this the best idea or is there a better way to simulate a battery. This simulated battery will be used to test a battery charging circuit.