Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time



Demo Videos can be found here and here

What is it?

The Kinect Sentry Gun Project was an electric gun purchased from a local walmart that we opened up, and hooked up to an arduino, and set it up with a microsoft kinect. Whenever someone walked in front of the kinect the gun would shoot at them.

The kinect would then take a picture of them being fired at and post their reactions to twitter, if the person is embarassed by the photo they can pay our backend in bitcoin to have the photo removed!

How it works

This app uses a Microsoft Kinect in order to watch any given area. What the app will do is while the camera is on, the sentry is "watching".

While the sentry is watching any given area, the Kinect will know when a person's body has walked in front of the camera. If a person has walked in front of the camera then we will instantly send a signal to the dart gun.

initial teardown

The nerf gun is something we bought from walmart that we purchased in the beginning of the hackathon, we opened it and with the help of the PSU mentors reverse engineered the signals to launch the darts. init 2

###The nerf gun is being controlled by an Arduino Mega that has contacts which have been soldered and tied with electrical tape to the internals of the gun.

Every time we launch a dart we take a screenshot with the kinect, and then we tweet the photo of the person after they've been shot.


Our Front-End

The next thing we did was build up a flask backend that's monitoring the twitter account and keeping a counter of how many shots have been made by the gun, (the number of tweets!).

Our web app uses the BlockChain API in order to set up a virtual bitcoin wallet to charge 'users' after they have been shot in order to blackmail them into paying our wallet. The site also has a QR code that's generated that you can use to send bitcoin.

bitcoin Blockchain

With the bitcoin we can also store the bitcoin addresses we receive bitcoins with the tweets they are associated with inside of MongoDB so that we can then process users paying our backend wallet in order to delete their embarassing photos!

Once a user pays money to the backend, the tweet will be deleted, and we'll make some bitcoin!


  1. Microsoft Kinect 2
  2. Nerf Dart Gun
  3. Arduino UNO or Arduino Mega.


  1. Microsoft Kinect 2 SDK
  2. Arduino IDE
  3. Python 2.7.8 or greater

Resources and Examples

  1. Look at the Body Index Basics and /Color Basics in the Microsoft Kinect SDK Browser V2. This will explain how most of the code works.
  2. Look at example and basic I/O in Arduino.

This is our submission for HackPSU sponsored by MLH. Huge thanks to my teammates and other PSU students and mentors!!


###Mariam Tsilosani

###Tim Giblin

###Robert Casale

###Ben Green

###George El-Mallakh

Special Thanks

###[Alex Suirbely](I DON'T KNOW A LINK)

###Justin Keenan

Mike Swift


Major League Hacking

*A windows machine is required for the Kinect Binaries unfortunately!


A nerf gun powered by an Arduino that uses the Kinect to detect motion and shoot people, then tweets the photos.



No releases published


No packages published