WO2020147742A1 - Linear motor drive chip braking method and apparatus - Google Patents

Linear motor drive chip braking method and apparatus Download PDF

Info

Publication number
WO2020147742A1
WO2020147742A1 PCT/CN2020/072201 CN2020072201W WO2020147742A1 WO 2020147742 A1 WO2020147742 A1 WO 2020147742A1 CN 2020072201 W CN2020072201 W CN 2020072201W WO 2020147742 A1 WO2020147742 A1 WO 2020147742A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
braking
linear motor
preset
brake
Prior art date
Application number
PCT/CN2020/072201
Other languages
French (fr)
Chinese (zh)
Inventor
赵观星
吴绍夫
程剑涛
杜黎明
孙洪军
Original Assignee
上海艾为电子技术股份有限公司
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 上海艾为电子技术股份有限公司 filed Critical 上海艾为电子技术股份有限公司
Publication of WO2020147742A1 publication Critical patent/WO2020147742A1/en

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
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/06Linear motors
    • 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
    • H02P3/00Arrangements for stopping or slowing electric motors, generators, or dynamo-electric converters
    • H02P3/06Arrangements for stopping or slowing electric motors, generators, or dynamo-electric converters for stopping or slowing an individual dynamo-electric motor or dynamo-electric converter

Definitions

  • the invention relates to the technical field of testing equipment, in particular to a linear motor driving chip brake method and device.
  • Tactile feedback technology can produce different tactile experiences according to different application scenarios, allowing users to interact more deeply with electronic products, which is an important direction for future smart terminal upgrades.
  • the direction of smartphones, through the tactile feedback engine can simulate the subtle vibration of the clock dial, heartbeat, and in some games, it can even simulate shooting, punching, and other vibration effects. Game experience.
  • LRA motors linear motors
  • the embodiments of the present invention provide a linear motor-driven chip braking method and device to achieve rapid and effective braking of the linear motor.
  • a linear motor driving chip braking method includes:
  • the linear motor is braked according to the amplitude of the second brake pulse, and the amplitude of the second brake pulse is smaller than the first brake pulse The amplitude of
  • the first preset value is 1, and the second preset value is 1.
  • the linear motor driving chip braking method before the judging whether the value of the preset first enable signal is 1, further includes:
  • the method further includes :
  • the product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
  • the method further includes:
  • the model identification of the linear motor is read from the storage device of the linear motor, and the braking factor matching the model identification is retrieved from a preset mapping table.
  • a linear motor driving chip brake device including:
  • the quick brake unit is used for:
  • the linear motor When the linear motor needs to perform an automatic braking action, it is determined whether the value of the preset first enable signal is the first preset value; when the value of the first enable signal is the first preset value, according to the first The amplitude of the brake pulse brakes the linear motor; it is judged whether the zero-free time of the back-EMF of the linear motor exceeds the first set time; when the zero-free time of the back-EMF is less than or equal to the first set time, it is determined Whether the value of the back electromotive force is less than the preset fast braking threshold; when the value of the back electromotive force is less than the preset fast braking threshold, output a trigger signal to the fine-tuning braking unit;
  • the fine adjustment brake unit is used for:
  • the trigger signal output by the quick brake unit it is determined whether the value of the preset second enable signal is the second preset value; when the value of the second enable signal is the second preset value , Brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse; determine whether the back electromotive force of the linear motor has zero but zero time Exceeding the second set time; when the back-EMF zero-free time is less than or equal to the second set time, determine whether the value of the back-EMF is less than the preset fine-tuning brake threshold; when the value of the back-EMF is less than the preset The automatic braking action will end when the fine-tuning brake threshold is set.
  • the first preset value is 1, and the second preset value is 1.
  • the linear motor-driven chip brake device further includes:
  • the brake start judging unit is used to judge whether the linear drive waveform playback of the linear motor is over, and if it is, judge whether the automatic brake signal is valid.
  • the automatic brake signal is valid, it indicates that the brake device is to perform an automatic brake action, and
  • the brake unit outputs a trigger signal.
  • the quick brake unit and the fine-tune brake unit are also used for:
  • the fine-tuning brake unit is further used for:
  • the method further includes:
  • the product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
  • the linear motor-driven chip braking device further includes: a braking factor calculation unit for:
  • the model identification of the linear motor is read from the storage device of the linear motor, the braking factor matching the model identification is retrieved from the preset mapping table, and the retrieved braking factor is sent to all
  • the fine-tuning brake unit is described.
  • the above solution provided by the embodiment of the present invention is to perform rapid braking on the linear motor in the first braking stage.
  • the second braking stage is entered.
  • fine-tuning braking is performed on the linear motor, which realizes rapid and effective braking of the linear motor.
  • FIG. 1 is a schematic flowchart of a linear motor driving chip braking method disclosed in an embodiment of the application
  • FIG. 2 is a schematic block diagram of the automatic braking process of the linear motor driving chip braking method provided by an embodiment of the application;
  • FIG. 3 is a schematic flowchart of a method for driving a chip brake by a linear motor according to another embodiment of the application;
  • FIG. 4 is a schematic diagram of a test position of a linear motor back EMF provided by an embodiment of the application
  • FIG. 5 is a schematic structural diagram of a linear motor-driven chip brake device provided by an embodiment of the application.
  • this application provides a method for automatically realizing the linear motor driving chip braking.
  • the realization process of the automatic braking method is divided into two stages: the first braking stage AUTOBRAKE0 and the second braking stage AUTOBRAKE1.
  • the AUTOBRAKE0 stage is used to realize rapid braking of the LRA motor, and the amplitude of the braking pulse can be set by a register.
  • the AUTOBRAKE1 stage is used to implement fine-tuning braking of the LRA motor to achieve a better braking effect.
  • the amplitude of the braking pulse is calculated by the obtained BEMF (Back Electro Motive Force) value.
  • the period and direction of the brake pulse are obtained by monitoring the BEMF value of the LRA motor in real time.
  • the number of brake pulses is obtained by comparing the fast brake threshold, fine-tuning the brake threshold and the monitored BEMF value.
  • FIG. 1 is a schematic flowchart of a method for driving a chip brake by a linear motor according to an embodiment of the application. Referring to FIG. 1, the method includes:
  • Step S101 Determine whether the preset value of the first enable signal is the first preset value
  • the first preset value may be 1, the first enable signal is a signal used to characterize entering the first braking phase AUTOBRAKE0, if the first enable signal The value of 1 indicates that the device can enter the first braking stage AUTOBRAKE0. If the value of the first enable signal is not 1, it indicates that the device cannot enter the first braking stage. The user can set the first brake according to requirements.
  • the value of the enable signal for example, if the user wants to automatically brake the linear motor, the value of the first enable signal is configured to 1, if the user does not need to automatically brake the linear motor, the The value of the first enable signal is configured as 0.
  • the first preset value corresponding to the first enable signal used to characterize entering the first braking stage AUTOBRAKE0 may also be other values, and the user can set correspondingly as needed.
  • Step S102 brake the linear motor according to the amplitude of the first brake pulse
  • the first braking pulse may be a periodic signal.
  • the first braking pulse signal is a filtered square wave signal.
  • the first brake pulse may be composed of a positive pulse A+ and a negative pulse A-, and the amplitude direction of the first brake pulse is opposite to the direction of the back EMF of the linear motor, that is, if the back EMF is in the positive half Cycle, the first braking pulse is negative pulse A-, if the back-EMF is in the negative half cycle, the first braking pulse is positive pulse A+; wherein, in the first braking phase AUTOBRAKE0, the first braking pulse
  • the amplitude of the brake pulse can be set according to user needs, and its design value is usually larger.
  • the amplitude of the first brake pulse and the overdrive of the linear motor The amplitude is the same, so as to realize rapid braking of the linear motor, after the first braking stage, the operating state of the linear motor basically meets the braking requirements;
  • Step S103 Determine whether the back electromotive force (BEMF) of the linear motor has a zero-free time less than or equal to a first set time.
  • BEMF back electromotive force
  • the back electromotive force of the linear motor is obtained, and the zero-free time of the back-EMF is obtained according to the waveform of the back-EMF.
  • the zero-free time of the back-EMF is less than or equal to a preset
  • the linear motor needs to be braked and the subsequent actions are continued to be performed.
  • the zero-free time of the back-EMF exceeds the preset time, there is no need to brake the linear motor, and step S109 is performed;
  • Step S104 Determine whether the value of the back EMF is less than the preset fast braking threshold, and when the value of the back EMF is not less than the preset fast braking threshold, return to step S102; when the value of the back EMF is less than the preset fast braking threshold When the fast braking threshold is reached, step S105 is executed;
  • the rapid braking The size of the threshold value can be set according to user needs. In actual use, the user can adjust the size of the fast braking threshold value according to the braking effect.
  • the fast braking threshold when the value of the back electromotive force is not less than the preset value, When the fast braking threshold is set, it indicates that the braking process is still in the first braking stage.
  • step S105 When the value of the back electromotive force is less than the preset fast braking threshold, it indicates that the braking process has entered the second braking stage, and step S105 is executed. ;
  • Step S105 Determine whether the value of the preset second enable signal is the second preset value, and when the value of the second enable signal is the second preset value, perform step S106;
  • the second preset value may be 1. It is not difficult to understand that the second preset value corresponding to the second enable signal used to characterize the entry into the second braking phase AUTOBRAKE1 may also be other values, and the user can set correspondingly according to needs.
  • the second preset value may be 1.
  • the second enable signal is a signal used to characterize entering the second braking phase AUTOBRAKE1. If the value of the second enable signal is 1, It indicates that the device can enter the second braking stage AUTOBRAKE1. If the value of the second enable signal is not 1, it indicates that the device cannot enter the second braking stage and directly exits the automatic braking process.
  • the user can set the value of the second enable signal according to requirements. For example, if the user wants to automatically brake the linear motor, the value of the second enable signal is configured as 1, if the user does not need to If the linear motor performs automatic braking, the value of the second enable signal is configured to be zero.
  • the user can set the value of the first enable signal and the second enable signal according to requirements, and the two can be independent of each other. At this time, when the value of the first enable signal is not 1. At this time, it can be determined whether the value of the second enable signal is 1.
  • the value of the second enable signal may also be correlated with the first enable signal, that is, at this time, the value of the first enable signal may be 0 or 1, when the first enable signal When the value of the enable signal is 0, the value of the second enable signal can only be 0, and when the value of the first enable signal can be 1, the value of the second enable signal can be 0 or 1. That is, the automatic braking process can only perform the first braking stage without performing the second braking stage, or both the first braking stage and the second braking stage can be performed, but it cannot be performed without performing the first braking stage Go directly to the second braking stage;
  • Step S106 brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse;
  • the second braking pulse may be a periodic signal.
  • the second braking pulse signal is a filtered square wave signal.
  • the second brake pulse may be composed of a positive pulse A+ and a negative pulse A-, and the amplitude direction of the second brake pulse is opposite to the direction of the back electromotive force, that is, if the back electromotive force is in a positive half cycle ,
  • the second brake pulse is a negative pulse A-, if the back electromotive force is in a negative half cycle, the second brake pulse is a positive pulse A+; wherein, in the second brake phase AUTOBRAKE1, the second brake
  • the amplitude of the pulse can be set according to user needs.
  • the amplitude of the second brake pulse can also follow the changes in the amplitude of the back electromotive force, so that the second brake pulse
  • the amplitude decreases as the amplitude of the back electromotive force decreases.
  • the amplitude of the second braking pulse and the amplitude of the back electromotive force are in a positive proportional relationship, that is, the ratio of the amplitude of the second braking pulse to the amplitude of the back electromotive force is a preset braking Factor.
  • the product of the magnitude of the back EMF and the braking factor is used as the magnitude of the second braking pulse.
  • Step S107 Determine whether the zero-free time of the back-EMF of the linear motor is less than or equal to a second set time, and when the back-EMF zero-free time is less than or equal to the second set time, step S108 is executed;
  • Step S108 Determine whether the value of the back-EMF is less than the preset fine-tuning braking threshold, and when the value of the back-EMF is not less than the preset fine-tuning braking threshold, execute step S106, and when the value of the back-EMF is less than the preset When the brake threshold is fine-tuned, step S109 is executed;
  • the fine-tuning braking The threshold value can be set according to user needs. In actual use, the user can adjust the size of the fine-tuned braking threshold value according to the braking effect.
  • step S106 when the value of the back electromotive force is not less than the preset value, When the fine-tuned braking threshold is set, it indicates that the braking process is still in the second braking stage, and step S106 is executed.
  • step S109 is executed;
  • Step S109 End the automatic braking action.
  • the flow chart of the linear motor automatic braking process proposed by the present invention includes two stages, AUTOBRAKE0 and AUTOBRAKE1.
  • the linear motor When the linear motor is automatically braked, it first enters the AUTOBRAKE0 brake phase.
  • the AUTOBRAKE0 braking phase if the real-time monitoring of the linear motor BEMF value does not exceed the first set time of the system, the automatic braking process ends.
  • the linear motor BEMF value does not exceed the zero time is less than or equal to the first set time of the system, continue Perform quick braking action.
  • the linear motor BEMF value is less than the fast brake threshold, enter the AUTOBRAKE1 brake phase.
  • the automatic braking process is terminated Otherwise, continue to perform the fine-tuning braking action, and through the combination of quick braking and fine-tuning braking, the short and crisp braking effect of the linear motor is realized.
  • the first braking cycle uses the linear motor drive chip's preset motor cycle (t_drv1*2), and the number of the second and subsequent braking cycles is monitored by the linear motor's BEMF amplitude Value, calculate the corresponding braking period, as shown in t_drv2, t_drv3, t_drv4, etc. shown in Figure 2.
  • the number of braking pulses is automatically adjusted according to the amplitude of BEMF. By real-time calculation of the braking period and the number of suitable braking pulses, the braking effect tends to be perfect.
  • step S101 before step S101 is performed, it is possible to determine whether to enter the automatic braking process by judging the linear motor drive waveform and the automatic brake enable signal. Specifically, Referring to Fig. 3, before step S101 is executed, the method further includes:
  • Step S301 Determine whether the linear driving waveform playback of the linear motor is over, if yes, go to step S302;
  • step S302 needs to be entered to determine whether automatic braking is required.
  • Step S302 Determine whether the automatic braking signal is valid, and when the automatic braking signal is valid, execute step S101;
  • the validity of the automatic braking signal can be set by setting the automatic braking signal to 0, 1. For example, when the automatic braking signal is 1, it indicates that it is valid, and when it is 0 Indicate that it is invalid. When it is invalid, it indicates that it does not need to enter the automatic braking process.
  • Step S105 is directly entered to determine its value.
  • the value of the second enable signal when the value of the second enable signal is not 1, for example, when the judgment result is 0, it indicates that the automatic braking process is over and the automatic braking process is exited.
  • the zero-free time of the back electromotive force of the linear motor exceeds the set time, it indicates that the automatic braking process is over and the automatic braking action is exited.
  • the user can set the value of the first enable signal and the second enable signal according to requirements, and the two can be independent of each other.
  • the value of the first enable signal is not 1, it can be determined that the Whether the value of the second enable signal is 1.
  • the value of the second enable signal may also be correlated with the first enable signal, that is, at this time, the value of the first enable signal may be 0 or 1, when the first enable signal When the value of the enable signal is 0, the value of the second enable signal can only be 0, and when the value of the first enable signal can be 1, the value of the second enable signal can be 0 or 1.
  • the amplitudes of the second brake pulses required by them are also different.
  • the following methods can also be used to determine the Braking factor:
  • the model identification of the linear motor is read from the storage device of the linear motor, and the braking factor matching the model identification is retrieved from a preset mapping table.
  • the amplitude of the first brake pulse can also be retrieved through the preset mapping table.
  • the measurement when measuring the amplitude of the back electromotive force, the measurement can be carried out in the following manner: it is determined whether the back electromotive force has exited the zero-crossing area, if so, start timing, when When the set time arrives, measure the amplitude of the back EMF at the current moment.
  • start timing when When the set time arrives, measure the amplitude of the back EMF at the current moment.
  • the sine wave signal represents the back EMF waveform of the linear motor
  • the square wave represents the brake pulse.
  • T DRV represents the period of the brake pulse.
  • ZC_DET represents the zero-crossing area of the back electromotive force.
  • a detection point is set at a fixed position after the zero-crossing area to detect the amplitude of the back electromotive force of the linear motor at that moment. Real-time monitoring of the amplitude of the back electromotive force during the entire braking process.
  • AUTOBRAKE0 braking phase when the amplitude of the back-EMF is less than the fast braking threshold, enter the fine-tuning AUTOBRAKE1 braking phase.
  • the automatic braking process ends.
  • the application also discloses a linear motor driving chip brake device.
  • the device may include:
  • the specific working process of the quick braking unit 100 corresponds to steps S101-S104 in the above method, and is used for:
  • the linear motor When the linear motor needs to perform an automatic braking action, it is determined whether the value of the preset first enable signal is the first preset value; when the value of the first enable signal is the first preset value, according to the first The amplitude of the brake pulse brakes the linear motor; it is judged whether the zero-free time of the back EMF of the linear motor exceeds the set time; when the zero-free time of the back EMF is less than or equal to the set time, the back EMF is determined Whether the value of is less than the preset fast braking threshold; when the value of the back electromotive force is less than the preset fast braking threshold, output a trigger signal to the fine-tuning braking unit;
  • the specific working process of the fine adjustment brake unit 200 corresponds to the steps S105-S108 in the above method, and is used for:
  • the trigger signal output by the quick brake unit it is determined whether the value of the preset second enable signal is the second preset value; when the value of the second enable signal is the second preset value , Brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse; determine whether the back electromotive force of the linear motor has zero but zero time Exceed the set time; when the back-EMF zero-free time is less than or equal to the set time, determine whether the value of the back-EMF is less than the preset fine-tuning braking threshold; when the value of the back-EMF is less than the preset fine-tuning braking At the threshold, the automatic braking action ends.
  • the first preset value may be 1, and the second preset value may be 1.
  • the first preset value corresponding to the first enable signal is 1, and the second preset value corresponding to the second enable signal is 1.
  • the preset value is 1 for explanation. It is not difficult to understand that the first preset value corresponding to the first enable signal may be other values, and the second preset value corresponding to the second enable signal may be other values.
  • the above device may further include:
  • the brake start judging unit is used to judge whether the linear drive waveform playback of the linear motor is over, and if it is, judge whether the automatic brake signal is valid.
  • the automatic brake signal is valid, it indicates that the brake device is to perform an automatic brake action, and
  • the brake unit outputs a trigger signal.
  • the quick brake unit and the fine-tuned brake unit are also used for:
  • the fine-tuning brake unit is also used for:
  • the method further includes:
  • the product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
  • the above device may further include:
  • Braking factor calculation unit for:
  • the model identification of the linear motor is read from the storage device of the linear motor, the braking factor matching the model identification is retrieved from the preset mapping table, and the retrieved braking factor is sent to all
  • the fine-tuning brake unit is described.
  • the steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Linear Motors (AREA)
  • Braking Systems And Boosters (AREA)

Abstract

A linear motor drive chip braking method and apparatus, the method comprising: when the value of a first enabling signal is a first preset value and the time for which a counter-electromotive force is not over zero is shorter than or equal to a first set time, determining whether the value of the counter-electromotive force is lower than a rapid braking threshold; when the value of the counter-electromotive force is not lower than the rapid braking threshold, braking a linear motor according to the amplitude of a first braking pulse; when the value of the counter-electromotive force is lower than the rapid braking threshold, the value of a second enabling signal is a second preset value, and the time for which the counter-electromotive force of the linear motor is not over zero is shorter than or equal to a second set time, determining whether the value of the counter-electromotive force is lower than a fine-tuning braking threshold; when the value of the counter-electromotive force is not lower than the fine-tuning braking threshold, braking the linear motor according to the amplitude of a second braking pulse, the amplitude of the second braking pulse being smaller than the amplitude of the first braking pulse; and when the value of the counter-electromotive force is lower than the fine-tuning braking threshold, ending an automatic braking action, which achieves rapid and effective braking for the linear motor.

Description

一种线性马达驱动芯片刹车方法和装置Linear motor driving chip braking method and device
本申请要求于2019年01月17日提交中国专利局、申请号为201910044725.3、发明名称为“一种线性马达驱动芯片刹车方法和装置”的国内申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a domestic application filed with the Chinese Patent Office on January 17, 2019, the application number is 201910044725.3, and the invention title is "a linear motor-driven chip brake method and device", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本发明涉及测试设备技术领域,具体涉及一种线性马达驱动芯片刹车方法和装置。The invention relates to the technical field of testing equipment, in particular to a linear motor driving chip brake method and device.
背景技术Background technique
触觉反馈技术可以根据不同的应用场景,产生不同的触觉体验,能够让用户和电子产品进行更深入的交互,是未来智能终端升级的重要方向。作为触觉反馈技术重要应用领域的智能手机方向,通过触觉反馈引擎,可以模拟时钟拨盘的细微震动,心脏跳动,在某些游戏中甚至还能模拟开枪射击、出拳打人等震动效果提升游戏体验。为了满足各种不同的应用需求,实现LRA马达(线性马达)短脆快的触觉体验,实现快速有效的刹车越来越急迫和重要。Tactile feedback technology can produce different tactile experiences according to different application scenarios, allowing users to interact more deeply with electronic products, which is an important direction for future smart terminal upgrades. As an important application field of tactile feedback technology, the direction of smartphones, through the tactile feedback engine, can simulate the subtle vibration of the clock dial, heartbeat, and in some games, it can even simulate shooting, punching, and other vibration effects. Game experience. In order to meet the needs of various applications, it is more and more urgent and important to realize the short and crisp tactile experience of LRA motors (linear motors), and to realize fast and effective braking.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种线性马达驱动芯片刹车方法和装置,以实现线性马达快速有效的刹车。In view of this, the embodiments of the present invention provide a linear motor-driven chip braking method and device to achieve rapid and effective braking of the linear motor.
为实现上述目的,本发明实施例提供如下技术方案:In order to achieve the foregoing objective, the embodiments of the present invention provide the following technical solutions:
一种线性马达驱动芯片刹车方法,包括:A linear motor driving chip braking method includes:
判断预设的第一使能信号的值是否为第一预设值;Judging whether the preset value of the first enable signal is the first preset value;
当所述第一使能信号的值为第一预设值时,依据第一刹车脉冲的幅值对所述线性马达进行刹车;When the value of the first enable signal is a first preset value, brake the linear motor according to the amplitude of the first brake pulse;
判断所述线性马达的反电动势的不过零时间是否超过第一设置时间;Judging whether the non-zero time of the back electromotive force of the linear motor exceeds a first set time;
当所述反电动势的不过零时间小于等于第一设置时间时,判断所述反电动势的值是否小于预设的快速刹车门限;When the zero-free time of the back electromotive force is less than or equal to the first set time, judging whether the value of the back electromotive force is less than a preset fast braking threshold;
当所述反电动势的值小于预设的快速刹车门限时,判断预设的第二使能信号的值是否为第二预设值;When the value of the back electromotive force is less than the preset fast braking threshold, determining whether the value of the preset second enable signal is the second preset value;
当所述第二使能信号的值为第二预设值时,依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅 值;When the value of the second enable signal is a second preset value, the linear motor is braked according to the amplitude of the second brake pulse, and the amplitude of the second brake pulse is smaller than the first brake pulse The amplitude of
判断所述线性马达的反电动势的不过零时间是否超过第二设置时间;Determining whether the non-zero time of the back electromotive force of the linear motor exceeds a second set time;
当所述反电动势的不过零时间小于等于第二设置时间时,判断所述反电动势的值是否小于预设的微调刹车门限;When the zero-free time of the back electromotive force is less than or equal to the second set time, judging whether the value of the back electromotive force is less than a preset fine-tuning brake threshold;
当所述反电动势的值小于预设的微调刹车门限时,结束自动刹车动作。When the value of the back electromotive force is less than the preset fine-tuning braking threshold, the automatic braking action is ended.
可选的,上述线性马达驱动芯片刹车方法中,所述第一预设值为1,所述第二预设值为1。Optionally, in the above linear motor driving chip braking method, the first preset value is 1, and the second preset value is 1.
线性马达驱动芯片刹车方法,所述判断预设的第一使能信号的值是否为1之前,还包括:The linear motor driving chip braking method, before the judging whether the value of the preset first enable signal is 1, further includes:
判断线性马达的线性驱动波形播放是否结束,如果是,判断自动刹车信号是否有效,当所述自动刹车信号有效时,判断预设的第一使能信号的值是否为1。It is judged whether the linear driving waveform playback of the linear motor is over, if it is, it is judged whether the automatic brake signal is valid, and when the automatic brake signal is valid, it is judged whether the value of the preset first enable signal is 1.
可选的,上述线性马达驱动芯片刹车方法中,当判断得到所述第一使能信号的值不为1时,判断预设的第二使能信号的值是否为1;Optionally, in the above linear motor driving chip braking method, when it is determined that the value of the first enable signal is not 1, it is determined whether the value of the preset second enable signal is 1;
当判断得到所述第二使能信号的值不为1时,退出自动刹车动作。When it is determined that the value of the second enable signal is not 1, the automatic braking action is exited.
可选的,上述线性马达驱动芯片刹车方法中,判定所述反电动势的值小于预设的微调刹车门限之后,所述依据第二刹车脉冲的幅值对所述线性马达进行刹车之前,还包括:Optionally, in the above-mentioned linear motor driving chip braking method, after determining that the value of the back electromotive force is less than a preset fine-tuning braking threshold, before braking the linear motor according to the amplitude of the second braking pulse, the method further includes :
获取所述线性马达的反电动势的值;Obtaining the value of the back electromotive force of the linear motor;
将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值。The product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
可选的,上述线性马达驱动芯片刹车方法中,将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值之前,还包括:Optionally, in the above-mentioned linear motor driving chip braking method, before the product of the value of the back electromotive force and a preset braking factor is used as the amplitude of the second braking pulse, the method further includes:
由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子。The model identification of the linear motor is read from the storage device of the linear motor, and the braking factor matching the model identification is retrieved from a preset mapping table.
一种线性马达驱动芯片刹车装置,包括:A linear motor driving chip brake device, including:
快速刹车单元和微调刹车单元;Quick brake unit and fine-tuning brake unit;
所述快速刹车单元用于:The quick brake unit is used for:
当线性马达需要执行自动刹车动作时,判断预设的第一使能信号的值是否为第一预设值;当所述第一使能信号的值为第一预设值时,依据第一刹车脉冲 的幅值对所述线性马达进行刹车;判断所述线性马达的反电动势的不过零时间是否超过第一设置时间;当所述反电动势的不过零时间小于等于第一设置时间时,判断所述反电动势的值是否小于预设的快速刹车门限;当所述反电动势的值小于预设的快速刹车门限时,向所述微调刹车单元输出触发信号;When the linear motor needs to perform an automatic braking action, it is determined whether the value of the preset first enable signal is the first preset value; when the value of the first enable signal is the first preset value, according to the first The amplitude of the brake pulse brakes the linear motor; it is judged whether the zero-free time of the back-EMF of the linear motor exceeds the first set time; when the zero-free time of the back-EMF is less than or equal to the first set time, it is determined Whether the value of the back electromotive force is less than the preset fast braking threshold; when the value of the back electromotive force is less than the preset fast braking threshold, output a trigger signal to the fine-tuning braking unit;
所述微调刹车单元用于:The fine adjustment brake unit is used for:
在获取到所述快速刹车单元输出的触发信号时,判断预设的第二使能信号的值是否为第二预设值;当所述第二使能信号的值为第二预设值时,依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅值;判断所述线性马达的反电动势的不过零时间是否超过第二设置时间;当所述反电动势的不过零时间小于等于所述第二设置时间时,判断所述反电动势的值是否小于预设的微调刹车门限;当所述反电动势的值小于预设的微调刹车门限时,结束自动刹车动作。When the trigger signal output by the quick brake unit is acquired, it is determined whether the value of the preset second enable signal is the second preset value; when the value of the second enable signal is the second preset value , Brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse; determine whether the back electromotive force of the linear motor has zero but zero time Exceeding the second set time; when the back-EMF zero-free time is less than or equal to the second set time, determine whether the value of the back-EMF is less than the preset fine-tuning brake threshold; when the value of the back-EMF is less than the preset The automatic braking action will end when the fine-tuning brake threshold is set.
可选的,上述线性马达驱动芯片刹车装置中,所述第一预设值为1,所述第二预设值为1。Optionally, in the linear motor-driven chip brake device, the first preset value is 1, and the second preset value is 1.
可选的,上述线性马达驱动芯片刹车装置中,还包括:Optionally, the linear motor-driven chip brake device further includes:
刹车启动判断单元,用于判断线性马达的线性驱动波形播放是否结束,如果是,判断自动刹车信号是否有效,当所述自动刹车信号有效时,表明刹车装置要执行自动刹车动作,向所述快速刹车单元输出触发信号。The brake start judging unit is used to judge whether the linear drive waveform playback of the linear motor is over, and if it is, judge whether the automatic brake signal is valid. When the automatic brake signal is valid, it indicates that the brake device is to perform an automatic brake action, and The brake unit outputs a trigger signal.
可选的,上述线性马达驱动芯片刹车装置中,所述快速刹车单元和微调刹车单元还用于:Optionally, in the linear motor-driven chip brake device, the quick brake unit and the fine-tune brake unit are also used for:
当判断得到所述第一使能信号的值不为1时,判断预设的第二使能信号的值是否为1;When it is determined that the value of the first enable signal is not 1, it is determined whether the value of the preset second enable signal is 1;
当判断得到所述第二使能信号的值不为1时,退出自动刹车动作。When it is determined that the value of the second enable signal is not 1, the automatic braking action is exited.
可选的,上述线性马达驱动芯片刹车装置中,所述微调刹车单元还用于:Optionally, in the linear motor-driven chip brake device, the fine-tuning brake unit is further used for:
判定所述反电动势的值小于预设的微调刹车门限之后,所述依据第二刹车脉冲的幅值对所述线性马达进行刹车之前,还包括:After determining that the value of the back electromotive force is less than the preset fine-tuning braking threshold, before the braking the linear motor according to the amplitude of the second braking pulse, the method further includes:
获取所述线性马达的反电动势的值;Obtaining the value of the back electromotive force of the linear motor;
将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值。The product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
可选的,上述线性马达驱动芯片刹车装置中,还包括:刹车因子计算单元, 用于:Optionally, the linear motor-driven chip braking device further includes: a braking factor calculation unit for:
由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子,将调取到的所述刹车因子发送至所述微调刹车单元。The model identification of the linear motor is read from the storage device of the linear motor, the braking factor matching the model identification is retrieved from the preset mapping table, and the retrieved braking factor is sent to all The fine-tuning brake unit is described.
基于上述技术方案,本发明实施例提供的上述方案,通过在第一刹车阶段对所述线性马达进行快速刹车,当所述线性马达的反电动势小于快速刹车门限时,进入第二刹车阶段,在第二刹车阶段对所述线性马达进行微调式刹车,实现了线性马达快速有效的刹车。Based on the above technical solution, the above solution provided by the embodiment of the present invention is to perform rapid braking on the linear motor in the first braking stage. When the back electromotive force of the linear motor is less than the rapid braking threshold, the second braking stage is entered. In the second braking stage, fine-tuning braking is performed on the linear motor, which realizes rapid and effective braking of the linear motor.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only This is an embodiment of the present invention. For a person of ordinary skill in the art, without paying any creative labor, other drawings may be obtained according to the provided drawings.
图1为本申请实施例公开的一种线性马达驱动芯片刹车方法的流程示意图;FIG. 1 is a schematic flowchart of a linear motor driving chip braking method disclosed in an embodiment of the application;
图2为本申请实施例提供的线性马达驱动芯片刹车方法自动刹车过程的原理框图;2 is a schematic block diagram of the automatic braking process of the linear motor driving chip braking method provided by an embodiment of the application;
图3为本申请另一实施例公开的一种线性马达驱动芯片刹车方法的流程示意图;3 is a schematic flowchart of a method for driving a chip brake by a linear motor according to another embodiment of the application;
图4为本申请实施例提供的线性马达反电动势测试位置的示意图;4 is a schematic diagram of a test position of a linear motor back EMF provided by an embodiment of the application;
图5为本申请实施例提供的一种线性马达驱动芯片刹车装置的结构示意图。5 is a schematic structural diagram of a linear motor-driven chip brake device provided by an embodiment of the application.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative labor fall into the protection scope of the present invention.
为了实现线性马达短脆快的刹车,本申请提供了一种自动实现线性马达驱动芯片刹车方法,该自动刹车方法实现过程分为二个阶段:第一刹车阶段AUTOBRAKE0和第二刹车阶段AUTOBRAKE1。其中,所述AUTOBRAKE0阶段用于实现对LRA马达的快速刹车,刹车脉冲的幅值可由寄存器设置。AUTOBRAKE1阶段用于实现对LRA马达的微调刹车,以实现更好的刹车效果,刹车脉冲的幅值通过得到的BEMF(Back ElectroMotive Force,反电动势)值计算得到。刹车脉冲的周期和方向通过实时监测LRA马达的BEMF值得到。刹车脉冲的个数通过比较快速刹车门限、微调刹车门限和监测到的BEMF值得到。通过上述刹车参数的优化设置,可以实现不同应用环境、不同震感强度下LRA马达快速有效的刹车。In order to realize the short and crisp braking of the linear motor, this application provides a method for automatically realizing the linear motor driving chip braking. The realization process of the automatic braking method is divided into two stages: the first braking stage AUTOBRAKE0 and the second braking stage AUTOBRAKE1. Among them, the AUTOBRAKE0 stage is used to realize rapid braking of the LRA motor, and the amplitude of the braking pulse can be set by a register. The AUTOBRAKE1 stage is used to implement fine-tuning braking of the LRA motor to achieve a better braking effect. The amplitude of the braking pulse is calculated by the obtained BEMF (Back Electro Motive Force) value. The period and direction of the brake pulse are obtained by monitoring the BEMF value of the LRA motor in real time. The number of brake pulses is obtained by comparing the fast brake threshold, fine-tuning the brake threshold and the monitored BEMF value. By optimizing the setting of the above braking parameters, the LRA motor can brake quickly and effectively under different application environments and different shock intensity.
图1为本申请实施例提供的一种线性马达驱动芯片刹车方法的流程示意图,参见图1,方法包括:FIG. 1 is a schematic flowchart of a method for driving a chip brake by a linear motor according to an embodiment of the application. Referring to FIG. 1, the method includes:
步骤S101:判断预设的第一使能信号的值是否为第一预设值;Step S101: Determine whether the preset value of the first enable signal is the first preset value;
在本申请实施例公开的技术方案中,所述第一预设值可以为1,所述第一使能信号为用于表征进入第一刹车阶段AUTOBRAKE0的信号,如果所述第一使能信号的值为1,表明装置可以进入第一刹车阶段AUTOBRAKE0,如果所述第一使能信号的值不为1,则表明装置不可以进入第一刹车阶段,用户可以依据需求设置所述第一使能信号的值,例如,用户如果想要对所述线性马达进行自动刹车,则将所述第一使能信号的值配置为1,如果用户不需要对所述线性马达进行自动刹车,则将所述第一使能信号的值配置为0。In the technical solution disclosed in the embodiments of the present application, the first preset value may be 1, the first enable signal is a signal used to characterize entering the first braking phase AUTOBRAKE0, if the first enable signal The value of 1 indicates that the device can enter the first braking stage AUTOBRAKE0. If the value of the first enable signal is not 1, it indicates that the device cannot enter the first braking stage. The user can set the first brake according to requirements. The value of the enable signal, for example, if the user wants to automatically brake the linear motor, the value of the first enable signal is configured to 1, if the user does not need to automatically brake the linear motor, the The value of the first enable signal is configured as 0.
不难理解,用于表征进入第一刹车阶段AUTOBRAKE0的第一使能信号对应的第一预设值也可以是其他值,用户可以根据需要进行相应设置。It is not difficult to understand that the first preset value corresponding to the first enable signal used to characterize entering the first braking stage AUTOBRAKE0 may also be other values, and the user can set correspondingly as needed.
步骤S102:依据第一刹车脉冲的幅值对所述线性马达进行刹车;Step S102: brake the linear motor according to the amplitude of the first brake pulse;
本步骤为第一刹车阶段执行的刹车动作,具体的,所述第一刹车脉冲可以为一个周期信号,例如,参见图2所示,所述第一刹车脉冲信号为滤波后的方波信号,所述第一刹车脉冲可以由一个正脉冲A+和一个负脉冲A-组成,所述第一刹车脉冲的幅值方向与线性马达的反电动势的方向相反,即,如果所述反电动势处于正半周期,则所述第一刹车脉冲为负脉冲A-,如果所述反电动势处于负半周期,则所述第一刹车脉冲为正脉冲A+;其中,在第一刹车阶段 AUTOBRAKE0中所述第一刹车脉冲的幅值可以依据用户需求自行设定,其设计值通常较大,例如,在本申请实施例公开的技术方案中,所述第一刹车脉冲的幅值和所述线性马达过驱动的幅值相同,从而实现对所述线性马达的快速刹车,经过第一刹车阶段,使得所述线性马达的运行状态基本满足刹车的要求;This step is the braking action performed in the first braking stage. Specifically, the first braking pulse may be a periodic signal. For example, as shown in FIG. 2, the first braking pulse signal is a filtered square wave signal. The first brake pulse may be composed of a positive pulse A+ and a negative pulse A-, and the amplitude direction of the first brake pulse is opposite to the direction of the back EMF of the linear motor, that is, if the back EMF is in the positive half Cycle, the first braking pulse is negative pulse A-, if the back-EMF is in the negative half cycle, the first braking pulse is positive pulse A+; wherein, in the first braking phase AUTOBRAKE0, the first braking pulse The amplitude of the brake pulse can be set according to user needs, and its design value is usually larger. For example, in the technical solution disclosed in the embodiment of the present application, the amplitude of the first brake pulse and the overdrive of the linear motor The amplitude is the same, so as to realize rapid braking of the linear motor, after the first braking stage, the operating state of the linear motor basically meets the braking requirements;
步骤S103:判断所述线性马达的反电动势(Back electromotive force,BEMF)的不过零时间是否小于等于第一设置时间,当所述反电动势的不过零时间小于等于第一设置时间时即小于等于第一设置时间时,执行步骤S104,否则执行步骤S109;Step S103: Determine whether the back electromotive force (BEMF) of the linear motor has a zero-free time less than or equal to a first set time. When the back electromotive force (BEMF) is less than or equal to the first set time, it is less than or equal to the first set time. When the time is set, step S104 is executed, otherwise, step S109 is executed;
当需要控制线性马达执行自动刹车动作时,获取所述线性马达的反电动势,根据所述反电动势的波形得到所述反电动势的不过零时间,当所述反电动势的不过零时间小于等于预设时间时,需要对所述线性马达进行刹车动作,继续执行后续动作,当所述反电动势的不过零时间超过预设时间时,不需要对所述线性马达进行刹车动作,执行步骤S109;When the linear motor needs to be controlled to perform an automatic braking action, the back electromotive force of the linear motor is obtained, and the zero-free time of the back-EMF is obtained according to the waveform of the back-EMF. When the zero-free time of the back-EMF is less than or equal to a preset When the time is over, the linear motor needs to be braked and the subsequent actions are continued to be performed. When the zero-free time of the back-EMF exceeds the preset time, there is no need to brake the linear motor, and step S109 is performed;
步骤S104:判断所述反电动势的值是否小于预设的快速刹车门限,当所述反电动势的值不小于预设的快速刹车门限时,返回步骤S102;当所述反电动势的值小于预设的快速刹车门限时,执行步骤S105;Step S104: Determine whether the value of the back EMF is less than the preset fast braking threshold, and when the value of the back EMF is not less than the preset fast braking threshold, return to step S102; when the value of the back EMF is less than the preset fast braking threshold When the fast braking threshold is reached, step S105 is executed;
在本申请实施例公开的技术方案中,通过所述反电动势的值与预设的快速刹车门限值的比较结果来判断是否进入第二刹车阶段,在本步骤中,其中,所述快速刹车门限值的大小可以依据用户需求自行设定,在实际使用过程中,用户可以依据刹车效果调整所述快速刹车门限值的大小,在本步骤中,当所述反电动势的值不小于预设的快速刹车门限时,表明刹车过程还处于第一刹车阶段,返回步骤S102,当所述反电动势的值小于预设的快速刹车门限时,表明刹车过程已经进入第二刹车阶段,执行步骤S105;In the technical solution disclosed in the embodiment of the application, it is judged whether to enter the second braking stage according to the comparison result of the value of the back electromotive force and the preset rapid braking threshold. In this step, the rapid braking The size of the threshold value can be set according to user needs. In actual use, the user can adjust the size of the fast braking threshold value according to the braking effect. In this step, when the value of the back electromotive force is not less than the preset value, When the fast braking threshold is set, it indicates that the braking process is still in the first braking stage. Return to step S102. When the value of the back electromotive force is less than the preset fast braking threshold, it indicates that the braking process has entered the second braking stage, and step S105 is executed. ;
步骤S105:判断预设的第二使能信号的值是否为第二预设值,当所述第二使能信号的值为第二预设值时,执行步骤S106;Step S105: Determine whether the value of the preset second enable signal is the second preset value, and when the value of the second enable signal is the second preset value, perform step S106;
在一个可选方案中,第二预设值可以为1。不难理解,用于表征进入第二刹车阶段AUTOBRAKE1的第二使能信号对应的第二预设值也可以是其他值,用户可以根据需要进行相应设置。In an optional solution, the second preset value may be 1. It is not difficult to understand that the second preset value corresponding to the second enable signal used to characterize the entry into the second braking phase AUTOBRAKE1 may also be other values, and the user can set correspondingly according to needs.
在本步骤中,所述第二预设值可以为1,当所述反电动势的值小于预设的快速刹车门限时,表明刹车过程已经进入第二刹车阶段,在进入所述第二刹车 阶段后,首先判断所述第二使能信号的值是否为1,所述第二使能信号为用于表征进入第二刹车阶段AUTOBRAKE1的信号,如果所述第二使能信号的值为1,表明装置可以进入第二刹车阶段AUTOBRAKE1,如果所述第二使能信号的值不为1,则表明装置不可以进入第二刹车阶段,直接退出自动结束刹车流程。用户可以依据需求设置所述第二使能信号的值,例如,用户如果想要对所述线性马达进行自动刹车,则将所述第二使能信号的值配置为1,如果用户不需要对所述线性马达进行自动刹车,则将所述第二使能信号的值配置为0。In this step, the second preset value may be 1. When the value of the back electromotive force is less than the preset rapid braking threshold, it indicates that the braking process has entered the second braking stage, and when the second braking stage is entered After that, first determine whether the value of the second enable signal is 1. The second enable signal is a signal used to characterize entering the second braking phase AUTOBRAKE1. If the value of the second enable signal is 1, It indicates that the device can enter the second braking stage AUTOBRAKE1. If the value of the second enable signal is not 1, it indicates that the device cannot enter the second braking stage and directly exits the automatic braking process. The user can set the value of the second enable signal according to requirements. For example, if the user wants to automatically brake the linear motor, the value of the second enable signal is configured as 1, if the user does not need to If the linear motor performs automatic braking, the value of the second enable signal is configured to be zero.
在本申请实施例公开的技术方案中,用户可以依据需求设置第一使能信号和第二使能信号的值,两者可以相互独立,此时,当第一使能信号的值不为1时,可以判断所述第二使能信号的值是否为1。当然,所述第二使能信号的值也可以与所述第一使能信号相互关联,即,此时,所述第一使能信号的值可以为0或1,当所述第一使能信号的值为0时,所述第二使能信号的值只能为0,当所述第一使能信号的值可以为1时,所述第二使能信号的值可以为0或1,即,自动刹车过程可以仅执行第一刹车阶段,而不执行第二刹车阶段,也可以第一刹车阶段和第二刹车阶段均执行,但不能够在不执行第一刹车阶段的情况下直接进入第二刹车阶段;In the technical solution disclosed in the embodiments of the present application, the user can set the value of the first enable signal and the second enable signal according to requirements, and the two can be independent of each other. At this time, when the value of the first enable signal is not 1. At this time, it can be determined whether the value of the second enable signal is 1. Of course, the value of the second enable signal may also be correlated with the first enable signal, that is, at this time, the value of the first enable signal may be 0 or 1, when the first enable signal When the value of the enable signal is 0, the value of the second enable signal can only be 0, and when the value of the first enable signal can be 1, the value of the second enable signal can be 0 or 1. That is, the automatic braking process can only perform the first braking stage without performing the second braking stage, or both the first braking stage and the second braking stage can be performed, but it cannot be performed without performing the first braking stage Go directly to the second braking stage;
步骤S106:依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅值;Step S106: brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse;
本步骤为第二刹车阶段执行的刹车动作,具体的,所述第二刹车脉冲可以为一个周期信号,例如,参见图2所示,所述第二刹车脉冲信号为滤波后的方波信号,所述第二刹车脉冲可以由一个正脉冲A+和一个负脉冲A-组成,所述第二刹车脉冲的幅值方向与所述反电动势的方向相反,即,如果所述反电动势处于正半周期,则所述第二刹车脉冲为负脉冲A-,如果所述反电动势处于负半周期,则所述第二刹车脉冲为正脉冲A+;其中,在第二刹车阶段AUTOBRAKE1中所述第二刹车脉冲的幅值可以依据用户需求自行设定,当然为了保持刹车过程的平稳性所述第二刹车脉冲的幅值也可以跟随所述反电动势幅值变化而变化,使得所述第二刹车脉冲的幅值随着所述反电动势幅值的降低而降低。例如,所述第二刹车脉冲的幅值与所述反电动势幅值之间为正比例关系,即,所述第二刹车脉冲的幅值与所述反电动势幅值之比为一个预设的刹车因子,此时,当计算得到所述反电动势幅值后,将所述反电动势幅值与所述 刹车因子的乘积作为所述第二刹车脉冲的幅值。This step is the braking action performed in the second braking stage. Specifically, the second braking pulse may be a periodic signal. For example, as shown in FIG. 2, the second braking pulse signal is a filtered square wave signal. The second brake pulse may be composed of a positive pulse A+ and a negative pulse A-, and the amplitude direction of the second brake pulse is opposite to the direction of the back electromotive force, that is, if the back electromotive force is in a positive half cycle , The second brake pulse is a negative pulse A-, if the back electromotive force is in a negative half cycle, the second brake pulse is a positive pulse A+; wherein, in the second brake phase AUTOBRAKE1, the second brake The amplitude of the pulse can be set according to user needs. Of course, in order to maintain the stability of the braking process, the amplitude of the second brake pulse can also follow the changes in the amplitude of the back electromotive force, so that the second brake pulse The amplitude decreases as the amplitude of the back electromotive force decreases. For example, the amplitude of the second braking pulse and the amplitude of the back electromotive force are in a positive proportional relationship, that is, the ratio of the amplitude of the second braking pulse to the amplitude of the back electromotive force is a preset braking Factor. At this time, when the magnitude of the back EMF is calculated, the product of the magnitude of the back EMF and the braking factor is used as the magnitude of the second braking pulse.
步骤S107:判断所述线性马达的反电动势的不过零时间是否小于等于第二设置时间,当所述反电动势的不过零时间小于等于第二设置时间时,执行步骤S108;Step S107: Determine whether the zero-free time of the back-EMF of the linear motor is less than or equal to a second set time, and when the back-EMF zero-free time is less than or equal to the second set time, step S108 is executed;
当需要控制线性马达执行自动刹车动作时,获取所述线性马达的反电动势,根据所述反电动势的波形得到所述反电动势的不过零时间;当所述反电动势的不过零时间小于等于第二设置时间时,需要对所述线性马达进行刹车动作,继续执行后续动作,当所述反电动势的不过零时间超过第二设置时间时,不需要对所述线性马达进行刹车动作,执行步骤S109;When it is necessary to control the linear motor to perform an automatic braking action, obtain the back electromotive force of the linear motor, and obtain the zero-free time of the back-EMF according to the waveform of the back-EMF; when the zero-free time of the back-EMF is less than or equal to the second When setting the time, it is necessary to perform a braking action on the linear motor and continue to perform subsequent actions. When the zero-free time of the back electromotive force exceeds the second set time, there is no need to perform a braking action on the linear motor, and step S109 is performed;
步骤S108:判断所述反电动势的值是否小于预设的微调刹车门限,当所述反电动势的值不小于预设的微调刹车门限时,执行步骤S106,当所述反电动势的值小于预设的微调刹车门限时,执行步骤S109;Step S108: Determine whether the value of the back-EMF is less than the preset fine-tuning braking threshold, and when the value of the back-EMF is not less than the preset fine-tuning braking threshold, execute step S106, and when the value of the back-EMF is less than the preset When the brake threshold is fine-tuned, step S109 is executed;
在本申请实施例公开的技术方案中,通过所述反电动势的值与预设的微调刹车门限值的比较结果来判断第二刹车阶段是否结束,在本步骤中,其中,所述微调刹车门限值的大小可以依据用户需求自行设定,在实际使用过程中,用户可以依据刹车效果调整所述微调刹车门限值的大小,在本步骤中,当所述反电动势的值不小于预设的微调刹车门限时,表明刹车过程还处于第二刹车阶段,执行步骤S106,当所述反电动势的值小于预设的微调刹车门限时,表明第二刹车阶段已经结束,执行步骤S109;In the technical solution disclosed in the embodiment of the present application, it is determined whether the second braking stage is over through the comparison result of the value of the back electromotive force and the preset fine-tuning braking threshold. In this step, the fine-tuning braking The threshold value can be set according to user needs. In actual use, the user can adjust the size of the fine-tuned braking threshold value according to the braking effect. In this step, when the value of the back electromotive force is not less than the preset value, When the fine-tuned braking threshold is set, it indicates that the braking process is still in the second braking stage, and step S106 is executed. When the value of the back-EMF is less than the preset fine-tuned braking threshold, it indicates that the second braking stage has ended, and step S109 is executed;
步骤S109:结束自动刹车动作。Step S109: End the automatic braking action.
由上述方案可见,本发明提出的线性马达自动刹车流程图过程包括AUTOBRAKE0和AUTOBRAKE1两个阶段。当对所述线性马达进行自动刹车时,首先进入AUTOBRAKE0刹车阶段。在AUTOBRAKE0刹车阶段,假若实时监测的线性马达BEMF值不过零的时间超过系统的第一设置时间,结束自动刹车过程,当线性马达BEMF值不过零的时间小于等于系统的第一设置时间时,继续执行快速刹车动作。当线性马达BEMF值小于快速刹车门限时,进入AUTOBRAKE1刹车阶段。在AUTOBRAKE1刹车阶段,假若实时监测的LRA马达BEMF值不过零的时间超过系统的第二设置时间,或者AUTOBRAKE1对应的使能信号为0,或者监测到的BEMF值小于微调刹车门限,结束自动刹车过程,否则继续执行微调刹车动作,通过快速刹车和微调刹 车相结合的方式,实现了线性马达的短脆快的刹车效果。It can be seen from the above solution that the flow chart of the linear motor automatic braking process proposed by the present invention includes two stages, AUTOBRAKE0 and AUTOBRAKE1. When the linear motor is automatically braked, it first enters the AUTOBRAKE0 brake phase. In the AUTOBRAKE0 braking phase, if the real-time monitoring of the linear motor BEMF value does not exceed the first set time of the system, the automatic braking process ends. When the linear motor BEMF value does not exceed the zero time is less than or equal to the first set time of the system, continue Perform quick braking action. When the linear motor BEMF value is less than the fast brake threshold, enter the AUTOBRAKE1 brake phase. In the braking phase of AUTOBRAKE1, if the real-time monitoring of the BEMF value of the LRA motor does not exceed zero for the second set time of the system, or the enable signal corresponding to AUTOBRAKE1 is 0, or the monitored BEMF value is less than the fine-tuning braking threshold, the automatic braking process is terminated Otherwise, continue to perform the fine-tuning braking action, and through the combination of quick braking and fine-tuning braking, the short and crisp braking effect of the linear motor is realized.
参见图2,在自动刹车过程中,第一个刹车周期采用线性马达驱动芯片的预设马达周期(t_drv1*2),第二个及其以后的刹车周期的数量通过监测线性马达的BEMF的幅值,计算相应的刹车周期,如图2中所示的t_drv2,t_drv3,t_drv4等所示。在刹车过程中,刹车脉冲的个数根据BEMF的幅值进行自动调整。通过实时计算得到的刹车周期和适合的刹车脉冲个数,使刹车效果趋于完美。Refer to Figure 2, in the automatic braking process, the first braking cycle uses the linear motor drive chip's preset motor cycle (t_drv1*2), and the number of the second and subsequent braking cycles is monitored by the linear motor's BEMF amplitude Value, calculate the corresponding braking period, as shown in t_drv2, t_drv3, t_drv4, etc. shown in Figure 2. During the braking process, the number of braking pulses is automatically adjusted according to the amplitude of BEMF. By real-time calculation of the braking period and the number of suitable braking pulses, the braking effect tends to be perfect.
参见图3,在本申请实施例公开的技术方案中,在执行步骤S101之前,可以通过对线性马达驱动波形和自动刹车使能信号进行判断的方式,判断是否需要进入自动刹车过程,具体的,参见图3,在执行步骤S101之前,还包括:Referring to FIG. 3, in the technical solution disclosed in the embodiment of the present application, before step S101 is performed, it is possible to determine whether to enter the automatic braking process by judging the linear motor drive waveform and the automatic brake enable signal. Specifically, Referring to Fig. 3, before step S101 is executed, the method further includes:
步骤S301:判断线性马达的线性驱动波形播放是否结束,如果是,执行步骤S302;Step S301: Determine whether the linear driving waveform playback of the linear motor is over, if yes, go to step S302;
本步骤中,当所述线性马达的线性驱动波形播放结束时,表明所述线性马达需要进入刹车阶段,刹车阶段时,可以控制线性马达自动刹车,当然也可以不对其进行刹车,或者是用户手动刹车等,此时需要进入步骤S302,判断是否需要进行自动刹车。In this step, when the linear driving waveform of the linear motor is played, it indicates that the linear motor needs to enter the braking phase. During the braking phase, the linear motor can be controlled to automatically brake, of course, it can also not be braked, or the user can manually Braking, etc. At this time, step S302 needs to be entered to determine whether automatic braking is required.
步骤S302:判断自动刹车信号是否有效,当所述自动刹车信号有效时,执行步骤S101;Step S302: Determine whether the automatic braking signal is valid, and when the automatic braking signal is valid, execute step S101;
本步骤中,可以通过将所述自动刹车信号设置为0,1的方式设置所述自动刹车信号的有效性,例如,当所述自动刹车信号为1时,表明其有效,当其为0时标明其无效,当其无效时,表明不需要进入自动刹车流程。In this step, the validity of the automatic braking signal can be set by setting the automatic braking signal to 0, 1. For example, when the automatic braking signal is 1, it indicates that it is valid, and when it is 0 Indicate that it is invalid. When it is invalid, it indicates that it does not need to enter the automatic braking process.
在本申请上述实施例公开的技术方案中,在判断所述第一使能信号的值不为1时,例如其值为0,表明系统不需要执行快速刹车动作,直接进入步骤S105,判断其是否需要执行微调刹车动作,当第二使能信号的值不为1时,例如当判断结果为0时,表明自动刹车过程结束,退出自动刹车流程。且,当判断得到所述线性马达的反电动势的不过零时间超过所述设置时间时,表明自动刹车过程结束,退出自动刹车动作。在本方案中,用户可以依据需求设置第一使能信号和第二使能信号的值,两者可以相互独立,此时,当第一使能信号的值不为 1时,可以判断所述第二使能信号的值是否为1。当然,所述第二使能信号的值也可以与所述第一使能信号相互关联,即,此时,所述第一使能信号的值可以为0或1,当所述第一使能信号的值为0时,所述第二使能信号的值只能为0,当所述第一使能信号的值可以为1时,所述第二使能信号的值可以为0或1。In the technical solutions disclosed in the above-mentioned embodiments of the present application, when it is determined that the value of the first enable signal is not 1, for example, its value is 0, which indicates that the system does not need to perform a quick braking action. Step S105 is directly entered to determine its value. Whether to perform fine-tuning braking action, when the value of the second enable signal is not 1, for example, when the judgment result is 0, it indicates that the automatic braking process is over and the automatic braking process is exited. Moreover, when it is determined that the zero-free time of the back electromotive force of the linear motor exceeds the set time, it indicates that the automatic braking process is over and the automatic braking action is exited. In this solution, the user can set the value of the first enable signal and the second enable signal according to requirements, and the two can be independent of each other. At this time, when the value of the first enable signal is not 1, it can be determined that the Whether the value of the second enable signal is 1. Of course, the value of the second enable signal may also be correlated with the first enable signal, that is, at this time, the value of the first enable signal may be 0 or 1, when the first enable signal When the value of the enable signal is 0, the value of the second enable signal can only be 0, and when the value of the first enable signal can be 1, the value of the second enable signal can be 0 or 1.
进一步的,由于线性马达的型号不同,其所需要的第二刹车脉冲的幅值也就不同,在本申请实施例公开的技术方案中,在执行本方法之前,还可以通过以下方式确定所述刹车因子:Further, due to the different models of linear motors, the amplitudes of the second brake pulses required by them are also different. In the technical solutions disclosed in the embodiments of the present application, before performing the method, the following methods can also be used to determine the Braking factor:
由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子。当然也可以通过所述预设映射表调取所述第一刹车脉冲的幅值。The model identification of the linear motor is read from the storage device of the linear motor, and the braking factor matching the model identification is retrieved from a preset mapping table. Of course, the amplitude of the first brake pulse can also be retrieved through the preset mapping table.
进一步的,在本申请实施例公开的技术方案中,在测量所述反电动势的幅值时,可以依据以下方式进行测量:判断所述反电动势是否退出过零区域,如果是,开始计时,当设定时间到来时,测量当前时刻的反电动势幅值,其具体原理如图4所示,图4中,正弦波信号表示线性马达的反电动势波形,方波表示刹车脉冲。T DRV表示刹车脉冲的周期。ZC_DET表示反电动势的过零区域。在过零区域之后的固定位置设置检测点,以检测该时刻线性马达的反电动势的幅值。在整个刹车过程中实时监测反电动势的幅值。在AUTOBRAKE0刹车阶段,当反电动势的幅值小于快速刹车门限时,进入微调AUTOBRAKE1刹车阶段。在AUTOBRAKE1刹车阶段,当反电动势的幅值小于微调刹车门限时,结束自动刹车过程。 Further, in the technical solution disclosed in the embodiments of the present application, when measuring the amplitude of the back electromotive force, the measurement can be carried out in the following manner: it is determined whether the back electromotive force has exited the zero-crossing area, if so, start timing, when When the set time arrives, measure the amplitude of the back EMF at the current moment. The specific principle is shown in Figure 4. In Figure 4, the sine wave signal represents the back EMF waveform of the linear motor, and the square wave represents the brake pulse. T DRV represents the period of the brake pulse. ZC_DET represents the zero-crossing area of the back electromotive force. A detection point is set at a fixed position after the zero-crossing area to detect the amplitude of the back electromotive force of the linear motor at that moment. Real-time monitoring of the amplitude of the back electromotive force during the entire braking process. In the AUTOBRAKE0 braking phase, when the amplitude of the back-EMF is less than the fast braking threshold, enter the fine-tuning AUTOBRAKE1 braking phase. In the braking phase of AUTOBRAKE1, when the amplitude of the back electromotive force is less than the fine-adjusted braking threshold, the automatic braking process ends.
对应于上述方法,参见图5申请还公开了一种线性马达驱动芯片刹车装置,参见图5,该装置可以包括:Corresponding to the above method, referring to FIG. 5, the application also discloses a linear motor driving chip brake device. Referring to FIG. 5, the device may include:
快速刹车单元100和微调刹车单元200; Quick brake unit 100 and fine-tuned brake unit 200;
所述快速刹车单元100的具体工作过程与上述方法中步骤S101-S104相对应,用于:The specific working process of the quick braking unit 100 corresponds to steps S101-S104 in the above method, and is used for:
当线性马达需要执行自动刹车动作时,判断预设的第一使能信号的值是否为第一预设值;当所述第一使能信号的值为第一预设值时,依据第一刹车脉冲的幅值对所述线性马达进行刹车;判断所述线性马达的反电动势的不过零时间 是否超过设置时间;当所述反电动势的不过零时间小于等于设置时间时,判断所述反电动势的值是否小于预设的快速刹车门限;当所述反电动势的值小于预设的快速刹车门限时,向所述微调刹车单元输出触发信号;When the linear motor needs to perform an automatic braking action, it is determined whether the value of the preset first enable signal is the first preset value; when the value of the first enable signal is the first preset value, according to the first The amplitude of the brake pulse brakes the linear motor; it is judged whether the zero-free time of the back EMF of the linear motor exceeds the set time; when the zero-free time of the back EMF is less than or equal to the set time, the back EMF is determined Whether the value of is less than the preset fast braking threshold; when the value of the back electromotive force is less than the preset fast braking threshold, output a trigger signal to the fine-tuning braking unit;
所述微调刹车单元200的具体工作过程与上述方法中步骤S105-S108相对应,用于:The specific working process of the fine adjustment brake unit 200 corresponds to the steps S105-S108 in the above method, and is used for:
在获取到所述快速刹车单元输出的触发信号时,判断预设的第二使能信号的值是否为第二预设值;当所述第二使能信号的值为第二预设值时,依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅值;判断所述线性马达的反电动势的不过零时间是否超过所述设置时间;当所述反电动势的不过零时间小于等于设置时间时,判断所述反电动势的值是否小于预设的微调刹车门限;当所述反电动势的值小于预设的微调刹车门限时,结束自动刹车动作。When the trigger signal output by the quick brake unit is acquired, it is determined whether the value of the preset second enable signal is the second preset value; when the value of the second enable signal is the second preset value , Brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse; determine whether the back electromotive force of the linear motor has zero but zero time Exceed the set time; when the back-EMF zero-free time is less than or equal to the set time, determine whether the value of the back-EMF is less than the preset fine-tuning braking threshold; when the value of the back-EMF is less than the preset fine-tuning braking At the threshold, the automatic braking action ends.
所述第一预设值可以为1,所述第二预设值可以为1,上述实施例以第一使能信号对应的第一预设值为1,第二使能信号对应的第二预设值为1进行了说明,不难明白,第一使能信号对应的第一预设值可以为其他值,第二使能信号对应的第二预设值可以为其他值。The first preset value may be 1, and the second preset value may be 1. In the above embodiment, the first preset value corresponding to the first enable signal is 1, and the second preset value corresponding to the second enable signal is 1. The preset value is 1 for explanation. It is not difficult to understand that the first preset value corresponding to the first enable signal may be other values, and the second preset value corresponding to the second enable signal may be other values.
与上述方法相对应,上述装置还可以包括:Corresponding to the above method, the above device may further include:
刹车启动判断单元,用于判断线性马达的线性驱动波形播放是否结束,如果是,判断自动刹车信号是否有效,当所述自动刹车信号有效时,表明刹车装置要执行自动刹车动作,向所述快速刹车单元输出触发信号。The brake start judging unit is used to judge whether the linear drive waveform playback of the linear motor is over, and if it is, judge whether the automatic brake signal is valid. When the automatic brake signal is valid, it indicates that the brake device is to perform an automatic brake action, and The brake unit outputs a trigger signal.
与上述方法相对应,所述快速刹车单元和微调刹车单元还用于:Corresponding to the above method, the quick brake unit and the fine-tuned brake unit are also used for:
当判断得到所述第一使能信号的值不为1时,判断预设的第二使能信号的值是否为1;When it is determined that the value of the first enable signal is not 1, it is determined whether the value of the preset second enable signal is 1;
当判断得到所述第二使能信号的值不为1时,退出自动刹车动作;When it is determined that the value of the second enable signal is not 1, exit the automatic braking action;
当判断得到所述线性马达的反电动势的不过零时间超过所述设置时间时,退出自动刹车动作。When it is determined that the zero-free time of the back electromotive force of the linear motor exceeds the set time, the automatic braking action is exited.
与上述方法相对应,所述微调刹车单元还用于:Corresponding to the above method, the fine-tuning brake unit is also used for:
判定所述反电动势的值小于预设的微调刹车门限之后,所述依据第二刹车脉冲的幅值对所述线性马达进行刹车之前,还包括:After determining that the value of the back electromotive force is less than the preset fine-tuning braking threshold, before the braking the linear motor according to the amplitude of the second braking pulse, the method further includes:
获取所述线性马达的反电动势的值;Obtaining the value of the back electromotive force of the linear motor;
将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值。The product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
与上述方法相对应,上述装置还可以包括:Corresponding to the above method, the above device may further include:
刹车因子计算单元,用于:Braking factor calculation unit for:
由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子,将调取到的所述刹车因子发送至所述微调刹车单元。The model identification of the linear motor is read from the storage device of the linear motor, the braking factor matching the model identification is retrieved from the preset mapping table, and the retrieved braking factor is sent to all The fine-tuning brake unit is described.
为了描述的方便,描述以上系统时以功能分为各种模块分别描述。当然,在实施本申请时可以把各模块的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above system, the functions are divided into various modules and described separately. Of course, when implementing this application, the functions of each module can be implemented in the same one or more software and/or hardware.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. The system and system embodiments described above are merely illustrative, where the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is It can be located in one place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the hardware and software Interchangeability, in the above description, the composition and steps of each example have been generally described according to function. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式 的存储介质中。The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations There is any such actual relationship or order. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features disclosed in this document.

Claims (12)

  1. 一种线性马达驱动芯片刹车方法,其特征在于,包括:A linear motor driving chip braking method is characterized in that it comprises:
    判断预设的第一使能信号的值是否为第一预设值;Judging whether the preset value of the first enable signal is the first preset value;
    当所述第一使能信号的值为第一预设值时,依据第一刹车脉冲的幅值对所述线性马达进行刹车;When the value of the first enable signal is a first preset value, brake the linear motor according to the amplitude of the first brake pulse;
    判断所述线性马达的反电动势的不过零时间是否超过第一设置时间;Judging whether the non-zero time of the back electromotive force of the linear motor exceeds a first set time;
    当所述反电动势的不过零时间小于等于第一设置时间时,判断所述反电动势的值是否小于预设的快速刹车门限;When the zero-free time of the back electromotive force is less than or equal to the first set time, judging whether the value of the back electromotive force is less than a preset fast braking threshold;
    当所述反电动势的值小于预设的快速刹车门限时,判断预设的第二使能信号的值是否为第二预设值;When the value of the back electromotive force is less than the preset fast braking threshold, determining whether the value of the preset second enable signal is the second preset value;
    当所述第二使能信号的值为第二预设值时,依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅值;When the value of the second enable signal is a second preset value, the linear motor is braked according to the amplitude of the second brake pulse, and the amplitude of the second brake pulse is smaller than the first brake pulse The amplitude of
    判断所述线性马达的反电动势的不过零时间是否超过第二设置时间;Determining whether the non-zero time of the back electromotive force of the linear motor exceeds a second set time;
    当所述反电动势的不过零时间小于等于第二设置时间时,判断所述反电动势的值是否小于预设的微调刹车门限;When the zero-free time of the back electromotive force is less than or equal to the second set time, judging whether the value of the back electromotive force is less than a preset fine-tuning brake threshold;
    当所述反电动势的值小于预设的微调刹车门限时,结束自动刹车动作。When the value of the back electromotive force is less than the preset fine-tuning braking threshold, the automatic braking action is ended.
  2. 根据权利要求1所述的线性马达驱动芯片刹车方法,其特征在于,The linear motor-driven chip braking method of claim 1, wherein:
    所述第一预设值为1,所述第二预设值为1。The first preset value is 1, and the second preset value is 1.
  3. 根据权利要求2所述的线性马达驱动芯片刹车方法,其特征在于,所述判断预设的第一使能信号的值是否为1之前,还包括:The linear motor driving chip braking method according to claim 2, wherein before said determining whether the value of the preset first enable signal is 1, the method further comprises:
    判断线性马达的线性驱动波形播放是否结束,如果是,判断自动刹车信号是否有效,当所述自动刹车信号有效时,判断预设的第一使能信号的值是否为1。It is judged whether the linear driving waveform playback of the linear motor is over, if it is, it is judged whether the automatic brake signal is valid, and when the automatic brake signal is valid, it is judged whether the value of the preset first enable signal is 1.
  4. 根据权利要求2所述的线性马达驱动芯片刹车方法,其特征在于,The linear motor-driven chip braking method of claim 2, wherein:
    当判断得到所述第一使能信号的值不为1时,判断预设的第二使能信号的值是否为1;When it is determined that the value of the first enable signal is not 1, it is determined whether the value of the preset second enable signal is 1;
    当判断得到所述第二使能信号的值不为1时,退出自动刹车动作。When it is determined that the value of the second enable signal is not 1, the automatic braking action is exited.
  5. 根据权利要求2所述的线性马达驱动芯片刹车方法,其特征在于,判 定所述反电动势的值小于预设的微调刹车门限之后,所述依据第二刹车脉冲的幅值对所述线性马达进行刹车之前,还包括:The linear motor driving chip braking method according to claim 2, wherein after determining that the value of the back electromotive force is less than a preset fine-tuning braking threshold, the linear motor is performed according to the amplitude of the second braking pulse Before braking, it also includes:
    获取所述线性马达的反电动势的值;Obtaining the value of the back electromotive force of the linear motor;
    将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值。The product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
  6. 根据权利要求5所述的线性马达驱动芯片刹车方法,其特征在于,将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值之前,还包括:The linear motor driving chip braking method according to claim 5, wherein before the product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse, the method further comprises:
    由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子。The model identification of the linear motor is read from the storage device of the linear motor, and the braking factor matching the model identification is retrieved from a preset mapping table.
  7. 一种线性马达驱动芯片刹车装置,其特征在于,包括:A linear motor-driven chip brake device, which is characterized by comprising:
    快速刹车单元和微调刹车单元;Quick brake unit and fine-tuning brake unit;
    所述快速刹车单元用于:The quick brake unit is used for:
    当线性马达需要执行自动刹车动作时,判断预设的第一使能信号的值是否为第一预设值;当所述第一使能信号的值为第一预设值时,依据第一刹车脉冲的幅值对所述线性马达进行刹车;判断所述线性马达的反电动势的不过零时间是否超过第一设置时间;当所述反电动势的不过零时间小于等于第一设置时间时,判断所述反电动势的值是否小于预设的快速刹车门限;当所述反电动势的值小于预设的快速刹车门限时,向所述微调刹车单元输出触发信号;When the linear motor needs to perform an automatic braking action, it is determined whether the value of the preset first enable signal is the first preset value; when the value of the first enable signal is the first preset value, according to the first The amplitude of the brake pulse brakes the linear motor; it is determined whether the zero-free time of the back-EMF of the linear motor exceeds the first set time; when the zero-free time of the back-EMF is less than or equal to the first set time, it is determined Whether the value of the back electromotive force is less than the preset fast braking threshold; when the value of the back electromotive force is less than the preset fast braking threshold, output a trigger signal to the fine-tuning braking unit;
    所述微调刹车单元用于:The fine adjustment brake unit is used for:
    在获取到所述快速刹车单元输出的触发信号时,判断预设的第二使能信号的值是否为第二预设值;当所述第二使能信号的值为第二预设值时,依据第二刹车脉冲的幅值对所述线性马达进行刹车,所述第二刹车脉冲的幅值小于所述第一刹车脉冲的幅值;判断所述线性马达的反电动势的不过零时间是否超过第二设置时间;当所述反电动势的不过零时间小于等于所述第二设置时间时,判断所述反电动势的值是否小于预设的微调刹车门限;当所述反电动势的值小于预设的微调刹车门限时,结束自动刹车动作。When the trigger signal output by the quick brake unit is acquired, it is determined whether the value of the preset second enable signal is the second preset value; when the value of the second enable signal is the second preset value , Brake the linear motor according to the amplitude of the second brake pulse, the amplitude of the second brake pulse is smaller than the amplitude of the first brake pulse; determine whether the back electromotive force of the linear motor has zero but zero time Exceeding the second set time; when the back-EMF zero-free time is less than or equal to the second set time, determine whether the value of the back-EMF is less than the preset fine-tuning brake threshold; when the value of the back-EMF is less than the preset The automatic braking action will end when the fine-tuning brake threshold is set.
  8. 根据权利要求7所述的线性马达驱动芯片刹车装置,其特征在于,所述第一预设值为1,所述第二预设值为1。7. The linear motor-driven chip brake device of claim 7, wherein the first preset value is 1, and the second preset value is 1.
  9. 根据权利要求8所述的线性马达驱动芯片刹车装置,其特征在于,还 包括:The linear motor-driven chip brake device of claim 8, further comprising:
    刹车启动判断单元,用于判断线性马达的线性驱动波形播放是否结束,如果是,判断自动刹车信号是否有效,当所述自动刹车信号有效时,表明刹车装置要执行自动刹车动作,向所述快速刹车单元输出触发信号。The brake start judging unit is used to judge whether the linear drive waveform playback of the linear motor is over, and if it is, judge whether the automatic brake signal is valid. When the automatic brake signal is valid, it indicates that the brake device is to perform an automatic brake action, and The brake unit outputs a trigger signal.
  10. 根据权利要求8所述的线性马达驱动芯片刹车装置,其特征在于,所述快速刹车单元和微调刹车单元还用于:The linear motor-driven chip brake device according to claim 8, wherein the quick brake unit and the fine-tuned brake unit are further used for:
    当判断得到所述第一使能信号的值不为1时,判断预设的第二使能信号的值是否为1;When it is determined that the value of the first enable signal is not 1, it is determined whether the value of the preset second enable signal is 1;
    当判断得到所述第二使能信号的值不为1时,退出自动刹车动作。When it is determined that the value of the second enable signal is not 1, the automatic braking action is exited.
  11. 根据权利要求8所述的线性马达驱动芯片刹车装置,其特征在于,所述微调刹车单元还用于:The linear motor-driven chip brake device according to claim 8, wherein the fine adjustment brake unit is further used for:
    判定所述反电动势的值小于预设的微调刹车门限之后,所述依据第二刹车脉冲的幅值对所述线性马达进行刹车之前,还包括:After determining that the value of the back electromotive force is less than the preset fine-tuning braking threshold, before the braking the linear motor according to the amplitude of the second braking pulse, the method further includes:
    获取所述线性马达的反电动势的值;Obtaining the value of the back electromotive force of the linear motor;
    将所述反电动势的值与预设的刹车因子的乘积作为所述第二刹车脉冲的幅值。The product of the value of the back electromotive force and the preset braking factor is used as the amplitude of the second braking pulse.
  12. 根据权利要求11所述的线性马达驱动芯片刹车装置,其特征在于,还包括:刹车因子计算单元,用于:The linear motor-driven chip braking device according to claim 11, further comprising: a braking factor calculation unit for:
    由所述线性马达的存储设备中读取所述线性马达的型号标识,由预设映射表中调取与所述型号标识相匹配的刹车因子,将调取到的所述刹车因子发送至所述微调刹车单元。The model identification of the linear motor is read from the storage device of the linear motor, the braking factor matching the model identification is retrieved from the preset mapping table, and the retrieved braking factor is sent to all The fine-tuning brake unit is described.
PCT/CN2020/072201 2019-01-17 2020-01-15 Linear motor drive chip braking method and apparatus WO2020147742A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910044725.3A CN109713944B (en) 2019-01-17 2019-01-17 Linear motor driving chip braking method and device
CN201910044725.3 2019-01-17

Publications (1)

Publication Number Publication Date
WO2020147742A1 true WO2020147742A1 (en) 2020-07-23

Family

ID=66262410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/072201 WO2020147742A1 (en) 2019-01-17 2020-01-15 Linear motor drive chip braking method and apparatus

Country Status (2)

Country Link
CN (1) CN109713944B (en)
WO (1) WO2020147742A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109713944B (en) * 2019-01-17 2020-08-25 上海艾为电子技术股份有限公司 Linear motor driving chip braking method and device
CN116054678B (en) * 2021-10-28 2024-05-31 武汉市聚芯微电子有限责任公司 Linear motor control method and control device
CN116054679B (en) * 2021-10-28 2024-05-07 武汉市聚芯微电子有限责任公司 Linear motor control method and device
CN116142158B (en) * 2021-11-30 2024-05-07 武汉市聚芯微电子有限责任公司 Method and device for braking linear motor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012122443A1 (en) * 2011-03-09 2012-09-13 Analog Devices, Inc. Smart linear resonant actuator control
CN104020844A (en) * 2013-03-01 2014-09-03 英默森公司 Haptic device with linear resonant actuator
CN105630021A (en) * 2015-12-31 2016-06-01 歌尔声学股份有限公司 Touch sense vibration control system and method of intelligent terminal
CN107024985A (en) * 2017-01-24 2017-08-08 瑞声科技(新加坡)有限公司 Linear motor brake method and device, and haptic feedback system
CN108429507A (en) * 2018-01-15 2018-08-21 上海艾为电子技术股份有限公司 The method and apparatus for determining linear vibrator resonant frequency
CN109713944A (en) * 2019-01-17 2019-05-03 上海艾为电子技术股份有限公司 A kind of linear motor driven chip brake method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5003241A (en) * 1988-03-08 1991-03-26 Allen-Bradley Company, Inc. Motor stoppage detection using back emf voltage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012122443A1 (en) * 2011-03-09 2012-09-13 Analog Devices, Inc. Smart linear resonant actuator control
CN104020844A (en) * 2013-03-01 2014-09-03 英默森公司 Haptic device with linear resonant actuator
CN105630021A (en) * 2015-12-31 2016-06-01 歌尔声学股份有限公司 Touch sense vibration control system and method of intelligent terminal
CN107024985A (en) * 2017-01-24 2017-08-08 瑞声科技(新加坡)有限公司 Linear motor brake method and device, and haptic feedback system
CN108429507A (en) * 2018-01-15 2018-08-21 上海艾为电子技术股份有限公司 The method and apparatus for determining linear vibrator resonant frequency
CN109713944A (en) * 2019-01-17 2019-05-03 上海艾为电子技术股份有限公司 A kind of linear motor driven chip brake method and device

Also Published As

Publication number Publication date
CN109713944A (en) 2019-05-03
CN109713944B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
WO2020147742A1 (en) Linear motor drive chip braking method and apparatus
CN110265064A (en) Audio sonic boom detection method, device and storage medium
US9558757B1 (en) Selective de-reverberation using blind estimation of reverberation level
CN107191403B (en) Control method, device and the fan of oscillating fan rotational angle
CN107645696B (en) One kind is uttered long and high-pitched sounds detection method and device
CN114299991A (en) Vibration generation method, device and equipment based on audio signal and storage medium
CN110021292A (en) Method of speech processing, device and smart home device
CN110136735A (en) A kind of audio restorative procedure, equipment and readable storage medium storing program for executing
JP5094674B2 (en) Motor control device and method thereof
CN111063356B (en) Electronic equipment response method and system, sound box and computer readable storage medium
CN111327247A (en) Motor control method and system
CN108075707B (en) Asynchronous motor restarting method and system based on V/f control mode
JP5077847B2 (en) Reverberation time estimation apparatus and reverberation time estimation method
TW201522971A (en) Fan testing system and method
JP3500953B2 (en) Audio playback system setup method and apparatus
JP2009507260A (en) Signal recognition method using a microcontroller
CN109739112A (en) A kind of wobble objects control method and wobble objects
JP2583185B2 (en) Method of determining tool life by AE, apparatus for implementing the method, and automatic tool change system using the method and apparatus
JP2004333199A (en) Apparatus and method for determining abnormal sound
JP2007163336A (en) Vehicle noise sound detector and method for detecting vehicle noise sound
CN116142158B (en) Method and device for braking linear motor
CN111899722B (en) Voice processing method and device and storage medium
CN115220431B (en) Non-inductive brushless motor controller simulation load circuit and test method and device
JP2004198401A (en) Method of measuring filter characteristics, and measuring device thereof
JP2003142956A5 (en)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20742090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20742090

Country of ref document: EP

Kind code of ref document: A1