khaled-taha / Smart_Traffic_light

Smart Traffic light [Embedded System Project]
2 stars 0 forks source link

SW design and approach #1

Open khaled-taha opened 1 year ago

khaled-taha commented 1 year ago

This issue has been created to cover some important entry points for project implementation:

Leave a comment on this issue and let me know what you think about SW implementation.

Note: SW is fully independent of the target hardware, so think with wide horizon.

AymanSaleh23 commented 1 year ago

In my vision if we need high response with low latency to our system with the environment we may use interrupt driven approach. But it depends on the interrupt source weather timer interrupt or external pulse on any pin of the hardware.

This way is easier way to implement and straightforward.

If we want to apply the concept of parallelism we have to use RTOS approach implements Polling concept.

This way need more efforts such as using libraries like freeRTOS.h and use concepts of OS in general.

I'm highly recommend RTOS approach if more interrupt sources (PIR Sensors) are founded. An recommend internet driven if a few interrupt sources are founded.