# US 2021/0041847 A1 · Method for compensating signal of motor, electronic apparatus and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0041847 A1
- Document ID: US20210041847A1
- Status: Published application
- Kind: A1
- Application number: 16/941,540
- Filed: 2020-07-29
- Published: 2021-02-11
- Earliest claimed: 2019-08-09
- Assignees: AAC Technologies Pte. Ltd.
- Applicants: AAC Technologies Pte. Ltd.
- Inventors: Xuan Guo; Zheng Xiang; Xiang Lu
- Web page: https://patentgrep.com/patent/US20210041847A1

## CPC

- G05B 19/404: characterised by control arrangements for compensation, e.g. for backlash, overshoot, tool offset, tool wear, temperature, machine construction errors, load, inertia (G05B19/19, G05B19/41 take precedence)
- H02K 33/00: Motors with reciprocating, oscillating or vibrating magnet, armature or coil system (arrangements for handling mechanical energy structurally associated with motors H02K7/00, e.g. H02K7/06)
- F04B 49/065: {and making use of computers}
- H02K 11/20: for measuring, monitoring, testing, protecting or switching (rectifiers H02K11/04; power electronics H02K11/33)
- H02K 41/02: Linear motors; Sectional motors
- H02P 25/032: Reciprocating, oscillating or vibrating motors
- F04B 2203/0401: Current
- F04B 2203/0406: Vibration
- F04B 2203/0409: Linear speed
- G06F 3/016: {Input arrangements with force or tactile feedback as computer generated output to the user}
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- H02K: DYNAMO-ELECTRIC MACHINES (dynamo-electric relays H01H53/00; conversion of DC or AC input power into surge output power {H03K3/53})
- F04B: POSITIVE-DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS (machines for liquids, or pumps, of rotary-piston or oscillating-piston type F04C; non-positive-displacement pumps F04D; pumping of fluid by direct contact of another fluid or by using inertia of fluid to be pumped F04F)
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for compensating a signal of a motor includes acquiring an original signal and nonlinear parameters of the motor; calculating a compensation signal for the original signal according to the acquired nonlinear parameters; and loading the calculated compensation signal into the motor to excite the motor to vibrate. An electronic apparatus and a storage medium are also provided. In this method, the original excitation signal is compensated for nonlinearity according to the nonlinear motor parameters, and is then used for exciting the motor. Therefore, the actual vibration effect can be closer to the expected effect as designed, which can bring more desirable tactility experience.

## Claims

### Claim 1

A method for compensating a signal of a motor, comprising:
acquiring an original signal and nonlinear parameters of the motor;
calculating a compensation signal for the original signal according to the acquired nonlinear parameters; and
loading the calculated compensation signal into the motor to excite the motor to vibrate.

### Claim 2 (depends on 1)

The method for compensating a signal of a motor according to claim 1, wherein the nonlinear parameters comprise an electromagnetic force coefficient b, a spring stiffness coefficient k and a damping Rrn, and the functions of the nonlinear parameters with respect to a vibrator displacement x are expressed as follows:
b(x)=b0+b1x+b2x2+ . . . +bnxn
k(x)=k0+k1x+k2x2+ . . . +knxn
Rm(x)=R0+R1x+R2x2+ . . . +Rnxn
where n is an arbitrary positive integer, and and b0˜bn and k0˜kn, R0˜Rn are nonlinear parameter coefficients.

### Claim 3 (depends on 2)

The method for compensating a signal of a motor according to claim 2, wherein the nonlinear parameter coefficients are calculated through a least mean square algorithm based on voltage values and current values of the motor.

### Claim 4 (depends on 3)

The method for compensating a signal of a motor according to claim 3, wherein in the step of calculating a compensation signal for the original signal according to the acquired nonlinear parameters, the compensation signal for the original signal is calculated according to the acquired nonlinear parameters by a compensation equation, and the compensation equation is:
u=α(x)[w+β(x)];
where x is the vibrator displacement, w is the original signal, u is the compensation signal, α(x) is the first compensation coefficient, and β(x) is the second compensation coefficient.

### Claim 5 (depends on 4)

The method for compensating a signal of a motor according to claim 4, wherein the first compensation coefficient is calculated according to the following formula:
α

(
x
)
=
b

(
0
)
b

(
x
1
)
;
and
the second compensation coefficient is calculated according to the following formula:
β

(
x
)
=
-
k

(
0
)

R
e
b

(
0
)

x
1
-
R
e

R
m

(
0
)
+
k

(
0
)

L
e
+
b
2

(
0
)
b

(
0
)

x
2
+
R
e

mk

(
x
1
)
+
R
m

(
0
)

L
e

k

(
x
1
)
mb

(
0
)

x
1
+
R
e

mR
m

(
x
1
)
+
R
m

(
0
)

L
e

R
m

(
x
1
)
mb

(
0
)

x
2
-
R
e

mb

(
x
1
)
+
R
m

(
0
)

L
e

b

(
x
1
)
mb

(
0
)

x
3
+
k

(
x
1
)

L
e
b
0

x
2
+
k
x

(
x
1
)

L
e
b

(
0
)

x
1

x
2
+
R
mx

(
x
1
)

L
e
b

(
0
)

x
2
2
-
b
x

(
x
1
)

L
e
b

(
0
)

x
2

x
3
-
R
m

(
x
1
)

k

(
x
1
)

L
e
mb

(
0
)

x
1
-
R
m
2

(
x
1
)

L
e
mb

(
0
)

x
2
+
R
m

(
x
1
)

b

(
x
1
)

L
e
mb

(
0
)

x
3
+
b
2

(
x
1
)
b

(
0
)

x
2
+
R
e

b

(
x
1
)
b

(
0
)

x
3
;
where x1=x, x2={dot over (x)}, x3=i, bx(x)=b1+2b2x+ . . . +nbnxn−1, kx(x)=k1+2k2x+ . . . +nknxn−1, Rmx(x)=R1+2R2x+ . . . +nRnxn−1, and Re is a resistance, Le is an inductance, m is a vibrator mass, {dot over (x)} is a vibrator speed, and i is current.

### Claim 6 (depends on 1)

The method for compensating a signal of a motor according to claim 1, wherein loading the calculated compensation signal into the motor to excite the motor to vibrate comprises:
converting the calculated compensation signal into an analog electric signal through a digital-to-analog converter;
amplifying the analog electric signal through a power amplifier; and
loading the amplified analog electrical signal to the motor.

### Claim 7 (depends on 1)

The method for compensating a signal of a motor according to claim 1, wherein after the step of loading the calculated compensation signal into the motor to excite the motor to vibrate, the method for compensating a signal of a motor further comprises:
acquiring vibration data of the excited motor;
comparing the acquired vibration data with expected data; and
acquiring an effect detection result.

### Claim 8 (depends on 7)

The method for compensating a signal of a motor according to claim 7, wherein the step of acquiring the vibration data of the excited motor comprises:
acquiring acceleration data of the motor through an accelerometer;
amplifying the acceleration data through a signal amplifier;
converting the amplified acceleration data into a digital signal through an analog-to-digital converter; and
processing the digital signal to obtain the vibration data of the motor.

### Claim 9

An electronic apparatus comprising:
at least one processor; and
a memory in communication with the at least one processor, the memory storing a motor signal compensation program executable by the at least one processor, the motor signal compensation program being executable by the at least one processor to perform a method for compensating a signal of a motor, the method comprising:
acquiring an original signal and nonlinear parameters of the motor;
calculating a compensation signal for the original signal according to the acquired nonlinear parameters; and
loading the calculated compensation signal into the motor to excite the motor to vibrate.

### Claim 10 (depends on 9)

The electronic apparatus according to claim 9, wherein the nonlinear parameters comprise an electromagnetic force coefficient b, a spring stiffness coefficient k and a damping Rm, and the functions of the nonlinear parameters with respect to a vibrator displacement x are expressed as follows:
b(x)=b0+b1x+b2x2+ . . . +bnxn
k(x)=k0+k1x+k2x2+ . . . +knxn
Rm(x)=R0+R1x+R2x2+ . . . +Rnxn
where n is an arbitrary positive integer, and b0˜bn and k0˜kn, R0˜Rn are nonlinear parameter coefficients.

### Claim 11 (depends on 10)

The electronic apparatus according to claim 10, wherein the nonlinear parameter coefficients are calculated through a least mean square algorithm based on voltage values and current values of the motor.

### Claim 12 (depends on 11)

The electronic apparatus according to claim 11, wherein in the step of calculating a compensation signal for the original signal according to the acquired nonlinear parameters, the compensation signal for the original signal is calculated according to the acquired nonlinear parameters by a compensation equation, and the compensation equation is:
u
=
α

(
x
)

[
w
+
β

(
x
)
]
;
where x is the vibrator displacement, w is the riginal signal, u is the compensation signal, α(x) is the first compensation coefficient, and β(x) is the second compensation coefficient.

### Claim 13 (depends on 12)

The electronic apparatus according to claim 12, wherein the first compensation coefficient is calculated according to the following formula:
α

(
x
)
=
b

(
0
)
b

(
x
1
)
;
and
the second compensation coefficient is calculated according to the following formula:
β

(
x
)
=
-
k

(
0
)

R
e
b

(
0
)

x
1
-
R
e

R
m

(
0
)
+
k

(
0
)

L
e
+
b
2

(
0
)
b

(
0
)

x
2
+
R
e

mk

(
x
1
)
+
R
m

(
0
)

L
e

k

(
x
1
)
mb

(
0
)

x
1
+
R
e

mR
m

(
x
1
)
+
R
m

(
0
)

L
e

R
m

(
x
1
)
mb

(
0
)

x
2
-
R
e

mb

(
x
1
)
+
R
m

(
0
)

L
e

b

(
x
1
)
mb

(
0
)

x
3
+
k

(
x
1
)

L
e
b
0

x
2
+
k
x

(
x
1
)

L
e
b

(
0
)

x
1

x
2
+
R
mx

(
x
1
)

L
e
b

(
0
)

x
2
2
-
b
x

(
x
1
)

L
e
b

(
0
)

x
2

x
3
-
R
m

(
x
1
)

k

(
x
1
)

L
e
mb

(
0
)

x
1
-
R
m
2

(
x
1
)

L
e
mb

(
0
)

x
2
+
R
m

(
x
1
)

b

(
x
1
)

L
e
mb

(
0
)

x
3
+
b
2

(
x
1
)
b

(
0
)

x
2
+
R
e

b

(
x
1
)
b

(
0
)

x
3
where x1=x, x2={dot over (x)}, x3=i, bx(x)=b1+2b2x+ . . . +nbnxn−1, kx(x)=k1+2k2x+ . . . +nknxn−1, Rmx(x)=R1+2R2x+ . . . +nRnxn−1, and Re is a resistance, Le is an inductance, m is a vibrator mass, {dot over (x)} is a vibrator speed, and i is current.

### Claim 14 (depends on 9)

The electronic apparatus according to claim 9, wherein loading the calculated compensation signal into the motor to excite the motor to vibrate comprises:
converting the calculated compensation signal into an analog electric signal through a digital-to-analog converter;
amplifying the analog electric signal through a power amplifier; and
loading the amplified analog electrical signal to the motor.

### Claim 15 (depends on 9)

The electronic apparatus according to claim 9, wherein after the step of loading the calculated compensation signal into the motor to excite the motor to vibrate, the method for compensating a signal of a motor further comprises:
acquiring vibration data of the excited motor;
comparing the acquired vibration data with expected data; and
acquiring an effect detection result.

### Claim 16 (depends on 15)

The method for compensating a signal of a motor according to claim 15, wherein the step of acquiring the vibration data of the excited motor comprises:
acquiring acceleration data of the motor through an accelerometer;
amplifying the acceleration data through a signal amplifier;
converting the amplified acceleration data into a digital signal through an analog-to-digital converter; and
processing the digital signal to obtain the vibration data of the motor.

### Claim 17

A computer readable storage medium having a motor signal compensation program stored thereon, the motor signal compensation program being executable by at least one processor to perform a method for compensating a signal of a motor, the method comprising:
acquiring an original signal and nonlinear parameters of the motor;
calculating a compensation signal for the original signal according to the acquired nonlinear parameters; and
loading the calculated compensation signal into the motor to excite the motor to vibrate.

### Claim 18 (depends on 17)

The computer readable storage medium according to claim 17, wherein the nonlinear parameters comprise an electromagnetic force coefficient b, a spring stiffness coefficient k and a damping Rm, and the functions of the nonlinear parameters with respect to a vibrator displacement x are expressed as follows:
b(x)=b0+b1x+b2x2+ . . . +bnxn
k(x)=k0+k1x+k2x2+ . . . +knxn
Rm(x)=R0+R1x+R2x2+ . . . +Rnxn
where n is an arbitrary positive integer, and b0˜bn and k0˜kn, R0˜Rn are nonlinear parameter coefficients.

### Claim 19 (depends on 18)

The computer readable storage medium according to claim 18, wherein in the step of calculating a compensation signal for the original signal according to the acquired nonlinear parameters, the compensation signal for the original signal is calculated according to the acquired nonlinear parameters by a compensation equation, and the compensation equation is:
u=α(x)[w+β(x)];
where x is the vibrator displacement, w is the original signal, u is the compensation signal, α(x) is the first compensation coefficient, and β(x) is the second compensation coefficient.

### Claim 20 (depends on 19)

The computer readable storage medium according to claim 19, wherein the first compensation coefficient s calculated according to the following formula:
α

(
x
)
=
b

(
0
)
b

(
x
1
)
;
and
the second compensation coefficient is calculated according to the following formula:
β

(
x
)
=
-
k

(
0
)

R
e
b

(
0
)

x
1
-
R
e

R
m

(
0
)
+
k

(
0
)

L
e
+
b
2

(
0
)
b

(
0
)

x
2
+
R
e

mk

(
x
1
)
+
R
m

(
0
)

L
e

k

(
x
1
)
mb

(
0
)

x
1
+
R
e

mR
m

(
x
1
)
+
R
m

(
0
)

L
e

R
m

(
x
1
)
mb

(
0
)

x
2
-
R
e

mb

(
x
1
)
+
R
m

(
0
)

L
e

b

(
x
1
)
mb

(
0
)

x
3
+
k

(
x
1
)

L
e
b
0

x
2
+
k
x

(
x
1
)

L
e
b

(
0
)

x
1

x
2
+
R
mx

(
x
1
)

L
e
b

(
0
)

x
2
2
-
b
x

(
x
1
)

L
e
b

(
0
)

x
2

x
3
-
R
m

(
x
1
)

k

(
x
1
)

L
e
mb

(
0
)

x
1
-
R
m
2

(
x
1
)

L
e
mb

(
0
)

x
2
+
R
m

(
x
1
)

b

(
x
1
)

L
e
mb

(
0
)

x
3
+
b
2

(
x
1
)
b

(
0
)

x
2
+
R
e

b

(
x
1
)
b

(
0
)

x
3
;
where x1=x, x2={dot over (x)}, x3=i, bx(x)=b1+2b2x+ . . . +nbnxn−1, kx(x)=k1+2k2x+ . . . +nknxn−1, Rmx(x)=R1+2R2x+ . . . +nRnxn−1, and Re is a resistance, Le is an inductance, m is a vibrator mass, {dot over (x)} is a vibrator speed, and i is current.
