Francisco
I don't want to change the main chip yet I don't understand this one fully yet
I have done quite a bit of work on the master software and chopped a few IMHO Unecessary options in preparation for a new master board. We now have over 2000 words of code space available for new functions including voltage control of cheap charger etc!!
It is running happily on my master V2 i'll post it after a bit more checking.
1) Alarm Transmission to remote display is always on. Removed menu option to toggle on/off
2) Data transmission to spreadsheet is always on. Removed menu option to toggle on/off
3) Removed alarm dumping to spreadsheet from eeprom. Removed menu option to toggle on/off
4) Removed Analog temp sensors code. Removed menu option to toggle analog/digital temp
5) Shuffled remaining menu options and removed Sub menu 3
6) Program now logs Alarms, the cell with the error (if any) and the time in seconds since BMS start to the eeprom. So each Alarm condition stores a maximum of 4 bytes of data to the eeprom per second. It does not record normal cycles.
7) Start up error check routine now displays errors recorded in eeprom from last BMS operating cycle. So you can see if an error occured during last cycle and see what it was and when it occured. I may make this an option available at any time from within main loop. So if charge ended normally you can see this immediately.
I may have explained this already but the end of charge can be detected in several ways.1) A cell goes over Abs max V in which case the charger relay is cut and a (Cell > Abs Max V) Alarm recorded.
2) The charger terminates independently anyway and pack voltage then falls away triggering a (Voltage Drop) Alarm.
3) Each cell now has a FB (Full Bit) this is set when a cell reaches the balancing voltage. When every cell has reached the balancing voltage for that charge cycle and the bit has been set for each and every cell then the charge is terminated and a (Charge End OK) Alarm recorded.
Any Alarms during a charging cycle kill the charging relay and force the charge control opto to max voltage reduction. All Alarms are now recorded in the EEprom for posterity.
![Cool 8)](./images/smilies/icon_cool.gif)