Question: Mr. Ndugu is using an HC-SR505 PIR motion sensor module in a lab project. Suggest to Mr. Ndugu a proper way to connect this sensor
Mr. Ndugu is using an HC-SR505 PIR motion sensor module in a lab project. Suggest to Mr. Ndugu a proper way to connect this sensor to the Open1768 development board (i.e. to which pins, etc …) and to configure the selected pins!
Write a c code and let us assume that Mr. Ndugu wants to detect a rising edge of a signal generated by the sensor over the pin P2.7 (Pin 7 of Port2). later change the c code lines in such a way that the LED0 &LED1 on the Open 1768 development board are switched ON while LED1 and LED2 are switched OFF if a rising edge is detected on pin P2.7
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
aThis is the code to detect a rising edge of a signal generated by the sensor over the Pi... View full answer
Get step-by-step solutions from verified subject matter experts
