This shows you the differences between two versions of the page.
pm:prj2025:cmoarcas:gabriel.tintu [2025/05/21 11:18] gabriel.tintu [Software Design] |
pm:prj2025:cmoarcas:gabriel.tintu [2025/05/30 06:57] (current) gabriel.tintu [Download] |
||
---|---|---|---|
Line 12: | Line 12: | ||
===== General Description ===== | ===== General Description ===== | ||
- | {{ :pm:prj2025:cmoarcas:schema-block_gabriel_tintu.png?500 |}} | + | {{ :pm:prj2025:cmoarcas:schema_bloc_tnt.png?500 |}} |
===== Hardware Design ===== | ===== Hardware Design ===== | ||
Line 27: | Line 27: | ||
==== Circuit ==== | ==== Circuit ==== | ||
- | {{ :pm:prj2025:cmoarcas:gabrieltintu_tk.png?500 |}} | ||
+ | {{ :pm:prj2025:cmoarcas:circuit_tnt.png?500 |}} | ||
==== Schematic ==== | ==== Schematic ==== | ||
- | {{ :pm:prj2025:cmoarcas:gabrieltintu_tk2.png?500 |}} | ||
+ | {{ :pm:prj2025:cmoarcas:schematic_tnt.png?500 |}} | ||
Line 45: | Line 45: | ||
ISR(INT0_vect) { | ISR(INT0_vect) { | ||
if ((long)(micros() - lastDebounceTime) >= debounceDelay) { | if ((long)(micros() - lastDebounceTime) >= debounceDelay) { | ||
- | mode = (mode + 1) % 3; | + | mode = (mode + 1) % 4; |
lastDebounceTime = micros(); | lastDebounceTime = micros(); | ||
updateNeeded = true; | updateNeeded = true; | ||
Line 51: | Line 51: | ||
} | } | ||
- | * Mode 0 – All LEDs are set to a specific color | + | * Mode 0 & 1 – All LEDs are set to a specific color (Red and Green) |
- | * Mode 1 - Automatic fade effect cycling through Magenta, Cyan, and Blue. Used Timer1 to generate a tick every 1 ms: | + | * Mode 2 - Automatic fade effect cycling through Magenta, Cyan, and Blue. Used Timer1 to generate a tick every 1 ms: |
ISR(TIMER1_COMPA_vect) { | ISR(TIMER1_COMPA_vect) { | ||
- | if (mode == 1) { // just in mode 1 | + | if (mode == 2) { // just in mode 2 |
millis_counter++; | millis_counter++; | ||
if (millis_counter >= 30) { // every 30 ms | if (millis_counter >= 30) { // every 30 ms | ||
Line 73: | Line 73: | ||
} | } | ||
- | * Mode 2 - Real-time color updates via serial connection using the Adalight protocol (Prismatik) | + | * Mode 3 - Real-time color updates via serial connection using the Adalight protocol (Prismatik) |
+ | ===== Results ===== | ||
- | <note tip> | + | ** Physical Implementation ** |
- | Descrierea codului aplicaţiei (firmware): | + | |
- | * mediu de dezvoltare (if any) (e.g. AVR Studio, CodeVisionAVR) | + | |
- | * librării şi surse 3rd-party (e.g. Procyon AVRlib) | + | |
- | * algoritmi şi structuri pe care plănuiţi să le implementaţi | + | |
- | * (etapa 3) surse şi funcţii implementate | + | |
- | </note> | + | |
- | ===== Rezultate Obţinute ===== | + | {{ :pm:prj2025:cmoarcas:physical_tnt.png?500 |}} |
- | <note tip> | + | {{ :pm:prj2025:cmoarcas:physical2_tnt.png?500 |}} |
- | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | + | |
- | </note> | + | |
- | ===== Concluzii ===== | + | {{ :pm:prj2025:cmoarcas:physical3_tnt.png?500 |}} |
+ | |||
+ | ** Multicolor TEST ** | ||
+ | |||
+ | <html><iframe width="560" height="315" src="https://www.youtube.com/embed/tgFl40qwzO8" title="PM PROJECT - Color Test" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></html> | ||
+ | |||
+ | ** Avengers ** | ||
+ | |||
+ | <html><iframe width="560" height="315" src="https://www.youtube.com/embed/PxrLqxLwM0I" title="PM PROJECT - Color Test" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></html> | ||
+ | |||
+ | ** Anyma Visuals ** | ||
+ | |||
+ | <html><iframe width="560" height="315" src="https://www.youtube.com/embed/g9zJSYMoYSU" title="PM PROJECT - Color Test" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></html> | ||
+ | |||
+ | ===== Conclusions ===== | ||
+ | |||
+ | In conclusion, this project proved to be a great way to test and apply what I’ve learned. I was able to build the proposed circuit, connect all the necessary components, and get the expected results. Building and testing the circuit gave me a much clearer, hands-on understanding of how the circuit actually works in practice. | ||
+ | |||
+ | This project was both interesting and rewarding, giving me the chance to put into practice what I learned during the semester. The lab work helped me better understand the subject and made it easier to tackle the final task. In the future, the project could be improved by making it more compact, adding new features, or integrating it into a larger system. | ||
===== Download ===== | ===== Download ===== | ||
- | <note warning> | + | {{:pm:prj2025:cmoarcas:ambientallights.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ă ;-). | + | |
+ | |||
+ | ===== Resources ===== | ||
+ | |||
+ | 1. https://www.youtube.com/watch?v=nzDnr76fZCc&t=1s | ||
+ | |||
+ | 2. https://github.com/psieg/Lightpack/releases | ||
- | 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**. | + | 3. https://github.com/Wifsimster/adalight_ws2812 |
- | </note> | + | |
- | ===== Jurnal ===== | + | 4. https://github.com/FastLED/FastLED |
- | <note tip> | + | 5. https://www.tinkercad.com |
- | Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului. | + | |
- | </note> | + | |
- | ===== Bibliografie/Resurse ===== | + | 6. https://ocw.cs.pub.ro/courses/pm |
- | <note> | ||
- | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | ||
- | </note> | ||
<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> | ||