p metal detectors schematic