150V 45A MPPT - roll your own


Author Message
poida

Guru

Joined: 02/02/2017
Location: Australia
Posts: 1425
Posted: 12:26am 09 May 2024      

  mab1 said  Possibly spotted a very minor error in (i think) the latest version of the code.ZIP (serial LCD version):

TID=12027&P=47#212592latest version serial LCD

it seemed to do an extra MPPT scan every couple of mins at the 55sec mark ,but i spotted this in the code:

if ( timeout_check(8,1))
   {
     cal_sensor_count ++;
     if (cal_sensor_count > 1)           // should be 60 for an hour. testing will have it at 2 or something
       {
         cal_sensor_count = 0;           // one hour is up time to recal current sensor zero points
         if (track_mode != NIGHT)
           {
             //stop it


But as the Comment says "should be 60 for an hour" so is easy enough to change.


it's an easy fix alright. Thanks for reading through the code and finding this.

latest version with the fix:

mpptv5_BV_tempco_day_totals_current_sense_recal.zip