Thursday, May 28, 2020

WEEK 10- Upgrade project by adding PIR sensor

Date: 16 April 2020

OBJECTIVES:

- To upgrade and add value of this project. 

CONTENT/ PROCEDURE:

-  First, I need to replacing the raspberry Pi fan with PIR sensor because want to use the it voltage supply 5 volts pin.



Figure 1: The process of replacing Raspberry Pi fan with PIR Sensor


- After done connecting pin PIR sensor with GPIO Raspberry Pi, then adjust it sensitivity and time delay.

Figure 2: The configuration of PIR sensor.

- Next, I need to improve my project encoding by using python for PIR sensors to work. 



Figure 3: Add the input pin for PIR sensor in coding



Figure 4: Add coding for input PIR sensor at While loop.



RESULT & ANALYSIS:

- Run the coding at python to see it result of PIR Sensor.



Figure 6: The result of PIR Sensor when the coding is running.




Figure 7: The result of connection PIR Sensor with Raspberry PI



CONCLUSION:

- As a conclusion, PIR sensor successfully function in this project. For the next step, i will test this project at my home to see it result before testing at the barn. 
 



No comments:

Post a Comment