element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
John Wiltrout's Blog Reverse Engineering a GFI Plug
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jw0752
  • Date Created: 23 Dec 2017 4:42 AM Date Created
  • Views 2029 views
  • Likes 13 likes
  • Comments 16 comments
  • gfi_plug
  • reverse_engineering
Related
Recommended

Reverse Engineering a GFI Plug

jw0752
jw0752
23 Dec 2017

While getting dinner tables ready today for the coming Christmas Dinner the boss (Millie) asked me to get some wrinkles out of a plastic table cloth. After retrieving my shop hair dryer I began to heat the plastic cloth to remove the wrinkles. After I had finished I noticed the little GFI Plug, on the end of the cord, plugged into the wall outlet. I thought to myself, you know I have never tested the GFI,and so I pushed the test button. The GFI however did not click and open but rather began to buzz that nasty 60 cycle buzz that means something is wrong and before I could pull the plug from the wall it let loose with a plume of smoke.

 

Opportunity had knocked as I have never investigated a plug based GFI before. Several minutes later I had it disassembled and off the cord. Since I was doing it anyway I decided to document the exploration so you too could see what was inside.

 

image

 

After removing the covers I found the inner mechanism to be a nice mix of the electronic and the mechanical.

 

image

 

image

 

The manual red Reset button engages a mechanism that holds the two mains switches closed and one smaller switch that leads to the Test Circuit. A small solenoid (Yellow Center) latches the mechanism in place. If the solenoid is energized the latch is pulled out of the way allowing the mechanism to drop and the three switches go open. A quick inspection and measurement with the ohmmeter showed that the solenoid coil had been the source of the smoke as it was now open. I removed the main transformer which had 2 common mode windings (the Large Red and Large Blue), one Test Winding ( Small Blue) for manually triggering the solenoid, and one Sense Winding (Small White) that led back to the electronics under the transformer.

 

image

 

This opened the board itself for better analysis.

 

image

 

The board was a pleasure to reverse engineer as all the components were well marked for identification and the single sided board with 14 components gave up its secrets quickly. Here is a schematic of the GFI device. If you click on the schematic it will open a larger view.

 

image

 

I found it fascinating that the designer put the coil of the solenoid in series with the line side of the bridge rectifier. The rectified side of the bridge was connected directly to the cathode and anode of SCR EC103.  If the conditions in the circuit are such that the SCR is triggered it creates a short that applies sufficient current to the solenoid coil to pull the latch and open switches SW1, 2, and 3. The conditions for triggering the solenoid are #1, the Test button is pushed and sufficient current is induced in the Sense Winding of T1 by the Trip Winding. or #2 an imbalance in the current through Common Windings of T1 caused by Mains current leakage to ground rather than returning through Neutral also induces current in the Sense Winding.

 

My further analysis of the electronics is more guess than knowledge. Diode D2 should remove one side of the AC Current produced by the Sense Winding and the 5.6 Volt zener ZD1 probably adds a DC bias to the signal to put the gate of the SCR closer to its trigger point. The data sheet on the EC103 says that it is a sensitive gate SCR which makes sense as we would not want any more delay than necessary before energizing the solenoid. I hope someone corrects and improves on this analysis if they have time so I can understand it better. I have linked the data sheet in case it is helpful in better understanding the circuit.

 

http://datasheet.octopart.com/EC103M-Teccor-datasheet-5013.pdf

 

The hair dryer which is a shop tool no longer has a GFI plug and has been labeled for safety concerns. Unfortunately the way this GFI failed would not have protected the user in the case of a real emergency. When the solenoid coil burned out without tripping the mechanism it left the mains switches closed and the current still flowing to the hapless victim.

 

Thanks John

 

 

  • Sign in to reply

Top Comments

  • ntewinkel
    ntewinkel over 8 years ago +7
    > Unfortunately the way this GFI failed would not have protected the user in the case of a real emergency. This reminds me of how, in engineering, we aim for "how does it work" and often forget to ask…
  • jc2048
    jc2048 over 8 years ago in reply to shabaz +6
    This is what's inside a UNI-COM one. This is the back of the board - the solenoid is inside the housing to the left and the core with its windings is to the right. Obviously a broadly similar principle…
  • michaelkellett
    michaelkellett over 8 years ago +5
    My guess is that the solenoid coil is only rated for a very short operation, during which it should pull the switch and remove power from itself. If the switch jams not only do you run the risk of electrocution…
Parents
  • shabaz
    shabaz over 8 years ago

    Hi John,

     

    This is very interesting - glad that all is well and you were around to unplug and examine the item. I too have RCDs for some devices, and so after seeing your analysis and reverse engineering, and michaelkellett comment, it is now clear that one should be prepared for that condition when the test button is pressed. Ordinarily I would not have given it a seconds thought, I'm pretty sure the user instructions do not advise in such detail.

     

    I tried to examine the plug-in RCDs here briefly just now - they have security screws so I didn't open them (I don't have a spare one).

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 8 years ago in reply to shabaz

    This is what's inside a UNI-COM one.

     

    image

     

    This is the back of the board - the solenoid is inside the housing to the left and the core with its windings is to the right.

     

    image

     

    Obviously a broadly similar principle to John's, but there's a small IC on the front so the current trip point is possibly a bit more accurate.

     

    Even functioning properly I wouldn't trust it to save my life. It's worth having there, but at 30mA the trip point is too high to be certain of saving you anyway.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 8 years ago in reply to jc2048

    Hi Jon,

     

    Thanks for popping a different unit open. It is always interesting to see how different designers approach the same problem.

     

    John

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago in reply to jc2048

    Even functioning properly I wouldn't trust it to save my life.

    Here in NZ and Australia, they are mandatory on all new builds, and certain modifications to houses.

    They are fitted at the switchboard, and while they do have a test function, you can bet most people don't test them regularily.

     

    It's worth having there, but at 30mA the trip point is too high to be certain of saving you anyway.

    The tripping of them is 300/500mS, so while 30mA is the lowest trigger point, they have determined that the false tripping v safety means it's a reasonably safe comprimise.

     

    You can get 10mA versions and these need to be fitted under certain conditions. One of them is medical and the other is childcare facilities.

    Electricity (Safety) Regulations 2010 (SR 2010/36) (as at 04 April 2016) 24 Electrically unsafe RCDs – New Zealand Legis…

     

     

    I've never actually pulled one apart, but during our EST the basics of them was shown.

    They simply detect an inbalance between phase (or phases) and neutral current, which by deduction means the current is flowing to earth (which for us down under is tied to neutral)

    You can purchase proper testing devices ( rscasny would be a good RT) that allow you to set the current, but the test for consumers is simply a button which has a small load which bypasses one sense winding.

     

     

    The switchboard versions stay ON until tripped.

    Portable devices require resetting whenever the power is applied, so in theory you would be better using a portable device as at least you know the mechanical aspect trips.

     

    Cheers

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago in reply to mcb1

    I think it is a matter of perception of safety and in a lot of cases, you could survive a short burst of current if you are healthy.

     

    As with any safety device, you have to maintain them and test them to ensure that they still work.

     

    Make no mistake, all devices fail, it is just a matter of time.

     

    I was surprised that there was not more self monitoring capability built into the device.  I guess making them cheap is more important than making them more robust.

     

    Just my perception.

     

     

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago in reply to DAB

    As with any safety device, you have to maintain them and test them to ensure that they still work.

    or design them to be "fail to safe".

    The portable RCD's we have are fail to safe, as they trip when there is no power, meaning they need to be held ON, rather than energised off.

     

     

    Sadly this 'fail to safety' mentality is not well understood by a lot of our Engineers.

    They understand about presenting a closed contact so that any break in the wiring is detected, but sadly miss that they have to energise the relay to break the contacts.

    It's almost like they are scared to continuously power a relay.

     

     

     

    I'm a little shocked that the design allowed the device to effectively cook the solenoid coil.

    If there had been a Ground Current, then it wouldn't have tripped (possibly electrocuting the user) and then possibly set fire to something.

     

     

    Mark

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • mcb1
    mcb1 over 8 years ago in reply to DAB

    As with any safety device, you have to maintain them and test them to ensure that they still work.

    or design them to be "fail to safe".

    The portable RCD's we have are fail to safe, as they trip when there is no power, meaning they need to be held ON, rather than energised off.

     

     

    Sadly this 'fail to safety' mentality is not well understood by a lot of our Engineers.

    They understand about presenting a closed contact so that any break in the wiring is detected, but sadly miss that they have to energise the relay to break the contacts.

    It's almost like they are scared to continuously power a relay.

     

     

     

    I'm a little shocked that the design allowed the device to effectively cook the solenoid coil.

    If there had been a Ground Current, then it wouldn't have tripped (possibly electrocuting the user) and then possibly set fire to something.

     

     

    Mark

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • DAB
    DAB over 8 years ago in reply to mcb1

    I agree, all safety devices should fail to safe.

     

    Hopefully engineers are reading this and realizing that their efforts are useless if anyone dies.

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube