BGT24LTR11 class¶
Available methods¶
- class BGT24LTR11.BGT24LTR11.Radar(serial_, verbose: bool = False)[source]¶
The class the same functionality as the original Arduino library available on the radar’s website: https://wiki.seeedstudio.com/Grove-Doppler-Radar/
Documentation related to the communication: https://files.seeedstudio.com/wiki/Grove-Doppler-Radar/Grove_DopplerRadar(BGT24LTR11)Radar_module_communication_protocol_v1.1.pdf Documentation of the radar chip: https://www.infineon.com/dgdl/Infineon-AN598_Sense2GOL_Pulse-ApplicationNotes-v01_00-EN.pdf?fileId=5546d4626e651a41016e82b630bc1571
- __init__(serial_, verbose: bool = False)[source]¶
- Parameters
serial – Serial connection object. It must have read, write and is_open methods. The library was created with the PySerial’s object in mind.
verbose – Flag determining if additional information should be printed to console or not.
- get_IQADC() → Optional[dict][source]¶
Query IQ components of the signal. The output must be further processed to obtain direction and speed of the target if any target is detected.
- get_detection_threshold() → Optional[int][source]¶
Query the currently setup detection threshold. Units are unknown, should be related to the power of received signal.
- get_mode() → Optional[int][source]¶
Query the working mode of the radar. There are two modes:
- 0: Target detection:
controller returns info about the target’s speed and direction of movement or informs that no target was detected. IQADC signals shouldn’t be accessible in this mode.
- 1: IQADC:
controller returns digitized IQ components of the signal. From it a user can calculate speed, direction of motion and determine if any target is in the radar’s range at all. In this mode target detection info is unreliable.
- get_speed_detection_range() → Optional[dict][source]¶
Query the currently setup speed detection range. Radar will be less sensible to targets moving with any speed outside this range.
- get_target_info() → Optional[dict][source]¶
Query the radar for speed and state of a detected target. Speed is expressed in m/s. State of the target can be one of the following: - 0: no target detected - 1: the target is moving further from the radar - 2: the target is moving towards the radar
- get_target_state() → Optional[int][source]¶
State of the target can be one of the following:
0: no target detected
1: the target is moving further from the radar
2: the target is moving towards the radar
- set_detection_threshold(threshold: int = 200) → Optional[int][source]¶
Set the detection threshold. Units are unknown, should be related to the power of received signal.