Author Topic: Enphase Solar Monitoring Modification  (Read 2055 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37742
  • Country: au
    • EEVblog
Enphase Solar Monitoring Modification
« on: May 28, 2021, 12:52:06 pm »
Modifying the Enphase Envoy solar monitor system to cancel out the second 3kW system.

 
The following users thanked this post: SeanB

Online IanJ

  • Supporter
  • ****
  • Posts: 1609
  • Country: scotland
  • Full time EE & Youtuber
    • IanJohnston.com
Re: Enphase Solar Monitoring Modification
« Reply #1 on: May 30, 2021, 04:31:47 pm »
Dave's video prompted me to fix a couple of bugs in the Arduino code used to gather my import/export/solar inverter data..............narrowed it down to the following snippet......can spot the two typos?....DUH!

Code: [Select]
// Determine Import / Export Power / Consumption
// Importing
if ( DataMeterPwr > 0) { // If > 0 then must be importing from grid
DataImportPwr = DataMeterPwr;
DataExportPwr = 0; // Force to zero
DataConsumptionPwr = DataGenPwr + DataImportPwr; // Actual consumption when importing is generation power + import power
}

// Exporting
if ( DataMeterPwr < 0) { // If < 0 then must be exporting to grid
DataExportPwr = DataMeterPwr * -1; // make positive - could use ABS() function I suppose
DataImportPwr = 0; // Force to zero
DataConsumptionPwr = DataGenPwr = DataExportPwr; // Actual consumption when exporting is generation power - export power
}

// Neither Importing or Exporting
if ( DataMeterPwr = 0) { // If neither exporting or importing then either house consuming nothing, or the solar gen power is exactly matching what is being consumed (highly doubtful)
DataImportPwr = 0; // Force to zero
DataExportPwr = 0; // Force to zero
if (DataGenPwr == 0) {
DataConsumptionPwr = 0; // Solar gen is zero also so consumption must be zero
} else {
DataConsumptionPwr = DataGenPwr; // Consumption must be exactly matching generation
}
}
« Last Edit: May 30, 2021, 04:34:23 pm by IanJ »
Ian Johnston - Original designer of the PDVS2mini || Author of the free WinGPIB app.
Website - www.ianjohnston.com
YT Channel (electronics repairs & projects): www.youtube.com/user/IanScottJohnston, Twitter (X): https://twitter.com/IanSJohnston
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12298
  • Country: au
Re: Enphase Solar Monitoring Modification
« Reply #2 on: June 08, 2021, 04:50:12 am »
Code: [Select]
DataConsumptionPwr = DataGenPwr = DataExportPwr; // Actual consumption when exporting is generation power - export power
Is one somewhere on this line?   ::)

I'd like to say I never made such slips - but I'd be lying.   ;D
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf