Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Radar Sensor: Examples, Pinouts, and Specs

Image of Radar Sensor
Cirkit Designer LogoDesign with Radar Sensor in Cirkit Designer

Introduction

The Sparkfun Acconeer XM125 is a compact and highly versatile radar sensor module designed to detect the distance, speed, and angle of objects using radio waves. This advanced sensor is ideal for applications requiring precise object detection and motion tracking. Its small form factor and robust performance make it suitable for a wide range of industries, including automotive, aviation, robotics, and IoT.

Explore Projects Built with Radar Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO Based Ultrasonic Radar System with Servo Motor
Image of ultrasonic radar: A project utilizing Radar Sensor in a practical application
This circuit is designed to function as an ultrasonic radar system, utilizing an Arduino UNO microcontroller, an HC-SR04 ultrasonic sensor, and an SG90 servo motor. The Arduino controls the servo to sweep the ultrasonic sensor through a range of angles, while the sensor measures the distance to any objects in its path. The system outputs the angle and distance measurements to the serial monitor and provides an indication when an obstacle is detected within 20 cm.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 4B and MMWave Radar Sensor-Based Smart LED Indicator
Image of Capstone Connections: A project utilizing Radar Sensor in a practical application
This circuit integrates a Raspberry Pi 4B with an MMWave radar sensor and two LEDs (red and green). The Raspberry Pi powers and communicates with the radar sensor via GPIO pins, and controls the LEDs to indicate the status or results of the radar sensor's operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Doppler Radar with RF Transmission and LCD Display
Image of Doppler Radar: A project utilizing Radar Sensor in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an RF 433 MHz Transmitter, a Transmitter RF Module, an LCD screen with I2C communication, and a doppler radar sensor. The Arduino controls the RF transmission and processes the doppler radar's signal, likely for motion detection purposes. The LCD screen is used to display information or statuses, and the RF modules enable wireless communication, possibly to transmit the processed radar data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 and ESP32 CAM Based Motion Detection and RFID Security System
Image of Arduino Mega Circuit: A project utilizing Radar Sensor in a practical application
This circuit is designed for a multi-sensor motion detection system with image capture and RFID reading capabilities. It uses an Arduino Mega 2560 as the central processing unit, interfacing with microwave radar motion sensors, an ESP32 CAM, and RFID boards. Power management is handled by voltage regulators and DC-DC converters, and an Arduino MKR WiFi 1010 is included for potential wireless communication.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Radar Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ultrasonic radar: A project utilizing Radar Sensor in a practical application
Arduino UNO Based Ultrasonic Radar System with Servo Motor
This circuit is designed to function as an ultrasonic radar system, utilizing an Arduino UNO microcontroller, an HC-SR04 ultrasonic sensor, and an SG90 servo motor. The Arduino controls the servo to sweep the ultrasonic sensor through a range of angles, while the sensor measures the distance to any objects in its path. The system outputs the angle and distance measurements to the serial monitor and provides an indication when an obstacle is detected within 20 cm.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Capstone Connections: A project utilizing Radar Sensor in a practical application
Raspberry Pi 4B and MMWave Radar Sensor-Based Smart LED Indicator
This circuit integrates a Raspberry Pi 4B with an MMWave radar sensor and two LEDs (red and green). The Raspberry Pi powers and communicates with the radar sensor via GPIO pins, and controls the LEDs to indicate the status or results of the radar sensor's operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Doppler Radar: A project utilizing Radar Sensor in a practical application
Arduino-Based Doppler Radar with RF Transmission and LCD Display
This circuit features an Arduino UNO microcontroller interfaced with an RF 433 MHz Transmitter, a Transmitter RF Module, an LCD screen with I2C communication, and a doppler radar sensor. The Arduino controls the RF transmission and processes the doppler radar's signal, likely for motion detection purposes. The LCD screen is used to display information or statuses, and the RF modules enable wireless communication, possibly to transmit the processed radar data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Arduino Mega Circuit: A project utilizing Radar Sensor in a practical application
Arduino Mega 2560 and ESP32 CAM Based Motion Detection and RFID Security System
This circuit is designed for a multi-sensor motion detection system with image capture and RFID reading capabilities. It uses an Arduino Mega 2560 as the central processing unit, interfacing with microwave radar motion sensors, an ESP32 CAM, and RFID boards. Power management is handled by voltage regulators and DC-DC converters, and an Arduino MKR WiFi 1010 is included for potential wireless communication.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Automotive: Collision avoidance, blind-spot detection, and parking assistance.
  • Aviation: Navigation and obstacle detection for drones and aircraft.
  • Robotics: Object tracking and proximity sensing for autonomous systems.
  • IoT: Smart home devices, security systems, and presence detection.
  • Industrial: Level sensing, material monitoring, and conveyor belt systems.

Technical Specifications

The following table outlines the key technical details of the Sparkfun Acconeer XM125 radar sensor:

Parameter Value
Operating Voltage 3.3V
Power Consumption 1.65 mW (typical)
Frequency Range 60 GHz
Detection Range 0.1 m to 10 m
Angular Resolution ±15°
Communication Interface UART, SPI
Operating Temperature -40°C to +85°C
Dimensions 33 mm x 15 mm

Pin Configuration and Descriptions

The Sparkfun Acconeer XM125 features a 10-pin interface for power, communication, and control. The pinout is as follows:

Pin Number Pin Name Description
1 VCC Power supply input (3.3V)
2 GND Ground
3 TX UART Transmit
4 RX UART Receive
5 SPI_MOSI SPI Master Out Slave In
6 SPI_MISO SPI Master In Slave Out
7 SPI_SCK SPI Clock
8 SPI_CS SPI Chip Select
9 GPIO1 General Purpose Input/Output 1
10 GPIO2 General Purpose Input/Output 2

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V power source and the GND pin to ground.
  2. Communication Interface: Choose between UART or SPI for communication:
    • For UART, connect the TX and RX pins to the corresponding UART pins on your microcontroller.
    • For SPI, connect the SPI_MOSI, SPI_MISO, SPI_SCK, and SPI_CS pins to the respective SPI pins on your microcontroller.
  3. GPIO Pins: Use GPIO1 and GPIO2 for additional control or status signaling as needed.
  4. Antenna Placement: Ensure the sensor's antenna has a clear line of sight to the target for optimal performance.

Important Considerations and Best Practices

  • Power Supply: Use a stable 3.3V power source to avoid damage to the sensor.
  • Interference: Avoid placing the sensor near other high-frequency devices to minimize interference.
  • Mounting: Position the sensor securely and ensure it is oriented correctly for the desired detection area.
  • Firmware: Update the sensor's firmware to the latest version for improved performance and features.

Example Code for Arduino UNO

Below is an example of how to interface the Sparkfun Acconeer XM125 with an Arduino UNO using UART communication:

#include <SoftwareSerial.h>

// Define the UART pins for the radar sensor
#define RADAR_TX 2  // Radar sensor TX connected to Arduino pin 2
#define RADAR_RX 3  // Radar sensor RX connected to Arduino pin 3

// Create a SoftwareSerial object for communication
SoftwareSerial radarSerial(RADAR_RX, RADAR_TX);

void setup() {
  // Initialize serial communication with the radar sensor
  radarSerial.begin(115200); // Radar sensor baud rate
  Serial.begin(9600);        // Serial monitor baud rate

  Serial.println("Radar Sensor Initialized");
}

void loop() {
  // Check if data is available from the radar sensor
  if (radarSerial.available()) {
    String radarData = radarSerial.readString(); // Read data from the sensor
    Serial.println("Radar Data: " + radarData); // Print data to the serial monitor
  }

  delay(100); // Small delay to avoid overwhelming the serial buffer
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data from the Sensor

    • Cause: Incorrect wiring or communication settings.
    • Solution: Double-check the connections and ensure the UART or SPI settings match the sensor's configuration.
  2. Inconsistent Readings

    • Cause: Interference from nearby devices or obstacles in the detection path.
    • Solution: Relocate the sensor to a less noisy environment and ensure a clear line of sight.
  3. Sensor Overheating

    • Cause: Prolonged operation in high-temperature environments.
    • Solution: Ensure adequate ventilation and operate within the specified temperature range (-40°C to +85°C).
  4. Firmware Update Issues

    • Cause: Interrupted update process or incompatible firmware version.
    • Solution: Retry the update process and ensure the correct firmware file is used.

FAQs

  • Q: Can the sensor detect multiple objects simultaneously?
    A: Yes, the sensor can detect multiple objects within its range and provide their relative positions.

  • Q: What is the maximum detection range of the sensor?
    A: The sensor can detect objects up to 10 meters away.

  • Q: Can the sensor be used outdoors?
    A: Yes, the sensor is designed to operate in a wide temperature range and can be used outdoors, but it should be protected from direct exposure to water or extreme environmental conditions.

  • Q: Is the sensor compatible with Raspberry Pi?
    A: Yes, the sensor can be interfaced with Raspberry Pi using UART or SPI communication.

This concludes the documentation for the Sparkfun Acconeer XM125 radar sensor. For further assistance, refer to the manufacturer's datasheet or support resources.