Labs / Electronic modules

GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)

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

Contents
R60AFD1
R60AFD1 R60AFD1-based v1.0

I. Module Introduction

R60AFD1-based Fall Alarm Millimeter-wave Radar Module, with the R60AFD1 radar chip as the core, can realize synchronous perception of moving personnel and stationary personnel (sitting still) through millimeter-wave sensing technology, and meanwhile is equipped with precise fall detection function, capable of outputting the numerical status of personnel movement amplitude in real time.This module only detects personnel with biometric features, which can effectively eliminate the interference of inanimate objects in the environment. It adopts a universal UART communication interface and provides a universal protocol, and is also equipped with expansion interfaces and MCU interfaces. It is powered by a 5V-to-3.3V circuit, and integrates power filtering and a power indicator. With low output power, it is harmless to the human body, free from the influence of environmental factors such as temperature, light and dust, and features high sensitivity. It is suitable for scenarios such as elderly care monitoring and security early warning, and provides a reliable non-contact solution for personnel safety monitoring.

2. Introduction to Main Chips

The module adopts R60AFD1 fall detection millimeter-wave radar module.

2.1 Chip Overview

R60AFD1-V R60A 60G 1T3R
R60AFD1 15s 300s

R60AFD1-V is a fall alarm radar module based on 60G millimeter-wave technology, adopting the FMCW system and 1T3R antenna. It transmits electromagnetic waves and analyzes the phase difference and energy changes of the echo to detect tiny movements such as human actions, postures and respiration, so as to realize functions of motion detection, respiration detection and fall judgment. It also supports parameter settings including installation height, fall reporting time and static resident alarm time, which can wirelessly monitor the fall and long-term static status of people in specific places and give an alarm in time. It is widely used in scenarios such as smart care, home security and whole-house intelligence.

2.2 Pin Definition

R60AFD1 1 2 5V 3.3V GP1 GP2

2.3 Functional Block Diagram

R60AFD1-V 60G

2.4 Performance Parameters

R60AFD1-V 6.1 1.5m 100
GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
R60AFD1 1.5 100
R60AFD1
R60AFD1 100ms 10s 30s 60s 5s 15s 20s 2.4

2.5 Reference Circuit

GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
R60AFD1 2 12V 5V R1 R2 R3 C1 C2 C3

2.6 Chip Configuration

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

60G 115200bps 8 1

2.7.1 Description of Vital Sign Parameters Actively Posted Back by Radar

GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
5359 05 81 0001 0F 5443 01 00 06 8D
5359 06 8D 0001 00 01 5443 2.7.2
GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
5359 0 300
01 00
5359 80 83 0001 5443 0 100 90
R60AFD1 2.7.2
GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
5359 83 13 0002 2B 2.7.2
0 15 2.7.2
5359 83 93 0001 0F 5443 2.7.2
5359 83 93 0002 2B 5443 0013 0004 4B

2.7.2 Custom Protocol Frame

0X53 0X59 8 5 0X54 0X43
2.7.3.1 Query and Setting of Basic Instruction Information
2.7.3.2 Installation Parameter Settings
2.7.3.3 Human Presence Function
2.7.3.4 Fall Detection Function

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.

On the firmware version SFD1.SY-01.02.13, during the test of querying the reporting frequency of the module's track point information, the actual returned command does not match the user manual. The version information is as follows:

Product Model: R60AFD1

Hardware Model: R60AFD1

Firmware Version: G60TP1SYV010003

R60AFD1 5359 83 93 0001 0F 0004 4B 0 0xffffffff

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.

On the firmware version SFD1.SY-01.02.13, during the test of querying the reporting frequency of the module's track point information, the actual returned command does not match the user manual. The version information is as follows:

Product Model: R60AFD1

Hardware Model: R60AFD1

Firmware Version: G60TP1SYV010003

R60AFD1 SFD1.SY-01.02.13 5359 83 93 0001 0F 5443 0 0xffffffff

4B data should be returned, but 2B is actually returned

On the firmware version SFD1.SY-01.02.13, during the test on the module's trajectory point information reporting frequency setting, the actual returned command does not match the user manual. The version information is as follows:

Product Model: R60AFD1

Hardware Model: R60AFD1

Firmware Version: G60TP1SYV010003

R60AFD1 5359 83 13 0004 4B 5443 0 0xffffffff SFD1.SY-01.02.13
SFD1.SY-01.02.13 0x10 08 07 8474 06 6874 52 59 83

It does not match the manual, but after testing, there is a response when the data is set to be sent as 2B, though it is unknown whether this setting actually takes effect.

[18:11:49:465] Sent → 53 59 83 13 00 02 00 0A 4E 54 43

[18:11:49:548] RX ← 53 59 83 13 00 02 00 0A 4E 54 43

On the firmware version SFD1.SY-01.02.13, during the test of the module's height accumulation time setting, the actual command return does not conform to the user manual. The version information is as follows:

Product Model: R60AFD1

Hardware Model: R60AFD1

Firmware Version: G60TP1SYV010003

The command for setting the height accumulation time is invalid and will not be responded to.

R60AFD1
53 59 83 0F 0004 4B 5443 0 300 R60AFD1

2.8 PCB Routing Precautions

The "R60AFD1-V (Top-Mounting)_Datasheet_V2.0" describes the power supply section as follows:

1 2 3 4.5V 5.5V 100mV

《R60AFD1_User Manual_V2.1 (New Version Algorithm)》 specifies the power supply section as follows:

R60AFD1 4.9-6V 200mA 100mV
R60AFD1 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_R60AFD1-Based_Fall_Detection_Alarm_mmWave_Radar_Module-v1.0_2026-01-28.pdf 2.4 MB

R60AFD1 C1 C2 C4 C5 GP1 GP2 GP3 GP4 R60AFD1-based

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.

R60AFD1 H1 PZ254V-12-8P 1 GP1 2 GP4 3 GP3 4

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

Also, please note the following when using it:

R60AFD1 100
5 2.2 2.8 R3 2.5 R2 1.5 R1 4 8

3.3 Application Experiment

Here, we use the GraftPort-RP2040 development board for testing. The fall-alert millimeter-wave radar module based on the R60AFD1 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.

R60AFD1 HC-08

The module connections are shown in the following table:

Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 :

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

Adopt vertical installation during use, with the installation height being approximately 2.0m:

GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)
R60AFD1 2.0

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/r60afd1_driver

After importing the fall detection millimeter-wave radar module based on R60AFD1 - MicroPython driver code, 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())

Before running the aforementioned main program code, please note that the following core parameters need to be debugged and configured in combination with the actual usage scenarios:

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

try:
    print("\nStarting main loop...")
    print("Press Ctrl+C to stop the program\n")
    # Fall detection settings
    # Set the installation height to 200cm
    device.set_install_height(height_cm=200)
    # Fall-breaking height
    device.set_fall_break_height(height_cm=100)
    # Fall sensitivity
    device.set_fall_sensitivity(sensitivity=3)
    # Fall duration
    device.set_fall_duration(seconds=6)

    # Dwell detection settings
    device.set_static_stay_duration(seconds=90)

The specific judgment logic for a fall incident is as follows: When the system detects that a target falls from a higher position to a lower one, its final height drops below the threshold of "fall detection height", and meanwhile the target remains stationary at this low-altitude state for the preset "fall duration", the system will automatically trigger a fall incident and complete the subsequent reporting operation.

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

R60AFD1

It includes the following:

The overall status group contains the device's current operating status, whether a person is detected, and the startup time.
The installation configuration group contains hardware installation parameters of the radar, such as installation height and angle.
The real-time detection group contains data detected in real time, such as the target's motion status, position, and distance.
The threshold settings group contains the trigger conditions used to judge events, such as fall sensitivity and no-person timeout.
The function switch group contains the enabled/disabled status of each function (such as fall detection and presence detection).

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

After Bluetooth connection is established successfully, the following content will be output: fall status, human presence status, and dwell status

HC-08 0 1

It can be seen that after our tester falls, the module detects the person's fall:

GraftSense - Fall Detection Millimeter-Wave Radar Module Based on R60AFD1 (Open Version)

4. Drivers

r60afd1_driver.rar 32 KB

None.

VI. Revision History

Document Version

Date of Modification

Modifier

Revised Content

v1.1

2026-01-28

Zero Kōkō

Initialize Document

v1.2

2026-02-13

Li Zisheng

Modified the BOM sheet.

v1.3

2026-02-14

Xin Ruili

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

VII. Relevant Materials

7.1 Chip Datasheet

R60AFD1-V(Ceiling_Mount)_Datasheet_V2.0.pdf 1.2 MB

R60AFD1_Module_Getting_Started_Guide_V1.2.pdf 749 KB

R60AFD1_User_Manual_V2.1(New_Version_Algorithm).pdf 567 KB

Enclosure_Design_Recommendations_V1.1.pdf 646 KB

7.2 Unique Icons for PCB Silk Screen

7.2