Smartphone Servo - Make

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

9/16/22, 9:07 PM Smartphone Servo - Make:

PROJECTS FROM MAKE: MAGAZINE

Smartphone Servo
By Kazuhisa “Kazu” Terasaki
Time Required: 30 minutes

Smartphones have become our primary interface to the network world, and
increasingly, to the real world as well. I call this project GlueMotor, because it works
like “glue” for putting gadgets together under smartphone control, providing a very
easy way to build simple servo-controlled machines.

Cookie Settings
https://makezine.com/projects/smartphone-servo/ 1/6
9/16/22, 9:07 PM Smartphone Servo - Make:

To use it for making simple gadgets or prototyping your projects, attach any
convenient on-hand materials — PVC pipe, chopsticks, Legos, duct tape — to a
GlueMotor, then plug it into your smartphone’s headphone jack. The GlueMotor app
lets you control it with a finger swipe.

How It Works
Controlling a hobby servomotor is relatively easy. It requires a single digital pulse-
width modulation (PWM) signal at 50Hz, which means one pulse every 20ms. The
width of the “high” pulse sets the absolute rotation angle of the servo.

Normally the width of the pulse at center angle is 1.5ms. A longer pulse will set the
angle clockwise of center, and a shorter pulse will set it counterclockwise. The
maximum and minimum angle will depend on the model of servomotor, but usually a
range of 1.5ms ±0.5ms is supported. In a typical R/C car or airplane application, the
radio receiver generates the control signal.

But the radio receiver is not strictly necessary. If you can generate the proper PWM
signal by whatever means, you can control a servomotor in exactly the same way. The
GlueMotor project uses a smartphone to generate the control signal, and outputs it
through the headphone jack.

Cookie Settings
https://makezine.com/projects/smartphone-servo/ 2/6
9/16/22, 9:07 PM Smartphone Servo - Make:

PWM servo signals generated by an R/C radio receiver (above) …

… and by an iPhone running the GlueMotor app.

The output from a headphone jack is usually an analog audio signal such as music or
voice. If you can create digital sound data that only has “high” and “low” voltage
values, then play the data through the headphone jack, you can produce a “nearly”
digital signal good enough to control the servo.

To generate this signal, I have developed two applications, one for iOS devices, and
another for Android. The user interface is very simple, converting the onscreen
coordinates of a touch location to the width of two PWM signals, allowing
simultaneous control of two servos. The GlueMotor app is free from the iOS App Store
and Google Play.

NOTE: Some devices may not produce enough voltage at maximum volume for this
project. To test your device, play a sine wave tone through the headphone jack and
measure the output with the AC voltage mode of your multimeter. A reading of 0.6V or
higher should work.

STEPS
Cookie Settings
https://makezine.com/projects/smartphone-servo/ 3/6
9/16/22, 9:07 PM Smartphone Servo - Make:

Project Steps View All

1. Prep the phone cable.

2. Solder the harness.

3. Solder the harness (cont'd).

4. Install the app and test it on the servos.

5. Get gluing.

Step #1: Prep the phone cable.


Prev Next

Cookie Settings
https://makezine.com/projects/smartphone-servo/ 4/6
9/16/22, 9:07 PM Smartphone Servo - Make:

Cut the earbud cable, then strip the outer insulation from the side attached to the plug.

Now strip the 3 wires inside by quickly running them through a small flame to burn off the
insulation and strain-relief fibers. Lightly rub the exposed metal wires with 400-grit
sandpaper to clean off any residue.

Use the multimeter’s continuity setting to identify which wire corresponds with contact on
the phone plug.

September 3, 2013, 6:00 am PDT

PARTS TOOLS

PARTS
Heat-shrink tubing or electrical tape
Servomotors (2) Futaba S3003 or other standard hobby servos
Capacitors, ceramic, 0.1µF–0.47µF (2)
Batteries, AA (4)
Stereo phone plug, 3.5mm (1/8"), with cable A pair of cheap earbuds is perfect.
Cable tie, plastic aka zip tie
Battery holder 4×AA, with wires
Hookup wire, 22 AWG solid core You’ll use about 12" each of red, black, and yellow.

TOOLS
Smartphone or tablet iOS or Android
Wire cutter/stripper
Lighter or match
Sandpaper, 400 grit
Soldering iron and solder
Multimeter
Cookie Settings
https://makezine.com/projects/smartphone-servo/ 5/6
9/16/22, 9:07 PM Smartphone Servo - Make:

 Tagged make 34

Kazuhisa “Kazu” Terasaki


Kazuhisa “Kazu” Terasaki is a software engineer who loves prototyping low-tech
gadgets out of high-tech junk. He calls this stuff Pachi-Mon, which is Japanese for
“not quite real, but works.”

Cookie Settings
https://makezine.com/projects/smartphone-servo/ 6/6

You might also like