DFRobot SEN0521 User Manual page 15

5.8g microwave radar module
Table of Contents

Advertisement

Send command:getPwm
Command response:Response par1 par2 par3
Parameter items:
par1
par2
par3
Command execution result:
Done
Error
Example:
When the target is
detected, the OUT pin
outputs a high level signal
(100% duty cycle);
otherwise, it outputs a low
level signal (0% duty
cycle).
When the target is
detected, the OUT pin
outputs a high level signal
(100% duty cycle);
otherwise, it outputs a low
level signal (0% duty
cycle). The transition is
completed over a period of
1.984 seconds
(approximately 2 seconds).
The OUT pin outputs a low
level signal (0% duty
cycle) when the target is
detected; otherwise, it
outputs a high level signal
(100% duty cycle).
When the target is
detected, the OUT pin
outputs a PWM signal with a
duty cycle of 90%;
Duty cycle of OUT pin signal output when no target is
detected: Value range from 0 to 100.
Duty cycle of OUT pin signal output when a target is
detected: Value range from 0 to 100.
Time required for the duty cycle to transition from par1 to
par2: Value range from 0 to 255. Corresponding time value is
par3*64ms. Note: If par3=20, then the transition from par1 to
par2 will take 20*64ms=1.28s.
The command was executed successfully.
The command execution failed.
setPwm 0 100
leapMMW:/>
setPwm 0 100 31
leapMMW:/>
setPwm 100 0
leapMMW:/>
setPwm 10 90
leapMMW:/>
14

Advertisement

Table of Contents
loading

Table of Contents