- In Many Systems A Pir Sensor Is Used To Indicate That A Person Is In Front Of A Door The Following Embedded System Is 1 (190.69 KiB) Viewed 9 times
In many systems, a PIR sensor is used to indicate that a person is in front of a door. The following embedded system is
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In many systems, a PIR sensor is used to indicate that a person is in front of a door. The following embedded system is
In many systems, a PIR sensor is used to indicate that a person is in front of a door. The following embedded system is based on microcontrollers which will achieve the following steps: Test the PIR sensor signal(=1?). The PIR sensor is connected to bit0 of port PO. If it is equal 1 activate a 9 second delay (increment from 0 to 9) shown on 7-segment display connected to port P2 as presented below. We suppose that the 7-segment display don't need to be activated. It requires only to send values to be displayed. Give a pulse high to low on bit 7 of Port1 to open the door. 5 V DC 5V DC 5V DC 5V DC 5V DC 5V DC 5V DC 5V DC 1 = of os on OR Cathod OR R R Па R пR R OR OR OPZOZ * X* X *7 *07*07*07* Hatte P2.7 D P2.6 d P2.5 P2.4 O 0 P2.3 p P2.2 P P2.1 P2.0 1 Write a C program allowing the system to achieve the presvious described tasks. 0 a g C