Seat armrest height acquisition method and system based on slide rheostat
By applying a sliding rheostat on the armrest of the chair, using the voltage divider of the resistor and slider, the precise measurement and adjustment of the armrest height is achieved, and the problem of inaccurate height adjustment in the prior art is solved.
Patent Information
- Application Number
- CN202411987281.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-25
AI Technical Summary
The height adjustment of existing chair armrests cannot achieve accurate measurement and the same height on both sides.
Using a sliding rheostat-based method, the handrail height is accurately measured through the voltage division change of the resistance and the slider, and the handrail height is accurately adjusted through the forward and reverse application of voltage and the calculation of the slider position.
Accurate measurement and adjustment of handrail height is achieved, meeting the needs of users with higher accuracy and avoiding the impact of temperature changes on measurement results.
Smart Images

Figure CN119879713A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of height measurement, and in particular to a method and system for obtaining the height of a seat armrest based on a sliding rheostat. Background Art
[0002] Currently, chair products on the market have two ways to adjust the armrest height: manual adjustment and electric adjustment. However, no matter which method is used, since the height of the armrest cannot be accurately measured, users can only adjust it according to their own habits or feelings, but cannot adjust the armrest to a precise height, nor can they meet the demand for the armrests on both sides of the chair to be the same height. Summary of the invention
[0003] The purpose of the present invention is to solve the problems existing in the above-mentioned prior art and to provide a seat armrest height acquisition method and system based on a sliding rheostat, which can accurately measure the armrest height and meet the user's higher-precision adjustment needs.
[0004] The objective of the present invention is achieved through the following technical solutions: A method for obtaining the height of a seat armrest based on a sliding rheostat, wherein the sliding rheostat is applied to the seat armrest, the sliding rheostat comprises a resistor and a slider, the seat armrest comprises a support portion and a lifting portion, the resistor and the slider are respectively arranged on the support portion and the lifting portion, and the method comprises: A positive voltage and a zero voltage are applied to the upper and lower ends of the resistor respectively to obtain a first voltage value L1v of the slider position; Switch the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to obtain the second voltage value L2v of the slider position; Based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor, obtaining the position P of the slider in the length direction of the resistor; Based on the position P of the slider in the length direction of the resistor, the height position parameter of the lifting part is obtained.
[0005] As a preference, it includes: The height position parameter of the lifting unit is obtained in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than a set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained.
[0006] Preferably, the algorithm for obtaining the position P of the slider in the length direction of the resistor is: P=(L*L1v) / (L1v+L2v).
[0007] Preferably, both upper and lower ends of the resistor are beyond the moving range of the lifting part.
[0008] Preferably, the method for obtaining the height position parameter of the lifting part comprises: Based on the position P of the slider in the length direction of the resistor and the distance S between the lift part and the lower end of the resistor when the lift part is at the lowest position, the height position parameter H of the lift part is obtained, H=PS.
[0009] The embodiment of the present specification also provides a seat armrest height acquisition system based on a sliding rheostat, wherein the sliding rheostat is applied to the seat armrest, the sliding rheostat includes a resistor and a slider, the seat armrest includes a support portion and a lifting portion, the resistor and the slider are respectively arranged on the support portion and the lifting portion, and the system includes: A first voltage value acquisition module, used to apply a positive voltage and a zero voltage to the upper and lower ends of the resistor respectively, to acquire a first voltage value L1v at the position of the slider; A second voltage value acquisition module, used for switching the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to acquire the second voltage value L2v of the slider position; A slider position acquisition module, used to acquire a position P of the slider in a length direction of the resistor based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor; The lifting part height parameter acquisition module is used to acquire the height position parameter of the lifting part based on the position P of the slider in the length direction of the resistor.
[0010] As a preference, it includes: The height parameter updating module is used to obtain the height position parameter of the lifting unit in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than the set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained.
[0011] Preferably, the algorithm used by the slider position acquisition module to acquire the position P of the slider in the direction of the resistor length is: P=(L*L1v) / (L1v+L2v).
[0012] Preferably, both upper and lower ends of the resistor are beyond the moving range of the lifting part.
[0013] Preferably, the lifting part height parameter acquisition module is specifically used for: Based on the position P of the slider in the length direction of the resistor and the distance S between the lift part and the lower end of the resistor when the lift part is at the lowest position, the height position parameter H of the lift part is obtained, H=PS.
[0014] The advantages of the present invention are: 1. The adaptability of the sliding rheostat adjustment action and the handrail height adjustment action is utilized. Based on the change in the partial voltage between the slider and the resistor end caused by the movement of the slider of the sliding rheostat, the handrail height can be measured. There is no need to make major improvements or restrictions on the original structure of the handrail, and it is easy to implement. 2. By applying voltage to the resistor in both positive and negative directions, the slider position is measured based on the voltage division ratio, that is, the height of the handrail is measured, which can effectively avoid the influence of temperature changes on the resistance value; 3. By setting the update threshold, we can avoid frequent data jumps during real-time sampling and ensure user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for obtaining the height of a seat armrest based on a sliding rheostat provided in an embodiment of this specification; Figure 2 A block diagram of a seat armrest height acquisition system based on a sliding rheostat provided in an embodiment of this specification. DETAILED DESCRIPTION
[0016] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0017] like Figure 1 As shown, this embodiment provides a method for obtaining the height of a seat armrest based on a sliding rheostat. The sliding rheostat is applied to the seat armrest. The sliding rheostat includes a resistor and a slider. The seat armrest includes a support portion and a lifting portion. The resistor and the slider are respectively arranged on the support portion and the lifting portion. That is, when the lifting portion moves along the support portion, the lifting portion drives the slider to slide along the resistor, thereby reflecting the change in the height of the lifting portion by measuring the relevant parameters of the sliding rheostat. Specifically, the method includes: Step 100, apply positive voltage and zero voltage to the upper and lower ends of the resistor respectively to obtain the first voltage value L1v of the slider position; at this time, the upper end of the resistor is connected to +VCC, and the lower end is connected to GND. The first voltage value L1v of the slider position is the voltage between the slider and the lower end of the resistor.
[0018] Step 102, switch the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to obtain the second voltage value L2v at the slider position; at this time, the upper end of the resistor is connected to GND, and the lower end is connected to +VCC, and the second voltage value L2v at the slider position is the voltage between the slider and the upper end of the resistor.
[0019] Step 104, based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor, obtain the position P of the slider in the direction of the length of the resistor: P=(L*L1v) / (L1v+L2v), where P is the distance between the slider and the lowest end of the resistor. Since the ratio of the distance between the slider and the lowest end of the resistor to the total length of the resistor determines the ratio of the resistance value of this section of the resistor to the resistance value of the total resistor, it also determines the ratio of the voltage value of this section of the resistor to the total voltage. Therefore, we can obtain the ratio of the distance P between the slider and the lowest end of the resistor to the total length L of the resistor by the ratio of the first voltage value L1v to the total voltage (L1v+L2v). The product of this ratio and the total length L of the resistor is the distance P between the slider and the lowest end of the resistor.
[0020] Of course, the conventional method of using a sliding rheostat is to sample and obtain the resistance value between the slider and the bottom end of the resistor, and by performing a ratio operation between the resistance value and the resistance value marked in the official manual, the position length of the slider relative to the effective sliding interval can be calculated. However, the resistance value of the resistor will change with the change of temperature. At the same time, this embodiment is applied to the armrest of the seat. When the user just sits on the seat and after sitting for a period of time, the temperature of the entire seat including the armrest area will change. The magnitude of the change is related to factors such as ambient temperature and seat type. Therefore, the conventional method of using a sliding rheostat will cause the armrest position to remain unchanged, while the measurement results are inconsistent, so it is difficult to maintain the accuracy of the measurement. In addition, since each user has a different sitting posture, their body temperature has different effects on the armrests on both sides, which may cause the armrests on both sides to display the same height, but the actual height is inconsistent. In addition, changes in seasonal temperature will also cause the armrest position to remain unchanged, while the measurement results are inconsistent.
[0021] However, by using the method of this embodiment, no matter how the temperature of the resistor changes, it will not affect the measurement result. Due to temperature changes, the resistance value L1r in the lower interval and the resistance value L2r in the upper interval will change, so the total resistance value L1r+L2r of the slider will also change. According to the above problem, the voltage +VCC is applied to the entire L1r+L2r. Since the resistance of the variable resistor changes linearly with the influence of temperature, assuming that the change rate is k, the sampling voltage after L1v changes is k*L1v, and the sampling voltage after L2v changes is k*L2v, so the absolute position of the slider P2=k*L1v / (k*L1v+k*L2v)*L=P, which proves that the absolute position of the slider will not be affected by temperature changes. Therefore, no matter how the temperature of the resistor changes, the calculated absolute position of the slider remains unchanged.
[0022] Step 106, based on the position P of the slider in the length direction of the resistor, obtain the height position parameter of the lifting part. The height position parameter of the lifting part is generally 0 at the bottom of the moving range of the lifting part. The height parameter reflects the relative height of the lifting part within its moving range. If the bottom of the moving range of the lifting part just corresponds to the bottom of the resistor, the height position parameter of the lifting part is P. In actual use, in order to ensure that the slider can slide within the range of the resistor, or when the slider is at the upper and lower ends of the resistor, the voltage value can be stably measured, it is necessary to make the sliding range of the slider smaller than the length of the resistor, that is, leave some dead zones at the upper and lower ends of the resistor, and the part between the upper and lower dead zones is the effective sliding range of the slider. Since the lifting action of the lifting part is adapted to the sliding of the slider, that is, the upper and lower ends of the resistor are beyond the moving range of the lifting part, when the lifting part drops to the lowest point, there is still a dead zone distance S between it and the bottom of the resistor, therefore, the height position parameter H of the lifting part is: H=PS.
[0023] Step 108, obtain the height position parameter of the lifting unit in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than the set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained. Even if a higher-precision AD converter is used for sampling, the sampled result will still have a certain floating range. Since there are more valid bits displayed on the screen, the values on the screen will jump frequently, affecting the visual experience. And according to the user's concept, when the height of the handrail does not change, the height value should also remain static, so the calculated result needs to be processed to ensure the user experience.
[0024] In actual use, it is found that when the slider is stationary, the range of the value jump is within plus or minus 0.2mm, that is, the update threshold is set to 0.2mm, and a window filter is designed based on the accuracy requirements to stabilize the data. Sample the current value, set the sampling value to A1, then subtract the real-time data A2 from the A1 value and take the absolute value to get |A2-A1|. If the value of |A2-A1| is greater than 0.2mm, it is considered that the value at this moment has exceeded the reference value range, and it is allowed to be updated to the screen and updated to real-time data A2. If the value of |A2-A1| is not greater than 0.2mm, the value of A1 will continue to be displayed, thereby ensuring that the handrail height value will not keep jumping and ensuring user experience.
[0025] like Figure 2As shown, the embodiment of this specification also provides a seat armrest height acquisition system based on a sliding rheostat, the sliding rheostat is applied to the seat armrest, the sliding rheostat includes a resistor and a slider, the seat armrest includes a support part and a lifting part, the resistor and the slider are respectively arranged on the support part and the lifting part, that is, when the lifting part moves along the support part, the lifting part will drive the slider to slide along the resistor, so as to reflect the change of the height of the lifting part by measuring the relevant parameters of the sliding rheostat. Specifically, the system includes: The first voltage value acquisition module is used to apply positive voltage and zero voltage to the upper and lower ends of the resistor respectively to obtain the first voltage value L1v at the slider position; at this time, the upper end of the resistor is connected to +VCC and the lower end is connected to GND, and the first voltage value L1v at the slider position is the voltage between the slider and the lower end of the resistor.
[0026] The second voltage value acquisition module is used to switch the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to obtain the second voltage value L2v at the slider position; at this time, the upper end of the resistor is connected to GND, and the lower end is connected to +VCC. The second voltage value L2v at the slider position is the voltage between the slider and the upper end of the resistor.
[0027] The slider position acquisition module is used to obtain the position P of the slider in the direction of the length of the resistor based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor: P=(L*L1v) / (L1v+L2v); P is the distance between the slider and the bottom end of the resistor. Since the ratio of the distance between the slider and the bottom end of the resistor to the total length of the resistor determines the ratio of the resistance value of this section of the resistor to the total resistance value, it also determines the ratio of the voltage value of this section of the resistor to the total voltage. Therefore, we can obtain the ratio of the distance P between the slider and the bottom end of the resistor to the total length L of the resistor by the ratio of the first voltage value L1v to the total voltage (L1v+L2v). The product of this ratio and the total length L of the resistor is the distance P between the slider and the bottom end of the resistor.
[0028] Of course, the conventional method of using a sliding rheostat is to sample and obtain the resistance value between the slider and the bottom end of the resistor, and by performing a ratio operation between the resistance value and the resistance value marked in the official manual, the position length of the slider relative to the effective sliding interval can be calculated. However, the resistance value of the resistor will change with the change of temperature. At the same time, this embodiment is applied to the armrest of the seat. When the user just sits on the seat and after sitting for a period of time, the temperature of the entire seat including the armrest area will change. The magnitude of the change is related to factors such as ambient temperature and seat type. Therefore, the conventional method of using a sliding rheostat will cause the armrest position to remain unchanged, while the measurement results are inconsistent, so it is difficult to maintain the accuracy of the measurement. In addition, since each user has a different sitting posture, their body temperature has different effects on the armrests on both sides, which may cause the armrests on both sides to display the same height, but the actual height is inconsistent. In addition, changes in seasonal temperature will also cause the armrest position to remain unchanged, while the measurement results are inconsistent.
[0029] However, by using the method of this embodiment, no matter how the temperature of the resistor changes, it will not affect the measurement result. Due to temperature changes, the resistance value L1r in the lower interval and the resistance value L2r in the upper interval will change, so the total resistance value L1r+L2r of the slider will also change. According to the above problem, the voltage +VCC is applied to the entire L1r+L2r. Since the resistance of the variable resistor changes linearly with the influence of temperature, assuming that the change rate is k, the sampling voltage after L1v changes is k*L1v, and the sampling voltage after L2v changes is k*L2v, so the absolute position of the slider P2=k*L1v / (k*L1v+k*L2v)*L=P, which proves that the absolute position of the slider will not be affected by temperature changes. Therefore, no matter how the temperature of the resistor changes, the calculated absolute position of the slider remains unchanged.
[0030] The module for acquiring the height parameter of the lifting part is used to acquire the height position parameter of the lifting part based on the position P of the slider in the length direction of the resistor; the height position parameter of the lifting part is generally 0 at the bottom of the moving range of the lifting part, and the height parameter reflects the relative height of the lifting part within its moving range. If the bottom of the moving range of the lifting part corresponds to the bottom of the resistor, the height position parameter of the lifting part is P. In actual use, in order to ensure that the slider can slide within the range of the resistor, or that the voltage value can be stably measured when the slider is at the upper and lower ends of the resistor, it is necessary to make the sliding range of the slider smaller than the length of the resistor, that is, to leave some dead zones at the upper and lower ends of the resistor, and the part between the upper and lower dead zones is the effective sliding range of the slider. Since the lifting action of the lifting part is adapted to the sliding of the slider, that is, the upper and lower ends of the resistor are beyond the moving range of the lifting part, when the lifting part drops to the lowest point, there is still a dead zone distance S between it and the bottom of the resistor, therefore, the height position parameter H of the lifting part is: H=PS.
[0031] The height parameter update module is used to obtain the height position parameter of the lifting unit in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than the set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained. Even if a higher-precision AD converter is used for sampling, the sampled result will still have a certain floating range. Since there are more valid bits displayed on the screen, the values on the screen will jump frequently, affecting the visual experience. And according to the user's concept, when the height of the handrail does not change, the height value should also remain static, so the calculated result needs to be processed to ensure the user experience.
[0032] In actual use, it is found that when the slider is stationary, the range of the value jump is within plus or minus 0.2mm, that is, the update threshold is set to 0.2mm, and a window filter is designed based on the accuracy requirements to stabilize the data. Sample the current value, set the sampling value to A1, then subtract the real-time data A2 from the A1 value and take the absolute value to get |A2-A1|. If the value of |A2-A1| is greater than 0.2mm, it is considered that the value at this moment has exceeded the reference value range, and it is allowed to be updated to the screen and updated to real-time data A2. If the value of |A2-A1| is not greater than 0.2mm, the value of A1 will continue to be displayed, thereby ensuring that the handrail height value will not keep jumping and ensuring user experience.
[0033] The above is only a preferred specific embodiment of the present invention, which is an implementation method based on the overall concept of the present invention, and the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for obtaining the seat armrest height based on a sliding rheostat, characterized in that: The sliding rheostat is applied to a seat armrest, the sliding rheostat comprises a resistor and a slider, the seat armrest comprises a support portion and a lifting portion, the resistor and the slider are respectively arranged on the support portion and the lifting portion, and the method comprises: A positive voltage and a zero voltage are applied to the upper and lower ends of the resistor respectively to obtain a first voltage value L1v of the slider position; Switch the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to obtain the second voltage value L2v of the slider position; Based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor, obtaining the position P of the slider in the length direction of the resistor; Based on the position P of the slider in the length direction of the resistor, the height position parameter of the lifting part is obtained.
2. The method for obtaining the seat armrest height based on a sliding rheostat according to claim 1, characterized in that: include: The height position parameter of the lifting unit is obtained in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than a set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained.
3. The method for obtaining the seat armrest height based on a sliding rheostat according to claim 1, characterized in that: The algorithm for obtaining the position P of the slider in the direction of the resistor length is: P=(L*L1v) / (L1v+L2v).
4. The method for obtaining the seat armrest height based on a sliding rheostat according to claim 1, characterized in that: The upper and lower ends of the resistor are both beyond the moving range of the lifting part.
5. The method for obtaining the seat armrest height based on a sliding rheostat according to claim 4, characterized in that: The method for obtaining the height position parameter of the lifting part comprises: Based on the position P of the slider in the length direction of the resistor and the distance S between the lift part and the lower end of the resistor when the lift part is at the lowest position, the height position parameter H of the lift part is obtained, H=PS.
6. A seat armrest height acquisition system based on a sliding rheostat, characterized in that: The sliding rheostat is applied to a seat armrest, the sliding rheostat comprises a resistor and a slider, the seat armrest comprises a support portion and a lifting portion, the resistor and the slider are respectively arranged on the support portion and the lifting portion, and the system comprises: A first voltage value acquisition module, used to apply a positive voltage and a zero voltage to the upper and lower ends of the resistor respectively, to acquire a first voltage value L1v at the position of the slider; A second voltage value acquisition module, used for switching the direction of the positive voltage and the zero voltage applied to the upper and lower ends of the resistor to acquire the second voltage value L2v of the slider position; A slider position acquisition module, used to acquire a position P of the slider in a length direction of the resistor based on the first voltage value L1v, the second voltage value L2v and the length value L of the resistor; The lifting part height parameter acquisition module is used to acquire the height position parameter of the lifting part based on the position P of the slider in the length direction of the resistor.
7. The seat armrest height acquisition system based on sliding rheostat according to claim 6, characterized in that: include: The height parameter updating module is used to obtain the height position parameter of the lifting unit in real time. If the difference between the current height position parameter of the lifting unit and the real-time height position parameter is greater than the set update threshold, the height position parameter of the lifting unit is updated; otherwise, the current height position parameter of the lifting unit is maintained.
8. The seat armrest height acquisition system based on sliding rheostat according to claim 6, characterized in that: The algorithm for the slider position acquisition module to acquire the position P of the slider in the direction of the resistor length is: P=(L*L1v) / (L1v+L2v).
9. The seat armrest height acquisition system based on sliding rheostat according to claim 6, characterized in that: The upper and lower ends of the resistor are both beyond the moving range of the lifting part.
10. The seat armrest height acquisition system based on sliding rheostat according to claim 9, characterized in that: The lifting part height parameter acquisition module is specifically used for: Based on the position P of the slider in the length direction of the resistor and the distance S between the lift part and the lower end of the resistor when the lift part is at the lowest position, the height position parameter H of the lift part is obtained, H=PS.
Citation Information
Cited By
Automatic nailing mechanical arm for batten forming
CN120715987A