This shows you the differences between two versions of the page.
pm:prj2025:vradulescu:alexandra.ionita03 [2025/05/20 02:11] alexandra.ionita03 [Jurnal] |
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 ===== | ||
Line 155: | Line 180: | ||
* [✓] 20/05/2025 - Software Design | * [✓] 20/05/2025 - Software Design | ||
- | ===== Bibliografie/Resurse ===== | + | ===== Bibliography/Resources ===== |
+ | |||
+ | **Software Resources** | ||
+ | |||
+ | * Arduino IDE - "Arduino Software (IDE)" - https://www.arduino.cc/en/software | ||
+ | * LiquidCrystal_I2C Library - https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | ||
+ | * Arduino Timer Interrupts - https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ | ||
+ | * AVR Libc Reference Manual - https://www.nongnu.org/avr-libc/user-manual/ | ||
+ | * PM laboratories | ||
+ | |||
+ | **Hardware Resources** | ||
- | <note> | + | * Arduino UNO - https://docs.arduino.cc/hardware/uno-rev3/ |
- | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | + | * HC-SR04 Ultrasonic Sensor Datasheet - https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf |
- | </note> | + | * LCD 1602 I2C Display - https://www.vishay.com/docs/37299/37299.pdf |
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||