Skip to main content
Version: ACS CC

Radar

An ultrasonic radar system that detects objects' positions using sound waves instead of radio signals.

info

Author: Zaluceanu Mihaela
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-mihaelazaluceanu

Description

This project is a small-scale ultrasonic RADAR system that detects the presence and relative position of objects in the horizontal plane. It uses the HC-SR04 ultrasonic sensor for distance measurements and the SG90 micro servo motor to rotate the sensor across a 180° arc, enabling area scanning. The system is controlled by a Raspberry Pi Pico 2W. Designed as a modular component, this project can be integrated into larger systems where echolocation improves spatial awareness and obstacle detection.

Motivation

This project is modular and can be integrated into larger robotics or IoT projects later.

Architecture

Radar

Log

Week 5 - 11 May

Week 12 - 18 May

Week 19 - 25 May

Hardware

  • x2 Raspberry Pi Pico 2W;
  • SG90 micro-servomotor with 180° rotation range;
  • HC-SR04 ultrasonic distance sensor;
  • LM7805 voltage regulator/stabilizer;

Schematics

TODO: ...

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico 2The microcontroller35 RON
Raspberry Pi Pico 2The debugger35 RON
BreadboardBreadboard7 RON
LM7805The stabilizer7.33 RON
WiresWires6 RON
USB to Micro-USB CableUSB8.79 RON
HC-SR04 SensorThe sensor12.54 RON
SG90 Servo-MotorThe servomotor19.64 RON

Software

LibraryDescriptionUsage
embassyAsynchronous embedded framework for RustCore framework for running async tasks on the Raspberry Pi Pico 2
embassy-rpFor the Raspberry Pi RP2040 microcontrollerHardware abstraction layer for Raspberry Pi Pico 2
embassy-halHardware abstraction layer for embedded devicesStandard interface for GPIO, SPI, I2C, PWM, etc.
panic-haltMinimal panic handlerUsed for debugging in embedded Rust
ultrasonic-sensorDriver for HC-SR04 ultrasonic sensorMeasures distance via trigger/echo GPIO
  1. Lab03 - PWM & ADC
  2. Lab05 - SPI
  3. Lab06 - I2C
  4. Radar 2016