Option to use Relay2 output for DC GFI test #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This thread discusses a simple hardware modification to support the IEC62752 DC leakage protection requirement, by replacing the GFI CT with a Western Automation RCM14-03 module:
https://openev.freshdesk.com/support/discussions/topics/6000062789
The module requires a +12V supply, which can conveniently be obtained from the DC Relay header. By adding a coil to the module, the AC leakage self-test can be performed in the usual way. I've taken this a step further by adding an additional loop of wire through the module, fed from +12V via a 2k resistor, which simulates 6mA of DC leakage when pulled to ground.
When
DC_GFI_TEST
is set, this disables the Relay2 output and re-purposes the pin to drive this DC test loop. The test is performed as part of theGfi::SelfTest()
routine, after successfully completing the AC leakage test. I've tested it with the v5.6 (which appears to be referred to as v6 in the code) OpenEVSE board.(I'm new to OpenEVSE and PlatformIO, so apologies if I've failed to integrate it properly.)