pi metal detector circuit diagram