Skip to content

Py Getting Started

Jaumann Dominik (IFAG DES SDF SCS EPE) edited this page Apr 30, 2021 · 5 revisions

Python Getting Started

This page explains how to install and use the Python wrapper for the BGT60 Radar library with the Raspberry Pi.

Overview

Required experience

  • Experience level: moderate
  • Basic linux user level
  • Basic programming skills in Python

Required Hardware

Name Picture
BGT60LTR11AIP
Compatible Raspberry Pi
8GB + microSD card for Raspberry Pi

Required Software

Tutorial

Hardware Setup

The BGT60 needs to be connected with wires to a compatible Raspberry Pi. One wiring example is depicted below. If you want to use different pins, you have have to change the desired pins in the constructor of the library.

Note ⚠️: Make sure to connect the GND-Pin and the VIN-Pin of the radar shield to the right pins on the Raspberry Pi. Otherwise the board can be damaged.

Raspberry Pi Setup

Set up a Raspberry Pi with Raspberry Pi OS or similar OS. Check this website for instructions.

You can access your Raspberry Pi either using a monitor and a keyboard or using SSH in a headless setup as described here.

Now insert the microSD card into your Raspberry Pi and turn on the power supply to boot it up. The BGT60 will be powered by the Raspberry Pi due to the connected pins.

Library Installation

This library can be installed easily using pip. If you do not have pipinstalled, you can install it by typing the following commands into the terminal of your Raspberry Pi:

sudo apt-get install python3-pip

Afterwards you can install the Infineon 60ghz-radar-library by typing the following again in the terminal:

sudo pip3 install 60ghz-radar

Clone The Repository

Once the library is installed clone the 60ghz-radar repository.

git clone <url>

Navigate to the example folder

cd 60ghz-radar/src/framework/raspberrypi/examples_py

and execute the examples from the terminal:

sudo python3 detectMotion.py