Gear motor with rotary switch
The present invention relates in general to gear motors and associated switching mechanisms which control the operation of the motor, and it relates more particularly to a new and improved self-contained gear motor and switching assembly for use in a coin operated vending machine and which incorporates therein a switching mechanism for reversing the motor and returning it to its original standby position after the completion of a dispensing cycle of operation. 
     BACKGROUND OF THE INVENTION 
     Coin operated vending machines commonly include a coin acceptor, a plurality of manually operated selection switches, and a computer or logic board which responds to the operation of one of the selection switches to operate a dispensing mechanism which causes a selected item to move to a position from which the user may remove it from the machine. 
     Each such dispensing mechanism may include a gear motor which includes a reduction gear train which is driven by the shaft of an electric motor. The motor may be powered through one or more associated switches which are controlled either by the associated computer or by the output shaft of the reduction gear train to stop the operation of the motor when the output shaft of the gear reduction assembly has returned to its initial position. 
     Vending machines are frequently used in humid and dirty environments which interfere with the operation of the internal mechanisms of the machine such, for example, as the switches which control the operation of the dispensing motors. 
     SUMMARY OF THE INVENTION 
     Briefly, there is provided in accordance with the present invention a new and improved switching mechanism for controlling the operation of a gear motor. In the disclosed embodiment of the invention the gear motor is used to drive a dispensing mechanism incorporated in a vending machine wherein the drive system goes through one cycle of operation each time the motor is operated. 
     The switching mechanism is enclosed in a sealed housing which protects the switches from the ambient environment and includes two magnetically operated switches whose switching conditions are sensed by an associated computer to control the direction of rotation of the output shaft of the dispensing mechanism and to de-energize the motor when the output shaft has returned to its initial standby position. 
     Considered in greater detail, in a preferred embodiment of the invention three permanent magnets are carried by a disk which is mounted to the output shaft of a gear reduction unit driven by a reversible D.C. electric motor for selective angular movement into proximity with two magnetically operated switches. When any one of the magnets is moved into proximity with one of the two switches, the computer responds by reversing the polarity of the voltage applied to the motor causing it to rotate in the opposite direction until the disk returns to the original position wherein two of the magnets are in proximity with the two switches. When the two switches are simultaneously actuated, the computer responds by de-energizing the motor. 
    
    
     GENERAL DESCRIPTION OF THE DRAWINGS 
     The present invention will be better understood by a reading of the following detailed description taken in connection with the accompanying drawings wherein: 
     FIG. 1 is an isometric view of a gear motor and associated switching assembly embodying the present invention; 
     FIG. 2 is an elevational view of the assembly of FIG. 1 taken from the side thereof and shown partly in cross-section; 
     FIG. 3 is a cross-sectional front view of the motor and switching assembly shown in FIG. 2 and taken along the line 3--3 thereof; 
     FIG. 3A is a fragmentary front view of the circuit board shown partially in phantom lines in FIG. 3. 
     FIG. 4 is a rear elevational view of the motor and switching assembly shown in FIG. 1; 
     FIG. 5 is a partially sectioned front elevational view of a motor and switching assembly incorporating another embodiment of the invention; and 
     FIG. 6 is a schematic circuit diagram of an electric motor control system using the switching mechanism of the present invention. 
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION 
     Referring to FIGS. 1-4, a gear motor unit 10 includes a reversible D.C. electric motor 12 mounted on a printed circuit board 13 and includes an output shaft 14 which drives a conventional gear reduction unit 16. The gear reduction unit 16 includes a plurality of intermeshed gears, not shown, located in a sealed housing having on one side an integral mounting plate 18 having a plurality of holes 20 which are adapted to receive suitable mounting bolts or screws. The board 13 is mounted to the face 22 of the gear reduction unit 16 located opposite to the plate 18. As best shown in FIG. 2, the gear reduction unit 16 has an output shaft 24 which extends from both faces of the unit 16, a first end portion 25 projecting through the mounting plate 18, and a second end portion 26 projecting through the face 22. In the preferred embodiment of the invention, the end portion 25 has a flat surface 27 which facilitates connection of the shaft 24 to a dispensing mechanism or other apparatus to be driven by the shaft 24. 
     As shown in FIG. 2, a planar carrier disk 28 which is formed of a rigid material, is fixedly mounted to the portion 26 of the shaft 24 outwardly of the circuit board 13. The board 13 and the disk 28 are mutually parallel with the planes thereof lying perpendicular to the axis of rotation of the shaft 24. In FIG. 3 the board 13 may be seen to have an arcuate opening 32 at the top through which the shaft 24 freely extends. The portions of the board 13 on either side of the opening 32 are referenced on the drawing as 33 and 34 and respectively carry magnetically actuated reed switches 35 and 36. The switches 35 and 36 are located one-hundred eighty degrees apart relative to the axis 37 of the shaft 24 and are equidistant from the central axis of the shaft 24. 
     Referring to FIG. 3A, adjacent each side of the switches 35, 36 are shunt wires 38a, 38b, 38c, 38d which may be of any suitable electrically conductive material such as nickel ferrite, and which extends parallel to the length of the adjacent switch 35, 36. 
     As may be seen in FIG. 3, three permanent magnets 39, 40, and 41 are mounted at angular positions of zero degrees, ninety degrees, and two hundred seventy degrees to the carrier disk 28 for selective movement into proximity with the switches 35 and 36 as the shaft 24 rotates. The magnets 39, 40 and 41 are equally spaced from axis 37 of the shaft 24 at the same radial distance as the switches 35 and 36 are spaced from the axis 37 of the shaft 24 so as to move into proximity with the switches 35 and 36 as the shaft 24 rotates. As shown, the magnets 39, 40, and 41 are embedded in the surface of the carrier disk 28. 
     The entire switching mechanism including the circuit board 13, and the carrier disk and magnets is enclosed by a dust-proof cover 44 which is affixed to the gear train housing over the face 22 thereof. A plurality of electric terminal connectors 48--48 extend from the circuit board on which they are mounted through complementary openings in the face of the cover 44. The terminals 48--48 are used to connect the unit 10 to a computer which supplies power to the motor 12 to drive it in one direction or the other in response to signals supplied to the computer via the terminals 48--48 from the switches 35 and 36 as is described in greater detail hereinafter. 
     Referring to FIG. 6, it will be seen that the switches 35 and 36 and the motor 12 are connected to a computer 50 through the terminals 48--48. A source of electric power 52 is used to power the computer. The motor 12 is a reversible DC motor and the power which is applied thereto by the computer 50 is, therefore, also DC. The polarity of the voltage from the computer to the motor 12 determines the direction of rotation of the motor. 
     OPERATION 
     In operation, the carrier disk 28 always returns to the illustrated standby position at the completion of a dispensing operation. Therefore, when a selection has been made and a vending cycle is initiated in any suitable manner to cause the computer to energize the motor 12, the motor shaft will rotate from the standby position in a predetermined direction to move the magnets away from the switches and thus causing the contacts in the switches 35 and 36 to move from their normal positions. As shown in FIG. 6, the switches 35 and 36 are normally open. However, the circuit can be designed to operate with normally closed switches. 
     The computer 50 senses that the switches 35 and 36 have opened and continues to supply power to the motor 12 until the magnet 40 moves into proximity with one of the switches 35 or 36. 
     The shunt wires 38 positioned adjacent each side of the reed switches 35, 36 suppress the flux field from the magnet such that the switches 35, 36 are not actuated until the magnet 40 is directly over one of the switches 35, 36. 
     When either one of these switches is thus actuated, the computer 50 reverses the polarity of the DC voltage applied to the motor 12 causing it to reverse the direction of rotation of the shaft 24. The motor 12 continues to rotate the shaft 24 in the reverse direction until the magnets 39 and 41 move into proximity with the switches 35 and 36 causing both switches to be actuated simultaneously, one of which is actuated for the second time during the cycle. The computer may be adapted to respond to either the simultaneous operation of both switches 35, 36 or to the second actuation of a single switch 35, 36. When the appropriate condition is sensed by the computer, it interrupts the supply of power to the motor 12 causing it to stop with the magnets 39 and 41 in proximity with the switches 35 and 36. The system is then in the standby condition ready for the next cycle of operation. 
     The unit 10 may be used to drive more than one dispensing device, and it may be used to drive the input of a dispensing or other device in either a clockwise or counter-clockwise direction. 
     Referring to FIG. 5, there is shown another gear motor and associated switching mechanism 10&#39; wherein parts corresponding to like parts in the embodiment of FIGS. 1-4 are identified with the same numbers and a prime. 
     In the device 10&#39; the switches 35&#39; and 36&#39; are positioned ninety degrees apart, and only two permanent magnets 39&#39; and 41&#39; are mounted to the carrier disk 28&#39;. The magnets 39&#39; and 41&#39; are also mounted ninety degrees apart. When both switches are in the actuated condition, i.e., the two magnets 39&#39; and 41&#39; are in respective proximity thereto, the system is in the standby condition. When an operating cycle is initiated, the motor 12&#39; is energized by the application of a DC voltage across the terminals thereof causing the magnets to move away from the two switches permitting them to drop out. When one or the other of the two switches is again actuated, the computer reverses the polarity of the voltage applied to the motor 12&#39; causing the shaft thereof to rotate in the opposite direction until the magnets return to their respective positions in proximity to the switches 35&#39; and 36&#39; and causing the computer to deenergize the motor 12&#39;. Shunt wires, not shown, as provided in the first embodiment, ensure that neither of the 35&#39;, 36&#39; is actuated until a magnet is rotated to a position directly over the switch 35&#39;, 36&#39;. 
     It may thus be seen that the present invention provides a novel switching system for driving a gear motor in either direction and for reversing the direction of rotation of the output shaft of the motor when the shaft has rotated through a predetermined angle and for automatically returning the motor to the original standby position. 
     While the present invention has been described in connection with a plurality of embodiments, it will be apparent to the those skilled in the art that many modifications and changes thereto may be made without departing from the true spirit and scope of the invention. Therefore, it is intended by the appended claims to cover all such changes and modifications which come within the true spirit and scope of the invention.