Abstract:
An endurance testing system is configured to test endurance of a first detecting apparatus. The endurance testing system includes a second detecting apparatus, a movement module, a processor, and a storage module. The movement module includes a first inductive object and a second inductive object. The processor is connected to the first and second detecting apparatuses, and the movement module, for controlling the movement module and counting a first number of times the first detecting apparatus detects the first inductive object, and a second number of times the second detecting apparatus detects the second inductive object. The storage module is connected to the processor, for storing the first and second numbers of times from the processor. The first detecting apparatus fails the testing upon the condition that the first number of times is not equal to the second number of times.

Description:
BACKGROUND 
     1. Technical Field 
     Embodiments of the present disclosure relate to testing systems and testing methods and, more particularly, to an endurance testing system and an endurance testing method. 
     2. Description of the Related Art 
     Metal detecting apparatuses are widely used to detect metals. Before use, the metal detecting apparatuses generally need to be tested for their service life or their endurance. Testings are usually performed either manually or using testing devices which include many costly chips. Manual testing is time-consuming and error-prone, and using a testing device to do the testing is often expensive. 
     Therefore, what is needed, is an endurance testing system and an endurance testing method which can solve the above problems. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  is a schematic view of one embodiment of an endurance testing system of the present disclosure. 
         FIG. 2  is a block diagram of the testing system of  FIG. 1 . 
         FIG. 3  is a circuit diagram of the testing system of  FIG. 1 . 
         FIG. 4  is a flowchart of one embodiment of an endurance testing method of the present disclosure. 
     
    
    
     DETAILED DESCRIPTION 
     Referring to  FIGS. 1 and 2 , one embodiment of an endurance testing system  100  is configured to test endurance of a metal detecting apparatus  10 . The endurance testing system  100  includes a processor  1 , a photoelectric device  2 , a display module  3 , a movement module  4 , a storage module  5 , and a control module  6 . 
     The movement module  4  includes a turntable  41 , and a motor  42  with an output connected to the turntable  41 . At least one first inductive object and at least one second inductive object are mounted to the turntable  41 . The number of the at least one first inductive object is equal to the number of the at least one second inductive object. In the illustrated embodiment, the at least one first inductive object includes four metal blocks  410  mounted to a circumference of the turntable  41 , and the at least one second inductive object includes four holes  412  defined from through an upper surface through a bottom surface of the turntable  41 . 
     The metal detecting apparatus  10 , the photoelectric device  2 , the display module  3 , the movement module  4 , the storage module  5 , and the control module  6  are all connected to the processor  1 . The metal detecting apparatus  10  is arranged coplanar with the turntable  41 , to detect the metal blocks  410 , and the photoelectric device  2  is mounted under the turntable  41 , to detect the four holes  412 . 
     Referring to  FIG. 3 , the processor  1  includes a Single Chip Micyoco (SCM)  12 . The SCM  12  includes six input pins P 11 -P 16 , three output pins P 17 -P 19 , a power pin Vcc 1 , and a ground pin GND 1 . The photoelectric device  2  includes an output pin P 21 , a ground pin GND 2 , and a power pin Vcc 2 . The display module  3  includes an input pin P 31 , a power pin Vcc 3 , and a ground pin GND 3 . The movement module  4  further includes a drive chip  43 . The drive chip  43  includes an input pin P 41 , an output pin P 42 , and a ground pin GND 4 . The storage module  5  includes an input pin P 51 , a power pin Vcc 5 , and a ground pin GND 5 . The control module  6  includes a start switch S 1 , a reset switch S 2 , a plus switch S 3 , and a minus switch S 4 . The metal detecting apparatus  10  includes an output pin P 101 , a ground pin GND 10 , and a power pin Vcc 10 . 
     The input pin P 11  of the SCM  12  is connected to the output pin P 101  of the metal detecting apparatus  10 . The input pin P 12  of the SCM  12  is connected to the output pin P 21  of the photoelectric device  2 . The input pin P 13  is connected to a first terminal of the start switch S 1 . The input pin P 14  is connected to a first terminal of the reset switch S 2 . The input pin P 15  is connected to a first terminal of the plus switch S 3 . The input pin P 16  is connected to a first terminal of the minus switch S 4 . The output pin P 17  is connected to the input pin P 41  of the drive chip  43 . The output pin P 18  is connected to the input pin P 51  of the storage module  5 . The output pin P 19  is connected to the input pin P 31  of the display module  3 . Second terminals of the start switch S 1 , the reset switch S 2 , the plus switch S 3 , and the minus switch S 4  are connected to the ground pin GND 2  of the photoelectric device  2 . The output pin P 42  of the drive chip  43  is connected to the motor  42 . The power pin Vcc 1  of the SCM  12 , the power pin Vcc 2  of the photoelectric device  2 , the power pin Vcc 3  of the display module  3 , the power pin Vcc 5  of the storage module  5 , and the power pin Vcc 10  of the metal detecting apparatus  10  are connected to a 5V power source. The ground pin GND 1  of the SCM  12 , the ground pin GND 2  of the photoelectric device  2 , the ground pin GND 3  of the display module  3 , the ground pin GND 4  of the drive chip  43 , the ground pin GND 5  of the storage module  5 , and the ground pin GND 10  of the metal detecting apparatus  10  are all grounded. The motor  42  is further connected to a 12V power source. In one embodiment, the SCM  12  may be an ATMEL8515 SCM. The display module  3  may be a JHD162G liquid crystal display. The drive chip  43  may be a ULN2803 drive chip. The storage module  5  may be an AT93C46 storage chip. 
       FIG. 4  is a flowchart of one embodiment of an endurance testing method which may be used the above-mentioned testing system to test endurance of the metal detecting apparatus  10 . 
     In step S 10 , the SCM  12  reads a number of testing cycles of a predetermined motion of the motor  42  from the storage module  5 . If the number of testing cycles stored in the storage module  5  needs to be changed, the reset switch S 2  is engaged, and the number of testing cycles can be increased or decreased via using the plus switch S 3  or the minus switch S 4  correspondingly. After the number of testing cycles being changed, the reset switch S 2  is engaged again to store the new number of testing cycles in the storage module  5 . 
     In step S 20 , the start switch S 1  is engaged to start the endurance test of the metal detecting apparatus  10 . 
     In step S 30 , the input pin P 13  of the SCM  12  receives a low level signal, such as “0”, from the start switch S 1 . The output pin P 17  of the SCM  12  outputs a high level signal, such as “1”, to the drive chip  43 , to drive the motor  42  to start working. As a result, the turntable  41  starts to rotate. 
     In step S 40 , when the metal detecting apparatus  10  detects one of the four metal blocks  410 , the output pin P 101  of the metal detecting apparatus  10  outputs a low level signal, such as “0”, to the input pin P 11  of the SCM  12 . As a result, the SCM  12  counts the number of times N 1  the metal detecting apparatus  10  detects one of the metal blocks  410 . 
     In step S 50 , when the photoelectric device  2  detects one of the four holes  412 , the output pin P 21  outputs a low level signal, such as “0”, to the input pin P 12  of the SCM  12 . As a result, the SCM  12  counts the number of times N 2  the photoelectric device  2  detects the hole  412 . In the instant endurance testing method, steps S 40  and S 50  may be executed simultaneously, step S 40  may be executed first, or the S 50  may be executed first. 
     In step S 60 , the SCM  12  stores N 1  and N 2  in the storage module  5  via the output pin P 18 , and outputs N 1  and N 2  to the display module  3  via the output pin P 19 . The display module  3  displays the N 1 , N 2  correspondingly. 
     In step S 70 , when the metal detecting apparatus  10  detects one of the metal blocks  410  again, the output pin P 101  of the metal detecting apparatus  10  outputs a low level signal, such as “0”, to the input pin P 11  of the SCM  12 . The SCM  12  adds one to N 1  stored in the storage module  5 . 
     In step S 80 , when the photoelectric device  2  detects one of the holes  412  again, the output pin P 21  of the photoelectric device  2  outputs a low level signal, such as “0”, to the input pin P 12  of the SCM  12 . The SCM  12  adds one to N 2  stored in the storage module  5 . 
     In step S 90 , the SCM  12  outputs N 1  and N 2  to the display module  3  via the output pin P 19 . The display module  3  displays N 1 , N 2  correspondingly. 
     In step S 100 , the SCM  12  determines if N 2  is equal to the predetermined number of testing cycles of the motor  42  stored in the storage module  5 . If yes, the procedure goes to step S 110 . If not, the procedure goes back to step S 70 . 
     In step S 110 , the output pin P 17  of the SCM  12  outputs a low level signal, such as “0”, to stop the motor  42 . The display module  3  displays N 1  and N 2 . 
     In the present embodiment, the photoelectric device  2  will always supply the total number of testing cycles, and if at the end of the test, N 1  equals N 2 , the metal detecting apparatus  10  is proved to have functioned as expected. If the N 1  does not equal N 2 , the metal detecting apparatus  10  malfunctioned. 
     In other embodiments, the endurance testing system  100  can be configured to test endurance of other apparatus. For example, when the metal detecting apparatus  10  is able to correctly supply the total number of testing cycles, the endurance testing system  100  can be configured to test endurance of the photoelectric device  2 . If N 2  equals N 1 , the endurance of the photoelectric device  2  is good as expected. If N 2  does not equal N 1 , the endurance of the photoelectric device  2  malfunctioned. 
     The foregoing description of the various inventive embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others of ordinary skill in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternately embodiments will become apparent to those of ordinary skill in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the various inventive embodiments described therein.