Vehicle running speed intelligent display system and method based on power supply of multiple power generation motors
The vehicle running speed intelligent display system powered by multiple generators uses wheel rotation to generate electricity and display the vehicle speed in real time, solving the problems of power supply difficulty and intelligent display in traditional methods, simplifying the circuit and improving user experience.
Patent Information
- Application Number
- CN202410868905.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
AI Technical Summary
The traditional wheel speed measurement method requires additional power supply, which increases the difficulty of circuit design and installation, and cannot achieve intelligent and colorful lighting effects.
The intelligent display system for vehicle running speed using multi-generator motors connects the three-phase AC generator set to the vehicle wheels, uses the rotation of the wheels to generate electricity, converts it into DC power supply for MCU power, and displays the wheels in real time through mathematical models and PWM signal models. Speed, using RGB-LED to achieve colorful lighting effects.
The circuit structure is simplified, the cost is reduced, the dependence on the encoder is reduced, the intelligent vehicle running speed display is realized, and the user experience is improved.
Smart Images

Figure CN118700960A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field related to automotive electronics and electronic measurement, and in particular to a vehicle running speed intelligent display system and method based on multi-generator power supply. Background Art
[0002] With the rapid development of intelligent technology and automotive electronics technology, various ambient lights with different functions and effects have appeared on the market, and people have higher requirements for the lighting effects inside and outside the car. The traditional wheel speed measurement method is usually based on encoder speed measurement, which requires a power supply to power its processor and other circuit components, which increases the difficulty of circuit design and installation.
[0003] At the same time, RGB-LED can emit a variety of colors, and has the characteristics of high stability and fast response time, and is increasingly used in various intelligent display tasks. Applying RGB-LED to automotive electronic systems can not only achieve colorful lighting effects, but also improve the intelligence and efficiency of the system. Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the deficiencies of the prior art and to provide a vehicle running speed intelligent display system and method based on multi-generator power supply.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] Specifically, a method for intelligently displaying vehicle running speed based on multiple generator power supply is proposed, including the following:
[0007] The generator set of the power supply circuit is pre-connected to the wheels of the target vehicle. The generator set is composed of multiple motors of the same type, all of which are three-phase AC generators. The multiple motors are structurally connected and fixed so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity. The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheel rotates to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU.
[0008] The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage;
[0009] Obtaining the voltage value A1 collected by ADC1 inside the MCU at every preset period;
[0010] The voltage value A1 is converted into the motor speed by using a pre-established mathematical model of the wheel speed and the output voltage of the generator motor;
[0011] Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
[0012] Further, specifically, the pre-established mathematical model of wheel speed and generator motor output voltage includes:
[0013] Y = aX0-b;
[0014] Where X0 is the motor speed, in revolutions per second, Y is the voltage value of the DC power supply converted by the three-phase voltage generated by the generator motor through the rectifier circuit, in volts, a and b are constant coefficients, obtained by fitting the data of the motor speed X0 and Y;
[0015] Convert the above formula to kilometers per hour, and we get:
[0016] Y = a1X0-b1;
[0017] The calculation formula of Y is as follows,
[0018]
[0019] Further, specifically, the a is 0.9469 and the corresponding b is 1.5648, and the associated a1 is 0.1136 and the corresponding b1 is 1.5648.
[0020] Further, specifically, the pre-established PWM signal model includes,
[0021] The MCU outputs 6 independent PWM signals through the pulse modulation module (PWM). Every 3 PWM signals control 2 RGB-LED lights at the same time. There are 4 RGB-LEDs in the system. The duty cycle of the PWM signal satisfies the following formula:
[0022]
[0023] Among them, GREEN, BLUE, and RED represent the duty cycle of each of the three PWM signals respectively. By controlling the six PWM waves to output voltage signals with different duty cycles, the four RGB-LEDs will change from green to blue and then to red as the wheel speed increases, and the brightness will increase as the speed in each interval increases, until it reaches 120 kilometers per hour and becomes bright red.
[0024] Further, specifically, the process of obtaining the constant coefficient by fitting the data of the motor speed X0 and Y includes:
[0025] Define loss function, defloss_func(y_pred,y_true), return np.mean((y_pred-y_true)**2);
[0026] Define the constant coefficient calculation function, defgradient_descent(X0,Y,lr,num_iter), where lr is the learning rate, num_iter is the number of iterations, and initialize the parameters a,b=0.0,0.0, for_in range(num_iter),
[0027] Calculate the predicted value,
[0028] y_pred=a*X0+b,
[0029] Update the gradient,
[0030] da=-2*np.mean((y_pred-Y)*X0)
[0031] db = -2*np.mean(y_pred-Y)
[0032] Update parameters,
[0033] a-=lr*da
[0034] b-=lr*db,
[0035] return a,b;
[0036] Get the data of X0 and Y measured by multiple sets of experiments and set the learning rate lr and the number of iterations num_iter;
[0037] Based on the data of X0 and Y measured by multiple sets of experiments, the constant coefficient calculation function is run, that is, a, b =
[0038] gradient_descent(X0,y,lr,num_iter), get the final constant coefficients a,b.
[0039] The present invention also proposes a vehicle running speed intelligent display system based on multiple generators and motors, and applies a vehicle running speed intelligent display method based on multiple generators and motors, including the following:
[0040] The generator set is connected to the wheels of the target vehicle. The generator set is composed of multiple motors of the same type. The motors are all three-phase AC generators. The multiple motors are connected and fixed in the structure so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity.
[0041] The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheels rotate to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU.
[0042] The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage;
[0043] MCU, used to obtain the voltage value A1 collected by ADC1 inside the MCU at every preset period,
[0044] The voltage value A1 is converted into the motor speed by using the pre-established mathematical model of the wheel speed and the output voltage of the generator motor.
[0045] Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
[0046] Further, specifically, the three-phase alternating current is converted into a direct current power supply through a three-phase bridge-type fully-controlled rectifier circuit, and the three-phase bridge-type fully-controlled rectifier circuit includes 6 rectifier diodes and an electrolytic capacitor.
[0047] Further, specifically, the power management module includes an LT1761 voltage regulator module, wherein the DC voltage generated by the generator set is converted into a 3V DC power supply through LT1761-3, and the 3V power supply generated by the power management module is converted into a 1.5V reference voltage A2 through LT1761-1.5.
[0048] Furthermore, specifically, by configuring a timer interrupt in the MCU, the voltage value collected by ADC1 is obtained at fixed intervals.
[0049] The beneficial effects of the present invention are:
[0050] The vehicle running speed intelligent display method based on multiple generators provided by the present invention does not require additional power supply and has a relatively simple circuit structure. The system drives multiple generators to generate electricity through the wheels of the vehicle, directly providing the required power for the system. The voltage value of the generator is collected by a microcontroller, and the wheel speed is calculated according to the fitted vehicle speed-voltage model, thereby reducing the dependence on the encoder. A variety of lighting effects are intelligently displayed according to the current wheel speed. This design not only simplifies the circuit structure and reduces costs, but also improves the intelligence of the system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The above and other features of the present disclosure will become more obvious by describing in detail the embodiments shown in the accompanying drawings. The same reference numerals in the accompanying drawings of the present disclosure represent the same or similar output voltages. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure. For those skilled in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work. In the accompanying drawings:
[0052] Figure 1 It is a structural diagram of a multi-generator self-powered wheel speed intelligent display circuit system.
[0053] Figure 2 It is a three-dimensional view schematic diagram of the multi-generator self-powered wheel speed intelligent display circuit system PCB.
[0054] Figure 3 It is a structure where the output power of multiple generator motors is connected in series.
[0055] Figure 4 It is a front view of a connection structure of multiple generator motors.
[0056] Figure 5 It is a side view of a connection structure of multiple generator motors.
[0057] Figure 6 It is a schematic diagram of the power management module.
[0058] Figure 7 This is a reference power module schematic.
[0059] Figure 8 It is a logic block diagram of program operation in the microcontroller.
[0060] Fig. 9 It is the vehicle speed-voltage model curve.
[0061] Fig.10 This is a schematic diagram of the system installation location. DETAILED DESCRIPTION
[0062] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other without conflict. The same reference numerals used throughout the drawings indicate the same or similar parts.
[0063] Reference Figure 8 Embodiment 1: The present invention proposes a vehicle running speed intelligent display method based on multiple generators, comprising the following:
[0064] The generator set of the power supply circuit is pre-connected to the wheels of the target vehicle. The generator set is composed of multiple motors of the same type, all of which are three-phase AC generators. The multiple motors are structurally connected and fixed so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity. The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheel rotates to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU.
[0065] The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage;
[0066] Obtaining the voltage value A1 collected by ADC1 inside the MCU at every preset period;
[0067] The voltage value A1 is converted into the motor speed by using a pre-established mathematical model of the wheel speed and the output voltage of the generator motor;
[0068] Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
[0069] As a preferred embodiment of the present invention, specifically, the pre-established mathematical model of wheel speed and generator motor output voltage includes:
[0070] Y = aX0-b;
[0071] Where X0 is the motor speed, in revolutions per second, Y is the voltage value of the DC power supply converted by the three-phase voltage generated by the generator motor through the rectifier circuit, in volts, a and b are constant coefficients, obtained by fitting the data of the motor speed X0 and Y;
[0072] Convert the above formula to kilometers per hour, and we get:
[0073] Y = a1X0-b1;
[0074] The calculation formula of Y is as follows,
[0075]
[0076] Reference Fig. 9 As a preferred embodiment of the present invention, specifically, a is 0.9469 and the corresponding b is 1.5648, and the associated a1 is 0.1136 and the corresponding b1 is 1.5648.
[0077] As a preferred embodiment of the present invention, specifically, the pre-established PWM signal model includes:
[0078] The MCU outputs 6 independent PWM signals through the pulse modulation module (PWM). Every 3 PWM signals control 2 RGB-LED lights at the same time. There are 4 RGB-LEDs in the system. The duty cycle of the PWM signal satisfies the following formula:
[0079]
[0080] Among them, GREEN, BLUE, and RED represent the duty cycle of each of the three PWM signals respectively. By controlling the six PWM waves to output voltage signals with different duty cycles, the four RGB-LEDs will change from green to blue and then to red as the wheel speed increases, and the brightness will increase as the speed in each interval increases, until it reaches 120 kilometers per hour and becomes bright red.
[0081] As a preferred embodiment of the present invention, specifically, the process of obtaining the constant coefficient by fitting the data of the motor speed X0 and Y includes:
[0082] Define loss function, defloss_func(y_pred,y_true), return np.mean((y_pred-y_true)**2);
[0083] Define the constant coefficient calculation function, defgradient_descent(X0,Y,lr,num_iter), where lr is the learning rate, num_iter is the number of iterations, and initialize the parameters a,b=0.0,0.0, for_in range(num_iter),
[0084] Calculate the predicted value,
[0085] y_pred=a*X0+b,
[0086] Update the gradient,
[0087] da=-2*np.mean((y_pred-Y)*X0)
[0088] db = -2*np.mean(y_pred-Y)
[0089] Update parameters,
[0090] a-=lr*da
[0091] b-=lr*db,
[0092] return a,b;
[0093] Get the data of X0 and Y measured by multiple sets of experiments and set the learning rate lr and the number of iterations num_iter;
[0094] Based on the data of X0 and Y measured by multiple sets of experiments, the constant coefficient calculation function is run, that is, a, b =
[0095] gradient_descent(X0,y,lr,num_iter), get the final constant coefficients a,b.
[0096] In this preferred embodiment, the final fitting straight line can be accurately measured based on the gradient descent method in the above manner. The relevant running code in one preferred embodiment is as follows:
[0097] import numpy as np
[0098] #Define loss function
[0099] defloss_func(y_pred,y_true):
[0100] return np.mean((y_pred-y_true)**2)
[0101] #Define the gradient descent function
[0102] defgradient_descent(X0,Y,lr,num_iter):
[0103] # Initialization parameters
[0104] a,b=0.0,0.0
[0105] for_in range(num_iter):
[0106] # Calculate the predicted value
[0107] y_pred=a*X0+b
[0108] #Calculate gradients
[0109] dm=-2*np.mean((y_pred-Y)*X0)
[0110] db = -2*np.mean(y_pred-Y)
[0111] #Update parameters
[0112] a-=lr*da
[0113] b-=lr*db
[0114] return a,b
[0115] #Prepare data
[0116] X0 = np.array([sample data X0])
[0117] Y = np.array([number of sample data Y corresponding to X0])
[0118] #Set the learning rate and number of iterations
[0119] lr=0.01
[0120] num_iter=1000
[0121] # Run the gradient descent method
[0122] m,b=gradient_descent(X0,Y,lr,num_iter)
[0123] # Output the parameters of the fitted line
[0124] print("Slope:",a)
[0125] print("Intercept:",b).
[0126] The present invention also proposes a vehicle running speed intelligent display system based on multiple generators and motors, and applies a vehicle running speed intelligent display method based on multiple generators and motors, including the following:
[0127] The generator set is connected to the wheels of the target vehicle. The generator set is composed of multiple motors of the same type. The motors are all three-phase AC generators. The multiple motors are connected and fixed in the structure so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity.
[0128] The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheels rotate to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU.
[0129] The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage;
[0130] MCU, used to obtain the voltage value A1 collected by ADC1 inside the MCU at every preset period,
[0131] The voltage value A1 is converted into the motor speed by using the pre-established mathematical model of the wheel speed and the output voltage of the generator motor.
[0132] Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
[0133] As a preferred embodiment of the present invention, specifically, the three-phase alternating current is converted into a direct current power supply by a three-phase bridge-type fully-controlled rectifier circuit, and the three-phase bridge-type fully-controlled rectifier circuit includes 6 rectifier diodes and an electrolytic capacitor.
[0134] Reference Figure 7 As a preferred embodiment of the present invention, specifically, the power management module includes an LT1761 voltage regulator module, wherein the DC voltage generated by the generator set is converted into a 3V DC power supply through LT1761-3, and the 3V power supply generated by the power management module is converted into a 1.5V reference voltage A2 through LT1761-1.5.
[0135] As a preferred implementation mode of the present invention, specifically, a timer is set in the MCU to configure a timer interrupt, and the voltage value collected by ADC1 is obtained at fixed intervals.
[0136] Specifically, the construction idea of a specific preferred example of the whole system is as follows:
[0137] 1. Multiple generators are connected and the output power is connected in series to obtain the system power supply.
[0138] The front view of the connection structure of multiple generator motors is as follows Figure 4 As shown. A single motor consists of a turntable, a rotating shaft, a fixed seat and a counterweight, in which the counterweight provides downward gravity to the fixed seat. When the rotating shaft rotates, the turntable rotates with it, and the fixed seat remains stationary, thereby achieving the function of generating electricity. The structure of the connection between the two generator motors is shown in Figure 5 As shown, the two rotating discs are connected by welding, and the two fixed seats are connected by a counterweight. When the rotating shaft rotates, the two rotating discs rotate with it, and the fixed seats remain stationary, thus realizing the power generation function. Figure 3 As shown, generator motor 1 and generator motor 2 obtain DC power through three-phase DC conversion modules respectively, and then obtain the power supply of the system through the series connection of two DC power supplies. The three-phase AC to DC power generated by the generator motor is converted into DC power through the FR107 rectifier diode, such as Figure 3 As shown in D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, and D12, the DC power supplies Vin1 and Vin2 are filtered through 470 microfarad electrolytic capacitors C1 and C2. The system power supply Vin3 is obtained by connecting Vin1 and Vin2 in series.
[0139] 2. The power management module provides a stable voltage for the microcontroller and a reference voltage Vref for the ADC
[0140] Power management module such as Figure 6 As shown, the DC power Vin3 generated by the generator motor outputs a 3V DC power supply VDD through the LT1761-3 voltage regulator module to provide a stable voltage for the microcontroller (MCU). Among them, capacitor C3 is a 1 microfarad capacitor used for input power filtering, C4 is a 10 nanofarad ceramic chip capacitor, and C5 is a 10 microfarad capacitor used for output power filtering.
[0141] 3. The reference power module circuit provides a stable reference voltage for the system
[0142] The LT1761-1.5 voltage regulator module is used to convert the 3 volt voltage output by the LT1761-3 voltage regulator module into a 1.5 volt voltage, which is input into ADC2 in the microcontroller to provide a fixed reference voltage for the system.
[0143] 4. The microcontroller obtains the voltage generated by the generator motor
[0144] like Figure 1 As shown in the figure, the multi-generator self-powered wheel speed intelligent display circuit system consists of two generators, two three-phase AC to DC modules, voltage-dividing resistors, a power management module, a reference power module, a microcontroller part and four RGB-LED parts. Since the voltage generated by the generator is relatively large, a 20 kilo-ohm resistor R2 and a 180 kilo-ohm R1 are used to form a voltage-dividing circuit, and Vin3 is reduced to one-tenth of the original value before being connected to ADC1. Figure 2 This is a PCB three-dimensional schematic diagram of the multi-generator self-powered wheel speed intelligent display circuit system.
[0145] 5. The microcontroller obtains the vehicle speed based on the voltage-speed model and controls the ambient light to display different effects
[0146] Figure 6 This is a logic diagram of the program running in the microcontroller. After the program starts running, it first initializes the ADC module and PWM peripherals, including setting the sampling frequency and number of sampling channels of the ADC, setting the output frequency, number of output channels, output mode selection and duty cycle of the PWM signal. Then, the voltage collected by ADC1 and 2 is obtained 100 times to take the average value, and the current vehicle speed is calculated based on the voltage-speed model through the collected voltage value. Finally, the built-in PWM module of the microcontroller intelligently controls the RGB-LED lights to display different effects based on the current vehicle speed. The multi-generator self-powered wheel speed intelligent display circuit system proposed in the present invention is installed in the middle of the car wheel, and the installation position is as follows: Fig.10 shown.
[0147] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
[0148] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0149] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0150] Although the description of the present invention has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims in view of the prior art by reference to the appended claims, thereby effectively covering the intended scope of the present invention. In addition, the above description of the present invention is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present invention that have not yet been foreseen may still represent equivalent changes to the present invention.
[0151] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, it should belong to the protection scope of the present invention. Within the protection scope of the present invention, its technical scheme and / or implementation method can have various modifications and changes.
Claims
1. A vehicle running speed intelligent display method based on multiple generator power supply, characterized in that: Includes the following: The generator set of the power supply circuit is pre-connected to the wheels of the target vehicle. The generator set is composed of multiple motors of the same type, all of which are three-phase AC generators. The multiple motors are structurally connected and fixed so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity. The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheel rotates to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU. The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage; Obtaining the voltage value A1 collected by ADC1 inside the MCU at every preset period; The voltage value A1 is converted into the motor speed by using a pre-established mathematical model of the wheel speed and the output voltage of the generator motor; Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
2. The method for intelligently displaying vehicle running speed based on multiple generator power supply according to claim 1 is characterized in that: Specifically, the pre-established mathematical model of wheel speed and generator motor output voltage includes: Y = aX0-b; Where X0 is the motor speed, in revolutions per second, Y is the voltage value of the DC power supply converted by the three-phase voltage generated by the generator motor through the rectifier circuit, in volts, a and b are constant coefficients, obtained by fitting the data of the motor speed X0 and Y; Convert the above formula to kilometers per hour, and we get: Y = a1X0-b1; The calculation formula of Y is as follows, 3. The method for intelligently displaying vehicle running speed based on multiple generator power supply according to claim 2 is characterized in that: Specifically, a is 0.9469 and the corresponding b is 1.5648, and the associated a1 is 0.1136 and the corresponding b1 is 1.5648.
4. The method for intelligently displaying vehicle running speed based on multiple generator power supply according to claim 2 is characterized in that: Specifically, the pre-established PWM signal models include: The MCU outputs 6 independent PWM signals through the pulse modulation module (PWM). Every 3 PWM signals control 2 RGB-LED lights at the same time. There are 4 RGB-LEDs in the system. The duty cycle of the PWM signal satisfies the following formula: Among them, GREEN, BLUE, and RED represent the duty cycle of each of the three PWM signals respectively. By controlling the six PWM waves to output voltage signals with different duty cycles, the four RGB-LEDs will change from green to blue and then to red as the wheel speed increases, and the brightness will increase as the speed in each interval increases, until it reaches 120 kilometers per hour and becomes bright red.
5. The method for intelligently displaying vehicle running speed based on multiple generator power supply according to claim 2 is characterized in that: Specifically, the process of obtaining the constant coefficient by fitting the data of the motor speed X0 and Y includes: Define loss function, defloss_func(y_pred,y_true), return np.mean((y_pred-y_true)**2); Define the constant coefficient calculation function, defgradient_descent(X0,Y,lr,num_iter), where lr is the learning rate, num_iter is the number of iterations, and the parameters a, b are initialized to 0.0, 0.0, for_in range(num_iter), Calculate the predicted value, y_pred=a*X0+b, Update the gradient, da=-2*np.mean((y_pred-Y)*X0) db = -2*np.mean(y_pred-Y) Update parameters, a-=lr*da b-=lr*db, return a,b; Get the data of X0 and Y measured by multiple sets of experiments and set the learning rate lr and the number of iterations num_iter; Based on the data of X0 and Y measured by multiple sets of experiments, the constant coefficient calculation function is run, that is, a, b = gradient_descent (X0, y, lr, num_iter) is run to obtain the final constant coefficients a, b.
6. The vehicle running speed intelligent display system based on multiple generator power supply is characterized by: A method for intelligently displaying vehicle running speed based on power supply of multiple generators according to any one of claims 1 to 5 above is applied, comprising the following: A generator set is connected to the wheels of the target vehicle, the generator set is composed of multiple motors of the same type, all of which are three-phase AC generators. The multiple motors are structurally connected and fixed so that when the shaft rotates, the multiple motors rotate synchronously to generate electricity; The power supply circuit is used to convert the three-phase AC power into a DC power supply when the wheels rotate to drive the generator set to rotate and generate three-phase AC power. The DC power supply is used to power the MCU. The DC power supply is converted into two voltages, a first voltage and a second voltage, through a power management module, wherein the first voltage is used to power the MCU, and the second voltage is input into ADC2, and the voltage value A2 collected by ADC2 is used as a reference voltage; MCU, used to obtain the voltage value A1 collected by ADC1 inside the MCU at every preset period, The voltage value A1 is converted into the motor speed by using the pre-established mathematical model of the wheel speed and the output voltage of the generator motor. Based on the pre-established PWM signal model, the motor speed is displayed in real time and visualized by lighting up the RGB-LED.
7. The vehicle running speed intelligent display system based on multiple generator power supply according to claim 6 is characterized in that: Specifically, the three-phase alternating current is converted into a direct current power supply by a three-phase bridge-type fully-controlled rectifier circuit, and the three-phase bridge-type fully-controlled rectifier circuit includes 6 rectifier diodes and an electrolytic capacitor.
8. The vehicle running speed intelligent display system based on multiple generator power supply according to claim 6 is characterized in that: Specifically, the power management module includes an LT1761 voltage regulator module, wherein the DC voltage generated by the generator set is converted into a 3V DC power supply through LT1761-3, and the 3V power supply generated by the power management module is converted into a 1.5V reference voltage A2 through LT1761-1.
5.
9. The vehicle running speed intelligent display system based on multiple generator power supply according to claim 6 is characterized in that: Specifically, by configuring a timer interrupt in the MCU, the voltage value collected by ADC1 is obtained at fixed intervals.
