So here's the Target Bot. D7 is the main servo. D8 is the switch, which uses the GND and Signal cables (no resistors required).
EZ-Script Code:
Servo(d7,38)
Sleep(1000)
Release(d7)
:main
If(GetDigital(d8) = 0)
Goto(hit)
Goto(main)
:hit
Servo(d7,80)
Sleep(1500)
say("Nice Shot")
Servo(d7,38)
Sleep(500)
Release(d7)
return()
By urbanh
— Last update
Discover more robots
Dave's New Building System At Servocity, Gobilda
goBILDA metric building system by ServoCity: 8mm grid with 4mm holes for 100% part compatibility and better alignment...
DJ's Irobot Roomba Hack
Convert an iRobot Roomba with EZ-B to a wireless, voice- and vision-enabled cleaner-camera color/motion tracking, remote...
Cem's Inmoov With 7 Touch Screen Display And Lattepanda...
Run Synthiam ARC on a LattePanda V1.1 with a 7" touch screen for standalone InMoov control, auto-start projects and...

Very nice... simple, yet refreshingly different and practical. Now throw in some random dodging and a phased plasma pulse rifle, in the forty watt range.....
Super project! I dig this
Glad to see you got it working so easily. What's next
Thanks Gunner and DJ. Just starting out. Thinking about mounting a gun to it and using the movement/facial recognition software to make it a little more interactive. I'm waiting for my replicator 2 to show up to build some of the required parts.