Sensor device and vending machine equipped with same

The sensor device uses an illuminance sensor to process illuminance data for accurate presence detection, addressing the need for separate sensors and reducing space and cost.

JP7568306B2Active Publication Date: 2024-10-16YOKOWO CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2022170775
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2024-10-16
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

Conventional sensor devices for detecting human presence require separate installation of illuminance and human sensors, leading to increased cost and space consumption.

Method used

A sensor device utilizing an illuminance sensor that stores and processes illuminance data to determine presence or absence by comparing current and past data, eliminating the need for additional human sensors.

Benefits of technology

Achieves high-accuracy presence/absence determination while reducing installation space and cost, and simplifying the sensor configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568306000002
    Figure 0007568306000002
  • Figure 0007568306000003
    Figure 0007568306000003
  • Figure 0007568306000004
    Figure 0007568306000004
Patent Text Reader

Abstract

To provide a sensor device capable of performing absence determination with high accuracy despite changes in an environment of an installation and characteristics of a detection object, and an automatic vending machine provided with the sensor device.SOLUTION: An illuminance data storage unit sequentially stores illuminance data output from an illuminance sensor every predetermined time as one frame. A data updating unit updates matching data set in the illuminance data storage unit to illuminance data of the latest frame. An arithmetic unit calculates a sum value of a difference between the past illuminance data and the matching data. A presence state determination unit determines the presence or absence of a detection object by comparing the sum value with a preset reference value. An absent state determination unit detects that a value equivalent to an illuminance data value of the frame in the state before determination of the present state is output, and determines completion of transition from the present state to the absent state.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a sensor device that detects a detection target including a human body, and a vending machine equipped with the same. [Background technology]

[0002] Conventionally, there has been known a sensor device that detects the presence or absence of a human body without contact. For example, as shown in Patent Document 1 or Patent Document 2, a sensor device detects whether or not a person is standing in front of a vending machine, and when a person is in front of the vending machine, the LED lighting, price display, switch buttons, etc. of the vending machine are brightened, and when the person leaves the vending machine, these are dimmed, thereby controlling the brightness of the lighting, etc., thereby realizing energy saving in the vending machine. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2013-80316 A [Patent Document 2] JP 2018-84775 A Summary of the Invention [Problem to be solved by the invention]

[0004] The illuminance sensor used in the above-mentioned conventional technology is only for checking external light, and a human presence sensor is provided separately. That is, in addition to the illuminance sensor, an infrared sensor, an ultrasonic sensor, a Doppler sensor, or the like is installed on the installation object to determine whether or not a person is present near the installation object.

[0005] However, such conventional technology requires the installation of a motion sensor in addition to the illuminance sensor, which makes it difficult to save space and also leads to increased costs.

[0006] The present invention has been proposed to solve the problems of the prior art as described above. An object of the present invention is to provide a sensor device and a vending machine equipped with the same that can perform presence / absence determination with high accuracy while saving installation space and reducing costs. [Means for solving the problem]

[0007] In order to achieve the above object, a sensor device according to the present invention is characterized by having the following configuration. (1) An illuminance sensor installed in the installation. (2) an illuminance data storage unit that sequentially stores, as one frame, the illuminance data output from the illuminance sensor at predetermined time intervals; (3) A matching data setting unit that sets the illuminance data of the latest frame among the illuminance data of the plurality of frames stored in sequence in the illuminance data storage unit as matching data. (4) A data update unit that updates the matching data set in the illuminance data storage unit to the illuminance data of the latest frame when illuminance data of a new frame is input to the illuminance data storage unit from the illuminance sensor. (5) A calculation unit that compares the matching data with illuminance data of multiple past frames stored in the illuminance data storage unit prior to the matching data, and calculates the sum of the differences between the matching data and the past illuminance data of the frame in which the error between the two is minimal. (6) A presence status determination unit that compares the sum calculated by the calculation unit with a preset reference value, and determines whether the object to be detected is present or absent if the sum calculated by the calculation unit exceeds the reference value. (7) An unoccupied state determination unit that detects that a value equivalent to the illuminance data value of a frame in a state before the occupancy state determination unit determines that the occupancy state has been determined, and determines that the transition from the occupancy state to the unoccupied state has been completed.

[0008] In the present invention, the following configurations can be adopted. (1) The illuminance sensor detects the illuminance caused by the shadow of a detection object cast on the illuminance sensor, and the presence state determination unit determines that the person is present when the sum of the differences calculated by the calculation unit is negative, and determines that the person is transitioning to an absent state when the sum of the differences is positive. (2) The illuminance sensor is equipped with an light-emitting unit and detects the illuminance of reflected light from a detection object hit by light emitted from the light-emitting unit, and the presence state determination unit determines that the object is present when the sum of the differences calculated by the calculation unit is positive, and determines that the object is transitioning to an absent state when the sum of the differences is negative.

[0009] A vending machine equipped with a sensor device having the above-mentioned configuration, and a vending machine equipped with a Doppler sensor in addition to the sensor device having the above-mentioned configuration are also aspects of the present invention. (1) The illuminance sensor detects the illuminance of reflected light from a detection object hit by light emitted from the lighting equipment of the vending machine, and the presence state determination unit determines that the object is present when the sum of the differences calculated by the calculation unit is positive, and determines that the object is transitioning to an absent state when the sum of the differences is negative. Effect of the Invention

[0010] According to the present invention, it is possible to achieve the effect of realizing space saving and cost reduction in installation location while making it possible to perform presence / absence determination with high accuracy. [Brief description of the drawings]

[0011] [Figure 1] 1A to 1C are diagrams showing a usage mode of the first embodiment, in which (a) is an image diagram showing an approaching motion, (b) is a stationary motion, and (c) is a diagram showing a moving away motion. [Diagram 2] 1 is a block diagram showing an overall configuration of a first embodiment; [Diagram 3] FIG. 2 is a block diagram showing a configuration of a data processing unit in the first embodiment. [Figure 4] 5A to 5C are diagrams illustrating a method for calculating the amount of fluctuation in illuminance data according to the first embodiment. [Diagram 5]4 is a graph showing a presence / absence determination process in the first embodiment. [Figure 6] 13 is a graph showing a presence / absence determination process in a modified example of the first embodiment. [Figure 7] 5 is a flowchart showing an approach detection process according to the first embodiment. [Figure 8] 5 is a flowchart showing a separation detection process according to the first embodiment. [Figure 9] FIG. 13 is a block diagram showing the overall configuration of a third embodiment. [Figure 10] FIG. 13 is a block diagram showing a configuration of a data processing unit in a third embodiment. [Figure 11] 13 is a flowchart showing five-stage threshold division in the third embodiment. [Figure 12] 13 is a graph showing a presence / absence determination process according to the third embodiment. [Figure 13] 13 is a flowchart showing an approach / leave detection process according to a third embodiment. [Figure 14] 13 is a flowchart showing an approach / leave control process according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] [1. First embodiment] [1-1. Configuration of the first embodiment] As shown in FIG. 1, the present invention detects the presence or absence of a detection target X that approaches, stops, and moves away from an installation V, such as a vending machine. As shown in FIG. 1(a), when the detection target X detects the movement of approaching the installation V, the sensor switches from "absent" to "present." As shown in FIG. 1(b), when the detection target X detects the movement of stopping in front of the installation V, the sensor maintains the "present" state. As shown in FIG. 1(c), when the detection target X detects the movement of moving away from the installation V, the sensor switches from "present" to "absent."

[0013] A first embodiment of the present invention will be described in detail below with reference to Fig. 2. In this embodiment, an installation V is installed in an environment with a certain amount of light due to the surrounding environment, such as natural light, street lighting, and lighting from other surrounding buildings. Therefore, when a detection target X, such as a person, approaches the installation V, the light reaching the installation V is blocked by the detection target, and the amount of light reaching the illuminance sensor provided on the installation V decreases. The illuminance sensor of this embodiment detects this change in the amount of light in the surrounding environment to determine whether the detection target X is present or absent.

[0014] 2, the sensor device of this embodiment is installed on an object V in the above-mentioned environment, and includes an illuminance sensor 200 and a data processing unit 205. As shown in FIG 3, the data processing unit 205 includes an illuminance data storage unit 210, a matching data setting unit 220, a data updating unit 230, a calculation unit 240, a presence status determination unit 250, and an absence status determination unit 260.

[0015] The illuminance sensor 200 converts the amount of light input from the environment around the installation object V into an electrical signal, and detects it as illuminance data. The illuminance sensor 200 transmits the input illuminance data to the illuminance data storage unit 210.

[0016] The illuminance data storage unit 210 sequentially stores the illuminance data output from the illuminance sensor 200 at every preset predetermined time. The "predetermined time" can be set arbitrarily, but if it is set to every 10 msec, for example, the illuminance data storage unit 210 A / D converts the illuminance data received from the illuminance sensor 200 at every 10 msec, and sequentially stores the illuminance data acquired as log data. In the graph of Fig. 4(b), the waveform at short intervals at the top is the illuminance data acquired at every 10 msec.

[0017] The matching data setting unit 220 sets the illuminance data of the latest frame of the illuminance data stored every 0.5 seconds as one frame by grouping the illuminance data in the upper row of Fig. 4(b) stored sequentially in the illuminance data storage unit 210 for 0.5 seconds as one frame, as the matching data. The graph in Fig. 4(a) shows the matching data for 0.5 seconds set by the matching data setting unit 220.

[0018] When new frame illuminance data is input to the illuminance data storage unit 210 from the illuminance sensor 200 every 0.5 seconds, the data update unit 230 updates the matching data set in the illuminance data storage unit 210 to the illuminance data of the latest frame.

[0019] The calculation unit 240 compares the matching data with the illuminance data of a plurality of past frames stored in the illuminance data storage unit 210 before the matching data, and calculates the sum of the differences between the past illuminance data of the frame in which the error between the two is the smallest and the matching data. That is, the calculation unit 240 compares the latest 0.5 sec of matching data shown in FIG. 4(a) with the illuminance data of a plurality of past frames shown in FIG. 4(b) stored in the illuminance data storage unit 210 before the matching data (also called "past data"), and matches the two. Among the plurality of frames belonging to the past data, the frame whose waveform pattern is most similar to the matching data is extracted, in other words, the past frame whose error is the smallest when comparing the matching data with the illuminance data of the past frame. For example, among the plurality of frames shown in FIG. 4(b), the thick line part shown in the center is the frame in which matching is achieved. FIG. 4(c) shows an enlarged view of the frame in which matching data and the matching data are matched extracted from FIG. 4(b).

[0020] Next, the calculation unit 240 compares the illuminance data of the matching data with the illuminance data of the matched frames, and calculates the sum of the differences between the illuminance data of the two. The graph in the circle in Fig. 4(c) shows the difference between the illuminance data of the matching data and the illuminance data of the matched frames, and the sum of the differences is obtained by adding up the differences for one frame. Note that the graph in the circle in Fig. 4(c) has a flat output waveform overall, which indicates that there is little difference between the illuminance data of the matching data and the illuminance data of the matched frames.

[0021] The presence status determination unit 250 compares the sum calculated by the calculation unit 240 with a preset reference value, and determines the presence or absence of the detection target X when the sum exceeds the reference value. Fig. 5 is a graph showing the output value (small waveform) of the illuminance sensor and the difference. That is, as the detection target X approaches the illuminance sensor 200, the shadow of the detection target X becomes larger and the amount of light reaching the illuminance sensor 200 decreases. Therefore, based on the following tendency of the illuminance data as shown in the output value of the illuminance sensor 200 in Fig. 5, a preset reference is set for the approach, stationary, and departure of the detection target X. (1) Approach: Output value decreases. (2) Stationary: The output value remains low. (3) Defection: Output value increases.

[0022] In this embodiment, the sum of the differences for one frame is compared with the reference value, rather than the magnitude of the difference in Fig. 5. The reason for this is that since the illuminance data is acquired in a short period of time, such as 10 msec, a large difference may occur instantaneously due to the influence of disturbances, etc., and in order to eliminate such malfunctions, the sum of the illuminance data for one frame is compared with the reference value.

[0023] When the sum of the calculated differences is greater than the reference value, the presence state determination unit 250 considers that a change has occurred and determines that the state is a presence state. Note that when the detection target X is not present, the same tendency continues to be output, resulting in a state with little change.

[0024] The absence state determination unit 260 detects that a value equivalent to the illuminance data value of the frame before the presence state determination by the presence state determination unit 250 has been output, and determines the completion of the transition from the presence state to the absence state. That is, even when the detection target X moves away from the installed object V, the sum of the differences becomes large and exceeds the reference value, but this makes it impossible to distinguish from the case where the detection target approaches further from the presence determination state at the time of approach. Therefore, in the case of an absence determination, it detects that the illuminance data has reached the state before the presence determination, i.e., the past absence determination, and determines the absence determination.

[0025] [1-2. Operation of the First Embodiment] When a detection target X approaches an installation V on which the illuminance sensor 200 is installed, the illuminance sensor 200 detects the illuminance caused by the shadow of the detection target X. The illuminance data is stored in the illuminance data storage unit 210 at predetermined time intervals. A process of detecting the approach, stop, and departure of the detection target X and judging the presence or absence of the detection target X relative to the installation V will be described with reference to Figs. 7 and 8.

[0026] 7 is a flowchart showing the approach detection process. The calculation unit 240 compares the matching data with past data and extracts the difference between them (step S01). The calculation unit 240 calculates the sum of the differences with the frame with the minimum error (step S02). It is determined whether the difference is greater than a certain value (step S03).

[0027] If the difference is greater than the fixed value (YES in step S03), the presence determination is made by the presence state determination unit 250. Then, the flow proceeds to the separation detection flow. If the difference is less than the fixed value (NO in step S03), the processing in steps S01 to S03 is performed again.

[0028] 8 is a flowchart showing the separation detection process. The calculation unit 240 calculates the difference from the illuminance data before the presence determination (step S11). It is determined whether the difference is smaller than a certain value (step S12).

[0029] If the difference is smaller than the fixed value (YES in step S12), the absence state determination unit 260 determines that the user is absent. Then, the process proceeds to the approach detection flow. If the difference is larger than the fixed value (NO in step S12), the process of steps S11 to S12 is performed again.

[0030] [1-3. Effects of the first embodiment] (1) The sensor device of the present embodiment can achieve the effect of realizing a space-saving and cost-saving installation location while making it possible to perform presence / absence determination with high accuracy. That is, with regard to the determination threshold of the illuminance sensor, while in general technology an absolute value (fixed reference value) is set as the threshold, in the sensor device of the present embodiment, a variable amount of threshold is set. Therefore, in the sensor device of the present embodiment, the presence / absence determination is performed by comparing matching data with past data, and thus detection errors caused by the environment of the installation object V and the characteristics of the detection target X are eliminated, compared to general technology that directly compares a fixed reference value with illuminance data, making it possible to perform presence / absence determination with higher accuracy.

[0031] (2) According to the sensor device of this embodiment, an absence determination is made by detecting that the illuminance data has reached the state before the presence determination, i.e., the state of the past absence determination. Therefore, it is possible to clearly distinguish between the movement of the detected object during the presence determination and the absence determination.

[0032] (3) There is no need to provide a dedicated light emitting unit in the illuminance sensor 200, and since the change in the amount of light in the surrounding environment of the installation object V is detected, the configuration of the illuminance sensor 200 can be simplified.

[0033] (4) According to the sensor device of this embodiment, the illuminance sensor 200 has a function as a human sensor, so there is no need to use a separate infrared sensor or ultrasonic sensor, and the approach, stationary state, and departure of the detection target X can be detected by observing the change in illuminance of the illuminance sensor 200 alone. As a result, it is possible to reduce costs and save space in the installation location.

[0034] [2. Second embodiment] [2-1. Configuration of the second embodiment] A second embodiment of the present invention will be described below. In this embodiment, for example, when the installation object V is a vending machine, the detection object X is determined by using light from a lighting device such as an LED light for displaying products that is provided in an existing vending machine. In the first embodiment, the illuminance change caused by the shadow of the detection object X is detected, whereas in the second embodiment, the lighting device or the like provided in the vending machine irradiates light on the detection object X and detects the reflected light. Therefore, in the first embodiment, the closer the detection object X is to the installation object V, the larger the shadow blocking the surrounding light becomes, and the smaller the amount of light captured by the illuminance sensor 200 becomes, whereas in the second embodiment, the closer the detection object X is to the installation object V, the larger the amount of light reflected by the detection object X becomes.

[0035] Therefore, in the second embodiment, as shown in Fig. 7, the presence state determination unit 250 determines the presence state when the sum of the differences by the calculation unit 240 is positive, and determines the transition to the absence state when the sum of the differences is negative, which is different from the first embodiment. The other configurations and operations are the same as those of the first embodiment, so the explanation will be omitted.

[0036] [2-2. Effects of the Second Embodiment] In the second embodiment having such a configuration, the detection target X is determined using light from lighting equipment such as LED lighting for displaying products that is installed in existing vending machines. Therefore, even at night when shadows caused by natural light cannot be detected unlike during the day, a certain amount of light can be irradiated onto the detection target X and the reflected light can be detected, enabling a more accurate presence / absence determination.

[0037] [3. Third embodiment] [3-1. Configuration of the third embodiment] A third embodiment of the present invention will now be described. As shown in Fig. 9, the third embodiment is configured by further providing a Doppler sensor 100 to the illuminance sensor 200 of the first embodiment. The Doppler sensor 100 of the third embodiment has the following configuration. Note that a description of parts common to the first embodiment will be omitted. (1) A Doppler sensor having a transmitter that transmits a radio signal to the outside of the installation object, and a receiver that receives a reflected signal of the radio signal from an object to be detected. (2) a reflected signal extracting unit that extracts the reflected signal received by the receiving unit at a predetermined interval; (3) a reflected signal storage unit for storing a plurality of the reflected signals extracted at a predetermined interval by the reflected signal extraction unit; (4) A distance calculation unit that calculates the distance between the installation and the detection target at the time each reflected signal is extracted based on the multiple reflected signals stored in the reflected signal storage unit. (5) an array storage unit that arrays and stores the plurality of distance data converted by the distance calculation unit in the order in which the reflected signals are received; (6) An analysis unit that compares the multiple distance data values ​​stored in the array storage unit and analyzes the approach, stopping, and departure of the detected object from the installed object based on a slope of data values ​​that indicate an increase / decrease tendency of the multiple distance data values. (7) A determination unit that determines the presence or absence of a detection target relative to the installation object based on the analysis results of the analysis unit.

[0038] A third embodiment of the present invention will now be described in detail with reference to Fig. 9. As shown in Fig. 9, the sensor device of this embodiment is installed on an object V, which is a vending machine, and has a Doppler sensor 100 and a data processing unit 105. As shown in Fig. 10, the data processing unit 105 includes a reflected signal extraction unit 110, a reflected signal storage unit 120, a distance calculation unit 130, an array storage unit 140, an analysis unit 150, and a determination unit 160.

[0039] The Doppler sensor 100 detects an object X within a predetermined detection range. The Doppler sensor 100 includes a transmitter 101 that transmits a radio signal to the outside of an installed object V, and a receiver 102 that receives a reflected signal of the radio signal from the object X. The transmitter 101 includes a dielectric resonator for generating a radio signal. The transmitter 101 transmits the radio signal generated by the dielectric resonator to the outside of the installed object V. The receiver 102 receives the reflected signal that the transmitter 101 transmitted to the outside and that was reflected back by all or part of the object X, and transmits the received signal to a reflected signal extraction unit 110.

[0040] The reflected signal extracting unit 110 includes a non-linear element such as a diode or a transistor, and extracts the reflected signal received by the receiving unit 102 at predetermined intervals.

[0041] The reflected signal extraction unit 110 includes an outlier removal unit 111 that compares the reflected signal with a preset threshold, determines that the reflected signal that satisfies a preset condition is an outlier signal, and removes it from the reflected signal to be extracted. Specifically, the following cases (1) to (3) are defined as outliers. (1) When the approach threshold E, departure threshold E, or absence threshold N in the threshold information in Table 1 is acquired, a reflected signal that is less than a certain time (e.g., 300 msec) is regarded as an outlier. (2) When the approach threshold E, departure threshold E, and absence threshold N are acquired, any reflected signal that has never been removed as an outlier by the approach threshold E, departure threshold E, or absence threshold N before is regarded as an outlier. (3) If the approach threshold A or the departure threshold A is acquired and then a threshold other than the approach threshold A or the departure threshold A reacts, then if a reflected signal corresponding to the departure threshold A is detected again, it is considered an outlier.

[0042] Note that this removal of outliers may be performed by the reflected signal extraction unit 110 as described above, or in the analysis unit 150, if the reflected signal that is the source of the distance data in the array satisfies the conditions (1) to (3) above, the distance data can be excluded as an outlier.

[0043] The reflected signal storage unit 120 stores a plurality of reflected signals extracted by the reflected signal extraction unit 110 at predetermined intervals.

[0044] Based on the multiple reflected signals stored in the reflected signal storage unit 120, the distance calculation unit 130 calculates the distance between the installation object V and the detection target X at the time of extracting each reflected signal, according to five threshold levels, for example, as shown in Table 1 below. Specifically, the threshold information is divided into three types: approach threshold, departure threshold, and absence information, and the approach threshold and departure threshold are each divided into five levels: A, B, C, D, and E. According to each threshold information classified in this way, the distance calculation unit 130 performs distance conversion to 500 mm, 1000 mm, 1500 mm, 2000 mm, 5000 mm, and 6000 mm.

[0045] That is, the threshold information in Table 1 is the output value of Doppler sensor 100 received by receiving unit 102 and extracted by reflected signal extraction unit 110, and the output value is given as an electrical signal of voltage, frequency, phase difference, etc. depending on the configuration and type of Doppler sensor. In this embodiment, the output value of the electrical signal obtained according to the distance between installed object V and detection target X (signal value marked with @ in Table 1) is not used as it is for determining "presence" or "absence", but the output value is converted to distance in distance calculation unit 130.

[0046] [Table 1]

[0047] The array storage unit 140 arrays and stores the five-level distance data converted by the distance calculation unit 130 in the order in which the reflected signals are received. That is, in this embodiment, the reflected signals obtained at a predetermined time interval are converted into five-level distance data, and the analysis unit 150 analyzes the change over time in the distance between the installation object V and the detection target X detected by the Doppler sensor.

[0048] The analysis unit 150 compares the multiple distance data values ​​stored in the array storage unit 140, and analyzes the approach, stop, and departure of the detection target X from the installation V based on the slope of the data values ​​indicating the increase / decrease tendency of the multiple distance data values. When comparing the multiple distance data values, the analysis unit 150 determines the correlation between the multiple distance data values, and analyzes the approach, stop, and departure of the detection target X from the installation V based on this correlation and the slope of the data values ​​indicating the increase / decrease tendency of the multiple distance data values.

[0049] Based on the analysis result of the analysis unit 150, the determination unit 160 determines the presence or absence of the detection target X relative to the installed object V. From the time of the presence determination to the time of the absence determination, the determination unit 160 continues to hold the presence determination as an approaching or stationary motion of the detection target X.

[0050] [3-2. Operation of the Third Embodiment] A radio signal transmitted from a transmitter 101 of a Doppler sensor 100 is reflected by a detection target X, and a receiver 102 receives the reflected signal. The reflected signal is extracted at a predetermined interval by a reflected signal extractor 110 and stored in a reflected signal storage unit 120. The reflected signals stored in the reflected signal storage unit 120 are classified into five threshold levels by a distance calculator 130.

[0051] FIG. 11 is a flow chart for explaining the five-level threshold division for the reflected signal of the first embodiment having the above-mentioned configuration. As shown in FIG. 11, whether or not the threshold A reacts is confirmed (step S01). If the threshold A reacts (YES in step S21), it is determined to be the threshold A. If the threshold A does not react (NO in step S21), it is confirmed whether or not the threshold B reacts (step S22). If the threshold B reacts (YES in step S22), it is determined to be the threshold B. If the threshold B does not react (NO in step S22), it is confirmed whether or not the threshold C reacts (step S23). If the threshold C reacts (YES in step S23), it is determined to be the threshold C. If the threshold C does not react (NO in step S23), it is confirmed whether or not the threshold D reacts (step S24). If the threshold D reacts (YES in step S24), it is determined to be the threshold D. If the threshold D does not react (NO in step S24), it is confirmed whether or not the threshold E reacts (step S25). If the threshold value E reacts (YES in step S25), it is determined to be the threshold value E.

[0052] If the threshold value E does not react (NO in step S25), the absence threshold value N is transmitted, and the process returns to the start and steps S21 to S25 are performed again.

[0053] According to each threshold information classified by the distance calculation unit 130, the reflected signal is converted into distance data of 500 mm, 1000 mm, 1500 mm, 2000 mm, 5000 mm, and 6000 mm.

[0054] 12 to 14, a process of detecting the approach, stop, and departure of the detection target X and judging the presence or absence of the detection target X relative to the installation object V will be described.

[0055] The upper part of FIG. 12 is a graph showing the result of performing a presence / absence judgment process for the detection target X on the distance data stored in the array storage unit 140 after arranging a plurality of distance data converted by the distance calculation unit 130 in the order of reception of the reflected signals. The vertical axis of the graph in the upper part of FIG. 12 indicates the output distance (mm) of the Doppler sensor 100, and the threshold values ​​(A to E) are shown as the output distance values ​​on the vertical axis. The horizontal axis indicates the elapsed time (sec), and the distance data extracted at a predetermined interval by the reflected signal extraction unit 110 is displayed as a bar graph for each extraction time. In FIG. 12, the distance data is divided into three categories: approach, stationary, and departure, depending on the tendency of increase / decrease in the distance data value and the elapsed time. The graph in the lower part of FIG. 12 shows the state of the judgment of the detection target X being "presence" or "absence" obtained based on the tendency of increase / decrease in the distance data value in the upper part, with the vertical axis indicating the judgment state (0 is absent, 1 is present) and the horizontal axis indicating the elapsed time (sec).

[0056] Fig. 13 is a flowchart showing the approach / leave detection process by the analysis unit 150. As shown in Fig. 13, it is checked whether or not the thresholds A to D react (step S31). If the thresholds A to D react (YES in step S31), it is checked whether or not the threshold A reacts (step S32). If the threshold A reacts (YES in step S32), it is immediately determined that the object is present, and the process returns to the start, and it is checked again whether or not the thresholds A to D react (step S31).

[0057] If the thresholds B to D react (NO in step S32), it is checked whether the slope of the data values ​​indicating the increase / decrease tendency of the multiple distance data values ​​is equal to or greater than a certain level (step S21). The slope of the multiple distance data values ​​is determined by comparing the difference between two adjacent distance data values ​​and judging whether the slope of the data values ​​is equal to or greater than a certain level depending on the magnitude of the difference. In this case, an average value of the differences between three or more data values ​​may be calculated and judged whether it is equal to or greater than a certain level. Also, the increase / decrease in the slope is judged by the positive / negative value of the difference. If the slope of the data values ​​indicating the increase / decrease tendency of the multiple distance data values ​​judged as above is not equal to or greater than a certain level (NO in step S41), it is returned to the start and it is checked again whether the thresholds A to D react (step S31).

[0058] If the slope of the data values ​​showing the increase / decrease tendency of the multiple distance data values ​​is equal to or greater than a certain level (YES in step S41), it is checked whether the correlation between the multiple distance data values ​​is equal to or greater than a certain level (step S42). This correlation check is performed, for example, based on the following conditions: (1) Are the extraction times of the multiple distance data values ​​to be compared within a certain range? (2) The multiple distance data values ​​show a gradual decrease or increase trend, and there are no distance data values ​​among the multiple distance data values ​​that deviate from the gradual decrease or increase trend.

[0059] If the correlation between the multiple distance data values ​​is greater than or equal to a certain level (YES in step S42), it is checked whether the slope is negative (step S43). If the slope is negative (YES in step S42), it is determined that the vehicle is approaching. If the correlation between the multiple distance data values ​​is not greater than or equal to a certain level (NO in step S42), it is returned to the start, and it is checked again whether the thresholds A to D react (step S31). If the slope is not negative (NO in step S43), it is determined that the vehicle is separating.

[0060] Fig. 14 is a flowchart showing the approach / leave control process by the determination unit 160. As shown in Fig. 14, it is confirmed whether or not the detection target X is approaching based on the analysis result of the analysis unit 150 (step S51). If the detection target X is approaching (YES in step S51), it is determined that the detection target X is present (step S52). If the detection target X is not approaching (NO in step S51), it returns to the start and it is confirmed whether or not the detection target X is approaching (step S51).

[0061] After the presence determination, it is checked whether or not the detection target X has left based on the analysis result of the analysis unit 150 (step S53). If the detection target X has left (YES in step S53), it is determined that the detection target X is not present, and the process ends. If the detection target X has not left (NO in step S53), it is checked again whether or not the detection target X has left based on the analysis result of the analysis unit 150 (step S54).

[0062] The determination unit 160 continues to hold the presence determination as the approach or stationary motion of the detection target X from the time of the presence determination to the time of the absence determination.

[0063] [3-3. Effects of the third embodiment] (1) According to the sensor device of the present embodiment, by using distance data converted from a reflected signal from a Doppler sensor to analyze its increasing / decreasing tendency, it is possible to eliminate the influence of disturbances in the reflected signal and erroneous recognition caused by complex or irregular movements of the detection target X, and it is possible to detect the presence or absence of the detection target X with high detection accuracy, compared to conventional techniques that make judgments based on the state of the reflected signal at a specific point in time.

[0064] (2) According to the sensor device of this embodiment, the output value of the reflected signal obtained at a specified time interval is converted into distance data, and the approach, stationary, and moving away are determined based on multiple threshold values. Therefore, a sensor device with high detection accuracy can be provided with a relatively simple configuration that uses less data and processing.

[0065] (3) According to the sensor device of the present embodiment, even when a reflected signal cannot be accurately extracted due to a change in the speed of the detection target X or the like due to the nature of the Doppler sensor, the outlier removal unit determines that a reflected signal that meets preset conditions is an outlier signal and removes it from the reflected signal to be extracted. This makes it possible to detect the presence or absence of the detection target X with higher detection accuracy.

[0066] (4) According to the sensor device of this embodiment, the presence determination is continued as the detection target X approaches or moves to a standstill from the time of the presence determination to the time of the absence determination. Therefore, compared to a sensor that determines an absence when a certain amount of time has elapsed since the presence determination, when the detection target X is within a specified detection range, it is possible to more accurately detect the presence or absence of the detection target X without being bound by a specific time.

[0067] (5) According to the sensor device of this embodiment, when comparing multiple distance data values, the correlation between the multiple distance data values ​​is determined, and the approach, stop, and departure of the detection target X from the installation object V are analyzed based on this correlation and the slope of the data values ​​that indicate the increase and decrease trends of the multiple distance data values. Therefore, even when the reflected signal cannot be accurately extracted due to the speed change of the detection target X, which is unique to the Doppler sensor, it is possible to detect the presence or absence of the detection target X with higher detection accuracy by taking into account the extraction time and the gradual decrease and increase trends of the multiple distance data values.

[0068] (6) In this embodiment, by combining the detection information of the existing Doppler sensor 100 and the detection information of the illuminance sensor 200, it is possible to eliminate erroneous recognition caused by the installation environment of the installation object V and the complex or irregular movement of the detection target X, and it is possible to further improve the detection accuracy of the presence or absence of the detection target X in front of the sensor. Furthermore, in addition to the approaching and leaving movements of the detection target X, stable detection is possible even when the detection target X is stationary.

[0069] [4. Other embodiments] The present invention is not limited to the above-described embodiment as it is, and in the implementation stage, the components can be modified and embodied without departing from the gist of the invention. In addition, various inventions can be formed by appropriate combinations of multiple components disclosed in the above-described embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. The following is one example.

[0070] (1) By comparing the output values ​​(light intensity) of the matching data and past data and detecting the tendency for the output values ​​to increase or decrease, it is possible to detect whether the detection target X is approaching or moving away from the installed object V. By combining the approach or departure with the presence / absence determination in the first embodiment, it is possible to further improve accuracy.

[0071] (2) It is also possible to use a separate timer or other device to measure whether the presence determination continues for a certain period of time or more, and then switch from a presence determination to an absence determination.

[0072] (3) The number of frames to be stored as past data, the interval at which illuminance data is acquired, the length of one frame, etc. can be changed as appropriate.

[0073] (4) The sensor device of the present invention is not limited to being installed in a vending machine, but may be installed in lighting, toilets, cars, etc. Furthermore, the detection target is not limited to a person, but may include any object such as a living thing, a car, or a machine.

[0074] (5) The Doppler sensor to be combined with the sensor device of the present invention is not limited to the one shown in the third embodiment, and sensors with other configurations may also be used.

[0075] (6) The illuminance sensor 200 of the present invention is not limited to one that does not have a light-emitting unit, and may include an illuminance sensor 200 that includes a light-emitting unit. When the illuminance sensor 200 includes a light-emitting unit, it is preferable to detect the illuminance of the reflected light from the detection object X that is hit by the light emitted from the light-emitting unit, as in the second embodiment. Since the illuminance sensor itself includes a light-emitting unit, it is possible to always irradiate a constant amount of light onto the detection object X and detect the reflected light, regardless of the surrounding environment, weather, or time, and it is possible to determine the presence or absence with higher accuracy. [Explanation of symbols]

[0076] X: Detection target V…Installed object 200…Illuminance sensor 205...Data processing unit 210...Illuminance data storage unit 220…Matching data setting unit 230…Data update section 240...Arithmetic section 250...Existence status determination unit 260…Absence status determination unit 100…Doppler sensor 101...Transmitter 102...Receiving unit 105...Data processing unit 110...Reflected signal extraction section 111…Outlier removal unit 120...Reflected signal storage section 130...Distance calculation section 140...Array storage section 150…Analysis Department 160…Judgment section

Claims

1. An illuminance sensor provided in the installation; an illuminance data storage unit that sequentially stores the illuminance data output from the illuminance sensor at predetermined time intervals as one frame; a matching data setting unit that sets the illuminance data of the latest frame out of the illuminance data of the plurality of frames sequentially stored in the illuminance data storage unit as matching data; a data updating unit that updates the matching data set in the illuminance data storage unit to the illuminance data of a latest frame when the illuminance data of a new frame is input from the illuminance sensor to the illuminance data storage unit; a calculation unit that compares the matching data with illuminance data of a plurality of past frames that are stored in the illuminance data storage unit prior to the matching data, and calculates a sum of differences between the matching data and past illuminance data of a frame that minimizes an error between the matching data and the illuminance data of the frame; a presence / absence determination unit that compares the sum calculated by the calculation unit with a preset reference value, and determines whether an object is present or absent when the sum exceeds the reference value; an unoccupied state determination unit that detects that a value equivalent to an illuminance data value of a frame in a state before the occupancy state determination unit determines that a transition from the occupancy state to the unoccupied state has been completed; A sensor device comprising:

2. The sensor device of claim 1, wherein the illuminance sensor detects the illuminance caused by the shadow of a detection object cast on the illuminance sensor, and the presence state determination unit determines that the person is present when the sum of the differences calculated by the calculation unit is negative, and determines that the person is transitioning to an absent state when the sum of the differences is positive.

3. The sensor device of claim 1, wherein the illuminance sensor detects the illuminance of reflected light from a detection object hit by light emitted from a lighting device of the vending machine, and the presence state determination unit determines that the object is present when the sum of the differences calculated by the calculation unit is positive, and determines that the object is transitioning to an absent state when the sum of the differences is negative.

4. The sensor device of claim 1, wherein the illuminance sensor is equipped with an light-emitting unit and detects the illuminance of reflected light from a detection object hit by light emitted from the light-emitting unit, and the presence state determination unit determines that the object is present when the sum of the differences calculated by the calculation unit is positive, and determines that the object is transitioning to an absent state when the sum of the differences is negative.

5. A vending machine comprising the sensor device according to any one of claims 1 to 4.

6. 5. The vending machine of claim 4, further comprising a sensor device having a Doppler sensor.

7. A sensor device having the Doppler sensor, A Doppler sensor including a transmitter that transmits a radio signal to an outside of an installation object and a receiver that receives a reflected signal of the radio signal from a detection target; a reflected signal extracting unit that extracts the reflected signal received by the receiving unit at a predetermined interval; a reflected signal storage unit that stores a plurality of the reflected signals extracted at a predetermined interval by the reflected signal extraction unit; a distance calculation unit that calculates a distance between the installation object and the detection target at the time of extraction of each reflected signal based on the plurality of reflected signals stored in the reflected signal storage unit; an array storage unit that arrays and stores the plurality of distance data converted by the distance calculation unit in the order in which the reflected signals are received; an analysis unit that compares the plurality of distance data values ​​stored in the array storage unit, and analyzes the approach, stop, and departure of the detection target from the installation object based on a gradient of a data value that indicates an increase / decrease tendency of the plurality of distance data values; A determination unit that determines the presence or absence of a detection target for an installation object based on an analysis result of the analysis unit; 7. The vending machine according to claim 6, further comprising:

Citation Information

Patent Citations

  • Presence-detecting device and sanitary washing device using the same

    JP2001004760A

  • Object state determining apparatus

    JP2004317143A

  • Automatic dispenser

    JP2013080316A

  • Toilet device

    JP2013142221A

  • Data processing apparatus, operation recognition system, operation determination method, and program

    JP2013235012A