60 GHz Radar Presence and People Tracking: DIY Board Quick Start

Wire the pre-flashed 60 GHz radar DIY board with five jumpers, read the people it tracks with a short Python script, and mount it so the numbers stay right.

A 60 GHz radar board the size of a postage stamp can tell you how many people are in a room and where each one is standing, with no camera and no lens to cover. Order the DIY board with a presence build and it ships pre-flashed with it, so five jumper wires, the included 3.3 V regulator and a USB-to-TTL adapter are enough to see people as x, y positions on your PC, refreshed frame by frame. This guide walks through that first test, explains what the numbers mean, and shows where to mount the board so they stay right.

The board

The board carries the radar chip and four printed patch antennas: two that transmit and two that receive (2T2R). The copper squares near one edge are the antennas, so that face of the board looks at the room. The datasheet gives each antenna 4 dBi of gain and a −3 dB beam of about ±60° both across and up-down, and a transmit power of 12 dBm typical. It is an FMCW radar: it sends a tone that sweeps upward in frequency and compares the echo with what it is sending at that moment (the chirp chapter explains how that turns into distance).

The application builds sweep 2 to 4 GHz inside the 60 GHz band. Range resolution is c / 2B, so a 4 GHz sweep separates two reflections about 3.75 cm apart in distance (why the 2 is there). That is the raw resolution of the sensor, not the accuracy of a person’s position: a body is a cloud of reflections tens of centimetres across, and the application reports one point per person.

Two details matter before you wire anything. The pins are on a 2.0 mm pitch, not the usual 2.54 mm, so Dupont jumpers and breadboards do not fit directly; the DIY board comes with 2.0 to 2.54 mm jumper wires for that reason. And the board runs on 3.3 V only. For a space too tight for 25 × 31.5 mm there is also the AiP sensor, a 42 × 8 mm strip with its antennas inside the chip package, which runs presence and gesture applications too.

Pick the application when you order

Each application is a separate firmware build, and the DIY board ships with the one you choose on the product page:

  • Presence, wall mount or Presence, ceiling mount: presence and tracking of up to 4 people. This guide uses the wall build.
  • People counting: tracks people and counts them in up to 5 rectangular zones you draw.
  • Gesture recognition: six hand swipes (up, down, left, right, toward, away), board facing the user.
  • Presence and fall events, ceiling mount (experimental): reports a fall flag and the target’s height.
  • Breathing and heart rate (research): one person, board above the chest.

Fall, breathing and heart-rate outputs are experimental research signals. The board is not a medical device and must not be used as a safety or emergency alarm.

What you need

  • In the box with the DIY board: the board, pre-flashed; 2.0 to 2.54 mm female–female jumper wires; and a 3.3 V regulator module (rated 800 mA) that you feed from any 5 V source.
  • A USB-to-TTL adapter with 3.3 V logic (CP2102, CH340 or similar).
  • A 5 V supply for the regulator: a USB charger with a cut cable, a bench supply, or the 5 V pin of a USB-powered board.
  • A PC with Python 3 and pyserial (pip install pyserial) for the script below. It runs on Windows, macOS and Linux.

Why a separate regulator: the radar draws up to 600 mA while it transmits, and the 3.3 V pin of a typical USB-to-TTL adapter cannot supply that. Running it from the adapter is the most common reason a new board resets or stays silent.

The development kit skips the loose wiring: the board plugs into a USB-C interface board with its own 3.3 V supply and serial port, and it adds the configuration GUI and an ESP32-S3 controller that switches between all the application builds from a web page. The DIY board is the low-cost way in when you already know which application you want.

Wire it: five wires

  1. Pad 13 (3.3V) to the regulator’s 3.3 V output.
  2. Pad 9 (GND0) to the regulator’s ground.
  3. Pad 14 (GND) to the adapter’s GND, so the radar and the adapter share one ground.
  4. Pad 17 (TX0) to the adapter’s RX: the radar talks on TX0.
  5. Pad 16 (RX0) to the adapter’s TX: the radar listens on RX0.

Then feed 5 V and ground into the regulator’s input and plug the adapter into the PC. Check the regulator’s output with a meter before you connect pad 13 the first time; 5 V on that pad can destroy the board.

TX0 and RX0 are the application port. The board has a second serial port, TX1 and RX1, that only the radar’s built-in loader uses; leave it unconnected for this test.

See the people it reports

The presence-and-tracking build sends frames on TX0 at 115200 baud, about 19 target frames a second in our capture, 8N1. Each frame starts with the byte 0x01 and a short header that gives its type and length, and ends with a check byte. Type 0x0A04 is the target list: a count, then one record per person that begins with x and y in metres, plus z in the longer records. x runs across the board, y points straight out of the antenna face, and z points up.

The script below finds those frames, checks them, and prints each person’s distance and angle. Distance is √(x² + y²) and the angle is atan2(x, y), so 0° is straight in front of the board and positive angles lie toward the board’s +x side. Save it as kym_track_reader.py and run it with the adapter’s port name, for example python kym_track_reader.py COM5 on Windows or /dev/ttyUSB0 on Linux.

kym_track_reader.py (about 80 lines, MIT)
"""Print the people a Kymopsis 60 GHz presence-and-tracking radar reports over UART.

Usage:  pip install pyserial
        python kym_track_reader.py COM5          (Windows)
        python kym_track_reader.py /dev/ttyUSB0  (Linux / macOS)

Frame on the radar's application port (TX0), 115200 baud 8N1:
  0x01 | ID (2 B) | LEN (2 B, big-endian) | TYPE (2 B, big-endian) | header check (1 B)
  | payload (LEN bytes) | payload check (1 B)
  check byte = bitwise NOT of the XOR of the bytes it covers.
Type 0x0A04 is the target list: a 32-bit little-endian count, then one record per
person. Every record starts with float32 x and y in metres (x = across the
board, y = straight out of the antenna face); 20- and 24-byte records add z (up).
The record length depends on the build, so it is worked out from LEN and the count.
"""
import math
import struct
import sys

TARGETS = 0x0A04


def check(data: bytes) -> int:
    x = 0
    for b in data:
        x ^= b
    return (~x) & 0xFF


def frames(read):
    """Yield (type, payload) for every frame whose two check bytes are right."""
    while True:
        if read(1) != b"\x01":
            continue
        head = b"\x01" + read(6)
        if len(head) < 7 or read(1) != bytes([check(head)]):
            continue
        length, ftype = struct.unpack(">HH", head[3:7])
        if length > 4096:
            continue
        payload = read(length)
        if len(payload) == length and (length == 0 or read(1) == bytes([check(payload)])):
            yield ftype, payload


def targets(payload: bytes):
    """Return a list of (x, y, z) in metres from a 0x0A04 payload."""
    if len(payload) < 4:
        return []
    n = struct.unpack_from("<I", payload)[0]
    if n == 0 or (len(payload) - 4) % n:
        return []
    size = (len(payload) - 4) // n
    if size not in (16, 20, 24):  # record lengths the builds use
        return []
    has_z = size >= 20          # 16-byte records carry x and y only
    out = []
    for i in range(n):
        off = 4 + i * size
        x, y = struct.unpack_from("<ff", payload, off)
        z = struct.unpack_from("<f", payload, off + 8)[0] if has_z else 0.0
        out.append((x, y, z))
    return out


def main():
    import serial  # pyserial
    port = serial.Serial(sys.argv[1], 115200, timeout=2)
    for ftype, payload in frames(port.read):
        if ftype != TARGETS:
            continue
        people = targets(payload)
        line = ", ".join(
            f"{math.hypot(x, y):.2f} m at {math.degrees(math.atan2(x, y)):+.0f} deg"
            for x, y, _ in people)
        print(f"{len(people)} {'person' if len(people) == 1 else 'people'}  {line}")


if __name__ == "__main__":
    main()

We ran it on a 10-second recording from our bench board: the presence build running, the board standing upright on a desk and facing the room, one person seated at the desk in front of it. An excerpt of the output:

0 people
0 people
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
1 person  0.67 m at -25 deg
0 people
0 people

Notice the zeros. Over those 10 seconds the seated person appeared in 81 of the 189 target frames, in runs of up to about 3 seconds, always at 0.64–0.67 m and 20–26° to one side. A person sitting still barely moves, so frame by frame the target list comes and goes. That is normal, and it is exactly what the occupied hold time described below is for: decide that a room is empty from several seconds of target lists, never from a single frame. The build also sends a second frame type, 0x0A0A, for its zones, at the same rate; the script skips it.

When nobody is in range the count drops to 0. If nothing prints at all, swap the TX and RX wires at the adapter end, check that both grounds are connected, and confirm the regulator output is 3.3 V.

The same frame format is what our open-source Radar Desk Buddy decodes on an ESP32-S3, so once the script works on the PC you can move the parsing to a microcontroller with the same logic.

Where to put it

On a wall, face the antennas into the room and keep the board level so that x really runs across the room. The wall build covers about ±55° to each side and follows up to 4 people out to about 6.5 m. On a ceiling, use the ceiling build, antennas facing down and centred over the area; it covers the full circle below the board. The two builds are tuned for their geometry, so pick the one that matches how the board is mounted.

Most wrong or missing detections come from the room, not the module. Check these before you change any setting:

  • Things that move on their own: fans, curtains in a draught, swaying plants, pets. Point the board away from them, or mask them with an ignore zone.
  • Metal near or in front of the antenna: a metal case, metallised film or coated glass blocks 60 GHz. Use a thin plastic cover instead; our radome guide shows how thick.
  • Large mirrors and metal surfaces can reflect a person and create a ghost target.
  • A mount that vibrates, such as a door or a loose bracket, looks like motion to the radar.
  • Two radars facing each other at close range can disturb each other; angle them apart.

Occupied and empty

The build switches to occupied about half a second after someone walks in, and waits about 5 seconds after the room clears before it reports empty. The asymmetry is deliberate. A person who sits still and reads barely moves, so their echo can fade for a moment; reporting empty at once would switch the lights off on them. The hold time is adjustable, along with three sensitivity levels, detection and ignore zones, the detection height and a low-power mode while the room is empty.

These settings are changed with configuration commands on the same serial port, described in the UART notes that come with the DIY board, or from the development kit’s GUI. Change one at a time and walk the room again after each change.

How it finds a person

Three measurements turn echoes into a dot on the screen. The distance comes from the beat between the outgoing sweep and the echo. A moving person shifts the echo’s phase a little from one sweep to the next, which separates people from walls and furniture (Doppler and the range-Doppler map). And the direction comes from the tiny difference in arrival time between the receive antennas (angle from a phase difference).

The firmware then finds the cells that stand out from the background, groups the reflections from one body into one target, and tracks each target from frame to frame so it keeps its identity as it moves (CFAR detection and tracking). That last step is why a person who stops walking does not vanish at once. Why 60 GHz for this job, rather than 24 or 77 GHz, is covered in choosing a radar band.

From first test to a project

Once you can read targets on a PC, the next step is usually a microcontroller. Two of our open-source projects use this board with the Presence, wall mount build and an ESP32-S3:

  • Radar Desk Buddy: a desk companion whose eyes and figure turn to follow you around the room.
  • Radar auto-lock: locks your PC when you walk away and wakes it when you come back, acting as a USB keyboard.

If you want to compare applications on one board, the development kit includes all the builds and an ESP32-S3 controller that loads any of them into the radar from a Wi-Fi web page in a few seconds. A build loaded this way runs from RAM, so a reset brings back the one the board shipped with. The controller runs Kymopsis Radar Base; its guides are at radar.kymopsis.com, and its browser app shows people’s positions in Chrome or Edge over USB. The controller firmware is open source (MIT) in Kymopsis/radar-base, and it appears in Home Assistant by itself through MQTT discovery.

  • 60 GHz PCB-antenna radar module with key specs: 60 GHz FMCW, 2T2R PCB patch antennas, 25 x 31.5 mm with 2.0 mm headers, ±60° beam

    60 GHz Gesture & Presence Radar Module Development Kit, PCB Antenna (2T2R, 25 × 31.5 mm)

    DIY board
    Development kit
    Gesture recognition
    Presence, ceiling mount
    Presence, wall mount
    People counting
    Presence and fall events, ceiling mount
    Breathing and heart rate (research)
    Reset options
    From $19.00
    Select options This product has multiple variants. The options may be chosen on the product page
  • 60 GHz AiP radar module, antenna side and connector side, with key specs: 57–64 GHz, 2T2R antenna-in-package, 42 x 8 mm, ±60° field of view; gesture and presence applications

    60 GHz AiP Gesture & Presence Radar Sensor Module, Pre-flashed (57–64 GHz, 2T2R)

    Sensor only
    Sensor + USB-TTL adapter (3.3 V LDO)
    Gesture recognition
    Presence, ceiling mount
    Presence, wall mount
    Presence and fall events, ceiling mount
    Breathing and heart rate (research)
    Reset options
    From $19.00
    Select options This product has multiple variants. The options may be chosen on the product page
GitHub · Kymopsis /radar-desk-buddyESP32-S3 desk companion with a 60 GHz mmWave radar: eyes and figure follow you, local time and weather, Telegram messages. No soldering.CMIT licenseView repository →
Engineering service · Radar System DesignBuilding presence sensing into a product?Custom firmware, enclosure and radome, volume modules, and help with certification for your own product. Tell us the room, the mounting and the volume.Request a quote →See the service

FAQ

Can a 60 GHz radar detect a person who is sitting still?

Yes, within limits. The presence build holds the occupied state for an adjustable time after motion stops, and a seated person still moves slightly as they breathe. Very still people at the edge of the range are the hardest case; mount the board so the area people sit in is near the centre of its view.

How many people can the board track?

The presence-and-tracking build follows up to 4 people to about 6.5 m. For counting people in defined areas, the people-counting build counts them in up to 5 zones.

Can I power the radar from my USB-to-TTL adapter?

Usually not. The board draws up to 600 mA, more than the 3.3 V pin of a typical adapter supplies. Use the included regulator from a 5 V source and share ground.

Does the radar see through walls?

60 GHz is strongly attenuated by most building walls, so plan on covering one room per board. Thin plastic covers are fine; metal and metallised glass block it.

Is the board certified for use in a product?

No. It is sold as a development kit for engineers and is not FCC certified; no CE or other certification is claimed. A finished product needs its own equipment authorization, which our B2B program can help scope.

Sources and method

Range resolution computed as c / 2B with B = 4 GHz: 3e8 / 8e9 = 0.0375 m. Coverage, people count, range and occupied/empty delays are the chip maker’s stated figures, not our measurements. The reader script was checked against frames built to this format (including a corrupted frame, which it drops) and run on a 10 s UART0 recording from our bench board (presence build, board upright on a desk facing the room, one seated person): 378 frames, every check byte valid, 189 target frames with 20-byte records. Photos and screen recordings are of our own bench setup.