retepsnikrep wrote:OK try these, cosmetic changes mainly, but i did remove the Master pauses as they are not reqd as long as you have at least two or more slaves.
I will try the version you have working first. My plan is to pull all the pics and insert them one at a time, testing each one as I go.
Greg I have sent your button kit.
Thanks.
This master has no sort of timing routine in it now for the main loop. In the short term it will be easiest to just scope the master watchdog pulses once you have all your cells attached/running and calculate how much of a pause we need to add to make the main loop execute once per second. Not rocket science but good enough.
I suspect that it would take the same time to do a quick and dirty solution as to code in some sort of timing routine. We need to start a timer and pause the loop until 1 second has passed since the last time through. This is how the amp hour calculations are done in my motor controller, except that they force the loop to run at 1000hz so it actually counts amp/milliseconds!
![Shocked :shock:](./images/smilies/icon_eek.gif)
I might have a look tonight and see what is available for timing in the pic.