I am trying to create a simulate and graph the charging and discharging cycle of a battery.
I have tried for hours with no success.
Can someone help?
You can find several circuit diagrams that simulated the behavior of batteries on the web.
You can search this link for reference