O'Reilly logo

Build Your Own Autonomous NERF Blaster : Programming Mayhem with Processing and Arduino by Bryce Bigger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9Autonomous Avenger Armed

Finally, chapters of work, hours of learning, and minutes of electronics scavenging are about to manifest into something glorious. It’s time to put the brains inside our precious. With the help of OpenCV/javacvPro, we’ll give the blaster the gift of sight and the ability to track targets, evaluate whether they’re within firing range, and, if so, the power to unleash a barrage of foam dartness on some poor soul.

Currently, your blaster should look something what you see in Figure 9-1—give or take a little personal creative tinkering. Note that there’s plenty of slack in the wires. There’s a reason. The blaster’s turret has to be able to rotate without ripping the cables out of itself or the Arduino board. We’ll leave ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required