Adaptive thresholding for metal detection

Abstract: A two-channel metal detector system (32) disposed adjacent the crop feed path of a harvester (10) to detect ferrous metal objects in the crop material is provided with both positive and negative adaptive detection thresholds (ADAPT.POSTH, ADAPT.NEGTH) for each channel, the thresholds being independently varied according to the average positive and negative peaks of the noise component in the channel output signals. A channel output signal (CH0, CH1) is sampled and digitized and the positive and negative peaks (POSPK, NEGPK) of the noise component occurring over fixed time intervals are filtered to provide average positive peak and average negative peak values (L/RPOSF and L/RNEGF) that are stored in an E 2 PROM and updated according to long term variations in the noise component. The positive and negative adaptive detection thresholds (ADAPT.POSTH, ADAPT.NEGTH) are set according to the average positive and negative peak values (L/RPOSF, L/RNEGF) and the adaptive detection thresholds are compared with the sample channel output signal (CH0, CH1) to determine if a ferrous metal object has been detected. By storing the average positive and negative peak values (L/RPOSF, L/RNEGF) of the noise component in an E 2 PROM memory, the adaptive detection thresholds and the filters (82) may be initialized at system start-up to the values existing at the time of system shut-down.

Description: The present invention relates to magnetic metal detectors of the type used in forage harvesters and other crop harvesting equipment. More particularly, the invention relates to a method and apparatus for setting and automatically adapting the sensitivity of a metal detector to account for varying conditions which influence the magnitude of the output signal from the detector. It is conventional to provide a magnetic metal detector adjacent the crop feed path of a harvester for the purpose of detecting the presence of ferrous metal objects picked up from a field with the crop material. Upon detection of a metal object in the crop feed path an output signal is produced to stop the crop feed mechanism before the metal object is fed into a crop cutter mechanism where it could cause considerable damage to the cutter knives and shear bar. Exemplary harvesters with metal detectors are described in US-A-3,757,501, US-A-3,889,249, US-A-3,972,156 and US-A-4,433,528. The metal detectors must, of necessity, be located close to the crop feed path so that metal objects passing through the feed path may also pass through the magnetic detection field of the detector. As a result, electrical "noise" is introduced into the metal detector by moving metal parts of the harvester which disturb the detection field thereby inducing a noise emf (electromotive force) component in the detection coils. US-A-4,854,113 provides a system wherein much of the cyclically recurring noise produced in a metal detector is cancelled. However, this system does not eliminate non-cyclic noise. The noise component introduced into a metal detector creates a problem in that it adds to and subtracts from, the detection component in the detection circuits. Generally speaking, the output signal from the detection circuits is compared with threshold values chosen to represent the minimum positive or negative magnitude of the detector output signal when a metal object is detected. If one of these threshold levels is exceeded then the crop feed mechanism is stopped. Because of the noise component in the detector output signals, the detection threshold levels must be set higher than if the noise component were not present. This effectively reduces the sensitivity of the system and it may not detect metal objects it would otherwise detect. On the other hand, if the threshold levels are set too low, the noise component may cause a false indication that a metal object has been detected. The problem is further complicated in that the noise component tends to increase as the moving machine parts which cause the noise age and wear. Thus, adaptive thresholding was developed to automatically vary the detection threshold as the noise component in the output signal from the detection circuits increases. US-A-3,757,501 and US-A-3,889,249 disclose a metal detector system with adaptive thresholding for compensating for variations in the noise component. However, in the system disclosed in these patents electronic circuits are required to develop the threshold control signal and this adds to the cost of the system. Furthermore, this prior art system does not provide for adjusting both the positive and negative thresholds. Another metal detector system using electronic circuitry is shown in US-A-4,821,023. This system provides for comparison of the sensor signal with both positive and negative thresholds. The document also suggests the use of digitized signals. The operator may adjust the reference voltage of the thresholds manually by means of a potentiometer, but there is no automatic adjustment of the thresholds in response to changing working conditions. Still further, the prior art systems must begin a new development of the threshold levels each time the system is turned on. Thus, at start-up the system may produce a false indication of metal object detection. According to one aspect of the present invention there is provided a metal detector system for detecting the passage of metal objects through a magnetic detection field, said metal detector system including: at least one channel comprising: a detection coil disposed in said magnetic detection field; and a detection circuit connected to said detection coil and for producing a channel output signal, which has a noise component therein varying between positive and negative values and which includes a detection component upon the passage of a ferrous metal object through said magnetic detection field; sampling means for sampling said channel output signal and producing digitized channel signals; and comparing means for comparing said digitized channel signals with a positive threshold and a negative threshold and for producing an output indication when one of said digitized channel signals has a value above said positive threshold or below said negative threshold; said metal detector system being characterized in that it further comprises: setting means for independently setting said positive threshold at a multiple of the average value of positive peak magnitudes of said noise component and said negative threshold at a multiple of the average value of negative peak magnitudes of said noise component. This system automatically adjusts the sensitivity of the metal detector. The average values may be developed by filter means from positive and negative peaks detected by peak detectors. Wake-up conditions may be optimized by providing an erasable memory means (E 2 PROM) wherein the positive and negative peak average values are stored so that the detection thresholds existing at the time of system shut-down may be re-established at the time of system wake-up. The operator may adjust the sensitivity of the detector by loading a sensitivity value into the system. According to another aspect of the invention there is provided a method a method of operating a metal detector system that detects the passage of metal objects through a magnetic detection field, the metal detector system including: at least one channel comprising a detection coil disposed in the magnetic detection field, and a detection circuit connected to said detection coil and operable to produce a channel output signal, which has a noise component therein varying between positive and negative values and which includes a detection component upon the passage of a ferrous metal object through the magnetic detection field, said method comprising: sampling said channel output signal and producing digitized channel signals; and comparing the digitized channel signals with a positive threshold and a negative threshold and producing an indication when one of the digitized channel signals has a value above said positive threshold or below said negative threshold; said method being characterized in that it further comprises: independently setting said positive threshold at a multiple of the average value of positive peak magnitudes of said noise component and said negative threshold at a multiple of the average value of negative peak magnitudes of said noise component. In a preferred embodiment the adaptive thresholding is accomplished by programming a microcomputer already present in the detection system so that no additional hardware is required. The system and the method may be used advantageously in an agricultural harvesting machine for detecting ferrous metal objects in a flow of crop material. Fig. 1 shows a forage harvester having a magnetic metal detector in a feed roll; Fig. 2 is a schematic circuit diagram of a two-channel metal detector system; Fig. 3 is a diagram used to explain the relationship between various threshold values and average positive and negative peaks of a channel noise signal; and, Fig. 4 illustrates operations carried out by a microcomputer in executing an Adapt_Main1 routine. Fig. 1 illustrates a forage harvesting machine of the kind in which the present invention may be employed. It will be apparent that the invention may also be employed with benefit for the protection of other types of farm machinery, and that it has other monitoring and alarm actuating applications aside from protecting farm machinery from damage caused by the ingestion of metal objects. The forage harvester, generally designated by reference numeral 10, comprises a base unit 11 and an attachment 12 for gathering crop material and feeding it to the base unit for processing. Attachment 12 directly cuts crop material in the field and feeds it to base unit 11 where it is chopped and eventually conveyed to a trailing forage wagon (not shown). The attachment 12 includes a reel 13, depicted in phantom, which operates in a conventional manner to guide material over a cutter bar 14 and up an inclined floor 15 to a consolidating auger 16, also depicted in phantom outline. Attachment 12 is pivotally mounted to base unit 11 at 17 and is adapted to feed crop material to the space between upper and lower front feed rolls 18, 20 and then on to upper and lower rear feed rolls 21, 22 which in turn feed material to a cutterhead 23 (shown in phantom) which chops the crop material and guides it rearwardly to conveyor means 24 in a well known manner. The conveyor 24 commonly comprises an auger mounted traversely for feeding the chopped crop material to a blower unit which conveys it upwardly via a vertical spout 25 (partially shown) and then rearwardly to a trailing forage wagon. The front and rear pairs of upper and lower feed rolls compress into a mat-like configuration the crop material which has been gathered by the attachment and consolidated by auger 16. The mat of material is fed rearwardly across the top surface of a shearbar 26 which is operatively associated with a series of cutting elements 27 (one of which is shown in phantom) on rotating cutterhead 23 journaled for rotation by mounting assembly 28 in sidewall 30 of base unit 11. A magnetic metal detector system, indicated by numeral 32, is supported on a stationary shaft 31 within the lower front feed roll 20. In a preferred embodiment, the metal detector system comprises a two-channel detector having first and second detection coils 40, 42 (Fig. 2) disposed within a static magnetic detection field generated by suitable means such as permanent or electromagnets (not shown), the detection coils 40, 42 being connected to first and second channels or detection circuits 44, 46, respectively. The arrangement of the detection coils, detection circuits and the magnetic detection field may be as shown in US-A-4,433,528. The crop feed path extends through the magnetic detection field so that any ferrous metal object passing through the crop feed path disturbs the lines of flux in the detection field. The resulting flux change induces an emf (electromotive force) in the detection coils 40, 42. Detection circuit 44 comprises an RFI filter 48, a differential amplifier 50 and a low pass filter 52. It will be understood that detection circuit 46 includes components like those provided in detection circuit 44 hence only detection circuit 44 will be explained. The first detection coil 40 is connected to RFI filter 48. The purpose of this filter is to filter out any RF interference induced in detection coil 40. The output of filter 48 is connected to the differential amplifier 50 which amplifies the emf induced in detection coil 40. The output signal from amplifier 50 is applied to the low pass filter 52. The purpose of this filter is to filter out the higher frequency noise component induced in coil 40 by moving ferrous parts of the harvester, while passing lower frequency components such as are induced in coil 40 by passage of a metal object through the detection field. The filter 52 cannot filter out all of the noise component from the channel detection signal hence the output signal from detection circuit 44 may have a wave form similar to that shown in Fig. 3 wherein the variations of low amplitude shown in solid line represent unfiltered noise and the larger positive and negative swings shown in phantom represent the sum of unfiltered noise and the signal induced in coil 40 by passage of a metal object through the detection field. The output signal from filter 52 is the first or left channel output signal CH0 and it is applied to one input of a multi-channel analog to digital converter (ADC) 54. The right channel output signal CH1 is applied to a second input of the ADC. ADC 54 is controlled by a conventional microcomputer 56 having RAM, ROM and flash ROM (E 2 PROM) memories and a program controlled microprocessor. The microcomputer is connected to ADC 54 via a serial data link or bus 58. In a typical system the microcomputer 56 is connected via a serial data line 57, which may be a Controller Area Network (CAN) to a further microcomputer 59 which controls a conventional stop means 60 for stopping the crop feed mechanism of the harvester when a tramp metal object is detected in the crop feed path, and to an operator's control panel 62 having manual input keys or switches 64 and an alpha numeric display. During normal operation, that is, when the metal detector is being operated to sense the passage of tramp metal through the crop feed path, the microcomputer 56 controls ADC 54 to sample the detector channel output signals CH0 and CH1 every 2.5 ms and produce digitized channel output signals which are transferred to the microcomputer 56. The ADC has a resolution of 256 steps (0-255) and is biased at 128. That is, when a detector channel output signal CH0 or CH1 is sampled by the ADC and has a 0 value, the ADC produces the digital value 128. The detector channel output signals are bipolar. A metal object, either a machine part or tramp metal, entering the magnetic detection field disturbs the flux of the field so that an emf is induced across detection coils 40 and 42 thereby inducing current flows in first directions through the coils, and as the metal object exits from the detection field and the flux returns toward its original state an emf of opposite polarity is induced in each coil causing current flows in second directions through the coils. This causes differential amplifiers 50 in the channel detection circuits 44, 46 to produce output signals exhibiting positive and negative excursions. Thus, the magnitudes of the positive and negative excursions of the output signal from each channel detection circuit must be tested in order to determine if a tramp metal object is passing through the detection field. Each time a digitized sample of the magnitude of the left channel output signal CH0 is transferred to the microcomputer 56 it is compared with first and second adaptive threshold values ADAPT.LPOSTH and ADAPT.LNEGTH. These threshold values are derived as subsequently described and represent the minimum positive peak amplitude and minimum negative peak amplitude, respectively that the signal CH0 must have for the system to produce a signal indicating detection of a tramp metal object. That is, if the signal CH0 has a positive peak value greater than the first threshold value or a negative peak value greater (more negative) than the second threshold value it is assumed that a tramp metal object has been detected. The microcomputer 56 sends a control signal via serial link 57 to microcomputer 59 which in turn energizes stop means 60 to stop the crop feed. In like manner the digitized samples of the right channel output signal CH1 are transferred to microcomputer 56 and compared with third and fourth adaptive threshold values ADAPT.RPOSTH and ADAPT.RNEGTH. Because the waveform of Fig. 3 is typical of both the right and left channel output signals, the right or left designation has been left out of the designations. Thus, ADAPT.POSTH in Fig. 3 may be either ADAPT.RPOSTH or ADAPT.LPOSTH. It is desirable on one hand to set the positive and negative adaptive thresholds ADAPT.POSTH and ADAPT.NEGTH as close as possible to the no-signal state. This enhances the ability of the system to detect small metal objects, since the output signal from a channel is dependent in part on the size of the object detected. Stated differently, the sensitivity of a detector channel is increased as the adaptive thresholds are set closer to the no-signal level. On the other hand, the noise component of the channel output signal limits how close the adaptive threshold levels may be to the no-signal level. If the adaptive thresholds are set too low, a peak of the noise component may exceed a threshold level and thus result in a false indication that a tramp metal object has been detected. The threshold levels must be selected to provide a safety margin between the threshold levels and the peaks of the noise components. However, as the metal parts of the harvester wear and introduce a larger noise component into the channel output signal this safety margin may be exceeded so that object detection may be falsely indicated. In the present invention the adaptive detective thresholds with which the digitized channel output signals are compared, are varied or adapted to take into account long term variations in the average peak magnitudes, positive and negative, of the noise components in each channel. Referring again to Fig. 3, the microcomputer 56 establishes the adaptive detection threshold levels for one channel by taking 2500 samples of the noise component of the channel output signal and determining the positive peak (POSPK) and negative peak (NEGPK) of the noise component during the sampling interval (6.25 sec). The positive and negative peaks are then averaged by two single pole low pass filters to develop two values EEPROM_ADAPT_NEGPK and EEPROM_ADAPT_POSPK representing the average negative and positive peak values of the noise component over a long interval on the order of 8 minutes. The average positive peak value of the noise component is limited to the range indicated at 70 in Fig. 3 and the average negative peak value of the noise component is limited to the range indicated at 72 in Fig. 3. Once microcomputer 56 determines the average positive peak value of the channel signal noise component, the positive adaptive detection threshold ADAPT.POSTH is set at twice the average positive peak value of the noise component. This provides a tolerance factor so that the noise component will not cause a false object detection indication if a given peak of the noise component is considerably higher than the average peak. Since the positive adaptive detection threshold is set at twice the average positive peak noise, and the average positive peak noise may vary within the range 70, the positive adaptive detection threshold ADAPT.POSTH may vary over the range 74, rising as the average positive peak noise rises and dropping to a lower level as the average positive peak noise drops. Similarly, the negative adaptive threshold ADAPT.NEGTH is set at twice the average negative peak value of the channel noise component and varies over the range 76 as the average negative peak noise varies. By individually adjusting the positive and negative adaptive detection thresholds according to variations in the average peak positive and negative noise components, the adaptive detection thresholds are set as close as possible to the no-signal level (bias in Fig. 3) thus enabling the sensitivity of the detector to be maintained at the highest level permitted by the current noise levels. Microcomputer 56 executes three routines ADAPT_INIT, ADAPT_MAIN and ADAPT_MAIN1 as set forth in the attached appendix to set the four adaptive detection thresholds ADAPT.LPOSTH, ADAPT.LNEGTH, ADAPT.RPOSTH and ADAPT.RNEGTH with which detector channel output signals are compared with in order to determine if a tramp metal object has been detected. ADAPT_INIT is executed when power is turned on and initializes certain variables. Four average peak noise values EEPROM_ADAPT_LPOSPK, EEPROM_ADAPT_LNEGPK, EEPROM_ADAPT_RPOSPK and EEPROM_ADAPT_RNEGPK are retrieved from the E 2 PROM, multiplied by 16, and entered into the filter registers LPOSF, LNEGF, RPOSF and RNEGF. As will become evident from the following description, one of these values is updated in the E 2 PROM when the average peak noise, either positive or negative from a channel, varies by a predetermined amount so that at system shut-down the E 2 PROM holds the average peak noise values last produced by the long term filters. This restores the filter registers to the values last read from the registers before power shut-off. Next, the microcomputer 56 loads the value 81 into a register ADAPT.SENSE. In this regard keys, represented at 64 in Fig. 2, are provided on the operator's control panel 62, so that the operator may add an offset or sensitivity value to the computer determined threshold values LPOSTH, LNEGTH, RPOSTH and RNEGTH. The offset is equal to 9 times (X-1) where X is the value keyed in by the operator. Maximum sensitivity is obtained when the value 9 is keyed in; hence loading the value 81 into ADAPT.SENS in effect selects maximum sensitivity. After ADAPT.SENS is loaded, the microcomputer initializes the adaptive detection thresholds ADAPT.LPOSTH, ADAPT.LNEGTH, ADAPT.RPOSTH and ADAPT.RNEGTH, with which detection signals from the metal detector are compared. The thresholds are set to a value equal to twice the respective average peak noise plus the value of ADAPT.SENS provided the value does not exceed a maximum allowable threshold value. If the value exceeds the maximum allowable threshold value then the threshold is set to the maximum value. The average peak noise values EEPROM_ADAPT_LPOSPK, EEPROM_ADAPT_LNEGPK, EPROM_ADAPT_RPOSPK and EEPROM_ADAPT_RNEGPK are retrieved from the E 2 PROM memory, multiplied by two and entered into threshold registers LPOSTH, LNEGTH, RPOSTH and RNEGTH, respectively. Next, ADAPT.SENS is added to each of the values in LPOSTH, LNEGTH, RPOSTH and RNEGTH. Four threshold limit values, ADAPT_THPOSMAX, ADAPT_THPOSMIN, ADAPT_THNEGMAX and ADAPT_THNEGMIN, all offsets from the bias level 128, are then retrieved from non-volatile memory. These latter values represent the maximum and minimum, positive and negative values which the adaptive detection thresholds may have. Typical values are shown in Fig. 3 for purposes of illustration only. Each threshold limit value is multiplied by two and compared with the sum of ADAPT.SENS and the contents of one of the threshold registers LPOSTH, LNEGTH, RPOSTH or RNEGTH, all offsets from the bias level 128. ADAPT_THPOSMAX is multiplied by two and compared to the sum of ADAPT.SENS and LPOSTH. If ADAPT.SENS plus LPOSTH is greater than ADAPT_THPOSMAX*2, then the adaptive ADAPT.LPOSTH is set to ADAPT_THPOSMAX*2, but if ADAPT.SENS plus LPOSTH is less than ADAPT_THPOSMAX*2 + 128 then ADAPT.LPOSTH is set to LPOSTH + ADAPT.SENS + 128. ADAPT_THNEGMAX is multiplied by two and compared with the sum of ADAPT_SENS and LNEGTH. If ADAPT.SENS plus LNEGTH is greater than ADAPT_THNEGMAX*2, then the adaptive threshold ADAPT.LNEGTH is set to 128 - ADAPT_THNEGMAX*2 but if ADAPT_THNEGMAX*2 is greater than ADAPT.LNEGTH is set to 128 - LNEGTH - ADAPT.SENS. From the above description it is seen that on system wake-up the routine ADAPT_INIT restores the filter registers to the values they held at system shut-down and also establishes the adaptive detection thresholds according to the average peak filter values (noise) at the time of system shut-down, taking into account any change in ADAPT.SENS made by the operator. The graph of Fig. 3 is drawn with the assumption that the operator-determined sensitivity factor is zero. The routine ADAPT_MAIN routine is called every 2.5 ms on an interrupt basis. When the routine is entered, two registers LEFT an RIGHT hold the last digitized samples of the left and right channel output signals. ADAPT_MAIN detects the positive and negative machine noise peaks POSPK, NEGPK (Fig. 3) for each channel. The peak values are derived over a period of 6.25 sec from 2500 digitized samples of each channel output signal. The peak detection is qualified. If a channel output signal sample exceeds the current positive or negative adaptive threshold for that channel, it is assumed that the signal was generated by detection of a tramp metal object, not noise, and the signal is ignored. If the channel output signal sample is below a current minimum fixed threshold for that channel (stored in ROM), the signal is ignored on the assumption that the crop feed is not running. The qualification, in effect, eliminates from the sampling process all except noise signals with the range of magnitudes of noise signals occurring when the crop feed mechanism is running. The routine ADAPT_MAIN1 is called on a non-interrupt basis about every 5 ms. The routine implements the four filters referred to above for filtering or long term (approximately 8 min) averaging of the positive and negative noise peaks of each channel determined during execution of ADAPT_MAIN. Fig. 4 schematically illustrates only the operations carried out with respect to the positive peak noise signals for the right channel. Similar operations are carried out with respect to the positive and negative peak noise signals for both channels. In Fig. 4, the positive peak noise signals derived from peak detector 80 (implemented in ADAPT_MAIN) are applied to a filter 82 which averages the long term trend of the positive peak machine noise signals according to the formula: Filter_Value(t) = 1/2*Sample(t) + 31/32*Filter_Value(t-1) The output of the filter is held in a register RPOSF. As previously explained, ADAPT_INIT loads this register with EEPROM_ADAPT_RPOSPK on wake-up so that the long term filtering may continue from the point where it was interrupted at shut-down. The output of RPOSF is fed back to the filter to accomplish the averaging function. The output of RPOSF is also divided by 16 as indicated at 84 and applied to comparators 86, 88, 90 and 92. Comparator 86 compares RPOSF/16 with EEPROM_ADAPT_RPOSPK + 1 and comparator 88 compares RPOSF/16 with EEPROM_ADAPT_RPOSPK - 1. Comparators 90 and 92 compare RPOSF/16 with ADAPT_THPOSMAX and ADAPT_THPOSMIN, respectively. If RPOSF/16 is greater than EEPROM_ADAPT_RPOSPK + 1, or less than EEPROM_ADAPT_RPOSPK - 1, or equal to ADAPT_THPOSMAX or ADAPT_THPOSMIN, then EEPROM_ADAPT_RPOSPK is updated by loading it with RPOSF/16 (step 94). The positive threshold register RPOSTH is then updated to EEPROM_ADAPT_RPOSPK*2 at step 96. Next, the operator sensitivity switch is sampled at step 98. Step 100 determines from the digitized channel output signal if the crop feed mechanism has been engaged. The adaptive thresholds are set higher than normal during the interval the crop feed mechanism is accelerating because of the higher noise component in the channel output signals resulting from the accelerating parts of the mechanism. Step 104 accomplishes this function. Assuming that the crop feed mechanism is not accelerating, positive adaptive detection threshold ADAPT.RPOSTH for the right channel is set at step 102. If RPOSTH + ADAPT.SENS is greater than ADAPT_THPOSMAX*2, then ADAPT.RPOSTH is set to ADAPT_THPOSMAX*2 + 128 and if it is not greater then ADAPT.RPOSTH is set to RPOSTH + 128 + ADAPT.SENS. The negative adaptive threshold for the right channel and the positive and negative thresholds for the left channel are adaptively set in substantially the manner described above. With respect to the negative thresholds the threshold is set at step 100 to 128 - ADAPT_THNEGMAX*2 if the subtraction of RNEGTH - ADAPT.SENS (or LNEGTH - ADAPT.SENS is greater than ADAPT_THNEGMAX*2, and to 128 - LNEGTH + ADAPT.SENS) (or 128 - RNEGTH - ADAPT.SENS) if not. Once an adaptive detection threshold ADAPT.RPOSTH, ADAPT.RNEGTH, ADAPT.LNEGTH or ADAPT.LPOSTH is updated it is used for comparison with all subsequent sample signals derived from its associated channel by ADC 54. From the foregoing description it is evident that a metal detector constructed according to the invention exhibits greater sensitivity in the detection of tramp metal objects, while at the same time producing fewer false indications of object detection. This is made possible because both the positive and negative detection thresholds for each channel are varied according to long term changes of the noise component in the channel signal, so that both detection thresholds are kept as close as possible to the no-signal level, thereby maintaining maximum sensitivity. Furthermore, the occurrence of false indications is reduced even further because the average peak noise components are saved in an E 2 PROM so that at system start-up the detection thresholds and the peak averaging circuits may be set to the same values they had at system shut-down. Although a preferred embodiment has been described in detail by way of example it will be understood that various modifications may be made in the described embodiment without departing from the spirit and scope of the invention as defined by the appended claims. For example, it is not necessary that a detection threshold be set at twice the average noise signal. Other full or fractional multiples of the noise signal may be used. Alternatively, detection threshold may be established by adding a constant value to the value of the noise signal.

Claims: A metal detector system (32) for detecting the passage of metal objects through a magnetic detection field, said metal detector system (32) including: at least one channel comprising: a detection coil (40/42) disposed in said magnetic detection field; and a detection circuit (44/46) connected to said detection coil (40/42) and for producing a channel output signal, which has a noise component therein varying between positive and negative values and which includes a detection component upon the passage of a ferrous metal object through said magnetic detection field; sampling means (54) for sampling said channel output signal and producing digitized channel signals; and comparing means (56) for comparing said digitized channel signals with a positive threshold and a negative threshold and for producing an output indication when one of said digitized channel signals has a value above said positive threshold or below said negative threshold; said metal detector system (32) being characterized in that it further comprises: setting means (56) for independently setting said positive threshold at a multiple of the average value of positive peak magnitudes of said noise component and said negative threshold at a multiple of the average value of negative peak magnitudes of said noise component. A metal detector system according to claim 1, characterized in that said setting means (56) for setting said positive and negative thresholds comprise: positive and negative peak detectors for detecting the positive and negative peaks of said noise component; and filter means for developing said average values of positive and negative peak magnitudes from said positive and negative peaks, respectively. A metal detector system according to claim 1 or 2, characterized in that it further comprises: erasable memory means for storing therein said average value of said positive peak magnitudes and said average value of said negative peak magnitudes; and initiating means (56) for setting, at system wake-up, said positive and negative thresholds at a multiple of the respective average values stored in said erasable memory means at the previous system shut-down. A metal detector system according to claim 3, characterized in that : said filter means comprises first and second filters, having first and second registers; and said setting means (56) are operable to load, at system wake-up, said first and second registers with the average value of said positive peak magnitudes and the average value of said negative peak magnitudes respectively, stored in said erasable memory means at the previous system shut-down. A metal detector system according to any of the preceding claims, characterized in that it further comprises means for adjusting said positive and negative thresholds by an operator-determined sensitivity value. A metal detector system according to any of the preceding claims, built into an agricultural harvesting machine (10) for detecting the presence of ferrous metal objects in a flow of crop material. A method of operating a metal detector system (32) that detects the passage of metal objects through a magnetic detection field, the metal detector system (32) including: at least one channel comprising a detection coil (40/42) disposed in the magnetic detection field, and a detection circuit (44/46) connected to said detection coil (40/42) and operable to produce a channel output signal, which has a noise component therein varying between positive and negative values and which includes a detection component upon the passage of a ferrous metal object through the magnetic detection field, said method comprising: sampling said channel output signal and producing digitized channel signals; and comparing the digitized channel signals with a positive threshold and a negative threshold and producing an indication when one of the digitized channel signals has a value above said positive threshold or below said negative threshold; said method being characterized in that it further comprises: independently setting said positive threshold at a multiple of the average value of positive peak magnitudes of said noise component and said negative threshold at a multiple of the average value of negative peak magnitudes of said noise component. A method according to claim 7, characterized in that it further comprises: adjusting said positive and negative thresholds by an operator-determined sensitivity value. A method according to claim 7 or 8, characterized in that it further comprises: providing said metal detector system (32) in an agricultural harvesting machine (10) for detecting the presence of ferrous metal objects in a flow of crop material.

Inventors: STROSSER RICHARD P, STROSSER, RICHARD P.
Applicants: FORD NEW HOLLAND NV, NEW HOLLAND BELGIUM N.V.
Application year: 1996
Main classification: G01V3
IPC codes: G01V3