Abstract:
The present invention is related to a control system of the reciprocating object comprising a microprocessor ( 01 ), a reciprocating mode control circuit ( 02 ), a reciprocating travel control circuit ( 03 ), a power supply circuit ( 04 ) and a motor driving circuit ( 05 ), with the microprocessor ( 01 ) provided with matrix type on-off signal input-outputs. The reciprocating mode control circuit ( 02 ) consists of matrix column branches and matrix row branches, allowing the limited number of the on-off signal ports of the microprocessor ( 01 ) to be connected to a plurality of on-off controlling elements thereby realizing a multiple of control modes and diversifying the control modes. The circuit construction according to the present invention is relatively simple, which is helpful to a tidy wiring and layout of the elements and therefore the circuit is easy for manufacturing, assembling, trouble shooting and maintenance.

Description:
TECHNICAL FIELD 
   The present invention is related to a control system for a reciprocating object, especially to a multi-travel control system for the reciprocating object. 
   BACKGROUND OF THE INVENTION 
   Generally, a typical control system for a reciprocating object includes a microprocessor, a limit switch, a drive circuit, a keyboard and a display. A position signal exerted by the limit switch is inputted to the microprocessor as the measurement of the travel of the object. The microprocessor provides the drive circuit with a control signal to define the next movement of the object depending on a command from the keyboard and a position feedback signal. The display is used for displaying the working status and the control mode of the control system. In a control system for a small-sized reciprocating object, usually a button and an indicating lamp are used instead of the keyboard and the display in order to reduce cost and save space. However, when the movement modes of the object are complex, for example, in the case of a plurality of different selectable travel modes, it is necessary to provide a plurality of buttons to define the control modes, and to provide a plurality of indicating lamps to indicate the working status. This requires the microprocessor to have a number of on-off signal input/output ports, resulting in greater complexity for the microprocessor and its control circuit. 
   SUMMARY OF INVENTION 
   The object of the present invention is to provide a moving object control system requiring a relatively lower number of on-off signal ports of a microprocessor and a simpler electrical circuit in order to eliminate the drawbacks of the multi-channel on-off single input/output of the existing control system for a small reciprocating object. The control system according to the present invention satisfies the requirements of multiple control modes and working status for a reciprocating object control system with a limited number of on-off signal input/output channels of the microprocessor. 
   The control system for a reciprocating object according to the present invention comprises a microprocessor having matrix-type, on-off signal input/output ports, a reciprocating mode control circuit, a reciprocating travel control circuit, a power supply circuit providing a signal power supply to the microprocessor, the reciprocating mode control circuit and the reciprocating travel contort circuit, and providing a power supply to the motor driving circuit, and a motor driving circuit. Control signal outputs of the microprocessor are connected to inputs (MOTO 1 , MOTO 2 ) of the motor driving circuit. 
   In the reciprocating mode control circuit according to the present invention: 
   the signal power supply is connected to a matrix column signal port of the microprocessor via a voltage dropping resistor in a column branch, and the matrix column signal port is connected to a contact of a control button at one side via a column branch current limiting resistor (R 6 , R 8  or R 10 ) to form a column branch; 
   all of the contacts of the control buttons at the other side are connected to a matrix row signal port of the microprocessor via a row branch resistor after being connected in parallel to form a row branch; 
   the matrix column signal port is also connected to a contact of another control button via a column branch current limiting resistor; and 
   all of the contacts of the other control buttons at the other side are connected to another matrix row signal port of the microprocessor via another row branch resistor after being connected in parallel to form another row branch. 
   The number of the column branches is less than or equal to the number of the signal ports of the matrix column of the microprocessor. 
   The number of the row branches is less than or equal to the number of the signal ports of the matrix row of the microprocessor. 
   The object of the present invention can be further achieved wherein, in the reciprocating mode control circuit of the control system according to the present invention: 
   the matrix column signal port of the microprocessor is connected to a cathode of a LED via a column sub-branch current limiting resistor to form a column sub-branch; 
   all of the anodes of the LED are connected to the matrix row signal port of the microprocessor to form a row sub-branch; 
   the matrix column signal port is also connected to a cathode of a LED via a column sub-branch current limiting resistor; and 
   all of the anodes of the LED are connected to the matrix row signal port of the microprocessor to form another row sub-branch. 
   The number of the column sub-branches is less than or equal to the number of the column branches; and the number of the row sub-branches is less than or equal to the number of the row branches. 
   In the reciprocating travel control circuit, the signal power supply is connected to an on-off signal input of the microprocessor via a current limiting resistor; and the on-off signal input is grounded through a pair of contacts of a limit switch. 
   The invention has the following advantages and beneficial effect over existing techniques:
         a. By means of using the matrix type on-off input-output signals in the reciprocating mode control circuit of the reciprocating object control system according to the present invention, it is possible to connect a plurality of on-off input-output signals to the limited number of the matrix column and row signal ports of the microprocessor. Generally, if the microprocessor is provided with m number of matrix column signal ports and n number of matrix row signal ports, the configuration of the column and row branches according to the invention can provide a maximum number of m×n on-off input signals, and the configuration of the column and row sub-branches according to the present invention can provide a maximum number of m×n on-off output signals. Therefore, a greater number of external control and display elements such as control buttons and indicating lamps can be connected to realize more control modes and thereby expand the control capability.   b. The matrix-type, on-off input-output construction used in the control circuit according to the present invention is relatively simple, which helps to achieve a tidy wiring and layout of the elements, and therefore the circuit is easy for manufacturing, assembling, troubleshooting and maintenance.
 
In order to better understand the invention and its objects, features and advantages a detailed description of the preferred embodiments is given hereinafter with reference to the accompanying drawings.
       

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
       FIG. 1  is a circuit diagram of the control system for the reciprocating object used in a massager according to the present invention; 
       FIG. 2  is a perspective view of the traveling part of the massager using the control system for the reciprocating object according to the present invention; and 
       FIG. 3  is the perspective view of the construction of the traveling part of the massager without the components on the body which uses the control system for the reciprocating object, leaving only the frame of the body, according to the present invention. 
   

   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
   In order to understand the features and the advantages according to the present invention, a control system for a reciprocating object according to this invention used for a massager is described with reference to the drawings. 
   As shown in  FIG. 1 , the control system for the reciprocating object according to the present invention used in a massager comprises a microprocessor  01 , a reciprocating mode control circuit  02 , a reciprocating travel control circuit  03 , a power supply circuit  04  and a motor driving circuit  05 . The microprocessor  01  is of EM78P156EL0 type, with its pin  9  and pin  10  as signal ports of matrix rows, and with pin  11 , pin  12  and pin  13  as signal ports of matrix columns. In the reciprocating mode control circuit  02 , five control buttons W 1 , W 2 , W 3 , W 4  and W 5  are provided corresponding to 5 LEDs L 1 , L 2 , L 3 , L 4  and L 5  as indicating lamps of control modes. 
   A signal power supply (+5V) is connected to the signal port  13  of the matrix column of the microprocessor  01  via a column branch voltage dropping resistor R 3 , while the signal port  13  in a matrix column is connected to a contact of the control button W 1  at one side via a column branch current limiting resistor R 6  to form a column branch. Similarly, column branch voltage dropping resistors R 4 , R 5 , signal ports  12 ,  11  of the matrix column of the microprocessor  01 , column branch current limiting resistors R 8 , R 10  and the contacts of control buttons W 2 , W 3  at one side are connected in the same manner to form another two column branches, respectively. 
   Contacts at another side of the control buttons W 1 , W 2 , W 3  are connected to the signal port  10  of the matrix row of the microprocessor  01  by a row branch resistor R 12  after being connected in parallel to form a row branch. 
   The signal port  13  of the matrix column is also connected to a contact of the control button W 4  at one side by the column branch current limiting resistor R 6 . The signal port of the matrix column  12  is also connected to the contact of the control button W 5  at one side by a column branch current limiting resistor R 8 . The contacts of the control buttons W 4 , W 5  at another side are connected to the signal port  9  of matrix row of the microprocessor  01  via a row branch resistor R 13  after being connected in parallel to form another row branch. 
   Because three signal ports  13 ,  12 ,  11  of the microprocessor  01  as the signal ports of the matrix column are provided in this case, three column branches can be formed at the most. Because two signal ports  10 ,  9  of the microprocessor  01  as the signal ports of the matrix rows are provided in this case, therefore two rows branches can be formed at the most. 
   The signal port  13  of the matrix column of the microprocessor  01  is connected to the cathode of a LED L 1  by a column sub-branch current limiting resistor R 7  to form a column sub-branch. The signal ports  12 , 11  of the matrix column of the microprocessor  01 , the column sub-branch current limiting resistors R 9 , R 11  and the cathodes of the LED L 2 , L 3  together form another two column sub-branches in the same connection manner respectively. 
   The anodes of the LED L 1 , L 2  and L 3  are connected to the signal port  10  of the matrix row of the microprocessor  01  to form a row sub-branch. 
   The signal port  13  of the matrix column is also connected to the cathode of a LED L 4  via the column sub-branch current limiting resistor R 7 . The signal port  12  of the matrix column is also connected to a cathode of the LED L 5  via the column sub-branch current limiting resistor R 9 . The anodes of the LED L 4 , L 5  are connected to the signal port  9  of the matrix row of microprocessor  01  to form another row sub-branch. 
   Because there are three column branches and two row branches in the reciprocating mode control circuit  02  in this case, therefore three column sub-branches and two row sub-branches can be formed at the most. 
   In the reciprocating travel control circuit  03 : 
   A +5V signal power supply is connected to the on-off signal input  8  of the microprocessor  01  via a current limiting resistor R 14 . The on-off signal input  8  is grounded through two pairs of parallel connected limited switch contacts  30   a ,  29   c  and  30   b ,  29   b  to form a top limit position protection and upper position signal branch. 
   The +5V signal power supply is connected to the on-off signal input  7  of the microprocessor  01  via a current limiting resistor R 15 . The on-off signal input  7  is grounded through one pair of limit switch contacts  30 C,  29   b  to form an upper-middle position signal branch. 
   The +5V signal power supply is connected to the on-off signal input  6  of the microprocessor  01  via a limit current resistor R 16 . The on-off signal input  6  is grounded through a pair of limit switch contacts  30   d ,  29   b  to form a lower-middle position signal branch. 
   The +5V signal power supply is connected to the on-off signal input  2  of the microprocessor via a limit current resistor R 17 . The on-off signal input  2  is grounded through two pairs of parallel-connected limit switch contacts  30   c ,  29   b  and  30   f ,  29   a  to form a bottom limit position signal and bottom limit protection branch. 
   The motor drive circuit  05  is provided with 2 power triodes Q 1  and Q 2  with their bases connected to the control signal outputs  17  and  18  of the microprocessor  01  via base resistors R 18  and R 19 , respectively, their collectors connected to a +12V power supply via relays JD 1  and JD 2 , respectively, and their emitters grounded. The normally open static contacts and normally closed static contacts of the relays JD 1  and JD 2  are connected to the +12V power supply and the ground, respectively. Their moving contacts are connected to two ends of the driving motor M, respectively. The microprocessor  01  controls the on/off state of the power triodes Q 1  and Q 2 , so as to determine the closed/open state of the contacts of the relays JD 1  and JD 2 , and consequently the polarity of the power supply of the driving motor M, and finally the clockwise/counterclockwise rotation and/or stop of the driving motor M. 
   The power supply circuit  04  is powered by the 12V DC power supply (if a commercial power supply is used; otherwise, a AC/DC adapter should be provided separately) and directly provides a +12V power supply to the motor drive circuit  05  via a fuse F, and provides +5V signal power supply to the microprocessor  01 , reciprocating mode control circuit  02  and the reciprocating travel control circuit  03  through a voltage stabilizing model U (for example, Model L7805 is used). The cathode of the power supply is grounded. 
   The control circuit of reciprocating object according to the present invention is used to control the reciprocating movement of a massager which is shown in  FIG. 2  and  FIG. 3 . The traveling part of the massager is composed of a body  21  and a guide plate  31 . On the body  21 , the driving motor  23  (i.e., the driving motor M of the motor drive circuit  05 ) and the driving gear group are mounted. The rack  28  is provided on the guide plate  31  with which the corresponding gear in the driving gear group is engaged. The dynamic contacts  29   c ,  29   b  and  29   a  of the limit switches are provided in the upper, middle and lower parts of one side of the body  21 , respectively, with their static contacts  30   a ,  30   b ,  30   c ,  30   d ,  30   e  and  30   f  provided in the top, upper middle upper, middle lower, lower and bottom parts of corresponding side of the guide plate  31 . 
   When using the massager of the present embodiment for massaging, a user first puts the traveling part of the massager on the part of a human body to be massaged (e.g., the back), then turns on the power supply, and presses the button w 4 . The LED L 4  will light up indicating the control circuit is initialized and ready for operation. At this time, the body  21  of the traveling part of the massager is in the initial position in the lower part of the guide plate  31 . 
   When the button W 1  is pressed, the LED L 1  will light up. The selected reciprocating travel mode is a repeated cycling between the upper and lower parts. At this time, the control program chooses the position signal obtained from the on-off signal input  8  of the microprocessor  01  connected to the contact pair  30   b - 29   b  of the limit switches and the on-off signal input  2  of the microprocessor  01  connected to the contact pair  30   e - 29   b  of the limit switches as return signals allowing the traveling part of the massager to reciprocate between the shoulder position and the waist position. 
   When the button W 2  is pressed, the LED L 2  will light up. The selected reciprocating travel mode is a repeated cycling between the upper and lower-middle parts. At this time, the control program chooses the position signal obtained from the on-off signal input  8  of the microprocessor  01  connected to the contact pair  30   b - 29   b  of the limit switches and the on-off signal input  6  of the microprocessor  01  connected to the contact pair  30   d - 29   b  of the limit switches as return signals allowing the traveling part of the massager to reciprocate between the shoulder position and the lower back position. 
   When the button W 3  is pressed, the LED L 3  will light up. The selected reciprocating travel mode is a repeated cycling between the upper-middle and lower-middle parts. At this time, the control program choose the position signals obtained from the on-off signal input  7  of the microprocessor  01  connected to the contact pairs  30   c - 29   b  of the limit switches and the on-off signal input  2  of the microprocessor connected to the contact pair  30   e - 29   b  of the limit switches as return signals, allowing the traveling part of the massager to reciprocate between the upper position and the waist position. 
   When the button W 5  is pressed, the LED L 5  will light up. The selected reciprocating travel mode is a cycling movement between the upper and lower parts. At this time, the control program chooses the position signal obtained from the on-off signal input  8  of the microprocessor  01  connected to the contact pair  30   b - 29   b  of the limit switches as return signal, and chooses the on-off signal input  2  of the microprocessor  01  connected to the contact pair  30   e - 29   b  of the limit switches as stop signals, allowing the traveling part of the massager to reciprocate from the waist position to the shoulder position and then again return to the waist position, and then stop for a demonstration. 
   When the body  21  moves upward to the top of the guide plate  31 , the position signal exerted by the electrical communication caused by the contact between the moving contact  29   c  on the upper part of the body  21  and the normal contact  30   a  on the top of the guide plate  31  reverses the rotation of the driving motor to provide a limit protection to the top limit position on the traveling part of the massager. When the body  21  moves downward to the bottom of the guide plate  31 , the position signal exerted by the electrical communication caused by the contact between the moving contact  29   a  on the upper part of the body  21  and the normal contact  30   f  on the top of the guide plate  31  reverses or stops the rotation of the driving motor to provide a limit protection to the bottom limit position on the traveling part of the massager. 
   The above description is only for preferred embodiments according to the present invention and does not provide any limitations to the invention. While the invention has been explained by means of the preferred embodiments, it is not intended to restrict the invention. One of ordinary skill familiar with the art will readily realize that various changes and modifications can be made without departing from the spirit and scope of the present invention. All the changes and modifications to the preferred embodiments according to the present invention fall into the scope of the present invention as a whole.