layout | title | img | permalink | importance |
---|---|---|---|---|
page |
Hardware Task |
assets/img/PCB.jpg |
/tasks/task4_2 |
4 |
The simplest embedded system used in real life is car parking system. So what's the most important thing need to be taken care of in a parking lot? That's right! We need to make sure only as many cars get inside as the capacity of parking lot. So let's count how many cars pass thourgh a gate in a parking lot.
- There are two IR sensors one on the entry gate and one on the exit gate.
- Whenever sensor on entry gate gets triggered Total number of cars is increased by one.
- Whenever sensor on exist gate gets triggered Total number of cars is decreased by one.
- Print total number of cars inside parking lot on terminal whenever a sensor is triggered.
Note: 2 IR Sensors will be provided for each team.
- Make a zip file containing
(a) Your code file (main.c)
(b) A video showing increment and decrement of total number of cars
Task Submission Link: Form