Matt showed off his great sentry turret project on show and tell – check out more info on his GitHub page here.
A sentry turret style robot which will detect motion, then track and fire at the object. The robot’s “turret” is rotated by two servos (X/pan axis and Y/tilt axis). The “eye”(webcam) and “gun” of the robot should be mounted on the turret.
When activated, the robot will initialize an average image and wait to detect motion above a threshold size. It will target the mean HSV of a moving object and begin blob detection to center the camera’s view (using turret servos) on the object. When the object is centered, it will fire by using a relay board.
Featured Adafruit Product!
Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi – Mini Kit: The Raspberry Pi is a wonderful little computer, but one thing it isn’t very good at is controlling DC Servo Motors – these motors need very specific and repetitive timing pulses to set the position. Instead of asking the Pi Linux kernel to send these signals, pop on this handy HAT! It adds the capability to control 16 Servos with perfect timing. It can also do PWM up to 1.6 KHz with 12 bit precision, all completely free-running. Read more.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!