Wireless Charging Sonic Electric Toothbrushes
WAS-1972EN V1.00
13 / 17
December 27, 2021
Toothbrush Body Function Execution Subroutine Description
Execute Toothbrush
function
Charging
?
End
N
The key has been
pressed
?
Switch to the operating
mode 0
The operating mode is
switched sequentially
0
→
1
→
2
→
3
→
0 ...
Load the corresponding time
parameter and
light the corresponding LED
Timer interrupt
Count value=0
End
Count value=1
Motor rotates forward
Update interrupt time
Count value=1
Count value=2
Count value=3
Motor stops
Update interrupt time
Count value=2
Motor rotates backward
Update interrupt time
Count value=3
Motor stops
Update interrupt time
Count value=0
N
N
Y
Y
Y
N
Y
N
Y
N
Y
N
Figure 10. BP45F1330
Toothbrush Operating Flowchart
Operating mode: There are four operating modes for the toothbrush body. After the operating mode is
executed, return to the main program immediately. If the MCU has entered the charging state, it will
be forcibly switched to operating mode 0. Each operating mode is described below.
1.
Operating mode 0: Turn off the sonic motor and all LEDs.
2.
Operating mode 1: Motor rotates for 1.08ms and stops for 0.42ms. Only white LED1 is always on.
3.
Operating mode 2: Motor rotates for 1.08ms and stops for 1.08ms. Only white LED2 is always on.
4.
Operating mode 3: Motor rotates for 1.52ms and stops for 0.72ms. Only white LED3 is always on.
Set the motor rotate/stop time in the main program and use the interrupt and counter to update the
interrupt time and motor action.