Head Phone Amp With Custom PCB

12K12727

Intro: Head Phone Amp With Custom PCB

I've been building (and trying to perfect) the headphone amp for some time now. Some of you would have seen my previous 'ible builds. For those that haven't I have linked these below.

On my older builds I have always used prototype board to build the circuit. Nothing wrong with doing it this way mind you but there is more potential to make mistakes and it can be tricky trying to add all of the parts in the smallest space possible using prototype board.

I thought it was time to throw myself in the deep end and start to design my own PCB's! The Instructable crew have put together some training on how to do this which can be found here. I found the Sparkfun tutorial very helpful and primarily used this one to learn how to create my own PCB's. It's a great resource and easy to follow the step by step instructions.

The software to design the PCB's is eagle and is free to download. Just follow each of the tutorials below from Sparkfun and in no time you'll be designing your own as well.

However, If you just want to use my gerber files (the files you upload to the PCB printing company to make the board), then I've supplied them in this 'ible. All you need to do is to load the zip file up to a manufacturer such as JLCPCB and they'll print it up for you.

Sparkfun Tutorials

1st one to do : Using EAGLE: Schematic

2nd one to do: Using EAGLE: Board Layout

You might be asking yourself right about now, what the hell is a headphone amp and why do I need one! Your phone doesn’t really have the power to drive a pair of headphones. You can hear this when you listen to music through your phone speakers, the sound sounds flat and has no real range. When you plug your headphones into a separate amp, you’ll be astonished at the level of audible improvement in clarity, detail and dynamics you get out of your speakers.

So let's get cracking.

STEP 1: Parts

Circuit

1. PCB. You can find the gerber files here. Instructables don't allow you to add zip files so I had to link it to my Google drive

2. 220 uF capacitors X 3 - eBay

3. 4.7uF Capacitors X 3 - eBay

4. 22pf Capacitor X 2 - eBay

5. 3.5mm Headphone Jack Connector X 2 - eBay

6. 5532 IC - eBay

7. IC Dip 8 pin dip socket - eBay

8. 18K Resistor X 2 - eBay

9. 68K Resistor X 4 - eBay

10. 470K Resistor - eBay

11. 20K Duel Potentiometer - eBay

12. Knob - eBay

12. 5mm LED - eBay

13. SPDT Switch - eBay

Power

You can use a 9V battery if you want to. I wanted to be able to re-charge the amp so I used the following

1. Voltage regulator - eBay

2. Mobile Battery - I get most of mine from phone recycle bins but you can also buy them on eBay

Check out this Instructable on how to use these

Other Parts

1. Case - I used an old Tobacco tin

3. Wires

STEP 2: Schematic, Board and Gerber Files

In the link below you can find the schematic, board and gerber files. If you already use eagle then you can save the schematic and the board and add them to eagle to play around with.

If you want to just get the board made then save the Headphone Amp Zip file and you can then just send it to someone like JLCPCB (not affiliated) who will print it for you. Hit the "quote now" button on the website and then just upload the gerber files. easy.

FYI - I'm not affiliated with JLCPCB in any way - just find them easy to use.

Link to Gerber files, eagle schematic and PCB - Version 1

Link to Gerber files, eagle schematic and PCB - Version 2

NOTE: I revisited this PCB and made a smaller. The files can be found in version 2 link

STEP 3:

STEP 4: Soldering the PCB Together

I'm not going to do a step by step on how to do this as it's pretty straight forward. All of the values of the components are on the board and you just need to follow this. However, below are a few tips on the best way to do it.

Steps:

1. The best components to start with in my opinion are the resistors. These are all the same size and you can lay the board on it's back and they will sit flush with the board making them easy to solder into place

2. When adding the audio jacks you might find that one of the 5 legs is slightly off. Just take your time and use a small screwdriver to slightly bend it out so it fits into the hole.

3. Use good quality capacitors. These will help get great sound out of the amp

4. If you know what case you are going to add the amp to, ensure that the capacitors aren't too high for the case. If they are you can always lay them down like I did in order for them to fit. Actually didn't need to do it in the end because I used a difference case.

5. The circuit board will be attached via the audio jacks and volume potentiometer. make sure you take that into consideration when thinking about a case.

6. It's always good to test the board once it has been built and before it's added into a case.

STEP 5: What Case to Use

You can use whatever case that takes your fancy. I like to add them into old tobacco tins as they come all ready to use. I've used NES controllers before as well which are fun to do but there is a lot less room in one of those.

If you can't find any tobacco tins then you could an Altoids tin, projects box, literally any small container that will fit the parts inside will do.

STEP 6: Adding the Parts to the Case - Circuit Board

Steps:

1. First, place all of the parts inside the case and work out how you want everything laid out inside. You need to fit the circuit board, battery and charging module (if you aren't using a 9v battery). Once you know where everything is going, the next thing to is to secure the circuit board

2. Make a small template of the front of the board using a piece of masking tape. Make there the potentiometer and 2 audio jacks are on the tape and then stick this to the case

3. Carefully drill the holes for each of the components. Tobacco tins are quite thin so be careful when drilling.

4. Secure the pot and audio jacks in place with the nuts that come with them

STEP 7: Adding the Parts to the Case - Battery, Switch & LED

I went with a rechargeable battery and charging module to power the circuit. If you don't want to do this then just use a 9v battery. I did an Instructable on how to use the module and adding it to a Li-ion battery which you can find here

Steps:

1. First, secure the charging module to the battery with some good, double sided tape

2. Place the battery inside the case and mark where the micro USB on the module needs to accessed.

3. Make a couple small holes in the case for the micro USB and use some small files to make the hole rectangular.

4. Secure the battery into the case with some more double sided tape and make sure that the USB aligns with the hole in the case

5. For the switch, I initially was going to add this to the side of the case and made a hole for it but decided to add it inside the case. The main reason being, the other ones I have made the amp sometimes turns on in my pocket because of the switch. having it inside the case means this can't happen.

6. I used the hole I made for the switch for the LED. As the hole was rectangle I decided to add a small piece of opal acrylic which is a great diffuser and place the LED behind this.

STEP 8: Using Your Amp

Now that the build is done it's time to try out your amp

1. You have an audio input and output jack. The one on the left is output and that's where you plug your headphones into. The other is where you plug your phone or MP3 player into.

2. make sure that the volume is turned down at at least mid-way. you don't want to blow your eardrums if it is too loud!

3. Turn on the amp and start to play music. The sound should be clear, have more bass, and overall have a richer sound then just listening through your headphone.

19 Comments

Hi, will it work with 32 ohm impedance headphones ? Thanks in advance.
Is their anyway i couldd use a larger duel Potentiometer because the is no shops that sell a 20k. could i use a 10k or a 50k and step it down
I think you would probably get away with a 50K pot - the vol will just be more sensitive
Great job, but the schematic is overcomplicated. Neither resistors, grounds, nor ceramic capacitors are polarized. GND is a more than sufficient marker, too.
So i got three boards from OSH Park. Finally got the jacks in. The pin design on the board DO NOT match the pins that BOM specified. Can you point me in the right direction please? Thanks Cliff
Hi Cliff,
If you used the Gerber files to print the boards you shouldn't have any issues. You are right that the schematic and board look different. The reason being, the potentiometer part I used I had to resource on-line and the pins were matched weirdly. I couldn't re-map them (Eagle wouldn't let me) so I had to fudge them to make them work on the board and gerber files.
I think i used eagle file. So the 6 pin Pot will have issues? Was able to find the correct female plugs. Can you help me with the pots? Making three. Thanks
cliff
Hey Cliff, If you have the right 6 pin Pot then it should just fit into the holes into the board. You're pot should look like this
I'm wondering about the schematic and especially the input/volume control. Pin 3 of the pots are used to connect to audio input. In one channel, pin 2 (slider)is used to present desired signal to input of the chip and pin 1 is at ground. In the other, however, it seems that pin 1 and pin 2 have been reversed. A grounded slider between the raw audio input and the feed to the input of the chip would simply kill the input signal before it ever reached the chip. In trying to trace the circuit via the image of the circuit board, it seems the schematic has an error on the lower channel volume control. Please advise.
Good spot! I had to get the pot part from a library on-line and the pins were mapped weirdly. I tried to re-map them in Eagle but couldn't do it so I just mapped it so it worked on the board.
I have fixed it on the schematic now in case someone just wants to build this on prototype board.
Could the amp be considered a HiFi amplifier?
Yes. This appears to be a high fidelity amp. It is only a headphone level amp though and not a power amp but still, appears to be HiFi.
The circuit has been built to drive headphone speakers so wouldn't work as a HiFi amp. However, you could use the Op Amp to build one
The NE5532 is considered to be a high performance, low noise amplifier.
You have a typo for item #6 in the parts list.

6. 5332 IC - ebay.

It should be 5532 just to clear up any confusion. :)

Does it work with blue tooth
You can added one of those portable blue tooth modules that have a 3.5mm jack and plug it into the output. I have one and use it often on the headphone amp. It doesn't have blue tooth built into the circuit. I am working on an update though and looking to add it in the next build
The fact that it has an input and output jack and the article never mentions bluetooth points to no. That's not to say you can't add bluetooth functionality to it if you desire.