This hack illustrates how the USB missile launcher was made to aim on its own. Any projectile launcher can be hacked, as shown in the images belw, in order to use the infrared innards of the WiiMote so it can track any victims. Using a quality Bluetooth adapter and a few prewritten lines of code, a fairly simple project can be achieved. It will not cost much since the WiiMote just needs to be strapped on with a duct tape to the missile launcher.
One type of missile launcher is shown below which can find and aim at IR targets making it an auto turret type. Aside from the hardware materials to be used, a little bit understanding of programming can be useful and the programmable input emulator that is preferred is the GlovePie. The WiiMote type is also shown below.


On the top of the missile launcher, the WiiMote is fastened using a duct tape while making sure that the missiles are still able to fire. The WiiMote should be placed in the middle of the missile launcher and it should be pointed forward. The 1 and 2 buttons on the WiiMote should not be covered by the duct tape as shown in the setup image below.

The WiiMote will be connected to the PC or this step can be skipped if the user knows how to do it. Then the Bluetooth software, Bluesoleil in the image below, can be used. The step starts by opening Bluesoleil and to make the pc scan for Bluetooth devices, press the red/orange ball in the middle of the screen. Press and hold the 1 and 2 buttons on the WiiMote which will start the blinking of the LEDs while the pc is scanning. The buttons can be released when the computer finds the WiiMote.

On the Bluesoleil screen, the Wiimote device should appear as something like “Nintendo RVL-CNT-01” and the new WiiMote device found by the pc will be double clicked on order to scan for possible services. The mouse icon is clicked when the color turns to orange. A successful pairing of the WiiMote and the pc is indicated by a green WiiMote icon.
The GlovePie should be usable when the WiiMote gets properly connected to the computer. The programming instructions are shown below:
debug=wiimote.dot1x
if wiimote.dot1y<462 then keyboard.Down=true else keyboard.Down=false
if wiimote.dot1y>562 then keyboard.Up=true else keyboard.Up=false
if wiimote.dot1x<462 then keyboard.Left=true else keyboard.Left=false
if wiimote.dot1x>562 then keyboard.Right=true else keyboard.Right=false
The horizontal aiming is created by the 3rd & 4th lines and the vertical aiming is created by the last 2 lines. The programmable Input Emulator screenshot is shown below.

The shooting mechanism on the other hand has its own lines of code for easier recognition if the WiiMote receives any IR signal. The following is added at the end of the script in order to make the LEDs on the WiiMote light up whenever an infrared light is seen:
wiimote.Led1=wiimote.dot1vis
wiimote.Led2=wiimote.dot1vis
wiimote.Led3=wiimote.dot1vis
wiimote.Led4=wiimote.dot1vis
For the shooting, a more complex lines of code will be added at the end of the script where the 1st line checks any visible IR signal and the 2nd line checks if the IR light is in the center of the field of view. The launcher will shoot a missile if aimed correctly.
if wiimote.dot1vis=true then {
if wiimote.dot1x>412 and wiimote.dot1x<612 and wiimote.dot1y>412 and wiimote.dot1y<612 then {
keyboard.Enter=true
keyboard.Enter=false
}
}


















