Medicine bottle in-situ detection and counting method
By combining a paddle structure with a photoelectric sensor, the problem of false detection of medicine bottles with small weight and diameter in the in-situ detection device is solved, realizing safe and accurate detection and counting of medicine bottles.
Patent Information
- Application Number
- CN202410966140.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2026-01-20
AI Technical Summary
Existing medicine bottle in-situ detection and counting devices are not very accurate in detecting medicine bottles that are small in weight and diameter, and are prone to false detections. Furthermore, contact between the sensor and the medicine bottle may cause damage to the medicine.
The device employs a lever structure, which uses the rotation of the lever and the signal changes of the photoelectric sensor to detect and count the presence of medicine bottles. This avoids direct contact between the sensor and the medicine bottle. The lever is rotated by contacting the protruding part of the lever with the medicine bottle, and the presence of the medicine bottle is determined by combining the high and low level signals of the photoelectric sensor.
It enables accurate detection of medicine bottles with small weight and small diameter, avoids damage to medicines by the sensor, improves the reliability and sensitivity of detection, and has a simple structure that is easy to implement.
Smart Images

Figure CN121365679A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of medicine storage and management, and particularly relates to a medicine bottle in-place detection and counting method. BACKGROUND
[0002] For controlled medicines such as methamphetamine, hospitals need to strictly control the flow of medicines. The current manual inventory needs to count medicine bottles one by one, which is low in efficiency and time-consuming and laborious.
[0003] At present, in the research of the medicine bottle in-place detection and counting device, in order to realize accurate detection and counting, a sensor is directly contacted with the medicine bottle, which can damage the drug properties of some medicines. In the prior art, a displacement trigger sensor is used for counting, however, the defect of this method is that the medicine bottle needs to be placed on an axis, and the weight of the medicine bottle is not considered, which can not cause the displacement device to produce displacement change, so that the in-place state of the medicine bottle is missed, and the detection accuracy is affected. In addition, when the diameter of the medicine bottle is small, the displacement change of the displacement device is small, which also affects the reliability of the detection.
[0004] Therefore, a medicine bottle in-place detection method is needed, which can realize safe detection and consider the detection sensitivity of medicine bottles with small weight and small diameter. SUMMARY
[0005] In view of the above analysis, the present application aims to provide a medicine bottle in-place detection and counting method to solve the problem of false detection of medicine bottles with small weight and small diameter in the prior art.
[0006] The purpose of the present application is mainly realized by the following technical solutions:
[0007] In one aspect of the present application, a medicine bottle in-place detection and counting method is provided, comprising the following steps:
[0008] Step S1: The medicine bottle in-place detection module detects the in-place / out-of-place information of the medicine bottle and sends out a high / low level signal.
[0009] Step S2: The signal processing and counting module collects and processes the signal sent out by the medicine bottle in-place detection module, and counts the in-place / out-of-place information of the medicine bottle into the in-place / out-of-place number.
[0010] Further, the step S1 specifically comprises:
[0011] Step S1.1: The bottom end of the dial piece is in the middle of the photoelectric sensor, and the signal emitted from the infrared emitter to the infrared receiver is unblocked / obstructed.
[0012] Step S1.2: When not blocked, the infrared emitter emits a high-level signal to the infrared receiver; when blocked, the infrared emitter emits a low-level signal to the infrared receiver.
[0013] Further, the step S1.1 specifically includes:
[0014] Step S1.1.1: When there is a medicine bottle in the medicine bottle placement slot, the paddle rotates, the center line of the paddle deviates from the vertical direction, and the bottom end of the paddle deviates from between the infrared emitter and the infrared receiver, and the signal emitted by the infrared emitter to the infrared receiver is not blocked.
[0015] Step S1.1.2: When there is no medicine bottle in the medicine bottle placement slot, the paddle does not move, the center line of the paddle is in the vertical direction, and the bottom end of the paddle is between the infrared emitter and the infrared receiver, and the signal emitted by the infrared emitter to the infrared receiver is blocked.
[0016] Further, the step S1.1.1 specifically includes:
[0017] Step S1.1.1.1: When the medicine bottle is placed in the medicine bottle placement slot, the medicine bottle contacts the protruding part of the paddle;
[0018] Step S1.1.1.2: The pushing force of the medicine bottle on the protruding part of the paddle causes the paddle to rotate, converting the medicine bottle in-place information in the medicine bottle storage module into paddle rotation information;
[0019] Step S1.1.1.3: The paddle rotates, the center line of the paddle deviates from the vertical direction, and the bottom end of the paddle produces horizontal displacement;
[0020] Step S1.1.1.4: The bottom end of the paddle deviates from between the infrared emitter and the infrared receiver of the photoelectric sensor, and there is no or reduced blocking between the infrared emitter 2121 and the infrared receiver 2122 of the photoelectric sensor 212.
[0021] Further, in the step S1.1.1.1, specifically:
[0022] When the medicine bottle is placed, it needs to contact the paddle to trigger the rotation of the paddle.
[0023] Further, in the step S1.1.1.2, specifically:
[0024] The weight of the medicine bottle must meet the following conditions to push the paddle to rotate:
[0025] g>μG / (cotθ-μ) (Formula 1)
[0026] Where: G is the weight of the paddle, unit N; g is the weight of the medicine bottle, unit N; θ is the inclination angle of the protruding part of the paddle, degree; μ is the friction coefficient of the paddle and the connecting rod of the paddle, unitless.
[0027] Further, in the step S1.1.1.2, specifically:
[0028] The rotation angle of the dial is:
[0029] β=sin (-1) (l2*sinθ) / l1 -sin (-1) (l-d) / l1 (Formula 3)
[0030] Wherein: β-the rotation angle of the dial, radian; α-the included angle between the line connecting the rotation center of the dial and the farthest point and the vertical direction, degree; l2-the length between the starting point and the farthest point of the protruding part of the dial, m; l-the distance between the rotation center of the dial and the side wall of the medicine bottle away from the dial, m; d-the diameter of the medicine bottle, m.
[0031] Further, in the step S1.1.1.2, specifically:
[0032] The vertical distance from the axis of the dial connecting rod to the bottom end of the dial is at least 2 times the vertical distance from the axis of the dial connecting rod to the farthest point of the protruding part of the dial.
[0033] Further, the step S1.1.2 specifically includes:
[0034] Step S1.1.2.1: When there is no medicine bottle in the medicine bottle placing groove, the dial does not rotate;
[0035] Step S1.1.2.2: The center line of the dial remains vertical, and the bottom end of the dial does not displace;
[0036] Step S1.1.2.3: The bottom end of the dial is suspended between the infrared emitter and the infrared receiver of the photoelectric sensor, and the bottom end of the dial blocks the infrared rays emitted by the infrared emitter to the infrared receiver.
[0037] Further, the medicine bottle in-place detection and counting method uses a medicine bottle in-place detection and counting device to detect and count the medicine bottles in place.
[0038] Compared with the prior art, the present application can at least achieve one of the following beneficial effects:
[0039] (1) The present application sets a dial structure, which transmits the in-place information of the medicine bottle to the external sensor through the dial. The dial has a protruding part, which is used to contact the medicine bottle by extending into the medicine bottle placing groove. The contact between the medicine bottle and the protruding part pushes the protruding part out of the medicine bottle placing groove, causing the dial to rotate, thereby converting the in-place information of the medicine bottle in the medicine bottle storage module into dial rotation information, and using the direction of the center line of the dial as a judgment parameter.
[0040] (2) The present application takes the structure of the dial piece as a medium, reduces the conversion into high and low level signals as the input signals of the information collection and counting module through the shielding of the dial piece rotation to the sensor, thereby counting the in-place information of the medicine bottle, avoiding the adverse effects of light, electromagnetic and the like of the sensor on the medicine, and achieving simple structure, easy implementation and safe detection.
[0041] (3) Compared with the prior art, the present application considers the case that the medicine bottle weight is too small to push the dial piece, studies the condition that the medicine bottle weight needs to meet when the dial piece can rotate, avoids the detection error of the in-place information of the medicine bottle, and modifies the inclination angle of the protruding part of the dial piece to make the device work normally and improve the reliability of the device.
[0042] (4) Compared with the prior art, the present application sets the vertical distance from the shaft center of the dial piece connecting rod to the bottom end of the dial piece as not less than 2 times the vertical distance from the shaft center of the dial piece connecting rod to the farthest point of the protruding part of the dial piece, thereby amplifying the horizontal displacement of the final contact point by more than 2 times, ensuring the detection precision and sensitivity of the detection device for small-diameter medicine bottles, and achieving simple structure and convenient implementation.
[0043] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the present application. The objects and other advantages of the present application can be achieved and obtained by the structure particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application.
[0045] Figure 1 Flow chart of the medicine bottle detection and counting method;
[0046] Figure 2 Structure schematic diagram of the medicine bottle detection and counting device;
[0047] Figure 3 Structure schematic diagram of the medicine bottle storage module and the mechanical detection module;
[0048] Figure 4 Structure schematic diagram of the photoelectric detection module;
[0049] Figure 5 Structure schematic diagram of the emitter and the receiver of the photoelectric sensor;
[0050] Figure 6Fig. 1 is a schematic diagram of the angle of the dial when the bottle is placed in the slot and the bottle diameter is different;
[0051] Figure 7 Fig. 4 is a schematic diagram of the relationship between the weight of the bottle and the parameters of the dial;
[0052] Figure 8 Fig. 5 is a schematic diagram of the relationship between the rotation angle of the dial and the pushing force of the bottle when the bottle is downward;
[0053] Figure 9 Fig. 6 is a schematic diagram of the relationship between the rotation angle of the dial and the diameter of the bottle when the bottle is at the bottom;
[0054] Figure 10 Fig. 7 is a schematic diagram of the shielding of the sensor when the length of the dial is less than 2 times the vertical distance;
[0055] Figure 10 Fig. 8 is a schematic diagram of the shielding of the sensor when the length of the dial is greater than 2 times the vertical distance.
[0056] Reference signs:
[0057] 1 - bottle storage module, 101 - top plate, 102 - stand, 103 - bottle placement slot, 2 - bottle in-place detection module, 20 - mechanical detection unit, 201 - dial, 202 - dial connecting rod, 203 - partition, 21 - photoelectric detection unit, 211 - PCB board, 212 - photoelectric sensor, 2121 - infrared emitter, 2122 - infrared receiver, 213 - Hall sensor, 214 - magnet, 3 - signal processing and counting module, 301 - signal processing and counting module interface, 4 - bottle. DETAILED DESCRIPTION
[0058] The preferred application of the present application will be specifically described below in conjunction with the drawings, wherein the drawings constitute a part of the present application and are used to explain the principles of the present application together with the present application.
[0059] Example 1
[0060] The present embodiment provides a bottle in-place detection and counting method, referring to Figure 1 , mainly comprising the following steps:
[0061] Step S1: the bottle in-place detection module 2 detects the bottle 4 in-place / out-of-place information and sends out high / low level signals;
[0062] Step S2: the signal processing and counting module 3 collects and processes the signals sent out by the bottle in-place detection module 2 and counts the in-place / out-of-place information of the bottle 4 into the in-place / out-of-place number.
[0063] The step S1 specifically comprises:
[0064] Step S1.1: the bottom end of the dial 201 is in the middle of the photoelectric sensor 212, the signal emitted from the infrared emitter 2121 to the infrared receiver 2122 is unobstructed / obstructed;
[0065] Step S1.2: when unobstructed, the infrared emitter 2121 emits a high-level signal to the infrared receiver 2122; when obstructed, the infrared emitter 2121 emits a low-level signal to the infrared receiver 2122.
[0066] It should be noted that the dial 201 has a vertical part and a protruding part, and the dial 201 is located on one side of the medicine bottle placing groove 103. The side of the medicine bottle placing groove 103 has an opening, and the protruding part of the dial 201 can extend into the side opening of the medicine bottle placing groove 103 to contact the medicine bottle 4.
[0067] The top end of the dial 201 is hinged to the dial connecting rod 202, and the upper part of the dial 201 can rotate around the dial connecting rod 202. The intersection of the axis of the dial connecting rod 202 and the dial 201 is the rotation center of the dial 201.
[0068] The line connecting the center of gravity of the dial 201 and the rotation center of the dial 201 is the center line of the dial 201. In the natural state, the center line of the dial 201 is vertical, which is the first state. When the dial 201 rotates, the center line of the dial 201 is inclined, which is the second state.
[0069] The photoelectric detection unit 21 is arranged below the medicine bottle storage module 1 and the mechanical detection unit 20. The photoelectric sensor 212 is installed on the PCB board 211 corresponding to the position of the dial 201. The photoelectric sensor 212 is U-shaped, and the inner side of one end is the infrared emitter 2121, and the inner side of the other end is the infrared receiver 2122. In the natural state, the bottom end of the dial 201 is suspended in the middle of the infrared receiver 2122 and the infrared emitter 2121.
[0070] It should be noted that in the natural state, the height of the bottom end of the dial 201 is not higher than the height of the lowermost end of the infrared emitter 2121 and the infrared receiver 2122 of the photoelectric sensor 212.
[0071] The step S1.1 is specifically:
[0072] Step S1.1.1: when there is a medicine bottle 4 in the medicine bottle placing groove 103, the dial 201 rotates, the center line of the dial 201 deviates from the vertical direction, the bottom end of the dial 201 deviates from between the infrared emitter 2121 and the infrared receiver 2122, and the signal emitted from the infrared emitter 2121 to the infrared receiver 2122 is unobstructed;
[0073] Step S1.1.2: When there is no medicine bottle 4 in the medicine bottle placing groove 103, the pusher 201 does not move, the center line of the pusher 201 is in the vertical direction, the bottom end of the pusher 201 is between the infrared emitter 2121 and the infrared receiver 2122, and the signal emitted by the infrared emitter 2121 to the infrared receiver 2122 is blocked.
[0074] The step S1.1.1 specifically includes:
[0075] Step S1.1.1.1: When the medicine bottle 4 is placed in the medicine bottle placing groove 103, the medicine bottle 4 contacts the convex part of the pusher 201;
[0076] It should be noted that when the medicine bottle 4 is placed, it needs to contact the pusher 201 to trigger the rotation of the pusher 201.
[0077] Step S1.1.1.2: The pushing force of the medicine bottle 4 on the convex part of the pusher 201 rotates the pusher 201, and converts the in-place information of the medicine bottle 4 in the medicine bottle storage module 1 into the rotation information of the pusher 201;
[0078] Since most of the medicine bottles 4 are light in weight, considering that the weight of the medicine bottle 4 is so small that it cannot push the pusher 201, at this time the bottom end of the pusher 201 still blocks the infrared emitter 2121 and the infrared receiver 2122, so that the signal processing and counting module 3 detects the false information that the medicine bottle 4 is not in place, and therefore the weight of the medicine bottle meets the condition, see Figure 7 .
[0079] The weight of the medicine bottle 4 needs to meet:
[0080] g>μG / (cotθ-μ) (Formula 1)
[0081] Wherein: G is the weight of the pusher 201, unit N; g is the weight of the medicine bottle 4, unit N; θ is the inclination angle of the convex part of the pusher 201, degree; μ is the friction coefficient of the pusher 201 and the pusher connecting rod 202, unitless.
[0082] If the weight of the medicine bottle 4 does not meet the condition, the medicine bottle 4 cannot push the pusher 201 to rotate, at this time even if the medicine bottle 4 is in place, the out-of-place information of the medicine bottle 4 will also be detected.
[0083] Step S1.1.1.3: The pusher 201 rotates, the center line of the pusher 201 deviates from the vertical direction, and the bottom end of the pusher 201 produces horizontal displacement;
[0084] It should be noted that, as shown in Figure 8 and Figure 9 , the rotation angle of the pusher 201 is:
[0085] β=sin (-1) (l2*sinθ) / l1 -sin(-1) (l-d) / l1 (Formula 2)
[0086] Wherein: β - the rotation angle of the dial 201, radian; a - the angle between the line connecting the rotation center of the dial 201 and the farthest point and the vertical direction, degree; l2 - the length between the starting point and the farthest point of the convex part of the dial 201, m; l - the distance between the rotation center of the dial 201 and the side wall of the medicine bottle 4 away from the dial 201, m; d - the diameter of the medicine bottle 4, m.
[0087] Let the distance from the axis of the dial connecting rod 202 to the bottom end of the dial 201 be a, and the horizontal displacement generated by the rotation of the dial 201 by β at the bottom end be b, then
[0088] b = asin β (Formula 3)
[0089] Considering the small-diameter medicine bottle 4 with a diameter less than 11.5 mm, the horizontal displacement generated by the dial 201 will be less than 0.1 mm, as shown in Figure 10 (a), the signal detection and counting module may detect error information that the medicine bottle 4 is not in place.
[0090] In order to ensure the detection accuracy and sensitivity of the device, since the farthest point of the convex part of the dial 201 is the final contact point with the medicine bottle 4, as shown in Figure 10 (b), the vertical distance from the axis of the dial connecting rod 202 to the bottom end of the dial 201 is set to be at least 2 times the vertical distance from the axis of the dial connecting rod 202 to the farthest point of the convex part of the dial 201, so that the horizontal displacement of the final contact point is at least 2 times, the length of the bottom end of the dial 201 is increased, and the horizontal displacement of the convex part of the dial 201 is enlarged at the bottom end of the dial 201.
[0091] Step S1.1.1.4: The bottom end of the dial 201 deviates from the middle of the infrared emitter 2121 and the infrared receiver 2122 of the photoelectric sensor 212, and there is no or reduced shielding between the infrared emitter 2121 and the infrared receiver 2122 of the photoelectric sensor 212.
[0092] The step S1.1.2 specifically includes:
[0093] Step S1.1.2.1: When there is no medicine bottle 4 in the medicine bottle placing groove 103, the dial 201 does not rotate;
[0094] Step S1.1.2.2: The center line of the dial 201 remains vertical, and the bottom end of the dial 201 has no displacement;
[0095] Step S1.1.2.3: The bottom end of the paddle 201 is suspended between the infrared emitter 2121 and the infrared receiver 2122 of the photoelectric sensor 212, and the bottom end of the paddle 201 blocks the infrared rays emitted by the infrared emitter 2121 to the infrared receiver 2122.
[0096] The step S2 specifically comprises:
[0097] The signal processing and counting module 3 interface is arranged on the PCB board 211. When the signal collector collects the low or high level signal of the photoelectric sensor 212 through the signal processing and counting module 3 interface, the signal processing and counting module 3 interface carries out conditioning and encoding processing to form data information that can be identified, and then carries out information reading to realize counting of the medicine bottles 4. When the signal collector collects the high level signal generated by the photoelectric sensor 212, this is the in-place information of the medicine bottles 4, and the in-place number is counted. When the signal collector collects the low level signal generated by the photoelectric sensor 212, this is the out-of-place information of the medicine bottles 4, and the out-of-place number is counted.
[0098] Embodiment 2
[0099] The embodiment provides a medicine bottle in-place detection and counting device for realizing the medicine bottle in-place detection and counting method of embodiment 1. Referring to Figures 2-5 , the medicine bottle in-place detection and counting device comprises a medicine bottle storage module 1, a medicine bottle in-place detection module 2 and a signal processing and counting module 3.
[0100] The medicine bottle storage module 1 is used for storing the medicine bottles 4 and comprises a top plate 101, a stand column 102 and medicine bottle placing grooves 103. The medicine bottle placing grooves 103 are deep circular grooves, and one side of the medicine bottle placing grooves 103 is provided with an opening for extending into the medicine bottle in-place detection module 2.
[0101] The medicine bottle in-place detection module 2 is used for detecting the in-place information of the medicine bottles 4 in the medicine bottle storage module 1 and comprises a mechanical detection unit 20 and a photoelectric detection unit 21.
[0102] The mechanical detection unit 20 comprises a paddle 201, a paddle connecting rod 202 and a partition plate 203. The paddle connecting rod 202 is a long rod arranged between the medicine bottle placing grooves 103 of adjacent rows. The paddle connecting rod 202 is sequentially provided with a plurality of paddles 201. The top end of the paddle 201 is hinged to a paddle 201 mounting plate, and the paddle 201 can rotate around the paddle connecting rod 202 as the shaft, and the intersection of the axis of the paddle connecting rod 202 and the paddle 201 is the rotation center of the paddle 201.
[0103] Further, the paddle 201 has a vertical part and a protruding part. The protruding part of the paddle 201 can extend into the opening of the medicine bottle placing groove 103 to contact the medicine bottle 4. The center line of the paddle 201 is the line connecting the center of gravity of the paddle 201 and the rotation center of the paddle 201.
[0104] When the gravity acts on the dial 201, the center line of the dial 201 is vertical, which is the first state. When the dial 201 rotates, the center line of the dial 201 is inclined, which is the second state.
[0105] The intersection of the vertical part of the dial 201 and the uppermost end of the convex part is the starting point of the convex part. The point on the convex part farthest from the center line of the dial 201 is the farthest point. The inclination angle between the line connecting the starting point and the farthest point and the center line of the dial 201 is the inclination angle of the convex part of the dial 201. As shown in FIG. 2, the rotation angle of the dial is different for different diameters of the dial. Figure 6
[0106] The photoelectric detection unit 21 is arranged below the vial storage module 1 and the mechanical detection unit 20. As shown in FIG. 3, the photoelectric detection unit 21 includes a PCB board 211 and a photoelectric sensor 212. The photoelectric sensor 212 is installed on the PCB board 211 corresponding to the position of the dial 201. Figure 3 Figure 4 As shown in FIG. 4, the photoelectric sensor 212 is U-shaped, the inner side of one end is an infrared emitter 2121, and the inner side of the other end is an infrared receiver 2122. The bottom end of the dial 201 is suspended in the middle of the infrared receiver 2122 and the infrared emitter 2121.
[0107] The signal processing and counting module 3 is used for collecting and processing signals and counting the in-place information of the vial 4.
[0108] The above description is only the preferred embodiment of the present application, but the protection scope of the present application is not limited to this. Any changes or replacements within the technical range disclosed by the present application can be easily thought by those skilled in the art, which should be covered in the protection scope of the present application.
Claims
1. A method for vial in place detection and counting, the method comprising: The method comprises the following steps: Step S1: The vial-in-place detection module (2) detects the vial-in-place information of the vial (4) and sends a high / low level signal; Step S2: The signal processing and counting module (3) collects and processes the signal sent by the vial-in-place detection module (2) and counts the in-place / out-of-place information of the vial (4) into the in-place / out-of-place number.
2. The vial presence detection and counting method of claim 1, wherein, The step S1 specifically comprises: Step S1.1: The bottom end of the dial piece (201) is in the middle of the infrared emitter (2121) and the infrared receiver (2122) of the photoelectric sensor (212), and the signal emitted from the infrared emitter (2121) to the infrared receiver (2122) is unblocked / obstructed; Step S1.2: When unblocked, the infrared emitter (2121) emits a high level signal to the infrared receiver (2122); when obstructed, the infrared emitter (2121) emits a low level signal to the infrared receiver (2122).
3. The vial presence detection and counting method of claim 2, wherein, The step S1.1 specifically comprises: Step S1.1.1: When the vial storage slot (103) contains the vial (4), the dial piece (201) rotates, the center line of the dial piece (201) deviates from the vertical direction, and the bottom end of the dial piece (201) deviates from the infrared emitter (2121) and the infrared receiver (2122), and the signal emitted from the infrared emitter (2121) to the infrared receiver (2122) is unblocked; Step S1.1.2: When the vial storage slot (103) is empty, the dial piece (201) does not move, the center line of the dial piece (201) is in the vertical direction, and the bottom end of the dial piece (201) is between the infrared emitter (2121) and the infrared receiver (2122), and the signal emitted from the infrared emitter (2121) to the infrared receiver (2122) is obstructed.
4. The vial presence detection and counting method of claim 3, wherein, The step S1.1.1 specifically comprises: Step S1.1.1.1: When the vial (4) is placed in the vial storage slot (103), the vial (4) contacts the protruding part of the dial piece (201); Step S1.1.1.2: The pushing force of the vial (4) on the protruding part of the dial piece (201) makes the dial piece (201) rotate, and the in-place information of the vial (4) in the vial storage module (1) is converted into the rotation information of the dial piece (201); Step S1.1.1.3: The dial piece (201) rotates, the center line of the dial piece (201) deviates from the vertical direction, and the bottom end of the dial piece (201) produces horizontal displacement; Step S1.1.1.4: The bottom end of the dial piece (201) deviates from the middle of the infrared emitter (2121) and the infrared receiver (2122) of the photoelectric sensor (212), and the infrared emitter (2121) and the infrared receiver (2122) of the photoelectric sensor (212) are unblocked or the obstruction is reduced.
5. The vial presence detection and counting method of claim 3, wherein, In the step S1.1.1.1, specifically: When the vial (4) is placed, it needs to contact the dial piece (201) to trigger the rotation of the dial piece (201).
6. The vial presence detection and counting method of claim 3, wherein, In the step S1.1.1.2, specifically: The weight of the vial (4) needs to meet the following conditions to push the dial piece (201) to rotate: g>μG / (cotθ-μ) (Formula 1) Wherein: G - the weight of the dial (201), units of N; g - the weight of the vial (4), units of N; θ - the angle of inclination of the protruding part of the dial (201), degrees; μ - the friction coefficient of the dial (201) and the dial connecting rod (202), unitless.
7. The vial presence detection and counting method of claim 3, wherein, In the step S1.1.1.2, the rotation angle of the dial (201) is specifically: β = sin (-1) (l2*sinθ) / l1 -sin (-1) (l-d) / l1 (Formula 2) Wherein: β - the rotation angle of the dial (201), radian; α - the angle between the line connecting the rotation center of the dial (201) and the farthest point and the vertical direction, degrees; l2 - the length between the starting point and the farthest point of the protruding part of the dial (201), m; l - the distance between the rotation center of the dial (201) and the side wall of the vial (4) away from the dial (201), m; d - the diameter of the vial (4), m.
8. The vial presence detection and counting method of claim 3, wherein, In the step S1.1.1.2, it is specifically: The vertical distance from the axis of the dial connecting rod (202) to the bottom end of the dial (201) is at least 2 times the vertical distance from the axis of the dial connecting rod (202) to the farthest point of the protruding part of the dial (201).
9. The vial presence detection and counting method of claim 2, wherein, The step S1.1.2 specifically includes: Step S1.1.2.1: When there is no vial in the vial placing groove (103), the dial (201) does not rotate; Step S1.1.2.2: The center line of the dial (201) remains vertical, and the bottom end of the dial (201) does not displace; Step S1.1.2.3: The bottom end of the dial (201) remains suspended between the infrared emitter (2121) and the infrared receiver (2122) of the photoelectric sensor (212), and the bottom end of the dial (201) blocks the infrared rays emitted by the infrared emitter (2121) to the infrared receiver (2122).
10. The vial presence detection and counting method of any one of claims 1-9, wherein, The vial in-place detection and counting device is used for vial in-place detection and counting.