Shock absorber, electric riding vehicle and overload detection method
By designing a shock absorber containing Hall sensing components, the problem of difficulty in installing pressure sensors and calibration in the prior art is solved, and the overload detection function is realized with a simple installation without affecting the shock absorption effect, and is low in cost.
Patent Information
- Application Number
- CN202411781276.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-01
AI Technical Summary
In the prior art, pressure sensors are used to judge the riding behavior of multiple people, which is difficult to install, affects the shock absorption effect, and requires pressure calibration and temperature compensation, which increases costs.
A shock absorber is designed including a support assembly, elastic member, magnet and Hall sensing assembly. The Hall sensing assembly divides the shock absorption stroke into multiple gears through multiple Hall switches, determines gears based on voltage values, and judges overload through analog-to-digital converter and control unit.
It realizes overload detection function with simple installation, no impact on shock absorption effect, no calibration and temperature compensation required, high stability and low cost.
Smart Images

Figure CN119737418A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of riding vehicles, and in particular to a shock absorber, an electric riding vehicle and an overload detection method. Background Art
[0002] In the field of shared bicycles, with the popularity of electric vehicles and the diversification of user needs, multi-rider detection has become a key issue that needs to be solved urgently. At present, the commonly used solutions in the industry mainly rely on pressure sensors, which include but are not limited to hydraulic sensors and strain gauges, etc., which are usually installed on the vehicle's shock absorption system. The working principle of this solution is to determine whether multi-rider behavior has occurred by monitoring and converting the weight of the people sitting on the vehicle and the degree of change.
[0003] Specifically, these pressure sensors are cleverly embedded in a specially designed shock-absorbing structure, and then connected to the signal detection and amplification circuit and filtering circuit to pre-process the original signal. The processed signal will be sent to core components such as the MCU (microcontroller unit) for further analysis. After receiving the signal, the MCU will go through a series of complex algorithm processing and finally transmit the judgment result to the upper processing unit (such as the central control system).
[0004] However, although this solution can theoretically realize the detection function of multiple riders, it faces many challenges in practical application. First, the sensor is difficult to mount and the installation process is extremely complicated, usually requiring the use of professional equipment and tools. This not only increases the installation cost, but also prolongs the installation cycle, which is not conducive to rapid deployment and large-scale application.
[0005] Secondly, since the sensor needs to be embedded in the shock-absorbing structure, it will inevitably occupy a part of the effective working stroke of the shock-absorbing, usually between 10-20mm. This may not only affect the shock-absorbing effect, but also have an adverse effect on the vehicle's handling and comfort.
[0006] In addition, the sensor needs to undergo strict pressure calibration and temperature compensation before use to ensure that it can output accurate and stable numerical changes. This step is not only time-consuming and laborious, but each sensor also needs to be calibrated individually using professional equipment, further increasing costs and workload.
[0007] In the latter part of the signal processing, components such as amplification circuits, filtering circuits, and MCU are also required to further process and analyze the sensor signals. At the same time, the calibrated data needs to be saved and the results need to be transmitted to other devices through communication. These additional hardware and software requirements undoubtedly increase the complexity and cost of the system. Summary of the invention
[0008] The present invention provides a shock absorber, an electric riding vehicle and an overload detection method, which are used to solve the problem that in the prior art, a pressure sensor is used to determine whether multiple people are riding, the installation is difficult, the shock absorption effect is affected, and pressure calibration and temperature compensation are required, which increases the cost.
[0009] The present invention provides a shock absorber, comprising: a support component and an elastic member, wherein the elastic member is sleeved on the outer periphery of the support component; a magnet, wherein the magnet is fixedly arranged on the support component; a Hall sensor component, wherein the top of the Hall sensor component is connected to the top of the elastic member and extends along the deformation direction of the elastic member; the Hall sensor component comprises a plurality of Hall switches and a circuit board, wherein the plurality of Hall switches are arranged at intervals along the extension direction of the circuit board, and the plurality of Hall switches are electrically connected to the circuit board respectively; when the elastic member is subjected to pressure, one of the Hall switches corresponds to the magnet.
[0010] A shock absorber provided according to the present invention also includes a controller, and the Hall sensor assembly also includes an analog-to-digital converter, the analog-to-digital converter is electrically connected to the circuit board, and the analog-to-digital converter is communicatively connected to the controller; the analog-to-digital signal converter is used to collect voltage signals and convert them into digital signals.
[0011] A shock absorber provided according to the present invention also includes a controller, and the Hall sensor assembly also includes an analog-to-digital converter and a control unit, the analog-to-digital converter is electrically connected to the circuit board, the analog-to-digital converter is electrically connected to the control unit respectively, and the control unit is communicatively connected to the controller.
[0012] According to a shock absorber provided by the present invention, the Hall sensor assembly further includes a mounting plate, the top of the circuit board is connected to the mounting plate, and the mounting plate is connected to the elastic member.
[0013] According to a shock absorber provided by the present invention, the mounting plate includes a first support plate and a second support plate arranged coaxially, the bottom surface of the first support plate is connected to the top surface of the second support plate, the outer circumferential dimension of the second support plate is smaller than the outer circumferential dimension of the first support plate, and part of the elastic member is embedded in the outer circumference of the second support plate.
[0014] According to a shock absorber provided by the present invention, the support assembly includes a fixing member and a support rod, the support rod is connected to the fixing member and can move back and forth along the axial direction of the fixing member; the mounting plate is provided with a through hole, the support rod is inserted into the through hole, connected to the mounting plate, or used to connect with a pressing member; the magnet is provided at the top of the fixing member.
[0015] According to a shock absorber provided by the present invention, the Hall switch includes an open-drain sensor.
[0016] The present invention also provides an electric riding vehicle, comprising a shock absorber as described in any one of the above items and a vehicle body, wherein the shock absorber is arranged on the vehicle body.
[0017] The present invention also provides an overload detection method for an electric riding vehicle, which is based on the electric riding vehicle as described above and is characterized in that it includes: obtaining the current position of a Hall switch corresponding to the magnet, and determining the gear position of the Hall switch; based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than a preset pressure, determining that the electric riding vehicle is overloaded.
[0018] According to an overload detection method for an electric riding vehicle provided by the present invention, the current position of a Hall switch corresponding to a magnet is obtained to determine the gear position of the Hall switch; the method includes: obtaining the current voltage of a circuit board; taking the voltage range when each Hall switch corresponds to the magnet; and determining the current position of the Hall switch corresponding to the magnet based on the relationship between the current voltage and the voltage range.
[0019] The shock absorber, electric riding vehicle and overload detection method provided by the present invention divide the shock absorption stroke into multiple gears through multiple Hall switches. Different Hall switches have different voltage values corresponding to magnets. The gear of the Hall switch is determined based on the voltage value of the circuit board. Each Hall switch corresponds to pressure (weight) one by one. Based on the relationship between the pressure value corresponding to the Hall switch and the preset pressure, whether it is overloaded is determined. The shock absorber is simple and convenient to install. Neither the magnet nor the Hall switch requires calibration and temperature compensation, which does not affect the stroke of the shock absorption work. It has high stability and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a structural schematic diagram of the shock absorber provided by the present invention; Figure 2 It is a structural schematic diagram of the Hall sensor assembly provided by the present invention; Figure 3 It is a structural schematic diagram of the Hall switch provided by the present invention installed on a circuit board; Figure 4 It is a flow chart of an overload detection method for an electric riding vehicle provided by the present invention; Figure 5is a schematic diagram of the structure of an electronic device provided by the present invention; Reference numerals: 1. Support assembly; 11. Fixing member; 12. Support rod; 2. Elastic member; 3. Magnet; 4. Hall sensor assembly; 41. Circuit board; 42. Hall switch; 43. Mounting plate; 431. First support plate; 432. Second support plate. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0023] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.
[0024] In the description of the embodiments of the present invention, it should be noted that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present invention.
[0025] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0026] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0027] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplicity and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the examples of various specific processes and materials provided by the present invention, but those of ordinary skill in the art can be aware of the applicability of other processes and / or the use of other materials.
[0028] Combine the following Figure 1-Figure 5 The invention describes a shock absorber, an electric riding vehicle and an overload detection method.
[0029] The shock absorber provided in the embodiment of the present invention comprises: a support assembly 1, an elastic member 2, a magnet 3 and a Hall sensor assembly 4. The support assembly 1 is used to bear and transmit the impact force from the road surface. Figure 1 As shown, the elastic member 2 is sleeved on the outer periphery of the support assembly 1. When the elastic member 2 is under pressure, it can move back and forth along the axial direction of the support assembly 1 to absorb and disperse the impact force and achieve shock absorption. The elastic member 2 can be a coil spring, a gas spring, etc. The top of the Hall sensor assembly 4 is connected to the top of the elastic member 2 and extends along the deformation direction of the elastic member 2. When the elastic member 2 is under pressure, the Hall sensor assembly 4 can move with the movement of the elastic member 2. The installation of the Hall sensor assembly 4 is simple and does not affect the effective stroke of the shock absorber. The Hall sensor assembly 4 can be arranged on the inner side of the elastic member 2, that is, between the elastic member 2 and the support assembly 1; it can also be arranged on the outer side of the elastic member 2, that is, the side of the elastic member 2 away from the support assembly 1.
[0030] The Hall sensor assembly 4 includes a plurality of Hall switches 42 and a circuit board 41. The plurality of Hall switches 42 are arranged at intervals along the extension direction of the circuit board 41. The extension direction of the circuit board 41 is consistent with the deformation direction of the elastic member 2. The plurality of Hall switches 42 are electrically connected to the circuit board 41, respectively. The Hall switch 42 includes an open-drain sensor. The magnet 3 is capable of generating a stable magnetic field for activating the Hall switch 42. The magnet 3 is fixedly arranged on the support assembly 1. The magnet 3 includes a magnet. When the elastic member 2 is subjected to pressure, the elastic member 2 drives the Hall switch 42 and the circuit board 41 to move back and forth along the axis of the support assembly 1, and the position of the magnet 3 remains unchanged. With the displacement of the elastic member 2, one of the Hall switches 42 corresponds to the magnet 3, and the magnetic field generated by the magnet 3 passes through the Hall switch 42. Since the voltage on the circuit board 41 is different when the Hall switches 42 at different positions correspond to the magnet 3, the present invention determines the position of the Hall switch 42 corresponding to the magnet 3 based on the change in the voltage value, and then determines the pressure on the elastic member 2. Based on this pressure, it is judged whether the riding electric vehicle is overloaded.
[0031] It should be noted that multiple Hall switches 42 share a pull-up resistor, and different Hall switches 42 are provided with different ground-connected resistance values, so that different voltage division values can be obtained. That is, the position of the Hall switch 42 corresponding to the magnet 3 can be determined according to the voltage value of the circuit board 41. In addition, when each Hall switch 42 corresponds to the magnet 3, the pressure borne by the elastic member 2 is obtained through testing.
[0032] The Hall switch 42 is a sensor based on the Hall effect. When current passes through a conductor or semiconductor, if the conductor is in a magnetic field, the magnetic field will affect the trajectory of the electrons, thereby generating a voltage in the vertical direction of the conductor. This phenomenon is called the Hall effect. In the present invention, the working principle of the Hall switch 42 and the magnet 3 is combined with the deformation of the elastic member 2. When the elastic member 2 is subjected to pressure, the Hall switch 42 and the circuit board 41 are driven to move along the axial direction of the support assembly 1, thereby changing the relative position between the Hall switch 42 and the fixed magnet 3. As the position of the magnet 3 and the Hall switch 42 changes, the voltage signal generated by the Hall switch 42 also changes accordingly. By changing the voltage value on the circuit board 41, the position of the Hall switch 42 corresponding to the magnet 3, that is, the gear position of the Hall switch 42, is determined. The system can calculate the pressure borne by the elastic member 2 and then judge the load condition of the electric vehicle.
[0033] like Figure 2As shown, 7 Hall switches 42 are provided on the circuit board 41, namely the first Hall switch, the second Hall switch, the third Hall switch, the fourth Hall switch, the fifth Hall switch, the sixth Hall switch and the seventh Hall switch, from bottom to top, from the first gear to the seventh gear. When the elastic member 2 is subjected to different pressures, different Hall switches 42 correspond to the magnet 3 and generate different voltage values. When the elastic member 2 is subjected to a small pressure, the first Hall switch corresponds to the magnet 3, and the voltage value of the circuit board 41 is the first voltage value. As the pressure on the elastic member 2 increases, the magnetic field generated by the magnet 3 will successively align with the second Hall switch, the third Hall switch, and finally the seventh Hall switch, and the voltage value of the circuit board 41 will also change each time it is aligned with the Hall switch 42. In the actual application process, the current voltage of the circuit board 41 is obtained, and the position of the Hall switch 42 corresponding to the magnet 3 is determined based on the comparison between the current voltage and the preset voltage, that is, the gear of the Hall switch 42 is determined, and the pressure on the elastic member 2 is determined. According to this pressure, it is determined whether it is overloaded.
[0034] The shock absorber provided in the embodiment of the present invention divides the shock absorption stroke into multiple gears through multiple Hall switches 42. Different Hall switches 42 have different voltage values corresponding to the magnet 3. The gear of the Hall switch 42 is determined based on the voltage value of the circuit board. Each Hall switch corresponds to pressure (weight) one by one. Based on the relationship between the pressure value corresponding to the Hall switch and the preset pressure, it is determined whether it is overloaded. The shock absorber is simple and convenient to install. Neither the magnet 3 nor the Hall switch 42 requires calibration and temperature compensation, which does not affect the stroke of the shock absorption work. It has high stability and low cost.
[0035] In one embodiment, the shock absorber further includes a controller. The Hall sensor assembly 4 further includes an analog-to-digital converter (ADC), which is electrically connected to the circuit board 41, and the analog-to-digital converter is communicatively connected to the controller. When one of the Hall switches 42 corresponds to the magnet 3, a voltage is generated, and the analog-to-digital converter is used to collect the voltage signal of the circuit board 41 and convert it into a digital signal. The information stored in the analog-to-digital converter (the voltage range corresponding to different Hall switches 42) is judged to determine the position (gear) of the Hall switch 42 corresponding to the magnet 3. Further, based on the corresponding table of the pressure and the gear of the Hall switch 42 stored in the controller, the current pressure of the elastic member 2 is determined, and when the current pressure is greater than the preset pressure, the overload is further determined. This embodiment does not require a separate control unit (MCU), which reduces the requirements for the control unit and saves costs.
[0036] In another embodiment, the shock absorber further includes a controller. The Hall sensor assembly 4 further includes an analog-to-digital converter (ADC) and a control unit, wherein the analog-to-digital converter is electrically connected to the circuit board 41, and the analog-to-digital converter is electrically connected to the control unit. When one of the Hall switches 42 corresponds to the magnet 3, a voltage is generated, and the analog-to-digital converter is used to collect the voltage signal of the circuit board 41, convert it into a digital signal, and transmit the digital signal to the control unit. The control unit makes a judgment based on the internally stored information (the Hall switches 42 of different gears have a voltage range) to determine the position (gear) of the Hall switch 42 corresponding to the magnet 3. Further, the control unit is connected to the controller in communication, and the control unit transmits the position (gear) of the Hall switch 42 corresponding to the magnet 3 to the controller for the next step of processing, such as determining the current pressure of the elastic member 2 based on the corresponding table of the pressure and the position of the Hall switch 42 stored in the controller, and determining the overload when the current pressure is greater than the preset pressure.
[0037] The embodiment of the present invention supports two external output modes, one is direct output using an analog-to-digital converter (ADC), and the other is external output by adding a control unit (MCU) and a communication circuit. It is highly flexible and can be applied to different scenarios.
[0038] The shock absorber provided in the embodiment of the present invention further includes a power module, and the analog-to-digital converter, the circuit board 41, the control unit and the controller are electrically connected to the power module respectively.
[0039] The Hall sensor assembly 4 also includes a mounting plate 43. The top of the circuit board 41 is connected to the mounting plate 43. The mounting plate 43 is connected to the elastic member 2. The elastic member 2 is connected to the pressing member through the mounting plate 43, so that the contact portion between the elastic member 2 and the pressing member is flat, thereby improving the deformation stability of the elastic member 2 and allowing the Hall switch 42 and the circuit board 41 to move stably with the stable deformation of the elastic member 2.
[0040] The mounting plate 43 includes a first support plate 431 and a second support plate 432, and the first support plate 431 and the second support plate 432 are coaxially arranged. The bottom surface of the first support plate 431 is connected to the top surface of the second support plate 432. Figure 3 As shown, the cross-sections of the first support plate 431 and the second support plate 432 are both circular, which helps to evenly distribute the pressure. The outer circumference of the second support plate 432 is smaller than that of the first support plate 431. Part of the elastic member 2 is located below the first support plate 431 and embedded in the outer circumference of the second support plate 432 to fix the elastic member 2. Figure 1 When the first support plate 431 is subjected to pressure, the first support plate 431 is pressed on the spiral surface of the elastic member 2 to ensure that the deformation of the elastic member 2 is uniform and stable, so that the Hall switch 42 and the circuit board 41 can move stably with the stable deformation of the elastic member 2.
[0041] The support assembly 1 in the embodiment of the present invention includes a support plate and a fixing member 11. The support rod 12 is connected to the fixing member 11, and the support rod 12 can move back and forth along the axis direction of the fixing member 11. A through hole is provided on the mounting plate 43, and the support rod 12 is inserted in the through hole and can be connected to the mounting plate 43 (such as threaded connection). When the mounting plate 43 and the elastic member 2 are subjected to pressure, the support rod 12 moves back and forth along the axis of the fixing member 11 as the elastic member 2 is deformed. The support rod 12 is inserted in the through hole and can also be connected to the pressing member on the mounting plate 43. The support rod 12 moves back and forth along the axis of the fixing member 11 under the action of pressure. It should be noted that under the action of pressure, the support rod 12 moves synchronously with the elastic member 2. The magnet 3 is fixed to the top of the fixing member 11. As shown in Figure 1, the magnet 3 is arranged on the periphery of the support rod 12 and is fixedly connected to the top surface of the fixing member 11. The magnet 3 does not affect the movement of the support rod 12.
[0042] An embodiment of the present invention further provides an electric riding vehicle, comprising a shock absorber as in any of the above embodiments, and also comprising a vehicle body, wherein the shock absorber is mounted on the vehicle body.
[0043] Based on the electric riding vehicle in any of the above embodiments, the embodiment of the present invention further provides an overload detection method for an electric riding vehicle, including: step 100, obtaining the current position of the Hall switch corresponding to the magnet, and determining the gear position of the Hall switch; specifically, obtaining the current voltage of the circuit board; obtaining the voltage range when each Hall switch corresponds to the magnet; based on the relationship between the current voltage and the voltage range, determining the current position of the Hall switch corresponding to the magnet, and determining the gear position of the Hall switch. Step 200, based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than the preset pressure, determining that the electric riding vehicle is overloaded.
[0044] refer to Figure 4 In the embodiment of the present invention, the current voltage signal of the circuit board is obtained through a digital-to-analog converter (ADC), converted into a digital signal, and transmitted to the control unit (MCU). The control unit determines the position of the Hall switch corresponding to the magnet, that is, the gear position of the Hall switch, based on the voltage range corresponding to different Hall switches, that is, there is a voltage range corresponding to each Hall switch and the magnet, based on the internally stored information. The control unit compares the current voltage with the voltage range, and transmits the gear position information of the Hall switch to the controller, which stores the pressure (weight) information corresponding to each gear position. When the pressure corresponding to the gear position is greater than the preset pressure, the electric riding vehicle is determined to be overloaded.
[0045] In one embodiment, a digital-to-analog converter (ADC) obtains the current voltage signal of the circuit board and converts it into a digital signal. The digital-to-analog converter stores voltage ranges corresponding to different Hall switches, that is, each Hall switch has a voltage range corresponding to the magnet. Based on the comparison between the current voltage and the voltage range, the position of the Hall switch corresponding to the magnet is determined, that is, the gear position of the Hall switch is determined. The gear position information is transmitted to the controller, and the controller also stores pressure (weight) information corresponding to each gear position. When the pressure corresponding to the gear position is greater than the preset pressure, the electric riding vehicle is determined to be overloaded.
[0046] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the overload detection method of the electric riding vehicle, the method comprising: obtaining the current position of the Hall switch corresponding to the magnet, determining the gear position of the Hall switch; based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than the preset pressure, determining that the electric riding vehicle is overloaded.
[0047] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0048] On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the overload detection method of the electric riding vehicle provided by the above methods, the method comprising: obtaining the current position of the Hall switch corresponding to the magnet, determining the gear position of the Hall switch; based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than the preset pressure, determining that the electric riding vehicle is overloaded. On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, when the computer program is executed by the processor, it is implemented to execute the overload detection method of the electric riding vehicle provided by the above methods, the method comprising: obtaining the current position of the Hall switch corresponding to the magnet, determining the gear position of the Hall switch; based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than the preset pressure, determining that the electric riding vehicle is overloaded. The above-described device embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those skilled in the art may understand and implement the solution without creative work.
[0049] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0050] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A shock absorber, characterized in that: include: A support assembly and an elastic member, wherein the elastic member is sleeved on the outer periphery of the support assembly; A magnet, wherein the magnet is fixedly disposed on the supporting assembly; A Hall sensor assembly, wherein the top of the Hall sensor assembly is connected to the top of the elastic member and extends along the deformation direction of the elastic member; the Hall sensor assembly comprises a plurality of Hall switches and a circuit board, the plurality of Hall switches are arranged at intervals along the extension direction of the circuit board, and the plurality of Hall switches are electrically connected to the circuit board respectively; when the elastic member is subjected to pressure, one of the Hall switches corresponds to the magnet.
2. The shock absorber according to claim 1, characterized in that: It also includes a controller, and the Hall sensor component also includes an analog-to-digital converter, which is electrically connected to the circuit board and communicatively connected to the controller; the analog-to-digital signal converter is used to collect voltage signals and convert them into digital signals.
3. The shock absorber according to claim 1, characterized in that It also includes a controller, and the Hall sensor component also includes an analog-to-digital converter and a control unit. The analog-to-digital converter is electrically connected to the circuit board, the analog-to-digital converter is electrically connected to the control unit respectively, and the control unit is communicatively connected to the controller.
4. The shock absorber according to claim 1, characterized in that: The Hall sensor assembly also includes a mounting plate, the top of the circuit board is connected to the mounting plate, and the mounting plate is connected to the elastic member.
5. The shock absorber according to claim 4, characterized in that The mounting plate includes a first support plate and a second support plate arranged coaxially, the bottom surface of the first support plate is connected to the top surface of the second support plate, the outer circumference of the second support plate is smaller than the outer circumference of the first support plate, and part of the elastic member is embedded in the outer circumference of the second support plate.
6. The shock absorber according to claim 4, characterized in that The support assembly includes a fixing member and a support rod, wherein the support rod is connected to the fixing member and can move back and forth along the axial direction of the fixing member; the mounting plate is provided with a through hole, the support rod is inserted into the through hole, connected to the mounting plate, or used to connect to the pressing member; the magnet is arranged at the top of the fixing member.
7. The shock absorber according to claim 1, characterized in that The Hall switch comprises an open-drain type sensor.
8. An electric riding vehicle, characterized in that: The invention comprises the shock absorber according to any one of claims 1 to 7 and a vehicle body, wherein the shock absorber is arranged on the vehicle body.
9. A method for detecting overload of an electric riding vehicle, based on the electric riding vehicle as claimed in claim 8, characterized in that: include: Obtain the current position of the Hall switch corresponding to the magnet and determine the gear position of the Hall switch; Based on the corresponding relationship between the gear position and the pressure, when the pressure is greater than the preset pressure, it is determined that the electric riding vehicle is overloaded.
10. The method for detecting overload of an electric riding vehicle according to claim 9, characterized in that: Obtain the current position of the Hall switch corresponding to the magnet and determine the gear position of the Hall switch; including: Get the current voltage of the circuit board; Get the voltage range when each Hall switch corresponds to the magnet; Based on the relationship between the current voltage and the voltage range, a current position of the Hall switch corresponding to the magnet is determined.