Manual de usuario del radar de presencia humana seeed studio MR24HPB1
GENERAL
Este documento se centra en el uso del radar, los problemas que deben abordarse en cada stage to minimise design costs and increase product stability and improve the efficiency of project completion.
From hardware circuit reference design, radar antenna and housing layout requirements, how to differentiate between interference and multi-functional standard UART protocol outputs.
The radar is a self-contained space sensing sensor, consisting of RF antenna, radar chip and high speed main frequency MCU together with a module that relies on a stable and flexible superior algorithm architecture core to solve the user’s various scenario detection needs, which can be equipped with a host computer or host computer to flexibly output detection status and data, meeting several groups of GPIOs for custom development.
1. Principle of operation]
The radar transmits a millimetre wave signal in the 24G band, the measured target reflects the electromagnetic wave signal and demodulates the transmitted signal, which is then amplified, filtered and processed by ADC to obtain the echo demodulated signal data. The amplitude, frequency and phase of the echo signal are decoded in the MCU unit, which ultimately enables the measurement of target parameters (breathing, movement,
micro-motion, etc.) and scene evaluation.
2. Hardware Design Considerations
The radar needs to have a rated supply voltage of 4.9 – 6V and a rated current requirement of 200mA or more input under normal operating conditions. The power supply must be designed for a supply ripple of ≤ 100mv.
2.1. The power supply can be designed with the following circuit in mind
2.2. using the wiring diagram
Fig. 3 Schematic diagram of the radar module and peripheral connections
3. Antenna and housing layout requirements
PCBA: the radar needs to be kept ≥ 1mm higher than the other components.
Housing construction: need to maintain a distance of 2 – 5mm between the radar antenna face and the housing face.
Housing detection surface: non-metallic housing, needs to be flat and straight to avoid curved surfaces which can affect the performance of the entire swept surface area.
4. Static Protection
Radar products have electrostatic sensitive circuitry and are susceptible to electrostatic hazards, therefore they need to be adequately protected from static electricity during transport, storage, work and handling.
When handling the radar sensor, please wear anti-static gloves if possible.
5. Functional disturbances
5.1 Unoccupied state, abnormal output occupied
In normal conditions, the radar will accurately determine the presence of a sitting or sleeping body and output information on falls, breathing, vital signs etc.
A. Radar scanning area is large, doorway, boarded wall next door movement is detected. Adjustment method: reduce radar sensitivity, radar provides scene setting.
B. Radar underneath is facing a running air conditioner or fan. Adjustment method: adjust the radar position so that it is not directly in front of the air conditioner or fan.
C. Shifting objects caused by air conditioning winds. Adjustment method: cotton, non-metallic objects will not cause false alarms, metal objects need to be fixed.
D. The radar is not fixed, vibration causes false alarms. Avoid supporting shaking and vibration.
E. Occasional moving objects such as pets, birds, etc.
As the radar measures micro-movements, the sensitivity is very high and this interference cannot be excluded.
F. Power supply interference, resulting in occasional false alarms.
Try to keep the power supply current stable and reduce ripple.
5.2 Manned status, abnormal output unoccupied
Radar determines the presence of a human body by sending and receiving electromagnetic waves. The closer you are to the radar, the more accurate it is.
A. Human body out of radar range Radar scanning range with adjustment of mounting angle. Radar measurement range, in different environments with different electromagnetic wave reflection areas, the scanning area will vary slightly.
B. False output due to metal occlusion
Excessively thick desks and chairs, metal seats. It will block the electromagnetic wave penetration and cause misinterpretation.
C. Differences in scanning angles
The radar does not scan the torso area. This can lead to false positives.
D. Radar sensitivity is too low
The radar offers parameter adjustment to increase sensitivity for improvement.
6. Functions in detail
6.1. Function point descriptions
clave |
Status change time/function explanation |
DP1: occupied/unoccupied |
No one to occupied, report within 0.5s
Manned to unoccupied, no status output in 1-2 minutes or so |
DP2: Some people are stationary / Some people are active |
Static dynamic switching, reporting within 0.5 segundos |
DP3: Someone close to the device / someone moving away from the device / someone moving without direction |
Status output once every 2 seconds |
DP4: Body movement amplitude parameter 0 – 100 |
Data output once every 5 seconds
Reference (description of output of body motion amplitude parameters) |
DP5: Sensitivity setting 1 – 10 steps |
Default scene mode, adapted to 10 positions of adjustment |
DP7: Scene modes (bed, bathroom, hotel, bedroom, office, default mode) |
Adapted to different scenarios according to the size of the area |
DP8: No false alarm confirmation prompt |
6.2. Description of the output of the body motion amplitude parameter
Movimiento corporal ampparámetros de longitud | ||
0% | Ninguna | Environmental unmanned |
1% | Stationary (sleep) | Only breathing without body movement |
2% - 30% | Micro-Movements | Only minor head or limb movements Movement |
31% - 60% | Walking/fast body movements | Slower body movements |
61% - 100% | Running/close range big moves | Rapid body movement |
7. Description of the agreement
This protocol is used to communicate between a 24G millimetre wave sleep detection radar and a host computer.
This protocol outlines the radar workflow, provides a brief introduction to the interface protocol component architecture and gives the control commands and data required for the operation of the relevant radar, with the serial communication defined as follows.\
- Interface level: TTL
- Tasa de baudios: 9600bps
- Bits de parada: 1
- Bits de datos: 8
- Paridad: ninguna
8. Communication commands and parameter definitions
8.1 Definition and description of the frame structure
A. Frame structure definition
Comience a Código |
Length of data |
Función los códigos de |
Código de dirección 1 |
Dirección Código 2 |
Datos |
Código de verificación |
||
0X55 |
Longitud_L |
Longitud_H |
Comando |
Dirección 1 |
Dirección 2 |
Datos |
Crc16_L |
Crc16_H |
1 Byte |
1 Byte |
1 Byte |
1 Byte |
1 Byte |
1 Byte |
n byte |
1 Byte |
1 Byte |
B. Description of the frame structure
a. Start code: 1 Byte, fixed to 0X55.
b. Data length: 2 Byte, low byte before, high byte after.
Length = Data Length + Function Code + Address Code 1 + Address Code 2
+ Data + Checksum.
c. Function code: 1 Byte
Read command: 0X01
Write command: 0X02
Passive report command: 0X03
Active report command: 0X04
d. Address code: Address code 1 indicates the function classification, address code 2 indicates the specific function. See the description of address assignment and data information.
e. Data: n Byte
f. Checksum: 2 Byte, low byte before, high byte after.
CRC16 checksum is used, see Appendix 1 for reference code.
8.2. Description of address assignment and data information
24G Bio-aware radar interface content | |||||
Función
Código |
Dirección
Código 1 |
Código de dirección
2 |
Datos |
Notas |
|
1 |
Read command 0x01 |
Marking search 0x01 |
ID del dispositivo
0x01 |
||
2 |
Software
version 0x02 |
||||
3 |
Hardware
version 0x03 |
||||
4 |
Protocolo
version 0x04 |
||||
Radar Information Search 0x03 |
Las Condiciones ambientales
status 0x05 |
||||
11 |
Signos
parameters 0x06 |
||||
12 |
System parameter search 0x04 |
Límite
gear 0x0C |
|||
Configuración de escena
0x10 |
|||||
16 |
Threshold gear 0x0C |
Enumeration range1~10 |
Correspondiente a
1 2 3 4 5 6 7 8 9 10 gears (predeterminado 7) The higher the gear, the more |
24G Bio-aware radar interface content | |||||
Función
Código |
Dirección
Código 1 |
Código de dirección
2 |
Datos |
Notas |
|
copy order 0x02 |
System parameters 0x04 |
sensitive it is | |||
Scene setting 0x10 |
Default mode 0x00 | ||||
Area detection (top
loading) 0x01 |
|||||
Bathroom (top
mounted) 0x02 |
|||||
Bedroom (top
loading) 0x03 |
|||||
Living room (top
mounted) 0x04 |
|||||
Office (top loading)
0x05 |
|||||
Hotel (top loading)
0x06 |
|||||
Otros
functions 0x05 |
Reboot 0x04 |
||||
17 |
Reporting module identification 0x01 |
ID del dispositivo
0x01 |
12 Byte data |
||
18 |
Software
version 0x02 |
10 Byte data |
|||
19 |
Hardware
version 0x03 |
8 Byte data |
|||
20 |
Protocolo
version 0x04 |
8 Byte data |
|||
27 | Report radar | Medioambiente | Unoccupied 00 FF FF |
24G Bio-aware radar interface content | |||||
Función
Código |
Dirección
Código 1 |
Código de dirección
2 |
Datos |
Notas |
|
28 |
Passive reporting of orders 0x03 |
information 0x03 | status 0x05 | Alguien es
stationary 01 00 FF |
|
29 |
Some people exercise
01 01 01 |
||||
30 |
Signs parameters
0x06 |
4 Byte Float data (see appendix 2) |
|||
Reporting system information 0x04 |
Límite
gear 0x0C |
Current gear value
(0x01~0x0a) |
|||
Scene setting 0x10 |
Default mode 0x00 | ||||
Area detection (top
loading) 0x01 |
|||||
Bathroom (top
mounted) 0x02 |
|||||
Bedroom (top
loading) 0x03 |
|||||
Living room (top
mounted) 0x04 |
|||||
Office (top loading)
0x05 |
|||||
Hotel (top loading)
0x06 |
|||||
31 |
Environment status 0x05 |
Unoccupied 00 FF FF | |||
32 |
Someone is stationary
01 FF |
||||
33 | Some people exercise |
24G Bio-aware radar interface content | ||||||
Función
Código |
Dirección
Código 1 |
Código de dirección
2 |
Datos |
Notas |
||
Proactive reporting of commands 0x04 |
Report radar information 0x03 | 01 01 01 | ||||
34 |
Motor signs parameters
0x06 |
4 Byte Float data |
||||
Approaching away state 0x07 |
Fixed character 0x01 0x01 |
Ninguna
0x01 |
||||
Close to
0x02 |
||||||
Ausentarse
0x03 |
||||||
Report other information 0x05 |
Heartbeat Pack 0x01 |
Unoccupied 00 FF FF | ||||
Someone is stationary
01 FF |
||||||
Some people exercise
01 01 01 |
||||||
Anormal
reset 0x02 |
0x0F |
Descripción.
- The read/write command is for the upper computer to send commands to the radar.
- The report command is for the radar to send information to the upper computer.
- Fall sensitivity is 1~10, default is 4, the higher the level, the more sensitive it is.
Appendix 1: CRC check digit reference parsing codes
1. const unsigned char cuc_CRCHi[256]=
2. {
3. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
4. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
5. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
6. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
7. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
8. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
9. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
10. | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
11. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
12. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
13. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
14. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
15. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
16. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
17. | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
18. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
19. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
20. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | |
21. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
22. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
23. | 0 x 00, | 0xC1, | 0 x 81, | 0 x 40, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | 0 x 01, | 0xC0, | 0 x 80, | 0 x 41, | |
24. | 0 x 00, | 0xC1, | 0 x 81, | 0x40 | |||||||||
25. }; | |||||||||||||
26.
27. const no firmado tanque cuc_CRCLo[256]= |
|||||||||||||
28. { | |||||||||||||
29. | 0 x 00, | 0xC0, | 0xC1, | 0 x 01, | 0xC3, | 0 x 03, | 0 x 02, | 0xC2, | 0xC6, | 0 x 06, | 0 x 07, | 0xC7, | |
30. | 0 x 05, | 0xC5, | 0xC4, | 0 x 04, | 0xCC, | 0x0C, | 0x0D, | 0xCD, | 0x0F, | 0xCF, | 0xCE, | 0x0E, | |
31. | 0x0A, | 0xCA, | 0xCB, | 0x0B, | 0xC9, | 0 x 09, | 0 x 08, | 0xC8, | 0xD8, | 0 x 18, | 0 x 19, | 0xD9, | |
32. | 0x1B, | 0xDB, | 0xDA, | 0x1A, | 0x1E, | 0xDE, | 0xDF, | 0x1F, | 0xDD, | 0x1D, | 0x1C, | 0xDC, | |
33. | 0 x 14, | 0xD4, | 0xD5, | 0 x 15, | 0xD7, | 0 x 17, | 0 x 16, | 0xD6, | 0xD2, | 0 x 12, | 0 x 13, | 0xD3, | |
34. | 0 x 11, | 0xD1, | 0xD0, | 0 x 10, | 0xF0, | 0 x 30, | 0 x 31, | 0xF1, | 0 x 33, | 0xF3, | 0xF2, | 0 x 32, | |
35. | 0 x 36, | 0xF6, | 0xF7, | 0 x 37, | 0xF5, | 0 x 35, | 0 x 34, | 0xF4, | 0x3C, | 0xFC, | 0xFD, | 0x3D, | |
36. | 0xFF, | 0x3F, | 0x3E, | 0xFE, | 0xFA, | 0x3A, | 0x3B, | 0xFB, | 0 x 39, | 0xF9, | 0xF8, | 0 x 38, | |
37. | 0 x 28, | 0xE8, | 0xE9, | 0 x 29, | 0xEB, | 0x2B, | 0x2A, | 0xEA, | 0xEE, | 0x2E, | 0x2F, | 0xEF, | |
38. | 0x2D, | 0xED, | 0xEC, | 0x2C, | 0xE4, | 0 x 24, | 0 x 25, | 0xE5, | 0 x 27, | 0xE7, | 0xE6, | 0 x 26, | |
39. | 0 x 22, | 0xE2, | 0xE3, | 0 x 23, | 0xE1, | 0 x 21, | 0 x 20, | 0xE0, | 0xA0, | 0 x 60, | 0 x 61, | 0xA1, | |
40. | 0 x 63, | 0xA3, | 0xA2, | 0 x 62, | 0 x 66, | 0xA6, | 0xA7, | 0 x 67, | 0xA5, | 0 x 65, | 0 x 64, | 0xA4, | |
41. | 0x6C, | 0xAC, | 0xAD, | 0x6D, | 0xAF, | 0x6F, | 0x6E, | 0xAE, | 0xAA, | 0x6A, | 0x6B, | 0xAB, | |
42. | 0 x 69, | 0xA9, | 0xA8, | 0 x 68, | 0 x 78, | 0xB8, | 0xB9, | 0 x 79, | 0xBB, | 0x7B, | 0x7A, | 0xBA, | |
43. | 0xBE, | 0x7E, | 0x7F, | 0xBF, | 0x7D, | 0xBD, | 0xBC, | 0x7C, | 0xB4, | 0 x 74, | 0 x 75, | 0xB5, | |
44. | 0 x 77, | 0xB7, | 0xB6, | 0 x 76, | 0 x 72, | 0xB2, | 0xB3, | 0 x 73, | 0xB1, | 0 x 71, | 0 x 70, | 0xB0, | |
45. | 0 x 50, | 0 x 90, | 0 x 91, | 0 x 51, | 0 x 93, | 0 x 53, | 0 x 52, | 0 x 92, | 0 x 96, | 0 x 56, | 0 x 57, | 0 x 97, | |
46. | 0 x 55, | 0 x 95, | 0 x 94, | 0 x 54, | 0x9C, | 0x5C, | 0x5D, | 0x9D, | 0x5F, | 0x9F, | 0x9E, | 0x5E, | |
47. | 0x5A, | 0x9A, | 0x9B, | 0x5B, | 0 x 99, | 0 x 59, | 0 x 58, | 0 x 98, | 0 x 88, | 0 x 48, | 0 x 49, | 0 x 89, | |
48. | 0x4B, | 0x8B, | 0x8A, | 0x4A, | 0x4E, | 0x8E, | 0x8F, | 0x4F, | 0x8D, | 0x4D, | 0x4C, | 0x8C, | |
49. | 0 x 44, | 0 x 84, | 0 x 85, | 0 x 45, | 0 x 87, | 0 x 47, | 0 x 46, | 0 x 86, | 0 x 82, | 0 x 42, | 0 x 43, | 0 x 83, | |
50. | 0 x 41, | 0 x 81, | 0 x 80, | 0x40 | |||||||||
51. | }; | ||||||||||||
52.
53. 54. estático no firmado int corto us_CalculateCrc16(unsigned tanque *lpuc_Frame, unsigned short i nt lus_Len) 55. { 56. unsigned tanque luc_CRCHi = 0xFF; 57. unsigned tanque luc_CRCLo = 0xFF; 58. int li_Index=0; |
59. |
60. mientras(lus_Len–) |
61. { |
62. li_Index = luc_CRCLo ^ *( lpuc_Frame++); |
63. luc_CRCLo = (unsigned tanque)( luc_CRCHi ^ cuc_CRCHi[li_Index]); |
64. luc_CRCHi = cuc_CRCLo[li_Index]; |
65. } |
66. retorno (no firmado int corto )(luc_CRCLo << 8 | luc_CRCHi); |
67.} |
Appendix 2: Analysis codes for motor sign parameters
unión typedef
2. {
3. unsigned char Byte[4];
4. float Float;
5. }Float_Byte;
6.
7. void main()
8. {
9. Float_Byte fb;
10. fb.Byte[0] = 0x9A;
11. fb.Byte[1] = 0xFB;
12. fb.Byte[2] = 0xE7;
13. fb.Byte[3] = 0x3F;
14. printf(“%f\ r\ n”,fb.Float);
15.}
Historical version update notes
Revisión | Release Data | Resumen |
V1.0_0212 | 2020/02/12 | Primer borrador |
V1.1_0319 | 2021/03/19 | Reajuste |
V1.3_0628 |
2021/6/28 |
Add Human sensitivity explained and fall
sensitivity explained |
V1.4_0906 | 2021/9/06 | Human sensitivity revised from 0-9 to 1-10 |
Lea más sobre este manual y descargue el PDF:
Documentos / Recursos
![]() |
seeed studio MR24HPB1 Human Presence Radar [pdf] Manual de usuario MR24HPB1, Human Presence Radar, MR24HPB1 Human Presence Radar, Presence Radar, Radar |