CN113938078A - Method for controlling vibration of vehicle-mounted product based on simulation output sine wave - Google Patents

Method for controlling vibration of vehicle-mounted product based on simulation output sine wave Download PDF

Info

Publication number
CN113938078A
CN113938078A CN202111036432.4A CN202111036432A CN113938078A CN 113938078 A CN113938078 A CN 113938078A CN 202111036432 A CN202111036432 A CN 202111036432A CN 113938078 A CN113938078 A CN 113938078A
Authority
CN
China
Prior art keywords
vibration
motor
vehicle
controlling
sine wave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111036432.4A
Other languages
Chinese (zh)
Inventor
刘龙细
黎家业
张顺聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN202111036432.4A priority Critical patent/CN113938078A/en
Publication of CN113938078A publication Critical patent/CN113938078A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P1/00Arrangements for starting electric motors or dynamo-electric converters
    • H02P1/16Arrangements for starting electric motors or dynamo-electric converters for starting dynamo-electric motors or dynamo-electric converters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/04Arrangements or methods for the control of AC motors characterised by a control method other than vector control specially adapted for damping motor oscillations, e.g. for reducing hunting
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The invention relates to the technical field of vehicle-mounted product vibration testing, in particular to a method for controlling vehicle-mounted product vibration based on simulation output sine waves, which comprises the following steps: s1, presetting a motor vibration period T and an equal division N of a duty ratio; and S2, starting the motor, controlling the motor to reversely rotate when the starting time length reaches half of the vibration period T, and finishing after the duty ratio frequency of the PWM signal is set according to a first preset formula. The invention solves the problems that the vibration feedback of the existing vehicle-mounted product is mainly vibration generated by periodically switching on and off to drive the electromagnet to attract, but the vibration represented by the mode is not fine and smooth enough, the noise is obvious, and the defects can be avoided if sine wave control is selected, but the existing single chip microcomputer cannot output sine waves, and a peripheral circuit is required to be additionally arranged, so that the vibration detection cost is high.

Description

Method for controlling vibration of vehicle-mounted product based on simulation output sine wave
Technical Field
The invention relates to the technical field of vehicle-mounted product vibration testing, in particular to a method for controlling vehicle-mounted product vibration based on simulation output sine waves.
Background
With the improvement of living standard of people and the rapid increase of the popularization rate of automobiles, the demand of vehicle-mounted products on vibration feedback is increasingly strong. The vehicle-mounted product can adopt various vibration test modes to determine the mechanical weakness of the product subjected to simple harmonic vibration and the specific function degradation situation.
The existing vibration feedback of vehicle-mounted products is mainly vibration generated by periodically switching on and off to electrically drive the electromagnet to suck, but the vibration represented by the mode is not fine and smooth enough, the noise is obvious, and the defects can be avoided if sine wave control is selected.
Therefore, a method for controlling the vibration of the vehicle-mounted product based on the analog output sine wave is developed.
Disclosure of Invention
The invention provides a method for controlling vibration of a vehicle-mounted product based on analog output sine waves, which mainly solves the problems that the vibration feedback of the existing vehicle-mounted product is mainly vibration generated by driving an electromagnet to be attracted through periodic power on and power off, but the vibration represented by the method is not fine and smooth enough and has obvious noise, and if sine wave control is adopted, the defects can be overcome, but the existing single chip microcomputer cannot output sine waves, and an external circuit is required to be additionally arranged, so that the vibration detection cost is high.
The invention provides a method for controlling vibration of a vehicle-mounted product based on a simulated output sine wave, which comprises the following steps of:
s1, presetting a motor vibration period T and an equal division N of a duty ratio;
and S2, starting the motor, controlling the motor to reversely rotate when the starting time length reaches half of the vibration period T, and finishing after the duty ratio frequency of the PWM signal is set according to a first preset formula.
Preferably, the step S1 specifically includes:
s11, presetting a motor vibration period T and an equal division N of a duty ratio;
and S12, judging whether the motor vibration period T and the equal division N of the duty ratio need to be reset, if so, updating the motor vibration period T and the equal division N of the duty ratio, and then executing the step S12 again. If not, go to step S2.
Preferably, step S2 specifically includes:
s21, starting the motor;
s22, calculating whether the starting time length reaches half of the vibration period T, if so, controlling the motor to reversely rotate and executing the next step, and if not, circularly executing the step;
s23, setting the duty ratio frequency of the PWM signal according to the first preset formula;
and S24, ending.
Preferably, the step S21 specifically includes starting the motor and the timer;
in the step S22, it is calculated whether the start time length reaches half of the vibration period T, specifically, whether the timing time length of the timer reaches half of the vibration period T is obtained.
Preferably, in step S2, the first preset formula is specifically,
Figure BDA0003247332920000031
wherein f is the duty cycle frequency of the PWM signal.
Preferably, the vibration period T in the steps S1 and S2 is 20 ms;
the duty cycle in the steps S1 and S2 is equal to 256;
in the step S2, the calculation is performed according to the first preset formula
Figure BDA0003247332920000032
From the above, the following beneficial effects can be obtained by applying the technical scheme provided by the invention:
the method for simulating the output of the sine wave provided by the invention is mainly output in a software mode, ensures that the vibration hand feeling is more exquisite and comfortable, reduces the vibration noise, avoids arranging an external circuit and reduces the test cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram illustrating voltage versus time in an analog output method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a relationship between a power-on time and an output voltage of a motor in an analog output method according to an embodiment of the present invention;
FIG. 3 is a power curve diagram of a motor in the simulation output method according to an embodiment of the present invention;
FIG. 4 is a flowchart of an analog output method according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
The existing vibration feedback of vehicle-mounted products is mainly vibration generated by periodically switching on and off to electrically drive an electromagnet to suck, but the vibration represented by the mode is not fine and smooth enough, the noise is obvious, and the defects can be overcome if sine wave control is selected.
As shown in fig. 1 to 4, in order to solve the above problem, the present embodiment proposes a method for controlling vibration of an on-vehicle product based on an analog output sine wave, which mainly includes the following steps:
s1, presetting an equal division N of the vibration period and the duty ratio of the motor;
and S2, starting the motor, controlling the motor to reversely rotate when the starting time length reaches half of the vibration period T, and finishing after the duty ratio frequency of the PWM signal is set according to a first preset formula.
Preferably, but not limited to, in the present embodiment, the motor vibration period T is set to 20ms, that is, the output period of the PWM signal according to the actual usage environment
Figure BDA0003247332920000041
The number N of duty cycle halves is set to 256, i.e. the duty cycle change step
Figure BDA0003247332920000042
In the present embodiment, in step S2, the motor is controlled to rotate reversely when the starting time period reaches 10ms, and preferably when the starting time period reaches 20ms, the PWM signal stops being output, and the duty ratio is gradually decreased after being increased according to the specified step size in the whole process, similarly to the form of a sine wave.
More specifically, step S1 specifically includes:
s11, presetting a motor vibration period T and an equal division N of a duty ratio;
s12, judging whether the motor vibration period T and the equal division N of the duty ratio need to be reset, if yes, updating the motor vibration period T and the equal division N of the vacuum ratio, and then executing the step S12 again, otherwise, executing the step S2.
In this embodiment, different vibration periods T and different equal duty cycle numbers N should be selected for different vehicle-mounted products, so that the method of this embodiment can output different vibration periods T and different equal duty cycle numbers N for different products, can initiate an inquiry to a user in a pop-up window manner before each detection is started, and if there is a modification, input the vibration periods T and the equal duty cycle numbers N in another pop-up window manner, and perform simulation after storing the vibration periods T and the equal duty cycle numbers N that are input again.
More specifically, step S2 specifically includes:
s21, starting the motor;
s22, calculating whether the starting time length reaches half of the vibration period T, if so, controlling the motor to reversely rotate and executing the next step, and if not, circularly executing the step;
s23, setting the duty ratio frequency of the PWM signal according to a first preset formula;
and S24, ending.
Preferably, step S21 in this embodiment specifically includes starting a motor and a timer;
in step S22, it is calculated whether the start time length reaches half of the vibration period T, specifically, whether the timing time length of the timer reaches half of the vibration period T is obtained.
In this embodiment, when the vibration period T is 20ms, the timer counts the time for 10ms to control the motor to rotate reversely, so the timer may be set to be a 1ms timer, 10ms when counting 10 times, and cleared when the timer expires 20 ms.
In this embodiment, a 1 μ s timer may be further provided for calculating the duty cycle change of the PWM signal, one duty cycle per 20 μ s, with a step size of change of
Figure BDA0003247332920000061
The output frequency is fixed at 50 KHz.
In summary, the present embodiment provides a method for controlling vibration of a vehicle-mounted product based on an analog output sine wave, which changes a duty ratio mainly through a software analog output manner, and the larger the duty ratio is, the longer the power-on time in unit time is, and the stronger the vibration sense is, so that the power-on time and the output voltage of a motor are approximately equivalent to a sine wave, thereby avoiding an external circuit and reducing the test cost.
The above-described embodiments do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the above-described embodiments should be included in the protection scope of the technical solution.

Claims (6)

1. A method for controlling vibration of a vehicle-mounted product based on a simulated output sine wave is characterized by comprising the following steps:
s1, presetting a motor vibration period T and an equal division N of a duty ratio;
and S2, starting the motor, controlling the motor to reversely rotate when the starting time length reaches half of the vibration period T, and finishing after the duty ratio frequency of the PWM signal is set according to a first preset formula.
2. The method for controlling vibration of vehicle products based on analog output sine wave according to claim 1, wherein said step S1 specifically comprises:
s11, presetting a motor vibration period T and an equal division N of a duty ratio;
and S12, judging whether the motor vibration period T and the equal division N of the duty ratio need to be reset, if so, updating the motor vibration period T and the equal division N of the duty ratio and then executing the step S12 again, and if not, executing the step S2.
3. The method for controlling vibration of vehicle products based on analog output sine wave according to claim 2, wherein step S2 specifically comprises:
s21, starting the motor;
s22, calculating whether the starting time length reaches half of the vibration period T, if so, controlling the motor to reversely rotate and executing the next step, and if not, circularly executing the step;
s23, setting the duty ratio frequency of the PWM signal according to the first preset formula;
and S24, ending.
4. The method of claim 3, wherein the step of controlling the vibration of the vehicle product based on the analog output sine wave comprises:
the step S21 specifically includes starting the motor and the timer;
in the step S22, it is calculated whether the start time length reaches half of the vibration period T, specifically, whether the timing time length of the timer reaches half of the vibration period T is obtained.
5. The method for controlling the vibration of the vehicle-mounted product based on the analog output sine wave as claimed in any one of claims 1 to 4, wherein:
in step S2, the first preset formula is specifically,
Figure FDA0003247332910000021
wherein f is the duty cycle frequency of the PWM signal.
6. The method of claim 5, wherein the step of controlling the vibration of the vehicle product based on the analog output sine wave comprises:
the vibration period T in the steps S1 and S2 is 20 ms;
the duty cycle in the steps S1 and S2 is equal to 256;
in the step S2, the calculation is performed according to the first preset formula
Figure FDA0003247332910000022
CN202111036432.4A 2021-09-06 2021-09-06 Method for controlling vibration of vehicle-mounted product based on simulation output sine wave Pending CN113938078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111036432.4A CN113938078A (en) 2021-09-06 2021-09-06 Method for controlling vibration of vehicle-mounted product based on simulation output sine wave

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111036432.4A CN113938078A (en) 2021-09-06 2021-09-06 Method for controlling vibration of vehicle-mounted product based on simulation output sine wave

Publications (1)

Publication Number Publication Date
CN113938078A true CN113938078A (en) 2022-01-14

Family

ID=79275087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111036432.4A Pending CN113938078A (en) 2021-09-06 2021-09-06 Method for controlling vibration of vehicle-mounted product based on simulation output sine wave

Country Status (1)

Country Link
CN (1) CN113938078A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895253A (en) * 2010-06-18 2010-11-24 中国航天科技集团公司第五研究院第五一三研究所 Refrigeration control method realized by sinusoidal pulse width modulation
US20150069939A1 (en) * 2013-09-11 2015-03-12 Qualcomm Incorporated Circuits and methods for driving resonant actuators
CN104506111A (en) * 2014-12-16 2015-04-08 广东美的环境电器制造有限公司 Fan, and oscillation control method and oscillation control device for fan
CN111049429A (en) * 2019-06-11 2020-04-21 宁波华斯特林电机制造有限公司 Soft start control system of Stirling motor and Stirling refrigerator
CN112803866A (en) * 2021-02-26 2021-05-14 依必安派特风机(上海)有限公司 Motor sine wave drive control method and system and motor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895253A (en) * 2010-06-18 2010-11-24 中国航天科技集团公司第五研究院第五一三研究所 Refrigeration control method realized by sinusoidal pulse width modulation
US20150069939A1 (en) * 2013-09-11 2015-03-12 Qualcomm Incorporated Circuits and methods for driving resonant actuators
CN104506111A (en) * 2014-12-16 2015-04-08 广东美的环境电器制造有限公司 Fan, and oscillation control method and oscillation control device for fan
CN111049429A (en) * 2019-06-11 2020-04-21 宁波华斯特林电机制造有限公司 Soft start control system of Stirling motor and Stirling refrigerator
CN112803866A (en) * 2021-02-26 2021-05-14 依必安派特风机(上海)有限公司 Motor sine wave drive control method and system and motor

Similar Documents

Publication Publication Date Title
US8179202B2 (en) Multiple pulse width modulation
US11025187B2 (en) Method of generating motor driving signal, electronic device and storage medium
US11876474B2 (en) Linear resonant device, and braking method for same
EP0581578A1 (en) Improved windshield wiper speed and delay control
JP2003120481A (en) Engine starter
WO2009123054A1 (en) Switching controller
CN113938078A (en) Method for controlling vibration of vehicle-mounted product based on simulation output sine wave
CN102088194A (en) Module and method for stabilizing load voltage of vehicle
CN209590809U (en) A kind of display module haptic feedback system and vehicle-mounted touch-control display module
CN110380665B (en) Control signal generation method, electronic device and storage medium
US11392204B2 (en) Haptics adaptive duty cycle
US8078234B2 (en) Apparatus and method for providing a massage function for a mobile phone
EP2667582A1 (en) System and method for control of linear and rotary vibrators in an electronic device
JP6279364B2 (en) Motor control device
CN109610971A (en) A kind of control method and system of motorized window
AU2002360492A1 (en) Switch mode power supply and driving method for efficient rf amplification
CN115686216A (en) Vehicle-mounted intelligent vibration feedback display system and application method thereof
KR100791786B1 (en) Method for starting engine using one touch type starting switch
JP2548778Y2 (en) Wiper control circuit
CN210722115U (en) Windscreen wiper control device
CN207631116U (en) A kind of acoustic control module of vapour body light
US11609637B2 (en) Switch assembly with integrated haptic exciter
CN107834999A (en) Pulse and continuous impulse generator based on Schmitt trigger
CN104811096A (en) Soft starting system for fuel oil automobile
CN108377296B (en) Electronic equipment vibration control method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination