Space Force

How it works

This project uses the BrainPad and a single servo motor to challenge humans in playing the classic Space Force game which dates back to the 1940s.

Note: This project requires the SpaceForce game (or similar) and a fairly strong servo motor. Both are available online (more info at bottom of page). It also requires rods (we used welding rod but coat hangers could also work) to connect the game to the servo motor, and some skill to fabricate a larger horn (control arm) for the servo motor.

Assemble the Hardware

The Space Force Game

The space force game can be found at several online retailers by searching for “Space Force Game” in your favorite search engine. We’ve found it on both Amazon and eBay. Here is the one we bought. Similar games go by the names “Shoot the Moon,” “Space Launch,” and “Executive Roll-Up.” We have been able to get this program working with both versions of the game we tried. There are also smaller versions of the game that should work and could probably be used with a smaller servo motor.

The Servo Motor

The servo motor we used is a model number KS-3518 we found on eBay. It is a 180-degree positional servo with a stall torque of 12 kg/cm at 4.8 volts. Any motor with similar specs should work. We feel that this motor had more power than we needed, so slightly smaller motors (less torque) should work as well. As is usually the case, it’s better if your motor is a little overpowered than underpowered. The servo motor simply plugs into the BrainPad’s number one servo port with the brown wire closest to the bottom to the bottom of the BrainPad.

The Horn

We cut the horn (the control arm) out of plexiglass and hot glued it to the largest horn that came with the servo motor. While the horn that came with the motor may have worked, the motor would have had to turn nearly the full 180 degrees to cover the needed distance. We weren’t sure that the motor could rotate this far quickly enough to effectively play the game. By using the larger horn the motor only has to move through 60 degrees of rotation, covering the same distance in just over one-third of the time. You can use anything that goes to the edges of the 2×4 block. Wider horns are better since it gives the arms more room to move.

Assembly Information

The horn should snap right onto the servo motor. Plexiglass might be hard to do yourself so try using cardboard or a smaller piece of wood instead. The servo motor itself was simply hot glued to a two-by-four piece of wood just to keep assembly simple and fast.

Large rubber bands were used to hold this two-by-four to the Space Force game so there was no damage to the game and so the game could be quickly and easily restored to original condition and be played manually.

The welding rods used can easily be bent to fit the holes of the horn to go to the handles of the rods of the space force game.

This is meant to be a rough guide on how to recreate it yourself. See what you can do to improve it or to add your own flavor to it!

The Code

The program for this project is quite simple and code is available for both Microsoft MakeCode and in C# for Microsoft Visual Studio. If you build this project yourself, you may have to adjust the timing and servo motor angles to work properly with your particular setup.

Microsoft MakeCode

Click here to go directly to the program on Microsoft MakeCode. You can also copy and paste the following JavaScript code into Microsoft MakeCode’s JavaScript editor.

Microsoft MakeCode block program:

Microsoft JavaScript program:

servos.servo1.setAngle(110)
forever(function () {
    display.showString("Place ball and ", 2)
    display.showString("  press down", 4)
    display.showString("    button", 6)

    while (!(input.buttonDown.wasPressed())) {
        pause(20)
    }

    servos.servo1.setAngle(50)
    pause(200)
    for (let i = 0; i <= 60; i++) {
        servos.servo1.setAngle(50 + i)
        pause(14)
    }
})

Marble Sorter

Cardboard marble sorter, using a light sensor and two servo motors.

Snap Circuits Liftoff

Adding a “brain” to the classic Snap Circuits

Sun Seeking Car

A toy car is programmed to stay in the sunlight

Newsletter

Get Social
Latest Press
October 11, 2019
September 26, 2019
August 23, 2019
August 7, 2019
August 5, 2019