metal detector in sonar circuit diagram