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 ...

Get Build Your Own Autonomous NERF Blaster now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.