K-LD7 Doppler radar sensor driver
Project description
This is a simple, high-level interface to the K-LD7 radar module. It lets the user read and set the various radar parameters as described in the datasheet and fetch the various sorts of raw or processed data frames from the sensor, either individually or as a stream.
Tracking the distance, speed, angle and magnitude of the most promenant moving object in range is as simple as:
from kld7 import KLD7
with KLD7("/dev/tty.usbserial") as radar:
for target_info in radar.stream_TDAT():
print(target_info)
Documentation
The API for this module is documented on ReadTheDocs.
Overview
According the the datasheet:
“The K-LD7 is a fully digital low cost Doppler radar that can measure speed, direction, distance and angle of moving objects in front of the sensor. The digital structure and wide power supply range make it very easy to use this sensor in any stand-alone or MCU based application.”
The module can detect and measure multiple moving objects and provide filtered tracking information about the most prominent one. Various detection criteria can be stored and a set of programmable output pins on the module can be configured to indicate detection status, allowing for stand-alone operation once the coniguration paramters have been set.
The K-LD7 module includes an integrated signal processor and allows access to the radar signal at a number of levels including raw ADC samples, FFT output, candidate targets, most significant tracked target and flags for the tracked target relative to detection thresholds. Each level of processing provides higher-level information and thus reduces the volume of data that needs to be sent to the host. This driver allows users to access each of these levels of data to be fetched, either as a single snamshot or as a stream of data frames.
Configuration paramters
The K-LD7 module has 22 configurable radar paramters that can be used to control the sensitivity, distance and speed range and detection thresholds used during filtering, as well as for configuring the programmable output pins. These paramters can be read and set though a RadarParamProxy object accessible as the params attribute of the driver object.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kld7-0.2.1.tar.gz
.
File metadata
- Download URL: kld7-0.2.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db9b52258c346ee1867b2fc220603dc611865ee6709d554c3f6325262181755 |
|
MD5 | 27c5141dd334240776cc882852bb3a7a |
|
BLAKE2b-256 | 3263518c774d10152e895b07f14cbce0c1c0fc3e9de34760dbd7dc9a244801dd |
File details
Details for the file kld7-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: kld7-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8f39e85cece9a6ca793d2c292c3684762ee82a26f0381d71bd378c94b58a73 |
|
MD5 | 1873ada4a4669580750c0685b288cb33 |
|
BLAKE2b-256 | fc5f4dab5f09952c82595fd3f43b69606ba28aa8305bf5515e5b5cd6f92cd19a |