1. Technical Field
The present disclosure relates to a system to detect the level of coins in the coin boxes of vending machines.
2. Description of Related Art
Vending machines include coin boxes for receiving and accommodating coins. Typical vending machines cannot detect coins in the coin boxes. When the coin boxes are filled with coins, the coins may not be accepted by the coin boxes resulting the coin boxes to malfunction.
Therefore, there is a need for improvement in the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
The coin detecting circuit 200 includes a second amplifier U2, a single-pole multi-throw (SPMT) switch S, a third resistor R3, and a selection resistors R5-R10. The second amplifier U2 includes a non-inverting input terminal, an inverting input terminal and an output terminal. The SPMT switch S includes a connection terminal and a plurality of selection terminals. The plurality of selection terminals of the SPMT switch S are electrically connected to first terminals of the selection resistors R5-R10. Second terminals of the selection resistors R5-R10 are electrically connected to the output terminals of the first amplifier U1. The connection terminal of the SPMT switch S is electrically connected to the inverting input terminal of the second amplifier U2. The SPMT switch S is switched to select a first selection resistor of the selection resistors R5-R10 by connecting the connection terminal and one of the plurality of selection terminals together. The non-inverting input terminal of the second amplifier U2 is electrically connected to a negative terminal −VCC via the third resistor R3. The inverting input terminal and the output terminal of the second amplifier U2 are electrically connected to two ends of the coin box M. In one embodiment, the respective resistances of the selection resistors R5-R10 gradually decrease from R5 to R10. A voltage on the positive terminal +VCC and the negative terminal −VCC is +9V. A current flowing through the positive terminal +VCC and the negative terminal −VCC is 12 mA.
The indication circuit 300 includes a micro ampere meter P, a second variable resistor VR2, and a fourth resistor R4. The second variable resistor VR2 includes a first terminal, a second terminal, and an adjusting terminal. A first terminal of the fourth resistor R4 is electrically connected to the output terminal of the second amplifier U2. A second terminal of the fourth resistor R4 is electrically connected to the first terminal of the second variable resistor VR2 via the micro ampere meter P. The second terminal of the second variable resistor VR2 is grounded. The adjusting terminal of the second variable resistor VR2 is electrically connected to the second terminal of the second variable resistor VR2.
In operation, the +9V DC voltage is divided by the first resistor R1 and the first variable resistor VR1, and stabilized by the Zener diode VZ to generate a reference voltage. The first amplifier U1 receives the reference voltage and outputs a stable reference voltage. A relationship between an output voltage V1 of the first amplifier U1 and an output voltage V2 of the second amplifier U2 can be calculated by the following formula: V2/V1=Rm/Rx. In one embodiment, Rm is an overall resistance of the coin box M, and Rx is a resistance of one of the selection resistors R5-R10. A value of the current displayed on the micro ampere meter P is the quantity of current passing through the fourth resistor R4 and the second variable resistor VR2. The value of the current displayed on the micro ampere meter P is proportional to the output voltage V2 of the second amplifier U2. When coins are dropped into the coin box M, the coins are electrically connected in parallel with the coin box M. Thus the overall resistance of the coin box M decreases as a number of the coins put into the coin box M increases.
According to the above formula, the output voltage V2 of the second amplifier U2 is proportional to the resistance of the coin box M, and the output voltage V2 of the second amplifier U2 is inversely proportional to the resistance of one of the selection resistors R5-R10. When the coin box M is completely filled with coins, the resistance of the coin box M has a minimum value, and the output voltage V2 of the second amplifier U2 has a minimum value when the resistance of one of the selection resistors R5-R10 is fixed. Therefore, the value of the current displayed on the micro ampere meter P also has a minimum value.
When the coin box M is not filled with coins, the overall resistance of the coin box M is greater than the minimum value of the resistance Rm, and the output voltage V2 of the second amplifier U2 is greater than the minimum value of the output voltage V2 when the resistance of one of the selection resistors R5-R10 is fixed. Therefore, the value of the current displayed on the micro ampere meter P is greater than the minimum value of the current value. The value of the current displayed on the micro ampere meter P thus indicates whether the coin box M is filled with coins or not filled with coins.
In one embodiment, the SPMT switch S can select one of the selection resistors R5-R10 according to a manufactured volume of the coin box M. When the manufactured volume of the coin box M increases, the coin box M can be filled with more coins, and the resistance Rm of the coin box M is smaller than the minimum value of the resistance. The output voltage V2 of the second amplifier U2 is smaller than the minimum value of the output voltage V2. Therefore, the value of the current displayed on the micro ampere meter P is smaller than the minimum value of the current value, and the value of the current will not be displayed on the micro ampere meter P. The SPMT switch S is switchable to select a second selection resistor of the selection resistors R5-R10 which having a resistance smaller than a resistance of the first selection resistor. The resistance Rx of the second selection resistor is merely decreased to increase the output voltage V2 of the second amplifier U2 and the value of the current displayed on the micro ampere meter P. Therefore, the value of the current being displayed on the micro ampere meter P, to indicate that the coin box M is full, can be adjusted to suit different manufactured sizes of coin box. Similarly, when the manufactured volume of the coin box M decreases, the SPMT switch S is switched to select a third resistor of selection resistors R5-R10 having a resistance greater than the resistance of the first selection resistor.
Even though numerous characteristics and advantages of the present disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in the matters of shape, size, and the arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
2013100777843 | Mar 2013 | CN | national |