Use a wireless keyboard to control a mobile missile launcher

Lead Image © Author, 123RF.com

Missiles Away!!!

, ,

Make a mobile missile launcher with a Raspberry Pi, a PiFace Digital module, a robot chassis, and a USB missile launcher.

In this project, we combined a number of elements we acquired for other projects to create a mobile missile launcher (Figure 1) that we control from a wireless keyboard. Please see the "Parts List" box for the components needed for the build.

Missile Launcher

The USB missile launcher we used came with Windows-based software, so we were able to play with it on our PC, too. We also found some Python code [5] that controls the missile launcher, which we modified for this project. Listing 1 is the Python test code that we used on our Raspberry Pi Model B [6]. This code aims the launcher left, right, up, and down using the l, r, u, and d keys and fires the soft foam missiles with the f key. We found that it is important to wait about three to four seconds between each missile firing.

Motors

A PiFace Digital module controls the motors on the car chassis. The chassis came with two motors that were small enough to be powered directly from the PiFace module. To install the Python PiFace Digital library, enter:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content