I’ve found an old stepper from five-inch diskette drive and servo from i-don’t-know-where. Then I’ve attached webcam to servo and servo to a stepper. Python program uses opencv to detect motion, and sends commands to arduino directly by /dev/ttyUSB0. And arduino rotates stepper and servo.