This shows you the differences between two versions of the page.
|
pm:prj2026:theodor_ioan.buliga:mihai.stanciu0107 [2026/05/27 07:47] mihai.stanciu0107 |
pm:prj2026:theodor_ioan.buliga:mihai.stanciu0107 [2026/05/27 07:53] (current) mihai.stanciu0107 |
||
|---|---|---|---|
| Line 76: | Line 76: | ||
| * **Display logic** — BAC classified into ranges (< 0.2‰ → green, 0.2–0.5‰ → yellow, > 0.5‰ → red); value and status string sent over I²C to display | * **Display logic** — BAC classified into ranges (< 0.2‰ → green, 0.2–0.5‰ → yellow, > 0.5‰ → red); value and status string sent over I²C to display | ||
| * **LED/Buzzer output** — GPIO write for LEDs; optional PWM tone on OC0B for buzzer alert | * **LED/Buzzer output** — GPIO write for LEDs; optional PWM tone on OC0B for buzzer alert | ||
| - | |||
| - | **Hypothesis:** | ||
| - | * //We believe that averaging 16 ADC samples and applying temperature compensation will improve BAC measurement accuracy by at least 20% compared to a single raw reading, because the MQ-3 is sensitive to temperature variation and ADC noise.// | ||
| - | |||
| - | **Performance metrics and targets:** | ||
| - | |||
| - | | Metric | Target | | ||
| - | |---|---| | ||
| - | | ADC read + display update latency | < 500 ms from button press | | ||
| - | | Debounce window | 50 ms | | ||
| - | | BAC reading accuracy | ±0.05‰ vs reference | | ||
| - | | I²C display refresh | < 100 ms | | ||
| - | |||
| - | **Code profiling plan:** | ||
| - | * Measure ISR latency with oscilloscope (button press → ISR entry) | ||
| - | * Validate I²C timing with logic analyzer | ||
| - | * Test BAC readings against known ethanol concentrations (diluted solutions near sensor) | ||
| - | * Verify debounce behavior under rapid repeated button presses | ||
| </note> | </note> | ||
| ===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||
| <note tip> | <note tip> | ||
| - | //To be completed after implementation and testing.// | + | * Clean air -> 0.000 mg/L |
| + | * Inside an alcohol recipient -> >0.2mg/L | ||
| </note> | </note> | ||
| ===== Concluzii ===== | ===== Concluzii ===== | ||
| - | //To be completed at project end.// | + | // To be completed |
| ===== Download ===== | ===== Download ===== | ||
| <note warning> | <note warning> | ||
| - | //Source archive, schematics, README, and build/flash script to be uploaded here.// | + | * Github: https://github.com/Mihai4GH/PM_Proiect |
| Files will be uploaded under namespace **:pm:prj2025:cc:your_name**. | Files will be uploaded under namespace **:pm:prj2025:cc:your_name**. | ||