OpenCV Turret Tracks Motion, Busts Airsoft Pellets

In the eternal struggle for office dominance, the motion-tracking Airsoft/Nerf/whatever, the autonomous turret seems to be the nuclear option. [Aaron] and [Davis] built a motion-tracking turret that uses openCV to detect movement, before hitting a relay to trigger the gun.

There’s a Raspberry Pi controlling a Logitech C210 Pi-compatible webcam, with a stepper hat for the Pi controlling two NEMA steppers that aim the gun. The design is simple but elegant, with a rotating base and an assembly that raises and lowers the weapon.

The openCV intrigues us. We want to see a openCV-powered turret with color detection, so your own team doesn’t get blasted along with your hapless enemies. Or if guarding your cubicle, how about a little openCV facial recognition?

If you want to take a stab at your own, [Aaron] and [Davis] show how they built their project in their Hackaday.io page and their Python script can be found on GitHub.  Otherwise, check out the Counter Strike Airsoft robot, the Airsoft sentry gun, and the Nerf turret powered by Slack we published previously.

7 thoughts on “OpenCV Turret Tracks Motion, Busts Airsoft Pellets

        1. lol. As American defence contractors have proven to everyone but themselves and the US DOD. Lasers are not superweapons. Not even the super-duper, ultra-nasty chemical powered ones. You simply cannot get sufficient power delivered to the target.

  1. Hacked one together with a squirt gun yrs ago… pissed off every squirrel and cat. Squirrels knawed it to death, easy to idenfity the source. Cats much less observant. The follow-up project was an array of phased speakers to “pet” or at least fluff the fur…. That got reactions! Someone topped me with the squirrel catapult… could not any way, no way, no matter what tried… get a cat to climb in.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.