🧠 System Overview
This “Frequency Adjustable Ultrasonic Signal Source System” is based on the STM32 microcontroller, integrating multiple functions such as ultrasonic distance measurement, Bluetooth communication, OLED display, and sound alarm. The system can dynamically adjust the ultrasonic frequency according to different scene requirements, achieving high-precision measurement at short distances and stable detection at long distances with intelligent switching.
System Physical Diagram
🔧 Hardware Design
1. Main Control Chip: STM32F103C8T6
-
High performance, low power consumption, rich peripheral interfaces
-
Easily drives ultrasonic modules, Bluetooth, displays, and other peripherals
2. Ultrasonic Module: HC-SR04
-
Integrated design for transmission and reception
-
Supports adjustable frequency, suitable for different measurement scenarios
3. Bluetooth Module: HC-05
-
Enables wireless communication with mobile APP
-
Users can remotely view data and set alarm thresholds
4. Human-Machine Interaction Module
-
OLED Display: Displays distance and threshold information in real-time
-
Independent Buttons: Local settings, easy to operate
5. Sound Alarm Module
-
Passive Buzzer: The closer the distance, the higher the ringing frequency, providing a clear warning effect
💻 Software Design
1. Embedded Program (STM32)
-
Realizes ultrasonic frequency adjustment, distance measurement, alarm, and Bluetooth communication
-
Multithreaded task scheduling, smooth and stable system operation
2. Android APP
-
Real-time reception and display of distance measurement data
-
Supports remote setting of alarm thresholds
-
Simple interface, intuitive operation

APP Interface Design Diagram
✨ Feature Highlights
| Feature | Description |
|---|---|
| 🎛️ Frequency Adjustable | Intelligently switches frequency based on different scenarios, enhancing accuracy and adaptability |
| 📶 Bluetooth Remote Interaction | Real-time data viewing and parameter setting via mobile APP, no need to approach the device |
| 🚨 Intelligent Alarm | Buzzer frequency changes with distance, becoming more urgent as it gets closer, providing an intuitive warning effect |
| 👆 Local Button Operation | Three independent buttons for easy threshold setting, debounce design to avoid misoperation |
| 📱 Dual Interface Display | Local display on OLED screen + remote display on APP, information synchronization, convenient to use |
With adjustable frequency, Bluetooth connectivity, and intelligent alarms, this ultrasonic signal source system is not only a graduation project but also a practical and expandable smart hardware prototype.If you are interested in embedded systems, IoT applications, or smart hardware development, and want to customize your own course project/thesis topic, feel free to scan the QR code to add me on WeChat!