[ Home | News | Contact | Links ]


GPO Tester

[The completed tester in use]

Introduction

A common component of a building electrical installation is the general purpose outlet (GPO), also known as a power point, socket, or outlet. The condition of these components is important to the safe functioning of the electrical installation. While there are a number of criteria necessary to ensure safety, one of the most important is that a low resistance connection is made with a plug when it is inserted. It does not take very much resistance at all to cause an unacceptable level of heat generation when a high power load is in use.

For instance, at a current of 10 amps (a typical rating for a socket), a resistance of only 10 milliohms between the pin and socket contact will cause a dissipation of 1 watt, which is quite a lot in such a small space. There will of course be current flowing in both the active and neutral pins in close proximity, each of which will have its own resistance, and contribute to the overall heat buildup.

Similarly, loose connections in the fixed wiring, and insufficient wire thickness can also result in increased resistance and excessive heating. While regulations are usually in force to ensure safety of an installation, these can sometimes fall down in practice. For instance, a GPO may have sufficiently low resistance when first installed, but it may deteriorate over time, through loss of tension in the contacts, oxidation, etc. In other situations, it may not be possible to guarantee the provenance of the installation, as when one buys an old (or even a new) house, which may have had "unofficial" modifications to the wiring over the years, with wires of insufficient thickness, etc.

High resistance faults can be quite insidious, as they often give no visible indication, particularly if the affected socket is only used for light loads most of the time. However, if a high current, high duty cycle load such as a space heater is connected, the wiring can easily reach a dangerous temperature, and possibly even catch fire. Recent developments in the electricity market, such as "free hours". are likely to result in increased peak demand, and make this problem even more acute. It therefore makes sense to have a means to inspecting GPOs and wiring for high resistance conditions.

The obvious way of doing this is to power down the circuit, expose the back of the socket, insert a plug, and measure the resistance between the contacts at the back, and the contacts on the plug, for each pin in turn (ideally using a 4 wire ohmmeter). This is obviously inconvenient, and, depending on the jurisdiction, may require the services of a qualified electrician. It can be improved by using two plugs in a double GPO, measuring e.g. from the active of one plug to the active of the other, and thereby obviating the need to unscrew the socket, but this is still a rather fiddly method.

Another method is to load the socket to its rated current, using e.g. a space heater, wait for the temperature to stabilise, and then inspect the plug/socket combination with a thermal imaging camera. This is still time consuming when repeated for every socket in a house, and ideally still needs the sockets to be removed from the wall, so the rears can be inspected for excessive temperature rise.

I therefore decided to design an instrument that would allow the resistance checks to be made quickly, easily, and safely, by an operator without special qualifications. Essentially this would be an ohmmeter with each probe connected to its own mains plug, switch selectable between the active, neutral, and earth pins. For maximum accuracy, a four-wire measurement would be performed, with Kelvin connections at the plugs.

Given correct wiring, it is possible to make such a resistance measurement of a GPO without turning off the associated circuit, since the ohmmeter will effectively be floating with respect to the AC supply. However, connection of one of the plugs to a socket with a swapped active and neutral is a possibility, so the ohmmeter circuitry needed to be able to withstand the application of 240VAC. It would also be necessary to provide interlocking circuitry, to eliminate the possibility of touching a live plug.

I also realised that, with the addition of an extra plug and some switching circuitry, it would be possible to provide an additional mode of operation, in which the resistance from a GPO back to the switchboard could be measured. This would allow checking for high resistance connection in daisy-chained wiring, and would also allow the thickness of the installation conductors to be checked, provided that the length of the cable run could be estimated.

(Note that this is somewhat similar to the "loop fault impedance" test that is conducted on new installations, to ensure that the circuit breakers will trip sufficiently quickly. However, that test is generally done by comparing the voltages at the socket between on and off load conditions.)

[Basic circuit of the meter]
Basic circuit of the meter

The basic principle of the device is shown above. A1 and A2 represent the two active contacts of a double GPO, and the combination of R1 and R2 in series represent the resistance of the internal connection between the two contacts. A constant DC current (in this design, around 120mA) is applied between the two terminals. With SW1 in the middle position, M1 measured the voltage drop between A1 and A2, which is proportional to R1+R2. Note that R4, R5 (and R6) are not necessary for the basic measurement, but are desirable for other reasons, to be described later. An ideal voltmeter will draw no current, so there will be no voltage dropped across these resistors, and the measurement will not be affected. In any case, these resistors can be arranged to be part of the input impedance of the meter.

Now, consider what happens if plugs A1, A2, and A3 are inserted into GPOs on separate circuits (on the same phase). Current from the current source will flow into the A1 GPO, though the building wiring and any fuses or circuit breakers, to the point in the switchboard where all the circuits join, marked "X" in the figure. By placing SW1 in the upper position, the voltage drop across R1 (the wiring resistance of circuit 1) may be measured. Similarly, placing the switch in the lower position allows the resistance of circuit 2 to be measured. Note that negligible current flows through circuit 3 - it is only used to sense the voltage at the star point. (It would of course be possible to provide a configuration to measure R3 as well, but this would complicate the switching circuitry, and is not really necessary - this measurement can be made simply by exchanging the plugs.)

The DC current used for the measurement is linearly independent of the 50Hz AC power waveform, and therefore measurements can be made with the circuits powered, and even under load, provided that M1 does not respond to the AC component of any voltage drops in the wiring. However, any load that introduces a DC component into the current waveform (e.g. a half wave rectifying heat gun on low) will introduce an error, and therefore measurements should be taken with the circuits unloaded as far as possible, for best accuracy.

The above schematic is shown for measuring just one of the three conductors - the active. However, it is obviously quite simple to provide suitable switching so that either the active, neutral, or earth circuit may be measured.

A device featuring multiple mains plugs presents an obvious safety hazard, and a reliable interlocking mechanism is necessary to ensure that an exposed plug does not become live. The original design concept here was to use relays to isolate all of the pins of each plug, unless they were all safely inserted into a socket. However, this approach demands a considerable number of relay contacts, particularly as it would be necessary to provide two poles for each plug pin if a Kelvin connection were to be provided at the actual plugs.

Fortunately, the only real hazard results from the current from the "force" terminals. The "sense" terminals can be high impedance, as illustrated by R4-R6 in Fig. 1. In practice, these would be implemented with multiple high-voltage resistors in series. The current in a 1 megaohm resistor at 240V will be only 250uA - less than that from a 4n7 Y capacitor in a typical switchmode power supply, and within acceptable limits.

The complete schematic is shown below. Unless both RL1 and RL2 are energised, no low impedance path exists between the pins of plug 1 and plug 2, and plug 3 always has a high impedance (R45, R55, R58, R61) in series with its pins.

[Complete schematic of the tester (click to enlarge)]
Complete schematic of the tester (click to enlarge)

Consider the case when plug 1 is inserted into a live socket, and plug 2 is free. If the contacts of RL1 have welded closed, any current flowing through the current source will be diverted back to the earth pin of plug 1 via the normally closed contacts of RL2, tripping the RCD if one is fitted. Meanwhile, the normally open contacts of RL2 isolate plug 2 from the mains voltage.

Protection against welded contacts in RL2 is not quite as positive, as the RCD will not trip. However, RL1 will still isolate the mains supply. In any case, the current source will not be enabled, and Q1 will block the flow of any significant current. Finally, one of NE4-NE6 will illuminate in the event of the plug becoming live, providing a warning to the operator.

Obviously, the reciprocal arguments apply when plug 2 is inserted in a socket, and plug 1 is free.

It was not considered necessary (or desirable) to switch the earth contact to the plugs. While a live earth pin could result from a miswired GPO, in this case you have got bigger problems anyway.

The logic driving the interlocking relays works as follows: Two optocouplers (OK1 and OK6), with dropping resistors, are connected directly across the active and neutral pins of plugs 1 and 2. If both plug 1 and plug 2 are inserted into correctly wired sockets on the same phase, both optocouplers will turn on together, and pin 13 of U5 will be periodically pulled low with a 50% duty cycle square wave.

If one of the sockets to which the device is connected has active and neutral reversed, the current source could be connected across the 240VAC supply, which is undesirable. However, in this case, the optocouplers will switch on alternate half cycles, and pin 13 will stay high. Similarly, if the sockets are on different phases, pin 13 will still be pulled low, but the optocouplers will only overlap for less than 10% of the time, and the (negative logic) duty cycle of the square wave at pin 13 will be much lower.

It is also necessary to consider what will happen if one of the plugs is removed while the interlocking relays are energised, as the optocouplers could potentially be "back fed" though the constant current circuitry, and latch the relays on. If plug 2 is removed, positive half cycles will flow from plug 1 through the current source circuitry to plug 2. However, the optocouplers are fed from the negative half cycle, which is blocked by D2 and D5, so the pulse train ceases, and the relays drop out.

This argument does not apply in the case where plug 1 is removed, as the circuit is not completely symmetrical, and this time the optocouplers and current sources are active on the same half cycle. However, note that the transformer feeding the relays is fed from plug 1. If plug 1 is backfed, this will be with pulsating DC, rather than AC. Therefore, the supply rail will fall, both due to the reduced amplitude of the AC component, and reduced coupling due to saturation of the transformer core. So, again, the relays will drop out.

Note that there is a reverse leakage path through the current sources, through R10, R11, D17, R40, R41, and D18. R9 and R16 ensure that this reverse leakage current is insufficient to turn on the LEDs in the optocouplers.

The square wave from the optocouplers, after buffering by U5A, is averaged by C9 (ignore R68 for now), and if the duty cycle is high enough, Q6 turns on.

U5B forms a missing pulse detector, which times out after around 20ms if the input pulses cease. (This is necessary to ensure that the relays shut off quickly if a plug is pulled out, since the duty cycle detector is relatively slow to respond.)

If both of the input validation conditions are met, then the relays are switched on after a short delay (formed by C18/R49), switching the current sources into circuit.

The current sources are formed using a simple op-amp circuit. Taking the source for the active line, current from a floating supply is sunk through the load by Q1 into a current sense resistor (R3). The voltage developed across R3 is compared with a scaled reference voltage from U2 by U4A, and the transistor base drive is adjusted in order to maintain a constant current.

While in normal operation there will not be any significant voltage across the output of the current source, and interlocking is provided against various fault conditions, there is still the possibility that the current source may end up being connected across the 240V supply. It is therefore desirable to provide protection against this. D2 blocks the negative half cycle of the AC waveform, and Q1 has a VCEO of 800V. However, dissipation when passing the full 120mA at 240V would be around 30W, which would be excessive. Therefore, if the voltage across Q1 exceeds around 30V, the output of U4B goes high, shutting off the drive to Q1.

The circuit functions by injecting a current between the active terminals of the two plugs. In the "wiring test" mode of operation, this current will flow back through the switchboard, would could cause tripping of RCDs. Therefore, it is necessary to provide a second current source, which injects an equal and opposite current into the neutral circuit, cancelling out the original current as far as the RCDs are concerned.

Differences in the switching times between poles of the relays could still cause a transient differential current to appear, so the current sources are held off by OK2 and OK3 until a short time after the relays engage. This delay is provided by C11 and U5D. The rate of rise of the test currents is set by C2 and C5, which should ideally be matched to within 5%.

Note that a transient differential current can still occur if one of the plugs is pulled out while the test current if flowing, and one pole breaks before the other. Therefore, when using the device in the "wiring test" mode, the selector switch should be set to the "E" position (which disables the relays) before inserting or removing the plugs.

It can be seen that that a third current source for the earth conductor is not required - when the relays are de-energised, the current sources are automatically connected across the earth conductor. Note however that they are in parallel, and would cancel each other's current out, so once source is disabled via its optocoupler in this mode.

The remainder of the circuit is for switching the sense terminals and measuring the voltage drop across the test conductor. U5E and U5F are edge detectors that ensure correct sequencing of the relays and current sources when switching into or out of the "earth test" mode.

R12, R15, R18, R21, R24, R27, R55, R58, R61, R26, R29, and R45 provide the high input impedance for the voltmeter that is necessary for safety. Note that the resistors are duplicated in each arm for redundancy, and one resistor is upstream of the switch contacts, to guard against flashover in the switch. C10 filters out any AC noise from the measurement signal. R20, the main input impedance of the voltmeter circuit, results in a slight attenuation of the signal, but this has been calibrated out.

Note that, as the test current in the neutral flows in the opposite direction to that in the active, the resulting test voltage is of opposite polarity. RL3 serves to flip the connections to the meter to compensate for this.

A spare position was present on the mode switch; this is used to provide a simple AC line voltage monitor using D22, C20, R19, and R17. Alternatively, if R70, R71, and R69 are fitted instead of these components, the meter may be used to monitor the phase difference between two circuits, by monitoring the duty cycle of the input optocoupler signal. This may be of use e.g. for synchronising generators (This feature is experimental - values may need tweaking). An isolated synchronisation signal is also provided via OK4.

In addition to warning of a circuit failure, the neon lights function as standard "three light" testers for correct wiring of GPOs. The active-earth (green) and active-neutral (blue) should light up, while the neutral-earth (orange) should remain dark.

Construction

If you would like to build up a unit along the lines I have described, I should first note that this is a project for experienced constructors only! Operator safety depends on your ability to maintain the necessary isolation between different sections of the circuit. The entire unit should be built to a "double insulated" standard in a plastic box, with no externally accessible metal parts. The whole circuit board should be treated as being live at mains voltage, and the device should not be operated outside its enclosure. I have provided a PCB design that gives reasonable isolation between the different sections, and dual redundant components in series for isolation where required, but you may wish to check that this design meets any regulatory requirements in your part of the world.

Schematic, PCB, and Gerber files may be downloaded here (Eagle format). This may be fabricated using a standard two layer process, with no particular special requirements. Ensure that the isolation slots are manufactured as per the design, without any plated copper.

The bill of materials may be downloaded here (LibreOffice format). Most of the parts should no present any particular issue. The panel meter is the 3.5 digit type readily available on Ebay and elsewhere, which requires an isolated supply of around 12VDC. C2 and C5 should be matched to within 5% if possible - although electrolytics are not generally close tolerance parts, I found that this was easy to do even from a small batch of 10 units. For the case, I used a standard UB2 size jiffy box (60x113x196mm), however this proved to be a bit of a tight squeeze, and I would suggest that you choose something a bit bigger. As noted above, this should be made of plastic.

The only component that is likely to cause a bit of an issue is the mains power transformer, T1. This requires four separate secondaries, two of which must be able to withstand 240V between them and the other two. Most of-the-shelf transformers with multiple secondaries do not have the necessary degree of insulation, and are therefore unsuitable. In any case, four separate secondaries is not a common configuration. (Note however that windings T1D and T1E do not require extra isolation between them, and a commercial twin secondary transformer may be used here)

The approach that I took was to wind extra secondaries on a standard toroidal transformer. To do this, first buy a 20VA toroid with a 12V secondary. This will need to be of the "open" construction, rather than a potted unit. Temporarily wind 10 turns of insulated wire through the core, power up the primary, measure the voltage across the new winding, and calculate the turns-per-volt figure. Remove the temporary winding, and wind several layers of Kapton tape over the existing windings.

Now wind the two or three new secondaries through the core, using 0.5mm diameter enamelled copper wire. (It will be easier if you wind the necessary length of wire onto a small bobbin that will pass through the core first) Each winding should be confined to a 60 degree segment of the core, in order to leave a generous gap between the windings. The number of turns should be calculated to give two 6V windings, and another one to suit the requirements of your LCD panel meter. Note that the power supplies for the current sources may be configured as voltage doublers, to minimise the number of turns that must be wound. To do this, fit solder blobs on J1 and J2.

[New windings on the toroid]
New windings on the toroid.

After completing the windings, solder some 240VAC-rated insulated wire to the end of each (use a different colour for each winding), and heatshrink the joins. Apply a further layer of Kapton tape over the windings to provide insulation, and strain relief for the wires.

If this all seems too much work, there is a simpler, if slightly inelegant, solution. Just buy four separate mains transformers for the required secondary voltages, and wire their primaries in parallel. They only need to be rated at around 3-5VA each.

The board may be assembled with reference to the overlays shown below. It is probably easiest to fit all of the SMT components first, followed by the through hole ones. Note that the two rotary switches are fitted to the bottom side of the board.

[PCB top overlay]

[PCB bottom overlay]

I would suggest that you fit the panel meter remote from the switches on the front panel, as there is not much room under the main PCB for it. If you want to install the panel meter under the board, as I did, it will be necessary to space the switches out from the board, in order to provide enough room for the meter. The switch pins should be flush with the top side of the board, rather than poked all the way through. To ensure that the switches are installed straight, tack solder a couple of pins on each and check the alignment before soldering the rest of the pins.

To allow enough room for the meter, it will be necessary to place washers around the switch bushings, to space them out from the panel. Even after taking these lengths, I found it was necessary to swap out the terminal block on the meter for a lower profile one, in order to get everything to fit. For safety, a sheet of fireproof insulating paper or similar should be placed between the panel meter and the main board.

Ensure that all component pigtails are cropped short, to avoid compromising the isolation distances anywhere on the PCB. High profile components such as the 1W resistors and TO-220 devices should also be covered in heatshrink, to prevent shorts.

[Front panel
Front panel, showing switch positions.

Once the board is assembled, it may be fitted in the case. It is secured by the two switch bushings, and an M4 bolt on the opposite edge. This must be a nonconductive nylon bolt for safety. The transformer(s) can also be bolted in place, again, using plastic fasteners in any positions where the case exterior is penetrated. Note however that the transformer is a relatively heavy component, and a plastic screw may not be sufficient to hold it in place e.g. if the unit is dropped. The approach I took was to bolt the transformer to a metal sub-chassis, which was clamped in place once the case lid was fitted, without requiring any fasteners to go through the case.

[Internal view of the tester]
Internal view of the tester.

The off-board wiring may now be completed with reference to the wiring diagram shown below. The cable going to plugs 1 and 2 presents a slight problem, as it needs to be mains-rated, and have six conductors. Ordinary data cable does not have sufficient insulation. I used some cable designed for industrial motor drives and sensors, but any multicore 240VAC rated cable that you can find would be suitable. If you can't find anything appropriate, then you can use ordinary 3 core cable, and common the sense and force terminals inside the unit. Note that accuracy will be reduced somewhat if this is done however. In this case, the cables to plugs 1 and 2 should be as short as is practical.

[Wiring diagram]
Wiring diagram.

For an additional feature (not shown on the wiring diagram), a mains socket can be wired in parallel with plug #1, for testing extension leads. Just loop either the sense or force wires for plug #1 through the socket. (Either will work, and the Kelvin connection will still be maintained). I didn't do this on my unit though, due to lack of space, and it is still possible to test extension leads without it - simply plug the lead into the second socket of a double GPO.

[Detail of plug wiring]
Detail of plug wiring.

The mains cables should be anchored using cable glands or similar, so that the wires cannot be pulled out. Fit plugs to the cable in the usual manner, commoning the "sense" and "force" wires at each pin. The neon lamps and associated resistors can be wired directly to the backs of the plugs, and can be viewed through the transparent cover of the plug. Use heatshrink as necessary to prevent the resistor and lamp leads from shorting. Finally, fit the cover to the enclosure, and the unit will then be ready for testing.

Testing

For testing, it will be necessary to have a mains extension lead with a series lampholder, and a powerboard. An isolation transformer is also highly recommended. At no point should the device be plugged in unless it it fitted into its case, with the lid on. Connect the series cable, with a 40W incandescent lamp to the isolation transformer, then plug the power board into the cable. Plug all three of the tester's plugs into the powerboard. Set the switches to the "A" and "R12" positions.

Now apply power. The series lamp should stay dark (other than perhaps a brief flash), and the panel meter should display a reading. Some of the neon lamps in the plugs should also illuminate - observe their brightness (Note that the pattern may not be correct if running from an isolation transformer). You should also hear RL1 and RL2 pull in.

Now, for all combinations of the switch settings, unplug plug 1 and plug 2 in turn. As soon as you pull the plug, the relays should drop out immediately (Note however that they will not be engaged in the first place for some switch positions.) The neon lamps in the plug you have removed should also become significantly dimmer (they may not extinguish completely, due to leakage currents) With a multimeter set to AC current, measure between all combinations of pins. In every case, the reading should be less than 1mA.

If you have a "reverse polarity" double adapter, turn the switches back to the "R12" and "A" positions, and connect plug 2 via the adapter. The relays should not pull in.

Having tested the interlocking, now you can move on to the functional testing. Reinsert the plugs, and select "A" and "R12" again. The display should show a value of less than 20 milliohms, which should not change significantly when the "N" or "E" positions are selected. Note that it may take a few seconds for the reading to settle.

Now, disconnect plug 2, and reconnect it via a 10m or more extension lead. The meter should indicate around 200 milliohms (or more), and again, the reading should be similar for all three conductors.

Select the "A" and "V" positions, and measure the mains voltage using a multimeter. The readings should match within about 2%. (If there is a significant error, this may be due to differences in the panel meter input impedance, it may be corrected by trimming R20)

The "wiring test" mode is best tested by following the procedure described below for using this mode. The readings may be cross-checked by swapping plugs 1 and 2 in their respective sockets.

Using the device.

GPO test

Typically, it will be desirable to check all of the GPOs in a given installation. Draw up a spreadsheet along the lines of that shown below, assigning a unique identifier to each GPO (e.g. its location/what appliance is usually connected to it).

GPO IDCircuitActive Resistance (mR)Neutral Resistance (mR)Earth Resistance(mR)
Living room, by TV11356
Kitchen, fridge1959
Kitchen, toaster216416
Bedroom 129515
...

Now, insert plugs 1 and 2 into each side of the first GPO. (Plug 3 remains disconnected in this mode.) For best accuracy, turn off any high power appliances downstream of the socket under test. Turn the mode selector to "R12", and step through the A, N, and E conductors in turn. Record each resistance in the table. You will quickly get a feel for the expected values, but in general, a good socket will measure less than 15 milliohms for each pin, and any values higher than 25 milliohms should be treated with suspicion.

Wiring test.

This test requires a bit more effort than the first one. To perform the wiring test, it is necessary to determine which sockets are on which circuits. Assign identifiers to each circuit back at the fuse box, and enter the circuit for each GPO in the table. (If not known, this can be determined by shutting off each circuit in turn). For best accuracy, turn off any appliances (or at least, the high power ones) on the circuit under test, however the circuit itself should remain energised.

Now, set the mode switch to "R1", and the conductor selection to "E". (Always set the conductor to "E" before inserting or removing any plugs for this test, otherwise the RCD may trip.) Connect plug 1 directly to the first socket of the first circuit to be tested. Then, by means of extension leads, connect plugs 2 and 3 to two GPOs on two different circuits, that are also different from the circuit under test. Cycle through the A/N/E conductors, and record the resistances in the table. Turn the selector back to "E", unplug plug 1, and move on to the next GPO. When all of the sockets on the first circuit have been tested, move on to the next one, rearranging plugs 2 and 3 as necessary such that each plug is always on a separate circuit. The circuit under test (plug 1) should always connect directly to the tester (not via an extension lead).

The measured values will vary with the distance from the GPO back to the switchboard. In Australia, power circuits are generally wired with 2.5mm^2 copper, which has a resistance of around 7 milliohms/metre. If the route of the cable back to the switchboard is known, the expected resistance can be calculated.

A number of factors can cause the resistance to be higher than the calculated value, including contact resistance in circuit breakers and switchgear, poor connections in daisy-chained wiring, wire being of a thinner gauge than expected, wire being oxidised or deteriorated, or simply the cable route being longer than you thought it was! Obviously, not all of these are fault conditions, but values higher than say 120% of the expected value, or deviations between conductors of more than 10%, may warrant further investigation.

Once a set of values has been recorded for a particular installation, these can be retained and used as a baseline for periodic retesting, allowing any progressive deterioration of the wiring to be detected.

Extension lead test

To test an extension lead, connect plug 1 of the tester to a GPO. Connect plug 2 to the extension lead, and plug the lead into either the socket on the tester (if fitted), or a socket adjacent to that used for plug 1. Turn the mode switch to "R12", and the resistance of each conductor of the extension lead may be read off.

Conclusion

In summary, a simple tester for monitoring the condition of wiring installations in buildings has been presented. Note however that the scope of the unit is limited to testing for high resistance faults, and it should be used in conjunction with other tests to fully ensure the safety of an installation (e.g. earth bond, loop fault impedance, RCD trip current, etc).


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

loopgain.net