Distance of an object – The Doppler Effect (Radar) STEM activity

This tutorial demonstrates how to build and control a radar for object proximity tracking using Polytech’s SMART:Blox S5 Set and the STEM LAB Windows application.

Method

An Ultrasonic Range Detector, mounted on a micro servo mechanism, scans a 180° area to detect obstacles within a 10–50 cm range. Real-time scanning results are displayed on a connected Windows PC.

Equipment

  • Hardware
    • SMART:Blox S5 STEM Set
      • ARD:icon controller
      • Ultrasonic Range Detector DJS22
      • Micro Servo DJX11
      • Servo Controller EXP-AJ11
      • EB:blocks (2 white, 1 blue, 1 red ultrasonic range detector servo adaptor)
      • Blocks base
      • UTP cables (x2)
  • Software
    • Polytech STEM LAB application on a Windows PC

How Ultrasonic Sensors Work

The sensor measures distances by emitting sound waves and calculating the time taken for the echo to return. For example, a 20 cm distance requires about 588 microseconds for the sound wave to travel to the object and back.

Set up Instructions

  1. Encapsulate the Servo Controller EXP-AJ11 using the white and blue EB:blocks.
  1. Attach the Ultrasonic Range Detector to the Micro Servo DJX11 via the red adaptor.
  1. Secure all components onto the blocks base.

Connections

  1. Connect the Micro Servo DJX11 to the Servo Controller.
  2. Link the Servo Controller to the ARD:icon D7 Digital Input using a UTP cable.
  3. Connect the Ultrasonic Range Detector to the ARD:icon D3/D4 Digital Input using another UTP cable.
  4. Use a USB cable to connect the ARD:icon to the Windows PC.

Usage Instructions

  1. Launch the Polytech STEM LAB application.
  2. Select “Arduino Radar” and press “Start Radar.”
  3. Observe the radar scanning a 180° area and displaying objects within the 10–50 cm range.

Features and Options

  • Adjustable Scan Area: Modify the min and max angles of rotation. Use the Value Range slider to narrow down the scannable area by adjusting the min and max angles that the sensor will rotate.
  • Scan Direction: Choose between left-to-right or right-to-left scanning. Use the Direction drop down menu to change the direction of the scan:
    • Upwards moves the sensor rigth to left from 0 to 180 degrees or
    • Downwards moves the sensor left to right from 180 to 0 degrees

End of tutorial

Scroll to Top