ã¯ããã« Qiitaåæ稿ã§ã.ãããããé¡ããã¾ã. ææ¡ RaspberryPiã¨ã»ã³ãµã§å®ä¾¡ãªç£è¦ã·ã¹ãã ãä½ãããã¨æãã¾ãããå
·ä½çã«ã¯ãç 究室å
ã«RaspBerryPi Zero,RaspBerryPi camera,人æã»ã³ãµ(HC-SR501)ãè¨ç½®ãã人ãæ¤ç¥ãããã«ã¡ã©ã§æ®å½±ã,ãã®ç»åãSlackã«éä¿¡ããç£è¦ã·ã¹ãã ã§ã(æªå®æ). 使ç¨ããæ©æ ã»RaspberryPi zero ã»RaspberryPi camera ã»HC-SR501人ä½èµ¤å¤ç·æå¿ã¢ã¸ã¥ã¼ã« ã»ã¸ã£ã³ãã¼ã¯ã¤ã¤ã¼(ã¡ã¹ã»ã¡ã¹)ã3æ¬ å®è£
人æã»ã³ãµã人ãæ¤ç¥ããã,RaspberryPi cameraã§æ®å½±ããããã°ã©ã ã¯ä¸è¨ã®éãã§ã. import time import picamera import RPi.GPIO as GPIO INTERVAL = 5 SLEEPTIME =
{{#tags}}- {{label}}
{{/tags}}