# US 2022/0276407 A1 · Method for calibrating sensor in vending machine and vending machine

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0276407 A1
- Document ID: US20220276407A1
- Status: Published application
- Kind: A1
- Application number: 17/607,159
- Filed: 2020-04-29
- Published: 2022-09-01
- Earliest claimed: 2019-04-29
- Assignees: Weihai New Beiyang Digital Technology Co., Ltd.; Shandong New Beiyang Information Technology Co., Ltd.
- Applicants: Weihai New Beiyang Digital Technology Co., Ltd.; Shandong New Beiyang Information Technology Co., Ltd.
- Inventors: Chunguang ZHANG; Zhiming LI; Xiaohua HUANG; Tianxin JIANG; Chuntao WANG
- Web page: https://patentgrep.com/patent/US20220276407A1

## CPC

- G01V 13/00: Manufacturing, calibrating, cleaning, or repairing instruments or devices covered by groups G01V1/00 – G01V11/00
- G07F 11/62: in which the articles are stored in compartments in fixed receptacles
- G01V 8/20: using multiple transmitters or receivers
- G07F 9/026: {for alarm, monitoring and auditing in vending machines or means for indication, e.g. when empty}
- G07F 11/00: Coin-freed apparatus for dispensing, or the like, discrete articles
- G01V: GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS (means for indicating the location of accidentally buried, e.g. snow-buried, persons A63B29/02)
- G07F: COIN-FREED OR LIKE APPARATUS (coin sorting G07D3/00; coin testing G07D5/00; {handling coins or paper currencies apart from payment activated apparatus G07D; payment architectures, schemes or protocols G06Q20/00})

## Abstract

Provided are a method for calibrating sensors in a vending machine and a vending machine. input values of first input terminals and input values of second input terminals of sensors are determined through level 1 calibration and level 2 calibration, respectively, which may greatly increase the number of adjustable grades of the luminous intensity of an optical generator of each sensor, and may further greatly improve the success rate of calibration on the sensors.

## Claims

### Claim 1

A method for calibrating sensors in a vending machine, wherein the vending machine comprises at least one storage column in which a plurality of sensors are provided, each sensor comprises a first input terminal and a second input terminal which are both configured to receive an input value to adjust an output value of the sensor; and the method comprises:
taking any one of the plurality of storage columns as a target storage column, setting the input values of the first input terminals of all sensors in the target storage column to a preset reference value, and performing level 1 calibration on the second input terminals of all the sensors in the target storage column to determine a first target input value which is common to the second input terminals of all the sensors in the target storage column, wherein the output values of all the sensors in the target storage column meet the requirements for the level 1 calibration in a case where the input values of the first input terminals of all the sensors in the target storage column are set to the preset reference value and the input values of the second input terminals of all the sensors in the target storage column are set to the first target input value which is common to the second input terminals;
setting the input values of the second input terminals of all the sensors in the target storage column to the first target input value which is common to the second input terminals, and performing level 2 calibration on the first input terminal of each sensor in the target storage column to determine a second target input value which corresponds to the first input terminal of the sensor, wherein the output values of all the sensors in the target storage column meet the requirements for the level 2 calibration in a case where the input values of the second input terminals of all the sensors in the target storage column are set to the first target input value which is common to the second input terminals and the input value of the first input terminal of each sensor in the target storage column is set to the second target input value corresponding to the sensor; and
setting the input value of the first input terminal of each sensor in the target storage column to the second target input value corresponding to the sensor.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of performing level 1 calibration on the second input terminals of all the sensors in the target storage column to determine the first target input value which is common to the second input terminals of all the sensors in the target storage column comprises:
determining a first test value for carrying out a first calibration test for the first time, and carrying out the first calibration test at least once until the end of the level 1 calibration, wherein each first calibration test comprises:
setting the input values of the second input terminals of all the sensors in the target storage column to the first test value determined for the current first calibration test, and taking output values of all the sensors in the target storage column to determine whether the output values of all the sensors in the target storage column meet the requirements for the level 1 calibration; in a case where the output values of all the sensors in the target storage column meet the requirements for the level 1 calibration, determining the first test value for the current first calibration test as the first target input value which is common to the second input terminals of all the sensors in the target storage column, and ending the level 1 calibration; and in a case where the output values of all the sensors in the target storage column fail to meet the requirements for the level 1 calibration, re-determining a first test value for the next first calibration test and carrying out the next first calibration test, wherein the first test value re-determined for the next first calibration test is different from that for each first calibration test before the next first calibration test.

### Claim 3 (depends on 2)

The method of claim 2, further comprising: presetting a plurality of first calibration input values sorted in ascending order or descending order; and
wherein the first test value for each first calibration test is determined by: before carrying out each first calibration test, determining a first calibration input value in the plurality of first correction input values as the first test value for the first calibration test based on the order of the first calibration input values.

### Claim 4 (depends on 1)

The method of claim 1, wherein the step of performing level 2 calibration on the first input terminal of each sensor in the target storage column to determine a second target input value corresponding to the first input terminal of the sensor comprises:
taking an output value of the sensor as a first output value to determine whether the first output value meets the requirements for the level 2 calibration in a case where the input value of the first input terminal of the sensor is set to the preset reference value and the input value of the second input terminal is set to the first target input value which is common to the second input terminals of all the sensors in the target storage column where the sensor is located;
in a case where the first output value meets the requirements for the level 2 calibration, determining the preset reference value as the second target input value corresponding to the first input terminal of the sensor; and
in a case where the first output value fails to meet the requirements for the level 2 calibration, determining a second test value for carrying out a second calibration test for the first time, and carrying out the second calibration test on the sensor at least once until the end of the level 2 calibration on the sensor, wherein each second calibration test comprises following steps of: setting the input value of the first input terminal of the sensor to the second test value determined for the current second calibration test, and taking the output value of the sensor as a second output value to determine whether the second output value meets the requirements for the level 2 calibration; in a case where the second output value meets the requirements for the level 2 calibration, determining the second test value for the current second calibration test as the second target input value corresponding to the first input terminal of the sensor, and ending the level 2 calibration, and in a case where the second output value fails to meet the requirements for the level 2 calibration, re-determining a second test value for the next second calibration test and carrying out the next second calibration test on the sensor, wherein the second test value re-determined for the next second calibration test is different from the second test value for each second calibration test before the next first calibration test.

### Claim 5 (depends on 1)

The method of claim 1, wherein that the output values of all the sensors in the target storage column meet the requirements for the level 1 calibration comprises the following characteristics:
the output values of all the sensors in the target storage column are all within a first range from VD−DV1 to VD+DV1, wherein VD is a target output value of each sensor preset by a user, and DV1 is a first offset that is greater than or equal to zero; and the output value of each sensor in the target storage column meets the requirements for the level 2 calibration; and
the output value of each sensor in the target storage column is within a second range from VD−DV2 to VD+DV2, wherein DV2 is a second offset that is less than the first offset and greater than or equal to zero.

### Claim 6 (depends on 5)

The method of claim 5, wherein the step of performing level 2 calibration on the first input terminal of each sensor in the target storage column to determine a second target input value corresponding to the first input terminal of the sensor comprises:
taking the output value of the sensor as a third output value to determine whether the third output value is equal to the target output value in a case where the input value of the first input terminal of the sensor is set to the preset reference value and the input value of the second input terminal is set to the first target input value which is common to the second input terminals of all the sensors in the target storage column where the sensor is located; in a case where the third output value is equal to the target output value, determining the preset reference value as the second target input value corresponding to the first input terminal of the sensor; and
in a case where the third output value is not equal to the target output value, determining an eligible second calibration input value in a plurality of second calibration input values sorted in a preset order as a second test value, and carrying out a second calibration test on the sensor at least once until the end of the level 2 calibration on the sensor, wherein each second calibration test comprises:
setting the input value of the first input terminal of the sensor to the second test value determined for the current second calibration test, and taking the output value of the sensor as a fourth output value to determine whether the fourth output value is equal to the target output value, in a case where the fourth output value is equal to the target output value, determining the second test value for the current second calibration test as the second target input value corresponding to the first input terminal of the sensor, and ending the level 2 calibration on the sensor, and in a case where the fourth output value is not equal to the target output value, determining whether or not the magnitude relation between the fourth output value and the target output value changes with respect to that between the third output value and the target output value; in a case where the magnitude relation between the fourth output value and the target output value does not change with respect to that between the third output value and the target output value, determining the next eligible second calibration input value in the plurality of second calibration input values sorted in the preset order as the second test value for the next second calibration test, and carrying out the next second calibration test on the sensor, and in a case where the magnitude relation between the fourth output value and the target output value changes with respect to that between the third output value and the target output value, determining whether both the current fourth output value and a previous output value are within the second range; in a case where both the current fourth output value and the previous output value are within the second range, determining the input value of the first input terminal of the sensor corresponding to either the current fourth output value or the previous output value that is closer to the target output value, and ending the level 2 calibration on the sensor; in a case where only one of the current fourth output value and the previous output value is within the second range, determining the input value of the first input terminal of the sensor corresponding to either the current fourth output value or the previous output value that is within the second range as the second target input value corresponding to the first input terminal of the sensor, and ending the level 2 calibration on the sensor; and in a case where neither the current fourth output value nor the previous output value is within the second range, ending the level 2 calibration on the sensor; wherein the previous output value is the previous fourth output value or the third output value.

### Claim 7 (depends on 6)

The method of claim 6, wherein the plurality of second calibration input values are sorted in ascending order or descending order, and the preset reference value is a mid-value of the plurality of second calibration input values; and
the step of determining an eligible second calibration input value in the plurality of second calibration input values sorted in a preset order as the second test value comprises: determining a second calibration input value greater than the preset reference value as the eligible second calibration input value in a case where the third output value is less than the target output value, and determining a second calibration input value less than the preset reference value as the eligible second calibration input value in a case where the third output value is greater than the target output value.

### Claim 8 (depends on 7)

The method of claim 7, wherein in a case where the third output value is less than the target output value, before carrying out each second calibration test, a second calibration input value in the plurality of eligible second calibration input values is determined as the second test value for the second calibration test based on the ascending order of the second calibration input values; and in a case where the third output value is greater than the target output value, before carrying out each second calibration test, an second calibration input value in the plurality of eligible second calibration input values is determined as the second test value for the second calibration test based on the descending order of the second calibration input values.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
outputting a prompt message of calibration failure in a case of a failure to determine the first target input value which is common to the second input terminals of all the sensors in the target storage column by performing the level 1 calibration on the second input terminals of all the sensors in the target storage column or in a case of a failure to determine the second target input value corresponding to the first input terminal of one sensor in the target storage column by performing the level 2 calibration on the first input terminal of the sensor in the target storage column.

### Claim 10

A vending machine, comprising a controller and at least one storage column, wherein a plurality of sensors all electrically connected to the controller are provided in each storage column, each sensor comprises a first input terminal and a second input terminal which are both configured to receive an input value to adjust an output value of the sensor, and the controller is configured to:
take any one of the plurality of storage columns as a target storage column, set the input values of the first input terminals of all sensors in the target storage column to a preset reference value, and perform level 1 calibration on the second input terminals of all the sensors in the target storage column to determine a first target input value which is common to the second input terminals of all the sensors in the target storage column, wherein the output values of all the sensors in the target storage column meet the requirements for the level 1 calibration in a case where the input values of the first input terminals of all the sensors in the target storage column are set to the preset reference value and the input values of the second input terminals of all the sensors in the target storage column are set to the first target input value which is common to the second input terminals; set the input values of the second input terminals of all the sensors in the target storage column to the first target input value which is common to the second input terminals, and perform level 2 calibration on the first input terminal of each sensor in the target storage column to determine a second target input value corresponding to the first input terminal of the sensor, wherein the output values of all the sensors in the target storage column meet the requirements for the level 2 calibration in a case where the input values of the second input terminals of all the sensors in the target storage column are set to the first target input value which is common to the second input terminals and the input value of the first input terminal of each sensor in the target storage column is set to the second target input value corresponding to the sensor; and set the input value of the first input terminal of each sensor in the target storage column to the second target input value corresponding to the sensor.
