Giter Site home page Giter Site logo

tooploox / grove-doppler-radar Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 157 KB

Python library for communication with grove doppler radar based on the BGT24LTR11

License: MIT License

Python 97.22% C++ 2.78%
grove-sensors grove doppler radar bgt24ltr11 raspberrypi jetson infineon

grove-doppler-radar's Introduction

Documentation Status

Grove - Doppler Radar library

Python version of the library for communication with the Grove Doppler Radar is based on the BGT24LTR11. It's a simple continuous wave doppler radar capable of movement detection, speed measurement and direction of movement detection. More details and resources can be found in the official product wiki.

Documentation

The documentation is available here: https://grove-doppler-radar.readthedocs.io/en/latest/

Installation

While in this directory run:
pip3 install .

Usage

  1. The radar board communicates via UART protocol. You could use it with GPIO pins on Raspberry or Jetson board. Alternativelly you can use Arduino (for example seeeduino XIAO) as UART <-> USB bridge and connect it to your PC. You can use the provided sketch for that purpose. Yet another alternative is pre-made USB <-> UART converter.
  2. Run dmesg | grep --color 'tty' twice, before and after plugging in your radar to see what name it gets in the system.
  3. In python script open the serial connection with PySerial library.

Example:

import serial

from BGT24LTR11.BGT24LTR11 import Radar

serial_ =\
   serial.Serial('/dev/ttyACM0', baudrate=115200, timeout=2)

radar = Radar(serial_)
radar.set_mode_target()

target_info = radar.get_target_info()
if target_info['state'] != 0:
    print(f"Speed of the detected target is {target_info['speed']} m/s")

grove-doppler-radar's People

Contributors

adam-slucki avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.