This project is used to get the state of charge (SOC) for a lithium-ion battery based on the current integration method which measure the current through wire while charging or discharging the battery and then integrating the measurements. The system was implemented to Atmega32 microcontroller with software architecture attached to this project. EEPROM was included in the project to save the readings and recover them after restarting the system.
hurwitz14/Battery-state-of-charge
This project calculates the SoC by using current integration method which measure the current passing through current sensor while charging or discharging and then integrating it in a time. The system based on Atmega32 microcontroller with software architecture in the picture attached with this project. EEPROM is included in the system to save the previous value of SoC after restarting the system and calculate the new state based on the previous one. Timer (CTC Mode) and interrupt are used to return the number of milliseconds passed since the MCU began running the current program.
C