Hide your screen using Room Motion Sensor with Arduino and Python

preview_player
Показать описание
Interface Arduino with Python to kill any program like firefox, chrome, media players, image viewers, ms office etc ANY PROGRAM when arduino detects someone entering your room through door.

Make your work private by building a system using arduino which instantly kills a program when someone enters your room/cabin

STEPS:

Install pyserial, os, signal library in python using: "pip install pyserial" etc..

type in PID of the process to be killed, PID can be looked up by task manager or just search the net how to find PID of a process

Type full name of port, ex - "COM5" or "/dev/ttyACM0" etc.

"Running..." means program is running now. Don't touch the command prompt and DO WHATEVER YOU WANT NOW

Now any signal to PIN A0 on arduino which is greater than 750 (analogRead) will kill the process.

NOTE2: Linux users may need to "sudo chmod a+rw /dev/ttyACM0" in case of permission denied error
Рекомендации по теме