Method for calibrating sensor in vending machine and vending machine
AssigneesWeihai New Beiyang Digital Technology Co., Ltd., Shandong New Beiyang Information Technology Co., Ltd.
InventorsChunguang ZHANG, Zhiming LI, Xiaohua HUANG, Tianxin JIANG, Chuntao WANG
Life of this patent
Estimating the term…
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.
Claims10
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.
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.
Dependencies are inferred from the claim text.