From e2a8eed7698eb294e904e3d5006a87bee3f59ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Metrich?= <45318189+FredM67@users.noreply.github.com> Date: Sat, 8 Jun 2024 20:14:21 +0200 Subject: [PATCH] Final --- Mk2_3phase_RFdatalog_temp/calibration.h | 2 +- Mk2_3phase_RFdatalog_temp/config.h | 4 ++-- Mk2_3phase_RFdatalog_temp/config_system.h | 2 +- dev/cal_CTx_v_meter/main.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mk2_3phase_RFdatalog_temp/calibration.h b/Mk2_3phase_RFdatalog_temp/calibration.h index 04a74403..995044e0 100644 --- a/Mk2_3phase_RFdatalog_temp/calibration.h +++ b/Mk2_3phase_RFdatalog_temp/calibration.h @@ -31,7 +31,7 @@ // powerCal is the RECIPROCAL of the power conversion rate. A good value // to start with is therefore 1/20 = 0.05 (Watts per ADC-step squared) // -inline constexpr float f_powerCal[NO_OF_PHASES]{ 0.05000F, 0.05000F, 0.05000F }; +inline constexpr float f_powerCal[NO_OF_PHASES]{ 0.042346F, 0.043453F, 0.042969F }; // // f_phaseCal is used to alter the phase of the voltage waveform relative to the current waveform. // The algorithm interpolates between the most recent pair of voltage samples according to the value of f_phaseCal. diff --git a/Mk2_3phase_RFdatalog_temp/config.h b/Mk2_3phase_RFdatalog_temp/config.h index 47bedf54..4208e8fc 100644 --- a/Mk2_3phase_RFdatalog_temp/config.h +++ b/Mk2_3phase_RFdatalog_temp/config.h @@ -50,7 +50,7 @@ inline constexpr bool OVERRIDE_PIN_PRESENT{ false }; /**< set #endif inline constexpr bool WATCHDOG_PIN_PRESENT{ false }; /**< set it to 'true' if there's a watch led */ -inline constexpr bool RELAY_DIVERSION{ false }; /**< set it to 'true' if a relay is used for diversion */ +inline constexpr bool RELAY_DIVERSION{ false }; /**< set it to 'true' if a relay is used for diversion */ inline constexpr bool DUAL_TARIFF{ false }; /**< set it to 'true' if there's a dual tariff each day AND the router is connected to the billing meter */ // ----------- Pinout assignments ----------- @@ -71,7 +71,7 @@ inline constexpr bool DUAL_TARIFF{ false }; /**< set it to 'true' if th // D12 is MISO // D13 is SCK -inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 5, 7 }; /**< for 3-phase PCB, Load #1/#2/#3 (Rev 2 PCB) */ +inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 6, 7 }; /**< for 3-phase PCB, Load #1/#2/#3 (Rev 2 PCB) */ inline constexpr uint8_t loadPrioritiesAtStartup[NO_OF_DUMPLOADS]{ 0, 1 }; /**< load priorities and states at startup */ // Set the value to 0xff when the pin is not needed (feature deactivated) diff --git a/Mk2_3phase_RFdatalog_temp/config_system.h b/Mk2_3phase_RFdatalog_temp/config_system.h index ef3a41ad..4cf30671 100644 --- a/Mk2_3phase_RFdatalog_temp/config_system.h +++ b/Mk2_3phase_RFdatalog_temp/config_system.h @@ -20,7 +20,7 @@ inline constexpr uint8_t NO_OF_PHASES{ 3 }; /**< number of phases of the main su //-------------------------------------------------------------------------------------------------- // for users with zero-export profile, this value will be negative -inline constexpr int16_t REQUIRED_EXPORT_IN_WATTS{ 20 }; /**< when set to a negative value, this acts as a PV generator */ +inline constexpr int16_t REQUIRED_EXPORT_IN_WATTS{ 5 }; /**< when set to a negative value, this acts as a PV generator */ //-------------------------------------------------------------------------------------------------- // other system constants, should match most of installations diff --git a/dev/cal_CTx_v_meter/main.cpp b/dev/cal_CTx_v_meter/main.cpp index ce87d150..54f79737 100644 --- a/dev/cal_CTx_v_meter/main.cpp +++ b/dev/cal_CTx_v_meter/main.cpp @@ -127,7 +127,7 @@ constexpr int16_t ADCDuration{ 104 }; // Time in microseconds for one ADC conve // powerCal is the RECIPR0CAL of the power conversion rate. A good value // to start with is therefore 1/20 = 0.05 (Watts per ADC-step squared) // -inline constexpr float f_powerCal[NO_OF_PHASES]{ 0.050000F, 0.050000F, 0.050000F }; +inline constexpr float f_powerCal[NO_OF_PHASES]{ 0.042346F, 0.043453F, 0.042969F }; // f_phaseCal is used to alter the phase of the voltage waveform relative to the // current waveform. The algorithm interpolates between the most recent pair