Radar
An ultrasonic radar system that detects objects' positions using sound waves instead of radio signals.
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
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
Device | Usage | Price |
---|---|---|
Raspberry Pi Pico 2 | The microcontroller | 35 RON |
Raspberry Pi Pico 2 | The debugger | 35 RON |
Breadboard | Breadboard | 7 RON |
LM7805 | The stabilizer | 7.33 RON |
Wires | Wires | 6 RON |
USB to Micro-USB Cable | USB | 8.79 RON |
HC-SR04 Sensor | The sensor | 12.54 RON |
SG90 Servo-Motor | The servomotor | 19.64 RON |
Software
Library | Description | Usage |
---|---|---|
embassy | Asynchronous embedded framework for Rust | Core framework for running async tasks on the Raspberry Pi Pico 2 |
embassy-rp | For the Raspberry Pi RP2040 microcontroller | Hardware abstraction layer for Raspberry Pi Pico 2 |
embassy-hal | Hardware abstraction layer for embedded devices | Standard interface for GPIO, SPI, I2C, PWM, etc. |
panic-halt | Minimal panic handler | Used for debugging in embedded Rust |
ultrasonic-sensor | Driver for HC-SR04 ultrasonic sensor | Measures distance via trigger/echo GPIO |