This shows you the differences between two versions of the page.
pm:prj2022:agmocanu:semafor [2022/05/11 22:14] maria_claudia.gijga created |
pm:prj2022:agmocanu:semafor [2022/06/02 10:09] (current) maria_claudia.gijga |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Synchronized traffic light and technical fault simulation ====== | ====== Synchronized traffic light and technical fault simulation ====== | ||
- | ===== Introducere ===== | + | ===== Introduction ===== |
- | Proiectul are la baza simularea unei intersectii semaforizate in cruce cu rolul de a dirija traficul rutier. In cadrul proiectului am simulat si o defectiune tehnica a semafoarelor care vor functiona pe galben intermitent, si am utilizat si un buzzer pentru a atrage atentia pietonilor. Am realizat o macheta care reprezinta structura intersectiei langa care am atasat placuta ARDUINO si breadbord-ul. | + | The project is based on the simulation of a cross traffic light intersection with the role of directing road traffic. During the project we also simulated a technical failure of the traffic lights that will work on flashing yellow, and we also used a buzzer to attract the attention of pedestrians. I made a model that represents the structure of the intersection next to which I attached the ARDUINO plate and the breadboard. |
- | ===== Descriere generală ===== | + | ===== General description===== |
- | Intersectia functioneaza normal atunci cand este conectata la sursa iar cand este apasat putonul aceasta trece in modul defectiune(galben intermitent), porneste buzzer-ul si un led de culoare alba se va aprinde pe toata durata simularii defectiunii. Pentru a iesi din simulare se va apasa iar butonul. | + | |
+ | The intersection works normally when it is connected to the source and when the switch is pressed it switches to fault mode (flashing yellow), the buzzer starts and a white LED will light up throughout the fault simulation. To exit the simulation, press the button again. | ||
https://ocw.cs.pub.ro/courses/_media/pm/prj2022/agmocanu/gijga-maria-claudia-1221b-diagrama.png?w=120&h=84&t=1652295560&tok=073d59 | https://ocw.cs.pub.ro/courses/_media/pm/prj2022/agmocanu/gijga-maria-claudia-1221b-diagrama.png?w=120&h=84&t=1652295560&tok=073d59 | ||
Line 24: | Line 25: | ||
===== Software Design ===== | ===== Software Design ===== | ||
+ | |||
+ | The simulated intersection in the application has two major modes of operation: normal mode and intermittent yellow mode. I will switch between the two depending on the status of the button. If the button is not pressed the intersection will run in normal mode, and if it is pressed in flashing yellow mode. | ||
+ | |||
+ | The four LED traffic light modules are connected diagonally 2 by 2. | ||
+ | The traffict light starts with red and green leds on,2 by 2 and the yellow ones off for 30 seconds. Then, in the next 8 sec I keep on the first pair of red lights, turn off the other pair of green leds and I turn on the yellow leds and the algorithm its repeted for the other case when the second pair of leds become red and so on. | ||
+ | When the simulation button is pressed, it enters the error mode. In error mode, an LED lights up on the breadboard and a bell rings. The red and green LEDs are dark, and the yellow LEDs start flashing until I press the button again. | ||
Line 29: | Line 36: | ||
===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||
- | <note tip> | ||
- | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | ||
- | </note> | ||
===== Concluzii ===== | ===== Concluzii ===== | ||
Line 37: | Line 41: | ||
===== Download ===== | ===== Download ===== | ||
- | <note warning> | + | [[https://github.com/claudiaMaria2001/project]] |
- | 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> | + | |
===== Jurnal ===== | ===== Jurnal ===== |