Try Tuts+ Premium, Get Cash Back!

How to Create Stereo Headphone Plugs in Illustrator

Download Source Files

In this tutorial, we'll explain how to create a headphone plugs with cables using gradients. The techniques covered in this tutorial can be used to create other types of wires and electrical equipment as well. Let’s get started!

Final Image Preview

Below is the final image we will be working towards. Want access to the full Vector Source files and downloadable copies of every tutorial, including this one? Join Vector Plus for just 9$ a month.

Tutorial Details

  • Program: Adobe Illustrator CS4
  • Difficulty: Beginner
  • Estimated Completion Time: 1.5 hours

Step 1

Open up a new document and select the Rectangle Tool (M). Create a rectangle. This will be used for the cable. We will keep it simple, for now set it to the default white fill and black stroke.

Step 2

Duplicate the rectangle below the first (Alt-drag).

Step 3

Create another rectangle and set the height to the same as the two long rectangles together, as shown below.

Step 4

Duplicate the small rectangle five times. Either use Alt + drag and the Command + D or use the Blend Tool. Select all of them and align them along the vertical.

Step 5

With the shapes still selected, distribute them now horizontally .

"step05.jpg" width="600" border="0">

Step 6

Create another rectangle and repeat the Steps three to five times.

Step 7

We now have six smaller rectangles and seven slightly taller ones in between.

Step 8

Again, create another more square rectangle next to the smaller ones.

Step 9

Create yet another rectangle, but make it slightly bigger. Use the Direct Selection Tool (A) to select both right side points, then use the Scale Tool (E) to scale them up, while pressing Shift + Option.

Step 10

Create one more square looking rectangle.

Step 11

Add another one and make sure you keep the sizes oriented with the previous ones.

Step 12

We are now moving on to the thin part of the plug. Create another rectangle, which is the same height as the last one, but much thinner. Quick Tip: You could just duplicate the rectangles and scale them to the correct sizes.

Step 13

Make another rather long rectangle and align it to the vertical center of the rest of the shapes.

Step 14

Rinse and repeat!

Step 15

We need two small thin rectangles that will simulate the two small black rings on a headphone plug.

Step 16

Rinse and repeat.

Step 17

Copy the small rectangle from Step 15.

Step 18

Add another rectangle, but on the right side add one path point with the Pen Tool (P) in the middle of the path line and with the Direct Selection Tool (A). Repeat the scaling we did in Step 9. Now select the middle point and move it to the right. You can do this by hitting the right arrow key on your keyboard.

Step 19

This is the basic shape composition of the headphone plug.

Step 20

Select the small shapes we created earlier in Step 3-7 and group them (Command + G). Now go to Effect > Stylize > Rounded Corners and apply a radius of 2pt.

Step 21

Let’s move on to the colors. Create a linear gradient that goes from 100% black to 90% black to 100% black. Now drag it into the Swatch Palette.

Step 22

Setup another linear gradient with browns and beiges to simulate a golden color and drag it into the Swatch Palette.

Step 23

Now use the Selection Tool (V) to select the two rectangles that simulate the cable, then apply a dark gradient. Set the radius in the Gradient Palette to 90 degrees. Keep the Stroke.

Step 24

Apply the same gradient to the shapes with the rounded corners but set the radius to 0 degrees.

Step 25

Select all the other shapes and fill them with the golden gradient, radius 90 degrees. Just keep the two small rectangles filled with black.

Step 26

Select each golden shape separately, duplicate it on top (Command + C + F) and set the Layer Mode to Multiply.

Step 27

Select the next two shapes and repeat Step 26.

Step 28

Skip the next two shapes and select the following two rectangles. Repeat the duplicate and Layer Mode change.

Step 29

Select the two black shapes, duplicate them on top and increase the width with the Scale Tool (E), then fill them with the golden gradient and set the Layer Mode to Multiply.

Step 30

Last but not least, duplicate the tip shape on top and change the Layer Mode to Multiply.

Step 31

Select the cable shapes and make a duplicate. Then select the Warp Tool (Shift + R) and start pushing the cable shapes.

Step 32

Keep it simple and apply slight warping.

Step 33

This is what it could look like. Make sure you don’t warp to much so the shapes won’t separate.

Step 34

Connect the warped cables to the plug and voila, we have our little golden headphone plug. I applied small white squares which I duplicated and then grouped to simulate the rippled texture on a plug.

Conclusion

I grouped the shapes, reflected them and applied an Opacity Mask to simulate a reflective surface. You can easy change the colors or apply other gradients. Have fun!

Subscribe to the Vectortuts+ RSS Feed to stay up to date with the latest vector tutorials and articles.

  • http://www.behance.net/devdsine devDsine

    nothing else other than a pile of rectangles

    • Alex

      I think that the point is trying to teach people how to use this program and get the basics of it. If you take a peak at the “Tutorial Details” at the top and then read down to “Difficulty: Beginner” that is what i’m basing that point on.

      Anyway, quite good and does not look bad at all when done

      • http://www.behance.net/devdsine devdsine

        I couldn’t find any tips those are useful to me.
        And I didn’t notice the “difficulty” part.

        Now I realize I was a little rude.

        Sorry guys

    • Niek

      I agree. Why would you want to make this? It’s useless. Just a pile of rectangles. I’m sorry.

      • http://www.flickr.com/people/dougjustice/ Doug

        What is anything but a pile of geometric shapes?

  • http://www.designfollow.com designfollow

    great tutorial

    thank you

  • http://margaretnicholdesign.deviantart.com/ margaret

    Simple tutorial with decent results. My only issue would be that the wires look odd.

  • http://www.vectorific.com/ Liz

    I think the beauty of this tutorial is showing you exactly how you can break down complex objects and build them out of simple shapes.

    Its the same stuff you learned as kid when you were trying to draw animals. (Circle for the head, body as oval, legs as rectangles).

    The concepts are great for anything you try and create in illustrator.

    Added it to our freebie vector resource site, thanks!

  • dan

    don’t really think the outcome was great the wires ruined it for me, thanks for sharing anyway

  • http://designinformer.com Design Informer

    Great tutorial. I really need to start learning more Illustrator. Thanks Vector Tuts!

  • http://www.6ft.com Don

    I think that the benefit here will be for beginners who cannot yet break a design into single steps. It’s a bit of a digital version of kids’ books that tech you to draw something by using primitives.

    The one tip all can take away is “how can I take this complex image I want to make and distill it into discrete shapes?”

    For the wives though, I would suggest that you use the pen tool to create your cord.

  • http://www.zenelements.com Alex Mitchell

    I would have to agree with Margaret that the wires are a little odd but this is a nice tutorial for beginniners and getting used to those many gradients used in Illustrator. Thanks for sharing!

  • http://www.twitter.com/ubermatik Theo Hodkin

    Hm, it’s very simple. And the warp effect at the end seems a bit half-assed and, frankly, unrealistic. The overall outcome of the actual jack is okay, but the wires certainly need work.

  • http://www.ashsmith-digitalmedia.co.uk Ash Smith

    For the wires I would of used the pen tool rather than the warp tool, but the overall idea of using simple shapes to build this is great!

    Also, I must say I’m not a fan of the gradients either, I would of left it at step 19 or 20 looks fab there.

    For those wondering where this would be useful, building diagrams like these can show the shape and size of a headphone jack for an mp3 store of some sort, rather than using a high res close up. I happen to be working on a MP3 Store right now, and will be suggesting this to the client!

  • http://www.aimonkey.com Waasys

    Wires look kinda weird, but mostly good result!

  • http://danielbdesigns.com Daniel

    Overall, great job.

    Personally, I think the proportion of the plug to the housing is not accurate. The extruding plug should a tad fatter in diameter.

  • http://www.krebernik.eu Mac

    Never used my warp tool, but I will do so in the future!
    Thanx for sharing this tutorial!

  • Geraldine

    As a beginner, this taught me a great deal about the programme. Thank you for your contribution.

  • http://www.alkabeergrafix.com Asim

    Nice work….!

  • antony

    simple and and very useful for begainners

  • http://listoric.deviantart.com Listoric

    Thanks for the tut, it is indeed for beginners and it helped me to understand how to use gradients and inspired me to experiment with opacity masks.

    I’m totally used to PS and it is just so different to AI. Hotkeys and menu handling/control whatever you want to call it is also so different. I feel like a total newbie, pressing the wrong buttons again and again. Absolutely frustrating. ^^

  • malhar

    You are too good

  • David1536

    Thanks for your tut, but for the wiring It would be bet to pen draw the curviture you want of the cord
    and make it line (Example: .5px (light color/white) stroke (on top) and a 2px. (dark color/black) stroke (
    behind the the .5px line), If the blend tool was fix correctly you can go to blend mode select step to 80 (its somtime more effective in making smoother blending the the [smooth blend] mode, Now you should (if they fix’n the blending problem where if you blend any two curved line the should the some as two straight line blended together, (instead of the two curved line go speratically allover lik it did in previously in older CS programes,) but if it still givenig you smooth even curve blend lines, do this: 1 make a very thine stroke about a .1 or .05 , now copy and paste them about 25 or 30 tims. On the final paste make
    it 2px stroke line .05px-2px make it gradule in thickness and color shaping from .05px 2.0px (use the caculator to fined out the how thick each line going to be, and the color on the lighting (base) is from
    light to dark, And arrange each line from dark to light forword. Now select them all and Align them up centerly, and there you go. That how you can create a more accurate bleended line for the life like cord. O’ on the coping and pasting the indavitual cord lign them up in one solid line or rows form light’n thin to Dark’n Thick, and on the caculator, the math equation is if 25 is the total indavitual line you divide that fom the light to dark on the color palette and thin and thick in the stroke Example: .05px stroke / 2.0px stroke = 40 is now how many line there are to be cop’npaste them, 40 / 100 (100 being the darkest of the color ) = what the color is on each of the line are, for the thickness go .05 and add its self 40 times
    (Example; .05+.05= .1) so increase each line by .05 tell the you reach 2.0. So finelly hear is the math equation, 2.0px (thick line) / 0.05 (thin line) = 40 (38 being new lines to be made, 40 being the total amount of lines that are made) now – the two lines .05px and 2.0px w/ 40 = 38, Now add .05 to each of the line 38 times. Now 40 – The Darkest base of the color or hue, (lets say 100 on the grey scale each new line is 2.5% on the greyscale add +2.5% tell it reaches 100%. So each New Line (38) is +.05px thick and +2.5% darker. Tell you reach from thin to thick. A also show the part on the tutorail how you put the mesh on the cord aswell. thanks. P.s. If any Body can Simplified what I said Please Do so thanks.

  • http://www.pixazy.com Cornel

    Verry easy! I have made prety cooll objects using this tutorial.

  • http://theworthofmoney.com money

    these tutorials are cool but you guys leave out some details…im a beginner and i get lost on some of ur tuts because you guys dont write every detail. nevertheless good tutorials