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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Internet of Things
  • Technologies
  • More
Internet of Things
Blog DIY fun: Building a Mains Power Line Sniffer
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 11 Aug 2014 4:35 PM Date Created
  • Views 5583 views
  • Likes 7 likes
  • Comments 23 comments
  • mains
  • texas_instruments
  • sensor
  • ti
Related
Recommended

DIY fun: Building a Mains Power Line Sniffer

shabaz
shabaz
11 Aug 2014

Introduction

Attempting to put up a shelf over the weekend to create my own lab, I couldn’t find my mains power tracer. These things are used to detect buried mains cables in walls; the detectors are low cost, and available at DIY stores. The more wiring that is stuck into homes the more important such a tool becomes.

 

With the local stores being shut on a Sunday, I figured it was time to either borrow one or build one.

 

This post documents an AC mains power tracer that can be built in a couple of hours. It has benefits over some store-bought models; it is ultra-sensitive, and requires no adjustment/calibration.

image

 

As usual, be careful with mains voltages. The circuit described here is not intended to be exposed close to uninsulated wires or open enclosures. It is an aid to locate live wiring behind walls.

 

Design Detail

Typical mains power line detectors are often integrated with metal detection capability too. The design I implemented only detects AC mains power.

 

Anyone who has experimented with field effect transistors will not have failed to notice that the extremely high input impedance allows you to have lots of fun with electrostatics. Charging up a comb or balloon and then bringing it close to the gate provides sufficient charge to control the FET. There are lots of classic circuits that can be googled based around the popular 2N3819 or MPF102 junction FET (JFET) devices to construct electronic equivalents of the old ‘gold-leaf electroscopes’, usually using not much more than a JFET, an LED and a battery.

 

It was time to try different things! There are some nice op amps available, so it was decided to construct an op amp based circuit and see how well it works.

If this was to be a low-cost design for DIY store, then a JFET or low-cost op amp circuit would be designed, perhaps with some nulling capability at switch-on, and an LED indicator.

 

For this design, some nicer parts are used. An analog meter is used to display the measured field. This is far better than an LED for this use-case in my opinion. As you drag the device across a wall, you can easily watch for the peak on an analog meter. I used a random meter from a junk box, but there are lots of options such as an edge mount panel meteredge mount panel meter or my favorite - a round meterround meter - both would work fine.

image

 

Furthermore, an interesting op amp from Texas Instruments was used for converting the tiny current from the electric field into a measurable quantity. The selected device, LMP7721LMP7721, is ideal for building a transimpedance amplifier to perform the current to voltage conversion.

The circuit diagram is shown below.

image

 

The photo here shows how it was constructed. The orange blob on top of the op amp is an axial 100nF capacitor100nF capacitor C1. The resistor you can see to the left of it is R1.

image

 

The op amp is available in an SO8 package, so a small SMD adapter board from TISMD adapter board from TI was used - the adapter board is great value, it comes with the terminal strips too, all ready to solder.

There is a 100 Mohm resistor100 Mohm resistor in the op amp feedback, and it was soldered in the air – the inverting input of the op amp was not soldered to the adapter board, but was carefully bent so that all soldering was in the air. Also, finger contact with the resistor and C2 and C3 was avoided to prevent grease (use tweezers).

 

Resistor R3 is a small, non-critical value (I used a trimmer resistor but it is not needed). I used a 200uA meter. R3 just provides some protection for the op amp and the meter. In a similar vein, R2 and C2 are an attempt to provide some protection from spikes. I’m not sure how effective it is, these values were not calculated nor tested.

 

The entire circuit is driven from a non-critical supply voltage of around 3V (I tested with a 3.3V supply). The non-inverting input is at the same voltage as the most negative supply. This is not usually good for an AC input, however it means that no rectifier is needed at the output. It was found the circuit as-is performs well. It is extremely sensitive, from the needle deflection you can sense mains power lines from a foot away (30cm).

 

The oscilloscope trace below shows the output when the circuit is held close to the mains supply cable to my desk lamp. It is quite a large output (20msec spaced peaks corresponding to 50Hz mains supply).

image

Summary

The circuit worked very well although I still have not fitted the shelf : ) As a reminder, don’t rely on the circuit – it is just an aid. I can’t guarantee its reliability or safety. It is an experimental circuit, not for DIY enthusiasts.

 

To make the circuit more usable/practical, I drilled out a hole for it in a Hammond enclosure Hammond enclosure (not got round to finishing that either!). I may power it from two N-sized batteries if they fit. A larger case and AAA batteries would be better.

image

  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 10 years ago in reply to shabaz +2
    Hi Shabaz - I have just completed making my interpretation of the Shabaz AC Line Sniffer. This was my first attempt to make a usable device using surface mount chips. I had a cheap SOIC-20 adapter board…
  • jw0752
    jw0752 over 10 years ago +1
    Hi Shabaz, Thanks for sharing this cool project with us. I have always enjoyed making my own test instruments. It helps not to have a critical application. I can't wait to give this one a try. John
  • mcb1
    mcb1 over 10 years ago +1
    Nice work. You can also some of those voltage sticks. There are a number around that are very sensitive, and therefore useless inside a switchboard for detecting which wire is live. This would be an ideal…
  • jw0752
    jw0752 over 10 years ago in reply to shabaz

    Thanks Shabaz - Your approval means a lot to me.

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 10 years ago in reply to jw0752

    Hi John,

     

    Wow, this looks nice! I've yet to finish mine (my case was too small) I think I will enclose it in a similar style to yours. Good idea about the pluggable probe!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 10 years ago in reply to mcb1

    Thanks Mark,

    The Kavo Dental Handpiece and replacement turbines are sold world wide and have very nice black plastic boxes that for the most part just get thrown away. Check with your local Dental Supply House if you are interested in some neat little experimenter enclosures.

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to jw0752

    Nice work ...well done.

     

    Very handy case, and good idea about the LED and removable aerial.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 10 years ago in reply to shabaz

    imageimage

     

    Hi Shabaz - I have just completed making my interpretation of the Shabaz AC Line Sniffer. This was my first attempt to make a usable device using surface mount chips. I had a cheap SOIC-20 adapter board from China on which I mounted the LMP7721 and a FAN 1117AS 5 5 volt regulator. I decided that I wanted to power  the device with a 9 volt battery and hence the regulator. I soldered some in-line header pins to the edge of the adapter board and then wired the remaining components to the back side of the board, going pin to pin like some weird string art. It really looked quite nice until I realized that a couple of the traces on the cheap board had lifted and broken. I was able to patch the problem but could not quite maintain the original aesthetics. For an enclosure I chose a small plastic box in which a KaVo Dental handpiece turbine was originally sold. Along with a 200 uA CB radio RF meter I put a 5k trimmer so I could adjust the meter's range. I also installed an LED so that I would not forget and leave it on. I put the antenna on a detachable female header jack as I know from past experience that it will get bent or broken and can now be easily replaced. I tested the device and found it to be sensitive enough for locating wires in my walls. In my experiments I noticed that the sensitivity greatly improved if I was holding the case in my hand. I would guess that the capacitive effect of my hand created a floating ground for the electric field to work against. Once again thanks for the cool circuit and idea. I had a good time making it. Here are a couple pictures.

    Thanks Again John

    • Cancel
    • Vote Up +2 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 © 2025 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