This shows you the differences between two versions of the page.
pm:prj2022:robert:actuated-signal-controller [2022/06/02 13:28] andru_tudor.badiu [III. Hardware Design] |
pm:prj2022:robert:actuated-signal-controller [2022/06/02 13:41] (current) andru_tudor.badiu [V. Conclusions] |
||
---|---|---|---|
Line 53: | Line 53: | ||
- pins 8 - 10 to obtain the output from the proximity sensors and the buzzer | - pins 8 - 10 to obtain the output from the proximity sensors and the buzzer | ||
+ | ===== IV. Software Design ===== | ||
+ | |||
+ | In the software part, I used the following tools: | ||
+ | |||
+ | - defines to remember the role of different entities (for example: the pin that orders the red color of a road, the duration in milliseconds of the yellow collor of total number of iterations in a loop) | ||
+ | - the digitalWrite function is used to keep certain LEDs operational in regards to the code's logic ; the digitalRead function on the other hand is used to read the results of the IR Sensors | ||
+ | - defined functions for setting certain steps from the ring-and-barrier diagram (for example, set_red_a sets on HIGH the corresponding pin for the red LEDs in the road A) | ||
+ | |||
+ | A loop (ROAD_A_LOOP) has a defined number of iterations. At each iteration, the sensors are checked, and in case the current road is empty and the perpendicular road is full, the counter is started, otherwise, it resets to its initial value of zero. | ||
+ | |||
+ | {{:pm:prj2022:robert:asl_traffic_diagram.png?nolink&300 |}} | ||
+ | |||
+ | ===== V. Conclusions ===== | ||
+ | |||
+ | What did I accomplish with this endeavor? | ||
+ | \\ The project is the start of my bachelor degree project, with it being a miniature intersection, that is able to guide traffic in a smart way, through sensors and traffic lights.\\ | ||
+ | |||
+ | What did I learn? | ||
+ | -to use arduino in a practical way | ||
+ | |||
+ | -to learn cable management in order to achieve maximum efficiency | ||
+ | |||
+ | -to organize a project, start to finish |