{"id":31177772,"url":"https://github.com/infineon/micropython-radar-bgt60","last_synced_at":"2026-04-13T08:31:08.112Z","repository":{"id":294409277,"uuid":"981991101","full_name":"Infineon/micropython-radar-bgt60","owner":"Infineon","description":"MicroPython module for XENSIV™ BGT60TR13C 60 GHz radar sensor.","archived":false,"fork":false,"pushed_at":"2025-09-02T09:06:19.000Z","size":209,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T11:12:07.057Z","etag":null,"topics":["makers","micropython","psoc","radar"],"latest_commit_sha":null,"homepage":"https://www.infineon.com/cms/en/product/sensor/radar-sensors/radar-sensors-for-iot/60ghz-radar/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Infineon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-12T08:02:17.000Z","updated_at":"2025-06-02T12:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a7c4ba4-0043-4f7e-a64c-162d6afc1370","html_url":"https://github.com/Infineon/micropython-radar-bgt60","commit_stats":null,"previous_names":["infineon/micropython-radar-bgt60"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Infineon/micropython-radar-bgt60","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infineon%2Fmicropython-radar-bgt60","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infineon%2Fmicropython-radar-bgt60/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infineon%2Fmicropython-radar-bgt60/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infineon%2Fmicropython-radar-bgt60/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Infineon","download_url":"https://codeload.github.com/Infineon/micropython-radar-bgt60/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infineon%2Fmicropython-radar-bgt60/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275951151,"owners_count":25558395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["makers","micropython","psoc","radar"],"created_at":"2025-09-19T14:08:02.805Z","updated_at":"2026-04-13T08:31:08.105Z","avatar_url":"https://github.com/Infineon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroPython Driver for XENSIV™ BGT60TR13C 60 GHz Radar Sensors\n\n[![Check links](https://github.com/Infineon/micropython-radar-bgt60/actions/workflows/check_links.yml/badge.svg)](https://github.com/Infineon/micropython-radar-bgt60/actions/workflows/check_links.yml)\n\n\u003cimg src=\"docs/img/micropython_logo.png\" height=80\u003e\n\nWith this library Infineon's XENSIV™ BGT60TR13C 60 GHz radar sensor can be configured\nand used with [MicroPython](https://github.com/Infineon/micropython) via SPI.\n\nPlease refer to the product pages linked below for more information about the sensor and supported evaluation boards.\n\n\u003e [!NOTE]\n\u003e This project is work in progress and not covering all functions of the sensor yet.   \n\u003e If you are missing any functionality feel free to [contribute](https://github.com/Infineon/micropython-radar-bgt60/fork) or [open an issue](https://github.com/Infineon/micropython-radar-bgt60/issues).\n\n### Supported Products\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"docs/img/bgt60tr13c.png\" width=200\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"docs/img/demo_bgt60tr13c.png\" width=200\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"docs/img/cy8ckit-062s2-ai.png\" width=200\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"docs/img/kit_csk_bgt60tr13c.jpg\" width=200\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd style=\"test-align : center\"\u003e\u003ca href=\"https://www.infineon.com/part/BGT60TR13C\"\u003eXENSIV™ BGT60TR13C\u003c/a\u003e\u003c/td\u003e\n        \u003ctd style=\"test-align : center\"\u003e\u003ca href=\"https://www.infineon.com/evaluation-board/DEMO-BGT60TR13C\"\u003eDemo kit with XENSIV™ BGT60TR13C 60 GHz radar sensor\u003c/a\u003e\u003c/td\u003e\n        \u003ctd style=\"test-align : center\"\u003e\u003ca href=\"https://www.infineon.com/evaluation-board/CY8CKIT-062S2-AI\"\u003ePSOC™ 6 Artificial Intelligence Evaluation Kit\u003c/a\u003e\u003c/td\u003e\n        \u003ctd style=\"test-align : center\"\u003e\u003ca href=\"https://www.infineon.com/evaluation-board/KIT-CSK-BGT60TR13C\"\u003eXENSIV™ connected sensor kit with XENSIV™ BGT60TR13C 60 GHz radar sensor\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Getting Started\n\n### MicroPython Firmware Installation\nBefore using this module, ensure that the MicroPython firmware is installed on your microcontroller.\nIf you are using a PSOC™ 6 board, you can find the installation instructions [here](https://ifx-micropython.readthedocs.io/en/latest/psoc6/intro.html#install-micropython-on-the-board).\nIf you have a different MicroPython-compatible board, please refer to the [official MicroPython documentation](https://docs.micropython.org/en/latest/).\n\n### Dependencies\nThis module depends on the [micropython-fourier module](https://github.com/peterhinch/micropython-fourier),\nwritten by Peter Hinch.\n\nThe dependencies are automatically installed when installing the module using the method described below.\n\n### Installation of this Module\n\n#### Using mip (recommended)\n\n\u003e [!NOTE]\n\u003e This method assumes that your MicroPython device is connected to the internet.\n\u003e If this is not the case, please refer to the manual installation instructions below.\n\nYou can install this module using [mip](https://docs.micropython.org/en/latest/reference/packages.html#installing-packages-with-mip),\nMicroPython's built-in package manager:\n```\nimport mip\nmip.install('github:infineon/micropython-radar-bgt60')\n```\n\n#### Manual Installation\n- Download these files from the micropython-fourier repository:\n    - [dft.py](https://raw.githubusercontent.com/peterhinch/micropython-fourier/refs/heads/master/dft.py)\n    - [dftclass.py](https://raw.githubusercontent.com/peterhinch/micropython-fourier/refs/heads/master/dftclass.py)\n    - [window.py](https://raw.githubusercontent.com/peterhinch/micropython-fourier/refs/heads/master/window.py)\n    - [polar.py](https://raw.githubusercontent.com/peterhinch/micropython-fourier/refs/heads/master/polar.py)\n- Download these files from this repository:\n    - [BGT60TRXX.py](https://raw.githubusercontent.com/Infineon/micropython-radar-bgt60/refs/heads/main/micropython-radar-bgt60/BGT60TRXX.py)\n    - [BGT60TRXX_define.py](https://raw.githubusercontent.com/Infineon/micropython-radar-bgt60/refs/heads/main/micropython-radar-bgt60/BGT60TRXX_define.py)\n\nAnd drag-and-drop them onto your MicroPython device using e.g. [Thonny IDE](https://thonny.org/) or any other suitable tool.\n\n### Usage\n\n### Things to consider when using this Library\n- MicroPython executes code significantly slower than standard C, resulting in reduced performance when using this library:\n    - measured time for a 128-bit chirp (fetch, FFT, high-pass filter, and logarithmic scaling):\n        59.93 ms or 16.68 Hz  \n- The `readFifo` function can only transmit 8192 words,\nwhich consist of 24 data bits\n    - Maximum transmission possible: 24.576 bytes\n- The chip returns an error when reading while the stack is full or empty\n- Data can be checked for overflow or underflow errors using the `checkData` function\n\n### Example Code\n```python\n# import Module\nimport BGT60TRXX as BGT\n\n# Create Instance\n# An optonal parameter can be used to configure\n# the Interrupt-Request to a user-defined function\nradar_sensor = BGT.BGT60TRxxModule(\u003cwordsize\u003e, \u003coptional function\u003e)\n\n# Configure Register Values with pre-defined functions\nradar_sensor.setCompareValue(50) # in '%'\n#...\n\n# Configures all Registers for Usage\n# They need to be configured before hand\nradar_sensor.initSensor()\n\ndata = radar_sensor.read_reg(\u003cADDR_REG\u003e)\nradar_sensor.write_reg(\u003cADDR_REG\u003e, \u003cDATA\u003e)\n\n# reset fifo state\nradar_sensor.resetFIFO()\n\n# start frame generation before a fifo read\nradar_sensor.startFrame()\n\n# Reads from the Sensor.\n# data is stored inside radar_sensor.data\nradar_sensor.readFifo()\n\n# Read and calculate Distance-Profile\n# data is stored inside radar_sensor.data\nradar_sensor.readDistance()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfineon%2Fmicropython-radar-bgt60","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfineon%2Fmicropython-radar-bgt60","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfineon%2Fmicropython-radar-bgt60/lists"}