The Kinect Kannon T-Shirt Cannon can track targets with its skeletal tracking thanks to Kinect. It can also respond to audible sounds and turn toward the louder side of a cheering crowd! You can also manually control the cannon with an XBOX Controller. Pull both triggers and the cannon will fire a T-Shirt at your target!
We managed to get this together with a couple Phidget USB interface boards, the Kinect SDK and the J2i XBOX controller wrapper. Using the Phidget boards we could move and fire the cannon.
The main parts are:
- Pre-built T-Shirt cannon from AirCannons.com
A solenoid valve from TECO pneumatics
Furniture Shelf Box from IKEA
Xbox 360 Controller
We took the Kinect and mounted on top of the cannon. Using the relay controller with a 12V line we were able to interface to the solenoid valve. With the relay switch closed it would apply the 12V power supply to the valve causing it to open and allow the CO2 air to the cannon, firing the T-shirt.
Skeletal tracking works by taking the coordinates of a persons chest and using those coordinates to guide the Pan/Tilt using the Phigets servo controller board. We hooked up an Xbox 360 controller allowing for analog controller input to Pan/Tilt so that you could use the joystick to control the cannon. A ‘saftey’ is baked into the software so that you must deactivate the safety in order to fire.
The Pan/Tilt was mounted onto an IKEA box (its the only thing we could find in the short time frame) which gave it some good distance from the ground.
This whole project took about 2 weeks or so not including shipping time on parts.
(note: this is still the alpha version, we still got to mechanically mount the cannon)
The Kinect Kannon source code can be found here.