Handheld detection method
By integrating a three-axis accelerometer into the handheld welding table handle, the handheld status is judged by variance calculation, and the existing handheld welding table handle is solved, and automatic wake-up or sleep is achieved, extending the handle life and saving power.
Patent Information
- Application Number
- CN202510147363.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-05-13
AI Technical Summary
The existing handheld welding station handle needs to be connected to the host through a signal line in a dormant state, which is inconvenient to use, and there are problems of error detection and insufficient sensitivity for capacitive sensing and pressure sensing methods.
A three-axis accelerometer is used to detect the acceleration value of the handle, and the handheld state is judged by calculating the variance, so as to realize automatic wake-up or sleep of the handle, and avoid the heating core being dry and burned for a long time.
It can easily control the heating state of the handle without a dedicated sleeping seat, extend the handle life, save electricity, and reduce its impact on the handle dormancy when there is vibration interference.
Smart Images

Figure CN119986836A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of handheld detection, in particular to a handheld detection method. Background Art
[0002] A soldering station is a hand tool commonly used in electronic soldering processes. It heats the solder to melt it, thereby welding two workpieces together. A soldering station usually includes a main unit and a handle, and the handle is usually provided with a placement seat. During the use of the soldering station, in order to prevent the heating core in the handle from drying out for a long time, a special sleep seat is sometimes used. After placing the handle on the sleep seat, the handle is put into a sleep state and heating is stopped. However, the existing special sleep seat needs to connect a signal line to the main unit, so that the sleep seat and the main unit are wired together, which is relatively inconvenient to use. Therefore, a capacitive sensing or pressure sensing module is sometimes provided on the handle.
[0003] The capacitive sensing method is to set a capacitive sensing area on the surface of the handle. When the hand approaches the sensing area, the sensing capacitance will change, thereby determining whether it is held. However, when using capacitive sensing, the handle shell must be made of non-conductive material, otherwise the capacitive sensing will fail. At the same time, the sensing area has a size, and the hand must be close to the designated area. In a humid environment, condensation of water droplets in the sensing area will cause false detection. The pressure sensing method is to set a pressure sensor on the surface of the handle. When the device is held, the pressure sensor will be under pressure and generate a signal, thereby determining whether it is held. However, the pressure sensing method is relatively insensitive, and a certain grip force is required when holding the device to be detected. At the same time, the handle cannot be inverted, otherwise it may be detected after being affected by gravity. Summary of the invention
[0004] The object of the present invention is to provide a handheld detection method to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A hand-held detection method includes the following detection steps: handle measurement—value recording—calculation of minimum variance—hand-held judgment. The specific steps are as follows:
[0007] Step (1) Handle measurement: using a three-axis accelerometer integrated in the handle to measure the acceleration value of the handle, and measuring the acceleration value of the handle when the handle is held and when the handle is stationary;
[0008] Step (2) numerical recording: reading the acceleration value, and adding the acceleration values of the three axes measured each time, and recording them in the cache, recording multiple consecutive data as a group, recording multiple groups of handle acceleration data when holding, and recording multiple groups of handle acceleration data when stationary;
[0009] Step (3) calculating the minimum variance: after recording a set of data, using the variance formula to calculate the variance of each set of measurement data, obtaining multiple variances when holding and multiple variances when stationary, recording the minimum variance value when holding as S1, and recording the minimum variance when stationary as S2;
[0010] Step (4) Hand-held judgment: During the working process, the three-axis accelerometer is used to continuously measure the three-axis acceleration value of the handle, and the acceleration values of the three axes measured each time are added up and recorded in the cache. Multiple consecutive data are recorded as a group, and the variance of this group of data is calculated. The variance value is recorded as S. If S is greater than S1, the handle is being held and the heating of the handle is started. If S is less than or equal to S2 for two consecutive times, the handle is not being held and the heating of the handle is stopped.
[0011] Furthermore, during the process of measuring the acceleration of the handle in step (1) and step 2 (4), the three-axis acceleration of the handle is detected every 5 milliseconds.
[0012] Furthermore, in step (1) and step (4), after the accelerations of the three axes are added and entered into the cache, 40 consecutive recorded data are recorded as a group, so that in step (4), the variance value is determined every 200 milliseconds.
[0013] Preferably, in step (4), when determining the size of the S value, the value obtained by subtracting S1 from S is recorded as z. If multiple z values are less than a certain threshold value within a certain period of time, the handle is put into sleep mode.
[0014] Furthermore, after the handle is put into sleep mode, the acceleration change of the handle is stopped being detected, and the angle change of the handle is continuously detected using a three-axis accelerometer. After the change in the handle angle is detected, the handle is awakened, the handle heating is turned on, and the handle acceleration detection is turned on again to continuously determine whether it is being held.
[0015] Furthermore, if the handle is put to sleep by determining the z value, the wake-up method of detecting the handle angle change continues to be used. After the handle is put to sleep for three consecutive times by detecting the handle acceleration, the wake-up method of detecting the handle angle is stopped.
[0016] Preferably, within a certain period of time, if there is a z value greater than or equal to a certain threshold value among multiple z values, it indicates that the handle is being held and enters the next detection cycle.
[0017] Preferably, when a three-axis accelerometer integrated in the handle detects that the handle is tilted to a certain angle, such that the handle is laid flat or inverted, the handle is put into hibernation and heating is stopped.
[0018] Furthermore, after the handle is picked up twice in a row in an inverted position, the acceleration detection of the handle is turned off, so that the handle is always in a working state, and the handle is picked up twice in a row in an inverted position again, the acceleration detection of the handle is turned on, and when it is detected that the handle is not being held, the handle is immediately put into sleep mode.
[0019] Furthermore, an indicator light is arranged on the handle. If the indicator light is always on, it indicates that the handle is in a heating state. If the indicator light is always off, the handle is in a dormant state.
[0020] Compared with the prior art, the present invention has the following beneficial effects:
[0021] 1. By integrating a three-axis accelerometer inside the handle, the three-axis acceleration of the handle can be detected by the three-axis accelerometer. When holding the handle, the hand will shake slightly, causing the value output by the three-axis accelerometer on the handle to fluctuate more than when stationary. The handle can be detected based on the magnitude of the fluctuation of the acceleration value and whether it is continuous, and the handle can be awakened or put to sleep, thereby avoiding long-term dry burning of the heating core on the handle, which is beneficial to extending the life of the handle and saving electricity. In this way, there is no need to configure a special sleep seat, and only an ordinary placement seat can be configured. There is no material requirement for the handle, and there is no sensing area on the handle. It can be detected by holding any part of the hand. At the same time, the detection module is integrated into the handle, and the detection is not affected by environmental interference such as temperature and humidity.
[0022] 2. By detecting the angle change of the handle through a three-axis accelerometer, when the handle is placed in the placement seat and is disturbed by the vibration of the desktop, and the handle fails to sleep, it can be detected whether there is a large acceleration fluctuation in the handle. If there is no large acceleration fluctuation in the handle for a certain period of time, the handle will be put into sleep. After the handle is put into sleep, the handle can be awakened by detecting whether there is a large change in the angle of the handle. This is helpful to reduce the impact of desktop vibration on the handle's sleep. The handle can be quickly and sensitively awakened or put into sleep through variance detection, and the handle can be slowly awakened or put into sleep through tilt angle detection, which is helpful to reduce the impact of vibration on the handle when there is vibration interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flow chart of a handheld detection method of the present invention;
[0024] Figure 2 It is a schematic diagram of the soldering station system;
[0025] Figure 3 It is a schematic diagram of the vibration interference detection process in the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] See also Figure 1-2 In an embodiment of the present invention, a hand-held detection method includes the following detection steps: handle measurement—value recording—calculation of minimum variance—hand-held judgment. The specific steps are as follows:
[0028] Step (1) Handle measurement: using a three-axis accelerometer integrated in the handle to measure the acceleration value of the handle, and measuring the acceleration value of the handle when the handle is held and when the handle is stationary;
[0029] Step (2) numerical recording: reading the acceleration value, and adding the acceleration values of the three axes measured each time, and recording them in the cache, recording multiple consecutive data as a group, recording multiple groups of handle acceleration data when holding, and recording multiple groups of handle acceleration data when stationary;
[0030] Step (3) calculating the minimum variance: after recording a set of data, using the variance formula to calculate the variance of each set of measurement data, obtaining multiple variances when holding and multiple variances when stationary, recording the minimum variance value when holding as S1, and recording the minimum variance when stationary as S2;
[0031] Step (4) Hand-held judgment: During the working process, the three-axis accelerometer is used to continuously measure the three-axis acceleration value of the handle, and the acceleration values of the three axes measured each time are added up and recorded in the cache. Multiple consecutive data are recorded as a group, and the variance of this group of data is calculated. The variance value is recorded as S. If S is greater than S1, the handle is being held and the heating of the handle is started. If S is less than or equal to S2 for two consecutive times, the handle is not being held and the heating of the handle is stopped.
[0032] The soldering station includes a main unit and a handle. A handheld detection module is integrated inside the handle. The handheld detection module includes a single-chip microcomputer chip and a three-axis accelerometer. The three-axis accelerometer can detect the acceleration of the handle in three directions, namely, the X, Y and Z axes. At the same time, the three-axis accelerometer can measure the pitch angle and roll angle of the handle, thereby providing the inclination angle information of the object.
[0033] Specifically, the three-axis accelerometer measures the linear acceleration of an object. When the object is stationary, the acceleration value output by the three-axis accelerometer is small and relatively stable. Even if there is fluctuation or noise, it is not continuous. The hand will have a slight shake, and the pulse can also cause a slight shake of the hand. In this way, when holding the handle, the value output by the three-axis accelerometer will have a greater fluctuation than when it is stationary, and in a short time, such as within 20ms, the above fluctuation is continuous. The variance can reflect the deviation of a group of data from the average value, and is a feature that reflects the overall fluctuation size of a group of data. The larger the variance, the greater the fluctuation of the data, and the smaller the variance, the smaller the fluctuation of the data.
[0034] Before using the soldering station, first test the minimum variance of the acceleration value of the handle when holding it. When holding the handle, 40 caches are established through the single-chip microcomputer chip. The single-chip microcomputer chip reads the acceleration value at a certain interval and adds the acceleration values of the three axes into a cache. After the cache is full, calculate a set of data variances;
[0035] Suppose a set of data x1, x2, x3...x n The mean of the data is x, then the formula for calculating the variance of this group of data is
[0036]
[0037] According to the above formula, first add the values in the 40 caches, then divide by 40 to get the average value x, subtract x from the 40 cache values one by one and square them, add them up and divide by 40 to get the variance value, and use the three-axis accelerometer to continuously measure the handle to get multiple variance values. The minimum variance value is recorded as S1, and after the handle is placed stationary on the placement seat, the minimum variance value S2 at rest is obtained in the above manner.
[0038] During the welding process, the acceleration of the handle can be detected by a three-axis accelerometer, and the acceleration of the three axes detected at one time is added and recorded in the cache of the single-chip microcomputer chip. After recording a group of 40 cache data, the variance value of this group of data is calculated using the above-mentioned variance calculation method, which is recorded as S. S1 and S2 are compared with S. If S is greater than S1, it indicates that this group of acceleration values fluctuates greatly, the handle has a large jitter, and the handle is being held. The single-chip microcomputer chip outputs the holding information, and the host intermittently queries the hand-held detection module on the handle. After the host receives the hand-held signal sent by the single-chip microcomputer chip, the host starts the heating core on the handle, thereby waking up the handle and putting the handle in a heating working state. If S is less than or equal to S2 for two consecutive times, the single-chip microcomputer chip outputs the non-hand-held information. After the host receives the non-hand-held signal sent by the single-chip microcomputer chip, the host stops the heating core on the handle, puts the handle into sleep, and puts the handle into a standby state;
[0039] The movement state of the handle is measured by a three-axis accelerometer, and the handle jitter is detected according to the size of the fluctuation of the handle acceleration value and whether it is continuous, and then it is detected whether the handle is held, so as to wake up or put the handle into sleep mode, thereby avoiding the heating core on the handle from burning dry for a long time, which is beneficial to extending the life of the handle and saving electricity. There is no need to configure a special sleep seat, and only an ordinary placement seat can be configured. There is no material requirement for the handle, and there is no sensing area on the handle. It can be detected by holding any part of the hand. At the same time, the detection module is integrated into the handle, and the detection is not affected by environmental interference such as temperature and humidity.
[0040] Embodiment 1
[0041] like Figure 1 As shown, in this embodiment, during the acceleration measurement of the handle in step (1) and step 2 (4), the three-axis acceleration of the handle is detected every 5 milliseconds. In step (1) and step 2 (4), the accelerations of the three axes are added and entered into the cache, and 40 consecutive recorded data are recorded as a group. In this way, in step (4), the variance value is determined every 200 milliseconds.
[0042] In specific implementation, before the three-axis accelerometer is measured, 40 caches are first established through the single-chip microcomputer chip to store data. The acceleration values are read at intervals of 5 milliseconds, added and stored in a cache. After the 40 caches are full, the variance of a group of 40 acceleration data is calculated, so that the variance is calculated every 200 milliseconds.
[0043] like Figure 1 As shown, in this embodiment, the three-axis accelerometer integrated in the handle detects that the handle is tilted to a certain angle, so that the handle is flat or inverted, and the handle is put into sleep mode and heating is stopped;
[0044] After the handle is picked up upside down twice in succession, the acceleration detection of the handle is turned off to keep the handle in working state at all times. The handle is picked up upside down twice in succession again, and the acceleration detection of the handle is turned on. When it is detected that the handle is not being held, the handle is immediately put into sleep mode. An indicator light is set on the handle. If the indicator light is on for a long time, it indicates that the handle is in heating state. If the indicator light is off for a long time, the handle is in sleep state. The indicator light can be set on the host to understand the working state of the handle according to the indicator light.
[0045] In specific implementation, while the three-axis accelerometer measures the acceleration value of the handle, the three-axis accelerometer is used to measure the tilt angle of the handle. When it is detected that the handle is placed flat, or the heating head is facing upward, that is, the handle is taken diagonally upward, the host can stop the heating core on the handle from working. When the heating head is facing downward and the handle is taken diagonally downward normally, the host can make the heating core on the handle work and wake up the handle. In this way, the handle can be put into sleep or wake up by controlling the posture of the handle, which is more flexible to use. The handle can be temporarily put into sleep during continuous work.
[0046] The handle is inverted twice in a row, that is, the heating core of the handle is almost vertically upward for two consecutive times, and then the acceleration detection of the handle is turned off, and the heating state of the heating core of the handle is always turned on. The soldering iron tip on the handle is always kept at a suitable working temperature as needed to avoid spending time waiting for the soldering iron tip to preheat during continuous work. The handle is inverted twice in a row again, and the handle acceleration detection is restarted, that is, the hand-held detection is restarted. When it is detected that the handle is not held, the handle is immediately turned on to sleep. It can also be selected that the handle is in a heating working state after the handle is inverted twice in a row, and after the variance judgment is used to detect that the handle has been not held for a certain period of time, such as one minute, the handle is turned on to sleep. This can avoid forgetting to turn on the hand-held detection again, which causes the heating core to dry burn for a long time.
[0047] Embodiment 2
[0048] Based on the first embodiment, Figure 1-3 As shown, in this embodiment, in step (4), when judging the size of the S value, the value of S minus S1 is recorded as z. If multiple z values are less than a certain threshold within a certain period of time, the handle is put into sleep mode. If, among multiple z values, there is a z value greater than or equal to a certain threshold within a certain period of time, it indicates that the handle is being held and enters the next detection cycle. The threshold is set to a, where a can be a multiple of the difference between S1 and S2. It can be set specifically according to the user's usage habits, such as setting a to 10 times the difference between S1 and S2.
[0049] In specific implementation, when the handle is detected to be in a hand-held state by judging the variance value, the variance value S is calculated once every 200 milliseconds, and S is subtracted from S1 to obtain the z value. The z value is compared with the set a value. Within a certain continuous time t, among the multiple z values obtained, if multiple z values are all less than the set value a, it indicates that the handle is not actually held in hand, and the handle is placed in the placement seat, but is continuously disturbed by the vibration of the desktop. At this time, the handle is put into sleep mode through the host. If there is a z value greater than the set value a among the multiple z values, it indicates that the handle is held in hand, and the z value calculation and accumulation of the next timing cycle t are performed. t can be set according to the user's usage habits. For example, t can be set to thirty seconds, which is conducive to reducing the impact of vibration interference on the handle when the handle is placed on the placement seat and the placement seat is on the desktop, and avoiding the handle from being in a dry-burning state after being awakened for a long time.
[0050] The angle of the handle placed on the base can be recorded as A. When the handle is detected to be in a handheld state by judging the variance value, the handle angle is recorded by the three-axis accelerometer, and the measured handle angle is recorded as B. If the difference between B and A is always within a certain range for a certain period of time T, it indicates that the handle has actually been placed on the base and is not held. The handle is continuously disturbed by the vibration of the desktop. At this time, the handle is put into sleep mode through the host. If the difference between B and A exceeds a certain range for a certain period of time T, it indicates that the handle is still held, and then the angle measurement calculation can be continued;
[0051] You can choose to force the handle to sleep by judging the z value or the handle angle. The handle can be put into sleep quickly and sensitively through variance detection, so that the handle can be put into sleep in time during normal use. The handle can be delayed in sleep by judging the z value or the handle tilt angle detection, so that when there is vibration interference, the handle can be prevented from being in a dry-burning state for a long time.
[0052] like Figure 3 As shown, in this embodiment, after the handle is put into sleep mode, the acceleration change of the handle is stopped to be detected, and the angle change of the handle is continuously detected by using a three-axis accelerometer. After the change of the handle angle is detected, the handle is awakened, the handle heating is turned on, and the acceleration detection of the handle is turned on again to continuously determine whether it is held;
[0053] If the handle is put to sleep by judging the z value, and the wake-up method of detecting the change in the handle angle is continued, after the handle is put to sleep for three consecutive times by detecting the handle acceleration, the wake-up method of detecting the handle angle is stopped. If the handle is put to sleep for multiple consecutive times by judging the variance, it indicates that the desktop vibration interference has roughly disappeared. At this time, the handle can continue to be woken up more sensitively by judging the variance, which is conducive to waking up the handle in time.
[0054] In a specific implementation, when it is detected that the handle is being held by judging the variance, if it is known by judging the z value or the handle angle that the handle is not actually being held, the handle may be disturbed by vibration and not in sleep mode, and then the handle is put into sleep mode by judging the z value or the handle angle, the method of judging the variance to detect holding can be suspended during the process of the handle being in sleep mode, and at this time, only the three-axis accelerometer is used to detect the angle of the handle;
[0055] The handle can be picked up and waved randomly to make the handle angle change significantly, then the handle is awakened and the hand-held detection method of judging the variance is restarted. After the variance detection judges that there is no hand-holding, the handle is put into sleep mode. If the handle is put into sleep mode by judging the z value or the handle angle, the handle can be awakened only by continuing to detect the handle angle. After the handle is put into sleep mode for judging the z value or the handle angle for many consecutive times, the time for judging the z value and the difference between the handle angles B and A is reduced, that is, the values of t and T are reduced. For example, the original 30-second detection interval is reduced to 10 seconds, and the z value and the difference between the handle angles B and A are judged every 10 seconds to judge whether the handle is in a state of not being held but disturbed by vibration.
[0056] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0057] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A handheld detection method, characterized in that: The detection steps include handle measurement - value recording - minimum variance calculation - hand-held judgment. The specific steps are as follows: Step (1) Handle measurement: using a three-axis accelerometer integrated in the handle to measure the acceleration value of the handle, respectively measuring the acceleration value of the handle when the handle is held and when the handle is stationary; Step (2) numerical recording: reading the acceleration value, and adding the acceleration values of the three axes measured each time, and recording them in the cache, recording multiple consecutive data as a group, recording multiple groups of handle acceleration data when holding, and recording multiple groups of handle acceleration data when stationary; Step (3) calculating the minimum variance: after recording a set of data, using the variance formula to calculate the variance of each set of measurement data, obtaining multiple variances when holding and multiple variances when stationary, recording the minimum variance value when holding as S1, and recording the minimum variance when stationary as S2; Step (4) Hand-held judgment: During the working process, the three-axis accelerometer is used to continuously measure the three-axis acceleration value of the handle, and the acceleration values of the three axes measured each time are added up and recorded in the cache. Multiple consecutive data are recorded as a group, and the variance of this group of data is calculated. The variance value is recorded as S. If S is greater than S1, the handle is being held and the heating of the handle is started. If S is less than or equal to S2 for two consecutive times, the handle is not being held and the heating of the handle is stopped.
2. The handheld detection method according to claim 1, characterized in that: During the process of measuring the acceleration of the handle in step (1) and step 2 (4), the three-axis acceleration of the handle is detected every 5 milliseconds.
3. The handheld detection method according to claim 1, characterized in that: In step (1) and step (4), after the accelerations of the three axes are added and stored in the cache, 40 consecutive recorded data are recorded as a group. In this way, in step (4), the variance value is determined every 200 milliseconds.
4. The handheld detection method according to claim 1, characterized in that: In step (4), when judging the size of the S value, the value of S minus S1 is recorded as z. If multiple z values are less than a certain threshold within a certain period of time, the handle is put into sleep mode.
5. The handheld detection method according to claim 4, characterized in that: After the handle is put into sleep mode, the acceleration change detection of the handle is stopped, and the angle change of the handle is continuously detected using the three-axis accelerometer. After the angle change of the handle is detected, the handle is awakened, the handle heating is turned on, and the acceleration detection of the handle is turned on again to continuously determine whether it is being held.
6. The handheld detection method according to claim 5, characterized in that: If the handle is put to sleep by judging the z value, the wake-up method of detecting the change in the handle angle is continued. After the handle is put to sleep for three consecutive times by detecting the handle acceleration, the wake-up method of detecting the handle angle is stopped.
7. The handheld detection method according to claim 4, characterized in that: If, among multiple z values, there is a z value greater than or equal to a certain threshold within a certain period of time, it indicates that the handle is being held and enters the next detection cycle.
8. The handheld detection method according to claim 1, characterized in that: The three-axis accelerometer integrated in the handle detects that when the handle is tilted to a certain angle, such as when the handle is laid flat or inverted, the handle is put into sleep mode and heating is stopped.
9. The handheld detection method according to claim 8, characterized in that: After the handle is picked up upside down twice in succession, the handle acceleration detection is turned off so that the handle is always in working state. The handle is picked up upside down twice in succession again, and the handle acceleration detection is turned on. When it is detected that the handle is not being held, the handle is immediately put into sleep mode.
10. The handheld detection method according to claim 9, characterized in that: An indicator light is set on the handle. If the indicator light is always on, it means that the handle is in a heating state. If the indicator light is always off, the handle is in a dormant state.