Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDK3 - Presence detection using BGT60TR13C

Rutronik Development Kit 3 Programmable System-on-Chip CYB06447BZI-BLD53 "Presence detection" Code Example.

This code example demonstrates how to detect a presence and a position using a BGT60TR13C radar sensor.

To get full functionalities, the RDK3 should be oriented this way:

NOTICE

Infineon has discontinued the PSOC™ 64 Secured MCU product line. As a result, the CYB06447BZI-BLD53 MCU used in the RDK3 is not recommended for new designs. The Infineon CY8C6347BZI-BLD53 MCU may be considered a suitable alternative.

Requirements

pip install cysecuretools

Supported toolchains (make variable 'TOOLCHAIN')

  • GNU Arm® Embedded Compiler v11.3.1 (GCC_ARM) - Default value of TOOLCHAIN

The Provisioning of the RDK3

The CYB06447BZI-BLD53 device must be provisioned with keys and policies before being programmed. If the kit is already provisioned, copy-paste the keys and policy folder to the application folder. If the unsigned or not properly signed image will be written to the RDK3 PSoC™ 64 – the microcontroller will not boot.

The “Secure Policy Configurator” tool is used for the provisioning of the new RDK3, please refer to the “ModusToolbox™ Secure Policy Configurator user guide”.

The CYB06447BZI-BLD53 MCU must be powered from a 2.5V power source to be able to complete the provisioning. The RDK3 has an SMPS [Switching Mode Power Supply] which can be easily adjusted to provide 3.3V or 2.5V to the MCU by switching the slide-switch “SW1” on the bottom side of the board.

The default keys and policies also might be downloaded from here: RDK3 RUTRONIK DEMO KEYS

Using the code example with a ModusToolbox™ IDE:

  1. Import the project: File > Import... > General > Existing Projects into Workspace > Next.
  2. Select the directory where "RDK3_Radar_Presence_Detection" resides and click Finish.
  3. Update the libraries using a "Library Manager" tool.
  4. Select and build the project **Project ** > Build Project.

Operation

This code example will output the results of the presence detection algorithm through BLE. Please use the Rutronik iOS or Android App to visualize the results.

Change the radar configuration

You can change the radar configuration used to measure by generating a new "radar_settings.h" configuration.

Use the tool provided by Infineon “Radar Fusion GUI” to generate a new version of the file.

Algorithm

Powering the RDK3 from the single-cell Li-ION/Li-PO battery

The RAB3-Radar adapter board needs to be powered from a +5V power supply source via Arduino Headers. If the USB-C cable is connected with RDK3 and PC, the power is already supplied without any additional setup.

To make this demo portable and use it with Li-PO(or Li-ION) batteries, the OTG booster needs to be activated. This demo has a very simple method implemented which allows users to enable the boost mode of the DIO59020 charger just by pressing a button USER BTN1.

  • Connect the single-cell Li-PO or Li-ION battery, please respect the polarity. It would be best if the battery would have an internal protection circuit integrated.

  • Switch the SW3 upwards to the "BATTERY" position.

  • Mount the RAB3-Radar adapter board.

  • Press and hold the button USER_BTN1 and then press and release a RESET Button. Notice if the GREEN LED D7 - "POWER" lights up.

  • Release the USER_BTN1. The YELLOW blinking LED1 D8 indicates that the system is running and is ready for connection with a smartphone via Bluetooth LE.

    NOTICE 1: this demo does not have power-saving and self-shutting down algorithms implemented yet. The switch SW3 must be switched down to the +5V/KitProg position if the development kit is not used. This is especially important if you are using batteries without the protection circuits integrated (never allow for the voltage of the battery to fall below 3 volts).

    NOTICE 2: The charging will not work if the boost mode is engaged. You need to restart the demo without pressing USER_BTN1.

    NOTICE 3: The battery charging current may be adjusted in code in battery_booster.c:

        	/*The charging current depends on your battery used*/
        	dio_set_batt_current(CURR_VREF_101_8);

Debugging

If you have successfully imported the example, the debug configurations are already prepared to use with a the KitProg3, MiniProg4. Open the ModusToolbox™ perspective and find the Quick Panel. Click on the desired debug launch configuration and wait for the programming to complete and the debugging process to start.

Libraries

The project contains a local copy of the sensor-xensiv-bgt60trxx. Modifications have been made inside the file xensiv_bgt60trxx_mtb.c to detect timeout during SPI transfers.

Legal Disclaimer

The evaluation board including the software is for testing purposes only and, because it has limited functions and limited resilience, is not suitable for permanent use under real conditions. If the evaluation board is nevertheless used under real conditions, this is done at one’s responsibility; any liability of Rutronik is insofar excluded.

About

This code example demonstrates the Infineon XENSIV™ Presence Detection algorithm.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages