This shows you the differences between two versions of the page.
pm:prj2025:vradulescu:alexandra.ionita03 [2025/05/23 16:45] alexandra.ionita03 [Software Design] |
pm:prj2025:vradulescu:alexandra.ionita03 [2025/05/23 16:50] (current) alexandra.ionita03 [Software Design] |
||
---|---|---|---|
Line 135: | Line 135: | ||
**Project Innovation** | **Project Innovation** | ||
+ | |||
The novelty of this project lies in the integration of interrupt-driven sensor processing with real-time multi-component coordination. Unlike basic proximity detection systems, this project combines continuous servo scanning with non-blocking alarm systems, creating a dynamic radar-like surveillance system. The use of Timer2 interrupts for sensor reading while maintaining smooth servo operation and responsive LCD updates represents a different approach to embedded system design. | The novelty of this project lies in the integration of interrupt-driven sensor processing with real-time multi-component coordination. Unlike basic proximity detection systems, this project combines continuous servo scanning with non-blocking alarm systems, creating a dynamic radar-like surveillance system. The use of Timer2 interrupts for sensor reading while maintaining smooth servo operation and responsive LCD updates represents a different approach to embedded system design. | ||
**Project Architecture and Validation** | **Project Architecture and Validation** | ||
+ | |||
The system follows a modular architecture where the ISR handles time-critical sensor operations while the main loop manages user interface components. Validation was performed through systematic testing: | The system follows a modular architecture where the ISR handles time-critical sensor operations while the main loop manages user interface components. Validation was performed through systematic testing: | ||
* Distance accuracy: Tested with objects at known distances (5cm, 10cm, 15cm, 20cm) showing ±0.5cm precision | * Distance accuracy: Tested with objects at known distances (5cm, 10cm, 15cm, 20cm) showing ±0.5cm precision | ||
Line 144: | Line 146: | ||
* Component coordination: Verified simultaneous operation of LEDs, buzzer, LCD, and servo without interference | * Component coordination: Verified simultaneous operation of LEDs, buzzer, LCD, and servo without interference | ||
+ | **Sensor Calibration Process** | ||
+ | |||
+ | The HC-SR04 ultrasonic sensor calibration involved: | ||
+ | * Distance Formula Validation: Verified the 0.034 cm/μs speed of sound constant through measurements against known distances | ||
+ | * Threshold Optimization: Through testing various objects and distances, established 15cm as optimal detection threshold balancing sensitivity and false positives | ||
+ | |||
+ | **Performance Optimizations** | ||
+ | * LCD Update Optimization: Implemented 250ms update intervals to eliminate flickering while maintaining responsiveness | ||
+ | * ISR Efficiency: Minimized ISR execution time by moving complex operations to main loop using flag-based communication | ||
+ | * Timer Configuration: Selected Timer2 to avoid conflicts with Servo library's Timer1 usage | ||
+ | **The demonstration video showcases** (the video is in the archive) | ||
+ | * Initial startup with "Safe area" display and green LEDs | ||
+ | * Continuous servo scanning motion (0-180°) | ||
+ | * Object detection triggering red LED flashing and buzzer alarm | ||
+ | * LCD displaying exact distance measurements | ||
+ | * Return to safe mode when object is removed | ||
===== Results Obtained ===== | ===== Results Obtained ===== | ||