Instructions For Operation Interface Definition Pin number Definition Explanation Power supply of the module; power supply range from 4.5 to 5.5V; Module ground. Output signal; can output I/O digital signals or PWM control signals. Module serial port transmission; used to configure module operating parameters.
You can configure parameters such as detection sensitivity, detection distance, detection time, etc. through the serial Tx and Rx pins. Please refer to the following chapters for detailed information. The default configuration parameters of the 5.8G Microwave Radar module may not be suitable for all customers' actual scenarios.
The module for detecting slight movements is highly sensitive to installation methods. Improper installation can result in electromagnetic waves emitted by the module being unable to or unreasonably illuminating the target to be detected, which directly affects its performance and function and may even cause abnormal operation (false reporting or missed detection).
When installing at an oblique angle downwards or parallel forwards, one must pay attention to the direct detection of "air conditioners", "curtains", "fans", or "plants", as their swinging frequencies may fall within the respiration frequency range, which could result in false alarms from the module. At the same time, it is necessary to be aware of multipath reflections that occur when the beam is irradiated onto the ground, walls, or doors, which indirectly detect the above-mentioned interferences in a manner similar to mirror reflections.
Page 7
(3) Appropriate configurations of detection distance, sensitivity, and delay time parameters can eliminate interference from certain objects. 2. Installation of Multiple Modules: When installing multiple modules together, ensure a distance of at least 1 meter between them and have them facing the same or opposite direction, avoiding any mutual irradiation among the modules.
default is 15 seconds. If the time is set shorter, there may be a certain probability of a missed detection due to occasional pauses in breathing. Note: The actual delay time after the target disappears varies despite the set delay time (it cannot be precisely delayed for the set time after the target disappears).
Common Configuration Commands. Configuring Detection Range:setRange、getRange 4.1.1 Describe: The 5.8GHz microwave radar module supports a maximum detection distance of up to 11m. The 5.8GHz microwave radar module has a transition zone of 1m, which means that if the maximum detection distance is set to 3 meters, it may detect targets between 3 and 4 meters.
Configuration Detection Sensitivity:setSensitivity、 4.1.2 getSensitivity Describe: The 5.8GHz microwave radar module has 10 levels of sensitivity, with higher numbers indicating greater sensitivity and lower numbers indicating less sensitivity. 9 is the highest level of sensitivity, and the default sensitivity value of the module is 7. Note: Please configure the sensitivity according to the actual operating environment and requirements.
Page 11
Output delay time configuration: Confirmation delay - used to configure the confirmation time when a target is detected; Disappearance delay - used to configure the confirmation time after a target has disappeared. Note: (1) Confirmation delay: Configuring the optimal parameter value can greatly reduce false alarm rates. Although a larger value is more reliable, it takes longer for the module to report that a target has been detected when a real target appears.
existent if it does not exist for 15 seconds. Configuration Lock Time:setInhibit、getInhibit 4.1.4 Describe: The default lock time for configuration is 1 second, which activates the lock detection function. After the module detects the target, the default lock detection function lasts for 1 second, while the OUT pin outputs a control signal.
Configure the baud rate for the serial port:setUart、getUart 4.1.5 Describe: After configuring the baud rate for the serial port, it is necessary to reset and restart the module (the parameters need to be saved first) for the new configuration to take effect. Once the new configuration is effective, the serial port on the user side also needs to be changed to the new baud rate for normal communication with the module.
Send command:getGpioMode par1 Command response:Response par1 par2 Parameter item: GPIO pin number configured: par1 1: Output pin. When the configured GPIO pin detects the target, the signal level output par2 by the pin is: 0: Outputs a low level signal when the target is detected and a high level signal when there is no target.
Page 15
Send command:getPwm Command response:Response par1 par2 par3 Parameter items: Duty cycle of OUT pin signal output when no target is detected: Value range from 0 to 100. par1 Duty cycle of OUT pin signal output when a target is par2 detected: Value range from 0 to 100.
otherwise, it outputs a PWM signal with a duty cycle of 10%. Echo Configuration:setEcho、getEcho 4.1.8 Describe: Configure whether or not to enable echo in the module. When echo is enabled, the command string transmitted to the module will be output exactly as it was received. Configure parameter command: Sending command:setEcho par1 Read configuration parameter command:...
Page 17
Parameter items: Data/message types: par1 1. Detection result output, namely $JYBSS message data. 2. Target point cloud output, namely $JYRPO message data. par2 Enable or disable the output of message corresponding to par1: 0: The message corresponding to par1 type is not included in the serial output data.
Enable active output of target detection results with a frequency of 5 setUartOutput 1 1 1 5 leapMMW:/> seconds, and immediate output of data when there is a change. Disable active output of target detection results. The module will only output setUartOutput 1 1 0 1600 leapMMW:/>...
When the module is in a non-started state and the configured parameters have been saved, starting the module initiates its operation. Note: After the parameter settings have been completed and saved, it is necessary to send a start command (sensorStart) to initiate the module's operation with the new parameters.
Factory Reset:resetCfg 4.2.4 Describe: Restore all current configuration parameter values of the module to the default factory settings. Command: resetCfg Parameters: Empty. No parameters. Response: Done The command was executed successfully. Error The command execution has failed. Example: Restore configuration parameters to resetCfg leapMMW:/>...
Enter bootloader resetSystem 1 leapMMW:/> mode. Initiate data reporting. Output of detection results:$JYBSS 4.3.1 Describe: The 5.8 GHz microwave radar module outputs the results of detecting the presence of people in a fixed cycle or through passive inquiry. Note: The output of detection results is controlled by the configuration command "setUartOutput" and can be turned off, set to output at a certain interval or output during inquiry mode.
Page 22
One point cloud target output corresponds to one string message. Multiple targets result in multiple string messages. If there are no targets, no messages will be outputted. The current version only outputs one point cloud target, which is the target closest to the module's distance.
Other Commands Read Hardware Version Information:getHWV 4.4.1 Describe: Read the hardware version information of the module. Command: getHWV Parameters: None. Response: [Version See example. Information] Done Example: Read hardware version getHWV leapMMW:/> information. HardwareVersion:JYSJ_5807_A01 Done Read Software Version Information:getSWV 4.4.2 Describe: Read software version information of the module.
Done Command for configuring multiple parameters, such as sensitivity and delay time parameters being configured simultaneously. (1) Configure the sensitivity to 5. (2) Delay time configuration: Confirm that the delay is set to 0.5 seconds and disappear delay is set to 5 seconds. leapMMW:/>...
Need help?
Do you have a question about the SEN0521 and is the answer not in the manual?
Questions and answers