This shows you the differences between two versions of the page.
pm:prj2025:vradulescu:alexandra.ionita03 [2025/05/20 02:17] alexandra.ionita03 [Bibliography/Resources] |
pm:prj2025:vradulescu:alexandra.ionita03 [2025/05/23 16:50] (current) alexandra.ionita03 [Software Design] |
||
---|---|---|---|
Line 134: | Line 134: | ||
* Timekeeping System: multiple timing variables track when different components need updates | * Timekeeping System: multiple timing variables track when different components need updates | ||
+ | **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. | ||
+ | |||
+ | **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: | ||
+ | * Distance accuracy: Tested with objects at known distances (5cm, 10cm, 15cm, 20cm) showing ±0.5cm precision | ||
+ | * Response time: Verified 1-second detection latency meets system requirements | ||
+ | * Scanning consistency: Confirmed smooth 180° servo sweep without stuttering | ||
+ | * 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 ===== | ||
Line 144: | Line 173: | ||
===== Download ===== | ===== Download ===== | ||
- | <note warning> | + | {{:pm:prj2025:vradulescu:radar_guard.zip|}} |
- | O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului: surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-). | + | |
- | + | ||
- | Fişierele se încarcă pe wiki folosind facilitatea **Add Images or other files**. Namespace-ul în care se încarcă fişierele este de tipul **:pm:prj20??:c?** sau **:pm:prj20??:c?:nume_student** (dacă este cazul). **Exemplu:** Dumitru Alin, 331CC -> **:pm:prj2009:cc:dumitru_alin**. | + | |
- | </note> | + | |
===== Journal ===== | ===== Journal ===== |