Method and device for measuring speed of bicycle, bicycle and medium

文档序号:1002127 发布日期:2020-10-23 浏览:11次 中文

阅读说明:本技术 单车的车速测量方法、装置、单车和介质 (Method and device for measuring speed of bicycle, bicycle and medium ) 是由 杨磊 何庆刚 李科伟 黄海量 于 2020-05-11 设计创作,主要内容包括:本申请属于单车电子设备技术领域,具体涉及一种单车的车速测量方法、装置、单车和介质,所述方法用于基于设置于单车上的发电花鼓生成的交流电测量单车的行驶速度,包括:对所述交流电整形处理,以生成周期性的脉冲波形;获取所述脉冲波形的周期值;基于所述周期值计算所述单车的行驶速度。本申请提高了单车行驶速度测量的准确性,相对于传统的利用霍尔传感器等设备测量单车的车速,测量方法简单、准确可靠且成本低。(The application belongs to the technical field of bicycle electronic equipment, and particularly relates to a bicycle speed measuring method, a bicycle speed measuring device, a bicycle and a medium, wherein the method is used for measuring the running speed of the bicycle based on alternating current generated by a power generation hub arranged on the bicycle and comprises the following steps: shaping the alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; calculating a travel speed of the bicycle based on the period value. The method and the device improve the accuracy of measuring the running speed of the bicycle, and compared with the traditional method of measuring the speed of the bicycle by using devices such as Hall sensors, the method and the device are simple, accurate, reliable and low in cost.)

1. A vehicle speed measurement method for a bicycle, for measuring a running speed of the bicycle based on alternating current generated by a power generation hub provided on the bicycle, the method comprising:

shaping the alternating current to generate a periodic pulse waveform;

acquiring a period value of the pulse waveform;

calculating a travel speed of the bicycle based on the period value.

2. The method of claim 1, wherein the calculating the travel speed of the bicycle based on the period value comprises:

acquiring the radius of a wheel of the bicycle as r;

acquiring the total number n of the magnetic pole pairs of the power generation hub;

calculating the running speed v of the bicycle according to the following formula:

Figure FDA0002486619840000011

wherein T is the period value of the pulse waveform.

3. The method of claim 1 or 2, wherein said obtaining a period value of said pulse waveform is preceded by:

and filtering the pulse waveform.

4. The method of claim 1 or 2, further comprising:

and controlling a dazzling wheel of the bicycle to display preset pattern information based on the acquired running speed of the bicycle.

5. A vehicle speed measuring device for a bicycle for measuring a running speed of the bicycle based on an alternating current generated by a power generation hub provided on the bicycle, comprising:

the rectification module is used for shaping the alternating current to generate a periodic pulse waveform;

a period value obtaining module, configured to obtain a period value of the pulse waveform;

and the driving speed acquisition module of the bicycle is used for calculating the driving speed of the bicycle based on the period value.

6. The apparatus of claim 5, wherein the rectification module comprises:

the voltage limiting circuit is used for carrying out voltage reduction processing on the alternating current so as to output reduced alternating current;

and the comparator is connected with the voltage limiting circuit and used for receiving the step-down alternating current and generating a pulse waveform according to the step-down alternating current.

7. The apparatus of claim 6, wherein the voltage limiting circuit comprises:

the first voltage limiting circuit is connected between the power generation hub and the positive input end of the comparator in series; and/or

The second voltage limiting circuit is connected between the power generation hub and the negative input end of the comparator in series;

the first voltage limiting circuit and the second voltage limiting circuit are used for reducing the alternating current to output reduced alternating current, so that the voltage value of the reduced alternating current is within the input threshold voltage range of the comparator.

8. The apparatus of claim 6, further comprising:

the input filtering module is connected between the voltage limiting circuit and the input end of the comparator in series and is used for filtering the alternating current; and/or

And the output filtering module is connected with the output end of the comparator and is used for filtering the pulse waveform.

9. A bicycle provided with a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method as claimed in any one of claims 1 to 4 are implemented when the computer program is executed by the processor.

10. A bicycle, comprising:

the vehicle speed measurement device of a bicycle according to any one of claims 5 to 8.

11. The bicycle of claim 10, further comprising:

the LED lamp comprises a dazzling wheel, wherein an LED lamp is arranged on the dazzling wheel;

and the pattern information control circuit is used for controlling the dazzling wheel to display preset pattern information based on the running speed of the bicycle.

12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.

Technical Field

The application belongs to the technical field of bicycle electronic equipment, and particularly relates to a bicycle speed measuring method and device, a bicycle and a medium.

Background

Along with the popularity and popularity of the shared bicycle in China, the shared bicycle becomes an indispensable short-distance vehicle for people to go out daily, and the shared bicycle is produced around a plurality of new designs and new experiences of the shared bicycle. For example, the wheel light display device of the shared bicycle displays various patterns and dynamic graphs through the LED by using the persistence of vision effect of human eyes when the bicycle is ridden; for example, the power generation hub of the shared bicycle is driven by riding of the bicycle, and the internal stator and the rotor rotate mutually to generate power, so that power is supplied to a power receiving system. The wheel lamp display equipment displays patterns on the premise that the riding speed of a bicycle is accurately acquired, and the display variable is controlled according to the speed parameter, so that the wheel lamp display equipment displays stable and gorgeous patterns along with riding.

The traditional bicycle speed measuring device obtains the riding speed of a bicycle through Hall or magnet induction, the cost is high, the installation mode is fixed, and the magnet easily adsorbs impurities under the complex outdoor environment, so that the measuring accuracy is influenced, and the working reliability is low. Therefore, finding a method capable of accurately detecting the vehicle speed is an urgent problem to be solved when a shared bicycle business mode is expanded.

Disclosure of Invention

In view of the above, it is desirable to provide a method, an apparatus, a bicycle, and a medium for measuring a bicycle speed, which are low in cost, high in measurement accuracy, and high in operational reliability.

A first aspect of the present application provides a vehicle speed measurement method for measuring a running speed of a bicycle based on alternating current generated by a power generation hub provided on the bicycle, including:

shaping the alternating current to generate a periodic pulse waveform;

acquiring a period value of the pulse waveform;

calculating a travel speed of the bicycle based on the period value.

In the method for measuring the speed of the bicycle in the embodiment, the periodic pulse waveform is generated by shaping the alternating current generated by the bicycle power generation hub by utilizing the periodic characteristic of the alternating current; the method includes the steps of accurately identifying a period value of a pulse waveform by identifying a rising edge or a falling edge of the pulse waveform, and then calculating the traveling speed of the bicycle based on the period value. For traditional bicycle speed sensor mostly obtains the speed of riding of bicycle through hall or magnet-induced, the alternating current that this application directly utilized electricity generation flower-drum to generate measures the speed of a motor vehicle, need not to install other sensor equipment, receives the influence factor of environment less, consequently, measuring method is simpler, accurate reliable and with low costs.

In one embodiment, said calculating the travel speed of the bicycle based on the period value comprises:

acquiring the radius of a wheel of the bicycle as r;

acquiring the total number n of the magnetic pole pairs of the power generation hub;

calculating the running speed v of the bicycle according to the following formula:

Figure BDA0002486619850000021

wherein T is the period value of the pulse waveform.

In one embodiment, before the shaping the alternating current to generate the periodic pulse waveform, the shaping includes:

and carrying out filtering treatment on the alternating current.

In one embodiment, the obtaining the period value of the pulse waveform comprises:

and filtering the pulse waveform.

In one embodiment, the method for measuring the vehicle speed of the bicycle further comprises:

based on the acquisition the wheel that dazzles of the speed control bicycle of traveling of bicycle shows preset pattern information to increase the pleasing to the eye degree of appearance of bicycle, improve user's the experience of riding.

In one embodiment, the controlling of the glare wheel of the bicycle to display the preset pattern information based on the acquired running speed of the bicycle comprises:

control the speed that the LED lamp of dazzling the wheel switches with the speed phase-match that traveles of bicycle to it is more accurate and stable to make the pattern of dazzling the wheel demonstration, thereby improves user's visual aesthetic feeling and user experience.

A second aspect of the present application provides a vehicle speed measuring device for a bicycle for measuring a running speed of the bicycle based on an alternating current generated by a power generation hub provided on the bicycle, comprising:

the rectification module is used for shaping the alternating current to generate a periodic pulse waveform;

a period value obtaining module, configured to obtain a period value of the pulse waveform;

and the driving speed acquisition module of the bicycle is used for calculating the driving speed of the bicycle based on the period value.

In the vehicle speed measuring device for the bicycle in the embodiment, the alternating current generated by the bicycle power generation hub has the periodic characteristic, and the alternating current is shaped by the rectifying module to generate a periodic pulse waveform; the method comprises the steps of identifying the rising edge or the falling edge of a pulse waveform through a period value acquisition module to accurately identify the period value of the pulse waveform, and calculating the driving speed of a bicycle by using a driving speed acquisition module of the bicycle based on the period value. The measuring method is simple, accurate and reliable and has low cost.

In one embodiment, the driving speed obtaining module of the bicycle is configured to:

acquiring the radius of a wheel of the bicycle as r;

acquiring the total number n of the magnetic pole pairs of the power generation hub;

calculating the running speed v of the bicycle according to the following formula:

wherein T is the period value of the pulse waveform.

In one embodiment, the rectifier module includes:

the voltage limiting circuit is used for carrying out voltage reduction processing on the alternating current so as to output reduced alternating current;

and the comparator is connected with the voltage limiting circuit and used for receiving the step-down alternating current and generating a pulse waveform according to the step-down alternating current.

In one embodiment, the voltage limiting circuit comprises:

the first voltage limiting circuit is connected between the power generation hub and the positive input end of the comparator in series; and/or

The second voltage limiting circuit is connected between the power generation hub and the negative input end of the comparator in series;

the first voltage limiting circuit and the second voltage limiting circuit are used for reducing the alternating current to output reduced alternating current, so that the voltage value of the reduced alternating current is within the input threshold voltage range of the comparator.

In one embodiment, the vehicle speed measuring device for a bicycle further includes:

the input filtering module is used for filtering the alternating current; and/or

And the output filtering module is used for filtering the pulse waveform.

In one embodiment, the rectifier module further includes:

and the hysteresis resistor is connected between the positive input end of the comparator and the output end of the comparator in series and is used for reducing the sensitivity of the comparator.

In one embodiment, the first voltage limiting circuit comprises:

and the anode of the first voltage limiting diode is connected with the positive input end of the comparator, and the cathode of the first voltage limiting diode is connected with the negative input end of the comparator.

In one embodiment, the second voltage limiting circuit comprises:

and the anode of the second voltage limiting diode is connected with the negative input end of the comparator, and the cathode of the second voltage limiting diode is connected with the positive input end of the comparator.

In one embodiment, the input filter module comprises an input filter resistor and an input filter capacitor connected in parallel, one end of the input filter capacitor is connected with the input end of the comparator, and the other end of the input filter capacitor is grounded;

the output filter module comprises an output filter resistor and an output filter capacitor which are connected in series, one end of the output filter capacitor is connected with the output end of the comparator through the output filter resistor, and the other end of the output filter capacitor is grounded.

A third aspect of the present application provides a bicycle provided with a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as described in any of the embodiments of the present application when executing the computer program.

In the bicycle in the embodiment, the alternating current generated by the bicycle power generation hub has the periodic characteristic, and the periodic pulse waveform is generated by shaping the alternating current; the method includes the steps of accurately identifying a period value of a pulse waveform by identifying a rising edge or a falling edge of the pulse waveform, and then calculating the traveling speed of the bicycle based on the period value. Provided is a bicycle capable of accurately sensing a running speed.

A fourth aspect of the present application provides a bicycle including the vehicle speed measuring device of the bicycle as described in any of the embodiments of the present application, thereby providing a bicycle capable of accurately sensing a running speed.

In one embodiment, the bicycle further comprises:

the LED lamp comprises a dazzling wheel, wherein an LED lamp is arranged on the dazzling wheel;

and the pattern information control circuit is used for controlling the dazzling wheel to display preset pattern information based on the running speed of the bicycle.

In the bicycle in the above embodiment, through accurately acquiring the driving speed of the bicycle, based on the driving speed control of the bicycle the wheel is dazzled to display the preset pattern information, so that the wheel can accurately, clearly and stably display the preset pattern information, and the visual aesthetic feeling and the riding experience of the user are improved.

In one embodiment, the pattern information control circuit is configured to:

and controlling the switching speed of the LED lamps of the dazzling wheel to be matched with the running speed of the bicycle.

A fifth aspect of the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method described in any of the embodiments of the present application when executing the computer program.

A sixth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as set forth in any of the embodiments of the present application.

In the computer device or the computer-readable storage medium in the above embodiments, the alternating current generated by the bicycle power generation hub is used to generate a periodic pulse waveform by shaping the alternating current, wherein the alternating current has a periodic characteristic; the method includes the steps of accurately identifying a period value of a pulse waveform by identifying a rising edge or a falling edge of the pulse waveform, and then calculating the traveling speed of the bicycle based on the period value. The measuring method is simple, accurate and reliable and has low cost.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain drawings of other embodiments based on these drawings without any creative effort.

Fig. 1 is a schematic flow chart of a method for measuring a vehicle speed of a bicycle according to a first embodiment of the present application.

Fig. 2 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a second embodiment of the present application.

Fig. 3 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a third embodiment of the present application.

Fig. 4 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a fourth embodiment of the present application.

Fig. 5 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a fifth embodiment of the present application.

Fig. 6 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a sixth embodiment of the present application.

Fig. 7 is a schematic circuit diagram of a rectifying device in a bicycle speed measuring device according to a seventh embodiment of the present application.

Fig. 8 is a schematic waveform diagram of an output voltage of a power generation hub of a bicycle according to an eighth embodiment of the present application.

Fig. 9 is a schematic waveform diagram of an output voltage of a voltage limiting circuit of a bicycle according to a ninth embodiment of the present application.

Fig. 10 is a schematic waveform diagram of an output voltage of a rectifier module of a bicycle according to a tenth embodiment of the present application.

Fig. 11 is an internal structural view of a computer device provided in an eleventh embodiment of the present application.

Detailed Description

To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are illustrated in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

Where the terms "comprising," "having," and "including" are used herein, another element may be added unless an explicit limitation is used, such as "only," "consisting of … …," etc. Unless mentioned to the contrary, terms in the singular may include the plural and are not to be construed as being one in number.

As shown in fig. 1, in a vehicle speed measuring method for a bicycle provided in one embodiment of the present application, for measuring a running speed of the bicycle based on an alternating current generated by a power generation hub provided on the bicycle, the method includes the steps of:

step 202, shaping the alternating current to generate a periodic pulse waveform.

Specifically, the power generation hub comprises a rotor A consisting of an inner coil and silicon steel sheets and a rotor B consisting of a magnet pair arranged outside the bicycle, wherein the rotor B is fixed with wheels, and the rotor A is fixed with an axle and a frame. When the bicycle is ridden, the rotor A and the rotor B rotate relatively, namely, the coil cuts magnetic lines of force of a magnetic field of the magnet pair of the rotor B, and power generation current is formed. When a user rides a bicycle, the bicycle power generation hub generates periodic alternating current, and particularly when the bicycle runs at a relatively uniform speed, the waveform of the alternating current generated by the power generation hub is more regular. The periodic value of the alternating current generated by the power generation hub is closely related to the driving speed of the bicycle, and the alternating current generated by the power generation hub is shaped to generate a pulse waveform with better regularity and periodicity, so that the periodic value of the pulse waveform can be accurately extracted, and the driving speed value of the bicycle can be accurately calculated.

Step 204, obtaining a period value of the pulse waveform.

Specifically, the period value of the pulse waveform can be obtained by accurately identifying the time interval value between two adjacent rising edges or two adjacent falling edges in the pulse waveform.

And step 206, calculating the running speed of the bicycle based on the period value.

For example, the wheel radius of the bicycle is obtained as r, the total number of the magnetic pole pairs of the power generation hub is obtained as n, and the running speed v of the bicycle is calculated according to the following formula:

Figure BDA0002486619850000091

wherein T is the period value of the pulse waveform.

In the method for measuring the speed of the bicycle in the embodiment, the periodic pulse waveform is generated by shaping the alternating current generated by the bicycle power generation hub by utilizing the periodic characteristic of the alternating current; the method includes the steps of accurately identifying a period value of a pulse waveform by identifying a rising edge or a falling edge of the pulse waveform, and then calculating the traveling speed of the bicycle based on the period value. The measuring method is simple, accurate and reliable and has low cost.

Further, in a method for measuring a vehicle speed of a bicycle provided in an embodiment of the present application, before shaping the alternating current to generate a periodic pulse waveform, the method includes:

step 201, filtering the alternating current.

Specifically, the obtained alternating current generated by the power generation hub may be subjected to filtering processing via a filter, and the filter may include at least one of a high-pass filter, a low-pass filter, or a band-pass filter, so as to filter out a noise signal included in the obtained alternating current. The obtained alternating current may also be filtered by at least one of an average filtering algorithm, a wavelet denoising filtering algorithm, a kalman filtering algorithm, a gaussian filtering algorithm, or the like, or a composite filtering algorithm, so as to filter out a noise signal in the obtained alternating current.

Further, in a method for measuring a vehicle speed of a bicycle provided in an embodiment of the present application, before the obtaining a period value of the pulse waveform, the method includes:

step 203, filtering the pulse waveform.

Specifically, the acquired pulse waveform may be subjected to filtering processing via a filter, and the filter may include at least one of a high-pass filter, a low-pass filter, or a band-pass filter, so as to filter out a noise signal included in the acquired pulse waveform. The pulse waveform may also be filtered by at least one of a mean filtering algorithm, a wavelet denoising filtering algorithm, a kalman filtering algorithm, a gaussian filtering algorithm, and the like, or a composite filtering algorithm, so as to filter out a noise signal in the acquired pulse waveform.

Further, in a method for measuring a vehicle speed of a bicycle provided in an embodiment of the present application, the method further includes:

and 208, controlling a dazzling wheel of the bicycle to display preset pattern information based on the acquired running speed of the bicycle.

Through the wheel that dazzles of the speed control bicycle based on the bicycle that acquires shows preset pattern information to increase the pleasing to the eye degree of appearance of bicycle, improve user's the experience of riding.

Further, in a vehicle speed measuring method of a bicycle provided in an embodiment of the present application, the controlling a glare wheel of the bicycle to display preset pattern information based on the acquired driving speed of the bicycle includes:

step 2081, controlling the switching speed of the LED lamps of the dazzling wheel to be matched with the driving speed of the bicycle based on the driving speed of the bicycle.

By controlling the switching speed of the LED lamps of the dazzling wheel to be matched with the running speed of the bicycle, for example, the switching speed of the LED lamps can be set to be higher than a preset value of the running speed of the bicycle, the switching speed of the LED lamps can also be set to be lower than the preset value of the running speed of the bicycle, and the switching speed of the LED lamps can also be set to be equal to the running speed of the bicycle. The vision persistence effect of human eyes is utilized, so that the patterns displayed by the dazzling wheel are more accurate and stable, and the visual aesthetic feeling and the user experience of a user are improved.

It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

Further, in an embodiment of the present application, there is provided a vehicle speed measuring device for a bicycle, including: the system comprises a rectification module 20, a period value acquisition module 40 and a driving speed acquisition module 60 of the bicycle, wherein:

a rectification module 20, configured to shape the alternating current to generate a periodic pulse waveform;

a period value obtaining module 40, configured to obtain a period value of the pulse waveform;

and a driving speed obtaining module 60 for the bicycle, configured to calculate the driving speed of the bicycle based on the period value.

For example, the driving speed acquisition module of the bicycle may be configured to:

acquiring the radius of a wheel of the bicycle as r;

acquiring the total number n of the magnetic pole pairs of the power generation hub;

calculating the running speed v of the bicycle according to the following formula:

wherein T is the period value of the pulse waveform.

Specifically, in the vehicle speed measuring device for a bicycle in the above embodiment, the alternating current generated by the bicycle power generation hub has a periodic characteristic, and is shaped by the rectifier module 20 to generate a periodic pulse waveform; the period value of the pulse waveform is accurately identified by the period value acquisition module 40 identifying the rising edge or the falling edge of the pulse waveform, and the travel speed of the bicycle is calculated based on the period value by the travel speed acquisition module 60 of the bicycle. The measuring method is simple, accurate and reliable and has low cost.

Further, in a vehicle speed measuring device of a bicycle provided in an embodiment of the present application, as shown in fig. 2, the rectifying module 20 includes a voltage limiting circuit 21 and a comparator 22, the voltage limiting circuit 21 is configured to step down the ac generated by the power generation hub 10 to output a stepped-down ac; the comparator 22 is connected to the voltage limiting circuit 21, and is configured to receive the step-down ac power and generate a pulse waveform according to the step-down ac power.

Further, in a vehicle speed measuring device of a bicycle provided in an embodiment of the present application, the voltage limiting circuit includes a first voltage limiting circuit and/or a second voltage limiting circuit. As shown in fig. 3, the voltage limiting circuit 21 includes a first voltage limiting circuit 211 and a second voltage limiting circuit 212, the first voltage limiting circuit 211 is connected in series between the power generating hub and the positive input end of the comparator 22; the second voltage limiting circuit 212 is connected in series between the power generation hub and the negative input terminal of the comparator 22; the first voltage limiting circuit 211 and the second voltage limiting circuit 212 are configured to step down the ac power generated by the power generation hub 10 to output a stepped-down ac power, so that a voltage value of the stepped-down ac power is within an input threshold voltage range of the comparator 22.

Further, in an embodiment of the present application, in a vehicle speed measuring device for a bicycle, the rectifying module further includes an input filtering module and/or an output filtering module. As shown in fig. 4, the rectifying module 20 further includes an input filtering module 23 and an output filtering module 24, wherein the input filtering module 23 is connected in series between the voltage limiting circuit 21 and the input end of the comparator 22, and is configured to filter the alternating current generated by the power generation hub 10; the output filter module 24 is connected to the output end of the comparator 22, and is configured to perform filtering processing on the pulse waveform.

Further, in a vehicle speed measuring device for a bicycle provided in an embodiment of the present application, as shown in fig. 5, the rectifier module 20 further includes a hysteresis resistor 25, and the hysteresis resistor 25 is connected in series between the positive input terminal of the comparator 22 and the output terminal of the comparator 22 for reducing the sensitivity of the comparator 22.

Further, in a vehicle speed measuring device for a bicycle provided in an embodiment of the present application, as shown in fig. 6, the first voltage limiting circuit 211 includes a first voltage limiting diode D1, an anode of the first voltage limiting diode D1 is connected to the positive input terminal of the comparator 22, and a cathode of the first voltage limiting diode D1 is connected to the negative input terminal of the comparator 22.

As an example, as shown in fig. 6, a first voltage limiting resistor R1 may be further provided in series between the power generating hub and the positive input terminal of the comparator 22 for voltage reduction.

As an example, as shown in fig. 6, the second voltage limiting circuit 212 includes a second voltage limiting diode D2, an anode of the second voltage limiting diode D2 is connected to the negative input terminal of the comparator 22, and a cathode of the second voltage limiting diode D2 is connected to the positive input terminal of the comparator 22.

As an example, as shown in fig. 6, a second voltage limiting resistor R2 may be further provided in series between the power generating hub and the negative input terminal of the comparator 22 for voltage reduction.

As an example, as shown in fig. 6, the input filter module 23 includes an input filter resistor R3 and an input filter capacitor C1 connected in parallel, one end of the input filter capacitor C1 is connected to the input terminal of the comparator 22, and the other end of the input filter capacitor C1 is grounded;

as an example, as shown in fig. 6, the output filter module 24 includes an output filter resistor R6 and an output filter capacitor C3 connected in series, one end of the output filter capacitor C3 is connected to the output terminal of the comparator 22 via the output filter resistor R6, and the other end of the output filter capacitor C3 is grounded.

For specific limitations of the vehicle speed measuring device of the bicycle, reference may be made to the above limitations of the vehicle speed measuring method of the bicycle, and details thereof are not repeated herein.

In a bicycle provided in an embodiment of the present application, the bicycle includes a vehicle speed measuring device of the bicycle as described in any of the embodiments of the present application, thereby providing a bicycle capable of accurately sensing a driving speed.

Further, in a bicycle provided in an embodiment of the present application, as shown in fig. 7, the bicycle further includes a power generation hub 10, a pattern information control circuit 30, and a glare wheel (not shown), on which an LED lamp 41 is disposed; the pattern information control circuit 30 is used for controlling the glare wheel 40 to display preset pattern information based on the running speed of the bicycle; the power generation hub 10 is provided on the hub. Through accurately acquiring the speed of travel of bicycle, based on the speed of travel control of bicycle dazzle the wheel and show preset pattern information for dazzle the wheel and can accurately, clearly, stably show preset pattern information, improved user's vision aesthetic feeling and ride and experience.

Further, in a bicycle provided in an embodiment of the present application, the pattern information control circuit is configured to control the switching speed of the LED lamps of the glare wheel to match the driving speed of the bicycle, so that the pattern displayed by the glare wheel is more accurate and stable, thereby improving the visual aesthetic feeling and the user experience of the user.

Specifically, the power generation hub comprises a rotor A consisting of an inner coil and silicon steel sheets and a rotor B consisting of a magnet pair arranged outside the bicycle, wherein the rotor B is fixed with wheels, and the rotor A is fixed with an axle and a frame. When the bicycle is ridden, the rotor A and the rotor B rotate relatively, namely, the coil cuts magnetic lines of force of a magnetic field of the magnet pair of the rotor B, and power generation current is formed. For example, if the rotor B has 14 pairs of magnets with equal distance in one circle and consists of adjacent N and S poles, the coil will generate 14 ac waveforms due to the cutting magnetic field when the wheel rotates one circle, and one of the ac waveforms is shown in fig. 8 below. The AC power output by the power generation hub is input into the rectification module 20 shown IN fig. 6, wherein AC _ IN + and AC _ IN-are AC input terminals, the resistor R1, the diode D1, the resistor R2 and the diode D2 respectively form two sets of voltage limiting circuits, the AC waveform with higher voltage is limited to an input threshold voltage range suitable for the operation of the comparator 22, if the positive input terminal of the comparator 22 inputs the voltage V + and the negative input terminal inputs the voltage V-, the comparator 22 outputs a high level when V + > V-, the comparator 22 outputs a low level when V + < V-, the resistor R5 is an introduced hysteresis, and the sensitivity of the comparator 22 is reduced; the capacitors C1 and C2 and the serially connected resistors form input filter modules respectively to filter out useless input interference signals. The resistors R6 and C3 in the output circuit form an output filtering module for filtering interference signals on the output circuit. VDD is the power supply for the comparator 22 and provides operating power for the comparator. The input ac large voltage is subjected to voltage limiting and filtering and then is input to the input voltage waveform of the comparator 22, a reference waveform is tested by using a circuit shown in fig. 6, the voltage waveform input to the input end of the comparator 22 after voltage limiting is shown in fig. 9, and the waveform after voltage limiting is output as a square wave sequence with high and low inversion after the action of the comparator 22, as shown in fig. 10 below, the amplitude of the square wave pulse input by the comparator is less than 0.5V and is located in the input threshold voltage range of the comparator 22. The square wave sequence illustrated in fig. 10 may be connected to the input port of the processor, and the corresponding real-time vehicle speed may be calculated according to the pulse width of the square wave.

In one embodiment of the present application, there is provided a bicycle provided with a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method described in any of the embodiments of the present application when executing the computer program.

In one embodiment of the present application, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of measuring a vehicle speed of a bicycle. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment of the present application, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: shaping the alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; calculating a travel speed of the bicycle based on the period value.

In one embodiment of the application, the processor when executing the computer program further performs the steps of: shaping the alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:

Figure BDA0002486619850000151

wherein T is the period value of the pulse waveform.

In one embodiment of the application, the processor when executing the computer program further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:wherein T is the period value of the pulse waveform.

In one embodiment of the application, the processor when executing the computer program further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; to what is neededFiltering the pulse waveform; acquiring a period value of the filtered pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:

Figure BDA0002486619850000162

wherein T is the period value of the pulse waveform.

In one embodiment of the application, the processor when executing the computer program further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; filtering the pulse waveform; acquiring a period value of the filtered pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:controlling a glare wheel of the bicycle to display preset pattern information based on the acquired running speed of the bicycle; wherein T is the period value of the pulse waveform.

In one embodiment of the application, the processor when executing the computer program further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; filtering the pulse waveform; acquiring a period value of the filtered pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:controlling the switching speed of an LED lamp of a dazzling wheel to be matched with the driving speed of the bicycle based on the acquired driving speed of the bicycle; wherein T is the period value of the pulse waveform.

In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of: shaping the alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; calculating a travel speed of the bicycle based on the period value.

In one embodiment of the application, the computer program when executed by the processor further performs the steps of: shaping the alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:wherein T is the period value of the pulse waveform.

In one embodiment of the application, the computer program when executed by the processor further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; acquiring a period value of the pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:wherein T is the period value of the pulse waveform.

In one embodiment of the application, the computer program when executed by the processor further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; filtering the pulse waveform; acquiring a period value of the filtered pulse waveform; taking the radius of the wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:

Figure BDA0002486619850000173

wherein T is the period value of the pulse waveform.

In one embodiment of the application, the computer program when executed by the processor further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; filtering the pulse waveform; acquiring a period value of the filtered pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:controlling a glare wheel of the bicycle to display preset pattern information based on the acquired running speed of the bicycle; wherein T is the period value of the pulse waveform.

In one embodiment of the application, the computer program when executed by the processor further performs the steps of: filtering the alternating current; shaping the filtered alternating current to generate a periodic pulse waveform; filtering the pulse waveform; acquiring a period value of the filtered pulse waveform; acquiring the radius of a wheel of the bicycle as r; acquiring the total number n of the magnetic pole pairs of the power generation hub; calculating the running speed v of the bicycle according to the following formula:

Figure BDA0002486619850000181

controlling the switching speed of an LED lamp of a dazzling wheel to be matched with the driving speed of the bicycle based on the acquired driving speed of the bicycle; wherein T is the period value of the pulse waveform.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于变速器输入轴的测速装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!