Labs / Electronic modules

GraftSense - Multi-target Trajectory Millimeter-wave Radar Module Based on R60AMP1 (Open Version)

Author: Li Zisheng · Source: FreakStudio open documentation, v1.2 · License: CC BY 4.0 · Driver code (sensors/r60amp1_driver): MIT License

Contents
R60AMP1
R60AMP1-based v1.0

I. Module Introduction

Multi-person trajectory millimeter-wave radar module based on R60AMP1 that adopts FMCW frequency modulated continuous wave technology, can realize multi-person trajectory tracking, simultaneously perceive human respiration and heart rate, record sleep monitoring data, and has a detection distance of ≤1.5 meters. It features an output power of ≤0.5W, requires continuous power supply, is free from environmental interference such as temperature and humidity, is equipped with multiple interfaces, and is suitable for non-contact monitoring of indoor personnel trajectories and health status.

2. Introduction to Main Chips

The module adopts R60AMP1 multi-person trajectory millimeter-wave radar module.

2.1 Chip Overview

R60AMP1-H 60G 1T3R 2
GraftSense - Multi-target Trajectory Millimeter-wave Radar Module Based on R60AMP1 (Open Version)

R60AMP1-H is a radar module that adopts 60G millimeter-wave technology. Based on 1T3R antennas and FMCW system, it transmits electromagnetic waves and analyzes the waveform parameters of the echo, which enables it to simultaneously track the movement trajectories of 2 targets, detect tiny movements such as chest undulations caused by respiration to realize static human detection, and lock the final static coordinates of personnel; it supports setting the trajectory detection range, and is applicable to scenarios such as smart home appliances, office energy conservation, regional personnel detection, and home security, so as to realize motion and static state perception as well as trajectory positioning.

2.2 Pin Definition

1 2 R60AMP1

2.3 Functional Block Diagram

R60AMP1 60G

2.4 Performance Parameters

R60AMP1 100 2.5
1 1.5 L3 10 L2 6 20 0.5
R60AMP1 1.0 1.5 4 5
R60AMP1 2.4

2.5 Reference Circuit

4.9 6V 200mA 100mv 3.1
R60AMP1 12V 5V U2 HT4637 R1 R2 R3 C1 C2

2.6 Chip Configuration

This module is of Plug and Play type, requiring no hardware configuration or software register setup.

60G 115200bps 1 8

2.7.1 Description of Vital Sign Parameters Actively Posted Back by Radar

R60AMP1 2.7.1
5359 02 A3 0001
5359 80 00 00000001 01 5443 2.7.2
5359 01 0001 02 03 1B 1s 0 100
5359 80 0001 0F 5443
1B 2B 32767
5359 82 0001 0F 5443 1B
2.7.2 1B 2B
5359 03 01 0004 4B 5443
01 5359 03 0x0001 5443

2.7.2 Custom Protocol Frame

0X53 0X59 0X54 0X43 2.7.2
2.7.3.1 Query and Setting of Basic Instruction Information
R60AHX2 53 59 02 A1 00 01 0F 5F 54
2.7.3.2 Presence Function of Human Body
2 0 30 1 100

During the actual testing process, we have identified the following issues that require attention in the subsequent driver code development, and I have documented the details of these issues along with the specific version numbers here.

An unknown command occurred during the module reset function test on firmware version G60TP1SYV010003, and the version information is as follows:

Product Model: R60AHX2

Hardware Model: R60AHX2

Firmware Version: G60TP1SYV010003

53 59 04 00 01 B5 54 43 G60TP1SYV010003

53 59 04 04 00 01 00 B5 54 43 The instruction is not listed in the manual.

2.8 PCB Routing Precautions

《R60AMP1-H (Side Mount)_Datasheet_V2.0》 specifies the power supply section as follows:

R60AMP1 V2.0 4.9V 5.5V 100mV

《R60AMP1_User Manual_V1.3》 specifies the power supply section as follows:

R60AMP1 4.9 6V 200mA 100mv
1mm 2 5mm

III. Instructions for Circuit Engineering and Module Usage

3.1 Circuit Source Engineering

To obtain the circuit source project, please follow the official account [Freak Embedded].

3.2 Module Usage Instructions

The schematic diagram of this module is shown below:

SCH_Multi-Person Trajectory Millimeter-Wave Radar Module Based on R60AMP1-v1.0_2026-01-29.pdf 2.5 MB

R60AMP1 R60AMP1-based v1.0

This module provides a serial port UART interface MRX and MTX: where M stands for master, meaning the MCU 's RX corresponds to the module' s TX.

1 8 GP1 GP6

This module leads out external expansion interfaces GP1 to GP6, SWC and SWD, which facilitates subsequent function development and firmware upgrade. It should be noted that when soldering 2.54 header pins to the DEBUG interface, the pins need to be reversely connected to the back side to avoid interference with the radar module.

Also, please note the following when using it:

R60AMP1 100
1 1.5 L3 10 L2 6

3.3 Application Experiment

Here, we use the GraftPort-RP2040 development board for testing. The fall detection millimeter-wave radar module based on R60AMP1 uses the UART1 interface to communicate with the main controller. To facilitate result viewing, data is transmitted via serial Bluetooth, and the UART0 interface is connected to the master-slave integrated BLE Bluetooth module based on HC-08.

The module connections are shown in the following table:

Fall Detection Millimeter-Wave Radar Module Based on R60AMP1:

Development Board Pins

Module Pins

Description

Pin 8

MTX

UART1 data transmission line, corresponding to the transmit pin of the development board

Pin 9

MRX

UART1 data transmission line, corresponding to the receiving pin of the development board

HC-08 Based Master-Slave Integrated BLE Bluetooth Module:

Development Board Pins

Module Pins

Description

Pin 16

MTX

UART0 data transmission line, corresponding to the transmit pin of the development board

Pin 17

MRX

UART0 data transmission line, corresponding to the receiving pin of the development board

Install horizontally during use:

R60AMP1

Here, we need to search for the relevant driver packages on uPyPI: https://upypi.net/zh/

106 r60amp1_driver

Enter r60amp1_driver to search, and the following will be displayed:

r60amp1_driver 1.0.0 r60amp1 2026 02 12

Click to copy the local installation command:

r60amp1_driver r60 R60AMP1

Here, we can import the module driver library code via the mip tool. The following are the usage commands for the mpremote tool:

mpremote mip install github:FreakStudioCN/GraftSense-Drivers-MicroPython/sensors/r60amp1_driver

Import the multi-target trajectory meter-wave radar module based on R60AMP1 - MicroPython driver code, then copy the following main.py code into our project:

# Python env   : MicroPython v1.26.1
# -*- coding: utf-8 -*-
# @Time    : 2025/11/4 5:33 PM
# @Author  : hogeiha
# @File    : main.py
# @Description : Code for testing the R60AMP1 multi-person trajectory radar device driver class
# @License : CC BY-NC 4.0

# ======================================== Import Modules =========================================

from machine import UART, Pin, Timer
import time
from data_flow_processor import DataFlowProcessor
from r60amp1 import R60AMP1, format_time
from hc08 import HC08

# ======================================== Global Variables ============================================

# Enable debug mode (optional)
R60AMP1.DEBUG_ENABLED = True

# Last print time
last_print_time = time.ticks_ms()

# Periodic print interval: print once every 2 seconds
print_interval = 2000

# ======================================== Functions ============================================

def print_report_sensor_data():
    """
    Print the data reported by the sensor to the Thonny console.

    Note: This function prints data actively reported by the device, not query results.
    The data comes from the attribute values of the R60AMP1 class, which are updated automatically in the timer callback.

    ==========================================

    Print sensor reported data to Thonny console.

    Note: This function prints data actively reported by the device, not query results.
    Data comes from R60AMP1 class attributes, which are automatically updated in timer callbacks.
    """
    # Declare global variables
    global device

    print("=" * 50)
    print("%s Sensor Data" % format_time())
    print("=" * 50)

    # System-level information
    print("System Initialized: %s" % ("Yes" if device.system_initialized else "No"))
    print("Radar Fault Status: %s" % ["Normal", "Radar chip error", "Encryption error"][
        device.radar_fault_status] if device.radar_fault_status < 3 else "Unknown")
    print("Environment Mode: %s" % ["Default", "Living Room", "Bedroom", "Bathroom"][
        device.environment_mode] if device.environment_mode < 4 else "Unknown")

    # Product information
    print("Product Model: %s" % device.product_model)
    print("Product ID: %s" % device.product_id)
    print("Hardware Model: %s" % device.hardware_model)
    print("Firmware Version: %s" % device.firmware_version)

    # Human presence detection
    print("Presence Status: %s" % ("Someone" if device.presence_status == R60AMP1.PRESENCE_PERSON else "No one"))
    print("Motion Status: %s" % ["No motion", "Static", "Active"][
        device.motion_status] if device.motion_status < 3 else "Unknown")
    print("Body Motion Parameter: %d" % device.body_motion_param)
    print("Presence Function Enabled: %s" % ("ON" if device.presence_enabled else "OFF"))

    # Trajectory information
    if device.trajectory_targets:
        print("\nTrajectory Targets (%d):" % len(device.trajectory_targets))
        for i, target in enumerate(device.trajectory_targets):
            print("  Target %d:" % (i + 1))
            print("    Index: %d" % target['index'])
            print("    Size: %d" % target['size'])
            print("    Feature: %s" % ("Static" if target['feature'] == R60AMP1.TARGET_FEATURE_STATIC else "Moving"))
            print("    Position: X=%d cm, Y=%d cm" % (target['x'], target['y']))
            print("    Height: %d cm" % target['height'])
            print("    Speed: %d cm/s" % target['speed'])
    else:
        print("\nNo trajectory targets detected")

    print("=" * 50)

def print_active_query_data(timeout=200):
    """
    Actively query and print sensor data (blocking query).

    Args:
        timeout: Timeout for a single query, in milliseconds.

    Note:
        - This function performs blocking queries and queries all sensor data in turn.
        - There is a 200ms delay between queries to avoid overloading the device.
        - A failed query displays a failure message; a successful one displays the specific data.

    ==========================================

    Actively query and print sensor data (blocking queries).

    Args:
        timeout: Single query timeout time in milliseconds.

    Note:
        - This function performs blocking queries, sequentially querying all sensor data.
        - Each query has 200ms delay to avoid overwhelming the device.
        - Failed queries display failure information, successful ones display specific data.
    """
    # Declare global variables
    global device

    print("=" * 50)
    print("%s Active Query Sensor Data" % format_time())
    print("=" * 50)

    # Query heartbeat
    success, heartbeat_result = device.query_heartbeat(timeout)
    if success:
        print("Query Heartbeat: Success")
    else:
        print("Query Heartbeat: Failed")

    time.sleep(0.2)

    # Query product model
    success, product_model = device.query_product_model(timeout)
    if success:
        print("Query Product Model: %s" % product_model)
    else:
        print("Query Product Model: Failed")

    time.sleep(0.2)

    # Query product ID
    success, product_id = device.query_product_id(timeout)
    if success:
        print("Query Product ID: %s" % product_id)
    else:
        print("Query Product ID: Failed")

    time.sleep(0.2)

    # Query hardware model
    success, hardware_model = device.query_hardware_model(timeout)
    if success:
        print("Query Hardware Model: %s" % hardware_model)
    else:
        print("Query Hardware Model: Failed")

    time.sleep(0.2)

    # Query firmware version
    success, firmware_version = device.query_firmware_version(timeout)
    if success:
        print("Query Firmware Version: %s" % firmware_version)
    else:
        print("Query Firmware Version: Failed")

    time.sleep(0.2)

    # Query initialization status
    success, init_status = device.query_init_complete(timeout)
    if success:
        print("Query Init Status: %s" % ("Completed" if init_status else "Not completed"))
    else:
        print("Query Init Status: Failed")

    time.sleep(0.2)

    # Query human presence switch
    success, presence_switch = device.query_human_presence_switch(timeout)
    if success:
        print("Query Presence Switch: %s" % ("ON" if presence_switch else "OFF"))
    else:
        print("Query Presence Switch: Failed")

    time.sleep(0.2)

    # Query presence status
    success, presence_status = device.query_presence_status(timeout)
    if success:
        print("Query Presence Status: %s" % ("Someone" if presence_status == R60AMP1.PRESENCE_PERSON else "No one"))
    else:
        print("Query Presence Status: Failed")

    time.sleep(0.2)

    # Query motion status
    success, motion_status = device.query_motion_info(timeout)
    if success:
        status_text = ["No motion", "Static", "Active"][motion_status] if motion_status < 3 else "Unknown"
        print("Query Motion Status: %s" % status_text)
    else:
        print("Query Motion Status: Failed")

    time.sleep(0.2)

    # Query body movement parameters
    success, body_motion_param = device.query_body_motion_param(timeout)
    if success:
        print("Query Body Motion Parameter: %d" % body_motion_param)
    else:
        print("Query Body Motion Parameter: Failed")

    time.sleep(0.2)

    # Query trajectory information
    success, trajectory_targets = device.query_trajectory_info(timeout)
    if success:
        print("Query Trajectory Info: Success")
        if trajectory_targets:
            print("  Number of targets: %d" % len(trajectory_targets))
            for i, target in enumerate(trajectory_targets):
                print("  Target %d: Index=%d, Size=%d, Feature=%s, Position=(%d, %d), Height=%d, Speed=%d" %
                      (i + 1, target['index'], target['size'],
                       "Static" if target['feature'] == R60AMP1.TARGET_FEATURE_STATIC else "Moving",
                       target['x'], target['y'], target['height'], target['speed']))
        else:
            print("  No targets detected")
    else:
        print("Query Trajectory Info: Failed")

    print("=" * 50)

# ======================================== Custom Classes ============================================

# ======================================== Initialization ==========================================

# Power-on delay
time.sleep(3)
# Print debug information
print("FreakStudio: Using R60AMP1 Multi-person Trajectory Radar")

# Initialize UART0: TX=16, RX=17, baud rate 115200
uart = UART(0, baudrate=115200, tx=Pin(16), rx=Pin(17), timeout=0)
uart1 = UART(1, baudrate=9600, tx=Pin(8), rx=Pin(9), timeout=0)

# Bluetooth
hc0 = HC08(uart1)
# Create DataFlowProcessor instance
processor = DataFlowProcessor(uart)

# Create an R60AMP1 instance

device = R60AMP1(
    processor,
    parse_interval=200,  # Data parsing interval 200ms
    presence_enabled=True,  # Enable human presence detection
    max_retries=3,  # Maximum of 3 retries
    retry_delay=100,  # Retry delay 100ms
    init_timeout=5000  # Initialization timeout 5 seconds
)

# Print the configuration status
print("\nDevice Configuration Status:")
config_status = device.get_configuration_status()
print("Initialization Complete: %s" % config_status['initialization_complete'])
print("Configuration Errors: %d" % len(config_status['configuration_errors']))

if len(config_status['configuration_errors']) > 0:
    print("Configuration Error Details:")
    for error in config_status['configuration_errors']:
        print("  - %s" % error)

# Print the device information
device_info = config_status['device_info']
print("\nDevice Information:")
print("  Product Model: %s" % device_info['product_model'])
print("  Product ID: %s" % device_info['product_id'])
print("  Hardware Model: %s" % device_info['hardware_model'])
print("  Firmware Version: %s" % device_info['firmware_version'])

# Print the current settings
current_settings = config_status['current_settings']
print("\nCurrent Settings:")
print("  Presence Detection: %s" % ("ENABLED" if current_settings['presence_enabled'] else "DISABLED"))

time.sleep(1)

# ========================================  Main Program  ===========================================

try:
    print("\nStarting main loop...")
    print("Press Ctrl+C to stop the program\n")

    while True:
        current_time = time.ticks_ms()

        # Print sensor data periodically
        if time.ticks_diff(current_time, last_print_time) >= print_interval:
            # Print the actively reported data
            print_report_sensor_data()
            presence_status = device.presence_status
            motion_status = device.motion_status
            body_motion_param = device.body_motion_param
            trajectory_targets = device.trajectory_targets
            hc0.send_data("=== status ===\n")
            hc0.send_data(f"presence_status: {presence_status}\n")
            hc0.send_data(f"motion_status: {motion_status}\n")
            hc0.send_data(f"Body movement: {body_motion_param}\n")
            hc0.send_data(f"Target Quantity: {len(trajectory_targets)}\n")
            hc0.send_data("Trajectory Target:\n")
            for i, target in enumerate(trajectory_targets):
                hc0.send_data(f"  target{i + 1}: {target}\n")
            # Query and print the presence status
            success, presence_status = device.query_presence_status()
            if success:
                print("Active Query Presence Status: %s" % (
                    "Someone" if presence_status == R60AMP1.PRESENCE_PERSON else "No one"))
            else:
                print("Active Query Presence Status: Failed")

            last_print_time = current_time

        # Small delay to avoid using too much CPU
        time.sleep_ms(10)

except KeyboardInterrupt:
    print("%s Program interrupted by user" % format_time())

finally:
    # Clean up resources
    print("%s Cleaning up resources..." % format_time())
    # Stop the instance
    device.close()
    # Destroy the instance
    del device
    print("%s Program exited" % format_time())

Burn the code, open the terminal, and use the mpremote tool to connect to the main controller. The output is as follows:

R60AMP1 R60AHX2 R302H22237001 1 72cm 160cm

We need to install the mobile phone Bluetooth debugger APP, and the following will briefly demonstrate its basic functions.

Bluetooth_Debugger.apk 2.3 MB

  1. Enable the Bluetooth and location services on your mobile phone, open the APP, tap the scan button, and you will see the list of currently connectable Bluetooth devices.
  2. Based on the previously output module information from the terminal (the Bluetooth name is HC-08, corresponding to the MAC address), find HC-08 in the device list, click the + sign on the right to select this device, and the connection will be completed.
  3. After the connection is established, switch to the "Chat Mode", then you can type content in the input box and send it to realize communication and interaction with the Bluetooth module.
HC-08

The following content will be output after the Bluetooth connection is successfully established:

HC-08 target1

As our tester walks right in front, you can see data being output:

GraftSense - Multi-target Trajectory Millimeter-wave Radar Module Based on R60AMP1 (Open Version)

The results and their implications are as follows:

1. Status values
presence_status: 1 → Presence of a person detected
motion_status: 2 → Target is currently stationary
Body move_status: 2 → Human body motion status is stationary
Body movement: 12 → Human body movement parameter value is 12
Target Quantity: 1 → 1 target detected

2. Target feature values
feature: 1 → Target feature value is 1
heightfeature: 1 → Target height feature value is 1
height: 0 → No valid target height data has been obtained yet
speed: 0 → Target current speed is 0 cm/s
size: 100 / 98 → Feature size of the target
x: -13 / 6 → Position coordinates of the target on the X axis
y: 234 / 131 → Position coordinates of the target on the Y axis
index: 1 → Target number is 1

4. Drivers

r60amp1_driver.rar 26 KB

None.

VI. Revision History

Document Version

Date of Modification

Modifier

Revised Content

v1.0

2026-01-29

Zero Kōkō

Initialize Document

v1.1

2026-02-12

Xin Ruili

Create an open version of the document based on the internal document version v1.0.

v1.2

2026-03-29

Xin Ruili

Modified the application experiment section

VII. Relevant Materials

7.1 Chip Datasheet

R60AMP1_Module Getting Started Guide_ V1.0.pdf 707 KB

R60AMP1_User Manual_V1.3.pdf 490 KB

R60AMP1-H (Side Mount)_Datasheet_V2.0.pdf 540 KB

7.2 Unique Icons for PCB Silk Screen

R60AMP1 7.2