Adjustable pulse width signal generator for programmable electronic fan testing and operation method thereof
By designing a programmable electronic fan test adjustable pulse width signal generator, and using the Microchip microcontroller to control the core control motherboard, the problems of high cost and uncontrollable traditional signal generators in electronic fan test are solved, and the portability and low-cost PWM signal generator is realized, which is suitable for automotive electronic fans.
Patent Information
- Application Number
- CN202411833776.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-04
AI Technical Summary
In electronic fan testing, traditional PWM signal generators have problems such as high cost, uncontrollable operation, low signal voltage, inability to directly output high levels, and bulky and unportable machine.
An adjustable pulse width signal generator for programmable electronic fan testing is designed, and the Microchip microcontroller controls the core control motherboard is used, including a computing module, a timing module, a communication module and a PWM signal generation module. It is programmed and controlled by the upper computer to achieve portability and low-cost PWM signal generator.
It achieves portability and cost reduction, can output higher level voltage signals, and is adapted to automotive electronic fans, solving multiple pain points of traditional signal generators.
Smart Images

Figure CN119758815A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of signal generators, in particular to an adjustable pulse width signal generator for testing a programmable electronic fan and an operating method thereof. Background Art
[0002] With the increasing development of automotive electronic technology, the functions of automotive brushless motor controllers are becoming increasingly complex, and their functional requirements are gradually improving. Brushless motor controllers often require a large number of speed regulation tests during the research and development and testing phase. Under this working condition, the use of traditional signal generators for speed regulation increases the complexity of the operation. Therefore, it is considered to use a single-chip microcomputer to control the PWM signal and perform programmable control through the host computer system to achieve unmanned speed regulation testing, which solves the pain points of traditional PWM signal generators, such as high cost, uncontrollable and cumbersome operation, low signal voltage, inability to directly output high levels, and bulky and non-portable machines. Summary of the invention
[0003] The object of the present invention is to provide an adjustable pulse width signal generator for testing a programmable electronic fan and an operating method thereof, so as to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: an adjustable pulse width signal generator for testing a programmable electronic fan, comprising a core control mainboard, a power supply circuit module, a program debugging and downloading circuit module and a serial port control circuit module, wherein the power supply circuit module, the program debugging and downloading circuit module and the serial port control circuit module are all connected to the core control mainboard, so the serial port control circuit module is connected to a host computer, and the core control mainboard is connected to a brushless motor controller;
[0005] Wherein, the core control mainboard includes a calculation module, a timing module, a communication module and a PWM signal generation module.
[0006] As a further preferred embodiment of the present technical solution: the core control mainboard is used to provide an operating environment for the entire device, the power supply circuit module uses a DC power supply to supply power to the entire device, and the core control mainboard adopts a Microchip single-chip microcomputer.
[0007] As a further preferred embodiment of the present technical solution: the program debugging and downloading circuit module is used to realize the debugging and downloading requirements of the core control mainboard, the serial port control circuit module is used to realize the data communication function between the core control mainboard and the host computer, the program debugging and downloading circuit module is composed of multiple communication circuits, and the serial port control circuit module is composed of a serial port communication circuit;
[0008] The host computer is used to realize the overall control and programming functions of the device.
[0009] As a further preferred embodiment of the present technical solution: the calculation module is used to calculate the input value required by the core control mainboard of the PWM signal control parameter under the current instruction.
[0010] As a further preferred embodiment of the present technical solution: the timing module realizes precise timing through a core control mainboard, and generates timing interrupts to support the running of time-sensitive programs.
[0011] As a further preferred embodiment of the present technical solution: the communication module is used for the communication control function between the entire device and the host computer.
[0012] As a further preferred embodiment of the present technical solution: the PWM signal generating module generates the actually required PWM signal through the core control mainboard.
[0013] The operating method of the adjustable pulse width signal generator for testing a programmable electronic fan comprises the following steps:
[0014] S1, the module is powered on and the program starts running;
[0015] S2, read the stored PWM signal parameters;
[0016] S3, determine whether the reading is successful;
[0017] S4, after S3 is run, if the reading is successful, the PWM signal is output according to the obtained PWM control parameters;
[0018] S5, after S3 is run, if the reading is not successful, the default PWM control parameters are used to output the PWM signal;
[0019] S6. According to S4-S5, detect whether the host computer control data is received;
[0020] S7, after S6 is executed, if it is detected that no control data from the host computer is received, the calculation module calculates the PWM parameter data and related control information;
[0021] S8, after S7 is executed, the PWM signal generating module outputs a PWM signal according to the input PWM parameters, and returns to S4 to be executed again, and the program ends;
[0022] S9, after running in S6, when the control data of the upper computer is received, it returns to S4 and runs again.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] Compared with traditional signal generators, the programmable adjustable pulse width signal generator for testing electronic fans of the present invention has greatly improved portability, and is based on a Microchip automotive-grade single-chip microcomputer. Compared with traditional signal generators, it has stronger specialization for the electronic fan testing link, so the cost is greatly reduced. At the same time, the present invention has an internal pull-up circuit, which can output a higher level voltage signal than traditional signal generators, and has stronger adaptability to automotive electronic fans, thereby providing a low-cost, programmable, portable PWM signal generator, which is programmed and controlled by a host computer, solving the pain points of high cost, uncontrollable and complicated operation, low signal voltage, inability to directly output a high level, and bulky and non-portable PWM signal generators when testing traditional electronic fans. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the structure of the adjustable pulse width signal generator for testing a programmable electronic fan according to the present invention;
[0026] Figure 2 The present invention is a flowchart of an operation method of an adjustable pulse width signal generator for testing a programmable electronic fan.
[0027] In the figure: 1. Core control main board; 11. Calculation module; 12. Timing module; 13. Communication module; 14. PWM signal generation module; 2. Power supply circuit module; 3. Program debugging and downloading circuit module; 4. Serial port control circuit module; 5. Host computer; 6. Brushless motor controller. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0029] Example 1
[0030] See also Figure 1-Figure 2 The present invention provides a technical solution: an adjustable pulse width signal generator for testing a programmable electronic fan, comprising a core control mainboard 1, a power supply circuit module 2, a program debugging and downloading circuit module 3 and a serial port control circuit module 4, wherein the power supply circuit module 2, the program debugging and downloading circuit module 3 and the serial port control circuit module 4 are all connected to the core control mainboard 1, the serial port control circuit module 4 is connected to a host computer 5, and the core control mainboard 1 is connected to a brushless motor controller 6;
[0031] The core control mainboard 1 includes a calculation module 11 , a timing module 12 , a communication module 13 and a PWM signal generation module 14 .
[0032] The operating method of the adjustable pulse width signal generator for testing a programmable electronic fan comprises the following steps:
[0033] S1, the module is powered on and the program starts running;
[0034] S2, read the stored PWM signal parameters;
[0035] S3, determine whether the reading is successful;
[0036] S4, after S3 is run, if the reading is successful, the PWM signal is output according to the obtained PWM control parameters;
[0037] S5, after S3 is run, if the reading is not successful, the default PWM control parameters are used to output the PWM signal;
[0038] S6. According to S4-S5, detect whether the control data of the host computer 5 is received;
[0039] S7, after S6 is executed, if it is detected that no control data of the host computer 5 is received, the calculation module 11 calculates the PWM parameter data and related control information;
[0040] S8, after S7 is executed, the PWM signal generating module 14 outputs a PWM signal according to the input PWM parameter, and returns to S4 to execute again, and the program ends;
[0041] S9, after S6 is executed, when the control data of the upper computer 5 is detected and received, the process returns to S4 and executes again.
[0042] Example 2
[0043] The programmable electronic fan is tested with an adjustable pulse width signal generator. The core control mainboard 1 is used to provide an operating environment for the entire device. The power supply circuit module 2 uses a DC power supply to supply power to the entire device.
[0044] In this embodiment, specifically: the core control mainboard 1 adopts a Microchip single chip microcomputer.
[0045] In this embodiment, specifically: the program debugging and downloading circuit module 3 is used to realize the debugging and downloading requirements of the core control mainboard 1, and the serial port control circuit module 4 is used to realize the data communication function between the core control mainboard 1 and the host computer 5;
[0046] The host computer 5 is used to realize the overall control and programming functions of the device.
[0047] In this embodiment, specifically: the program debugging and downloading circuit module 3 is composed of multiple communication circuits, the serial port control circuit module 4 is composed of a serial port communication circuit, and the frequency, duty cycle and other parameters of the PWM signal are controlled by the serial port control circuit module 4.
[0048] In this embodiment, specifically: the calculation module 11 is used to calculate the input value required by the PWM signal control parameter core control mainboard 1 under the current instruction.
[0049] In this embodiment, specifically: the timing module 12 realizes accurate timing through the core control motherboard 1, and generates timing interrupts to support the operation of time-sensitive programs.
[0050] In this embodiment, specifically: the communication module 13 is used for the communication control function between the entire device and the host computer 5 .
[0051] In this embodiment, specifically: the PWM signal generating module 14 generates the actually required PWM signal through the core control mainboard 1 .
[0052] Working principle: After the device is powered on, it first obtains the last PWM signal control parameters from the internal FLASH space. If there are no default PWM control parameters, the device will use the default PWM control parameters to output the PWM signal. Then the device will monitor the serial communication data in real time. If the host computer 5 sends PWM signal parameter data, the device will obtain the protocol data through the serial port and parse out the PWM signal parameters required by the host computer 5. Then, according to the PWM signal parameters sent by the host computer 5, the calculation module 11 starts to calculate the program input quantity, and controls the PWM signal generation module 14 parameters according to the input quantity to generate the PWM signal required by the host computer 5.
[0053] If the host computer 5 sends a control programming signal, the device will parse such data and save it to the internal memory space of the core control motherboard 1 until it receives the start execution signal from the host computer 5. The device outputs a PWM signal according to the control requirements based on the control signal sequence to meet the electronic fan test requirements.
[0054] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A programmable electronic fan test adjustable pulse width signal generator, comprising a core control motherboard (1), a power supply circuit module (2), a program debugging and downloading circuit module (3) and a serial port control circuit module (4), characterized in that: The power supply circuit module (2), the program debugging and downloading circuit module (3) and the serial port control circuit module (4) are all connected to the core control mainboard (1), so the serial port control circuit module (4) is connected to the host computer (5), and the core control mainboard (1) is connected to the brushless motor controller (6); The core control mainboard (1) comprises a calculation module (11), a timing module (12), a communication module (13) and a PWM signal generation module (14).
2. The programmable electronic fan test adjustable pulse width signal generator according to claim 1, characterized in that: The core control mainboard (1) is used to provide an operating environment for the entire device, and the power supply circuit module (2) uses a direct current power supply to supply power to the entire device.
3. The programmable electronic fan test adjustable pulse width signal generator according to claim 1, characterized in that: The program debugging and downloading circuit module (3) is used to realize the debugging and downloading requirements of the core control mainboard (1), and the serial port control circuit module (4) is used to realize the data communication function between the core control mainboard (1) and the host computer (5); The host computer (5) is used to realize the overall control and programming functions of the device.
4. The programmable electronic fan test adjustable pulse width signal generator according to claim 1, characterized in that: The calculation module (11) is used to calculate the input value required by the PWM signal control parameter core control mainboard (1) under the current instruction.
5. The adjustable pulse width signal generator for testing a programmable electronic fan according to claim 1, characterized in that: The timing module (12) realizes precise timing through the core control motherboard (1), and generates a timing interrupt to support the operation of time-sensitive programs.
6. The adjustable pulse width signal generator for testing a programmable electronic fan according to claim 1, characterized in that: The communication module (13) is used for the communication control function between the entire device and the host computer (5).
7. The adjustable pulse width signal generator for testing a programmable electronic fan according to claim 1, characterized in that: The PWM signal generating module (14) generates the actually required PWM signal through the core control mainboard (1).
8. The method for operating the adjustable pulse width signal generator for testing a programmable electronic fan is characterized in that: The following steps are involved: S1, the module is powered on and the program starts running; S2, read the stored PWM signal parameters; S3, determine whether the reading is successful; S4, after S3 is run, if the reading is successful, the PWM signal is output according to the obtained PWM control parameters; S5, after S3 is run, if the reading is not successful, the default PWM control parameters are used to output the PWM signal; S6, according to S4-S5, detecting whether control data from the host computer (5) is received; S7, after S6 is executed, when it is detected that no control data is received from the host computer (5), the calculation module (11) calculates PWM parameter data and related control information; S8, after S7 is executed, the PWM signal generating module (14) outputs a PWM signal according to the input PWM parameters, and returns to S4 to be executed again, and the program ends; S9, after S6 is executed, when the control data from the host computer (5) is detected and received, the process returns to S4 and executes again.