Giter Site home page Giter Site logo

hlk-ld2450's Introduction

HLK-LD2450

This is a simple Python implementation of the serial protocol and two demos of the HLK-LD2450 24 GHz Radar Sensor (http://www.hlktech.net/index.php?id=1182). You can also try the app from HLK or the official PC demo. This code uses the serial port to communicate with the sensor.

Prerequisites

You need the following hardware to run this demo:

  • Linux PC (tested with Ubuntu 22.04)
  • HLK-LD2450 24 GHz Radar Sensor
  • USB to TTL Adapter
  • 1.5 mm 4-pin cable

Connect the sensor to the USB to TTL adapter:

  • GND to GND
  • 5V to 5V
  • RX to TX
  • TX to RX

Install the required packages:

pip3 install -r  requirements.txt

Get started

print_targets.py prints out the received data from the sensor (x, y, speed, distance resolution) of three targets:

python3 print_targets.py

Print Demo

plot_targets.py plots the received data from the sensor (x, y) of three targets:

python3 plot_targets.py

Plot Demo

Troubleshooting

  • Check that the USB to TTL adapter is connected to the correct port:
dmesg | grep tty

Notes and Disclaimer

  • There seems to be some outliers in the data which are not filtered in this implementation

hlk-ld2450's People

Contributors

csron avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.