Headphone Amplifier

129K26164

Intro: Headphone Amplifier

This instructable describes how to "make" a simple audio headphone amplifier.
It can be used with different devices - MP3 players, Walkmans, Radios, .etc. It can be used also for your own designs - can be connected to the analog outputs of audio DACs, to the outputs of self made radios (for example using TDA7000, or TA7642) or other gadgets.
In comparison with the other instructables, this will not give you an exact instructions how to do the job, but will give you the idea and show you for example how it can be realized in a particular case. The success of this project will relay on your imagination and capabilities ...

The main idea here is - why to make something from scratch, if it exists...
Where an existing audio amplifier can be taken from?
The answer is - from a defect computer CD-R,W, DVD-R,W reader, writer, ROM-drive..
All they have audio output for headphones, which has almost always a volume control.
When those devices broke, normally the malfunction is always in the mechanics, in the laser system, in the optics, but, I think never in the audio headphone amplifier.
Where to find a defect drive?
You decide - at scrapyard, at the place were you company throws away the broken equipment for recycling, in some garage sale, to ask your friends, eBay...

Let's suppose, we have found our defected drive.
Let's go for the first step.

STEP 1: Exctracting the Audio Amplifier Board

First step is to disassemble the drive.
The audio amplifier board is normally placed directly behind the front panel of the drive. The PCB in most cases has a long narrow shape. Between the audio amplifier board and the "main" board of the drive a flat cable connection is done. Unsolder it from the main board. May be will be possible to use it, if needed.
Do not forget to extract also the laser diodes and the electric motors - they can be used for other instructables.
On the pictures can be seen the extracted board, which was placed behind the front panel and contains the audio amplifier.

STEP 2: Shaping the Amplifier Board.

The second step is to investigate what you have.
It is good practice to take a picture of the board by a digital camera in macro modus, to plot it, if possible on A3 sheet, and to try to understand the structure of the board. You can see that also some additional electric components are placed on the board - switches, LED's for read/write operations.. etc. You have to decide what should be used - do you need light indication of the supply presence, do you need the volume control..
Normally, for the low noise reasons, the audio amplifier occupies a compact area, which must be identified. In this case it is about 1/3 of the whole PCB area placed at the end of the board where the chip is mounted.

The next action is to mark the part of the board which should be used, in the way that the signal paths and supply for the audio amp tracks should be kept safe. There are always some tracks which connect switches, sensors, LED's placed on the other part of the board and can be cut without any influence on the audio amp performance. For the marking I used a dark marker. Now the board can be cut. For that purpose I use usual scissors. You have to cut the board carefully some distance away from the marker line - because of the cracks, which appear during the cut. After cutting the board, it must be shaped - all sharp edges have to be polished. For that purpose an abrasive paper can be used.

STEP 3: The Research Work

Now starts the real research work. We have to identify which chip is used for the audio amplifier, to find the technical data (the datasheet), and to track all connections. In this case it is easy to see that the chip is from the type APA3541 (product of ANPEC - http://www.anpec.com.tw ). Using the "Google" the datasheet can be found very easy. The APA3541/4 is an integrated class AB stereo headphone driver contained in an SO-8 or a DIP-8 plastic package with Mute feature . For us the most interesting information, found in the datasheet is : 1)the block diagram with the function pin description ;2) the typical supply voltage -for this case it is 5V ; 3) the possible driven load (can be 16 Ohm).

The task is now to connect the amplifier in the correct way.
I removed the flat cable. I plotted the picture of the PCB with the metal tracks view on a A3 sheet - to be easy to follow each track and connection. You can use markers with different color for each signal.
Let's start with the ground pin - normally the ground is the "fattest" wire on the PCB. It is chip pin #4.Using Ohmmeter you can check this. A suitable place where the ground cable ( "-" of the battery) shall be soldered must be found. There the green lack must removed from the PCB. I scratch it using a big needle. A hole for the ground cable must be drilled there.

STEP 4: Power Supply Connection

Next step is to guarantee the proper power supply of the chip. We found that the chip must be supplied by 5V source. Such kind of batteries are not often seen. It is better to use a voltage regulator , which will produce the needed voltage. The most suitable, I found to be a regulator from the type 78L05 - it has 3 pins and small package. Practically it doesn't need an external components. To mount it on the PCB we need to scratch the green lack again in the proper places and to drill 3 holes for its pins.
After that we can mount the regulator, solder it and to bridge the ground line.

STEP 5: Connecting the Mute Signal.

In the datasheet was seen that the audio amp has a mute pin - your decision : You can have a switch to mute the amplifier, or to connect the pin hard to the supply line for continuous operation.
I connected it directly to supply line.

STEP 6: Connecting the LED As Power Indicator

Because of the existing LED - I decided to connect it as power indicator. Two connection must be done for that purpose :
- the resistor limiting the current through the LED must be connected to the supply line
- the cathode of the LED must be connected to the ground line

STEP 7: Connecting the Inputs

Now remains to connect the inputs of the amplifier. I used a cable of defected stereo phones. Depending on the way of use of the amplifier, different cable connections can be implemented. Following the input tracks using the ohmmeter (the inputs of the audio amp chip are connected to the volume control potentiometer, after that through electrolyte capacitors ) I identified the pads for the flat cable where the input signals come. Two holes for the left and right audio signals and an additional hole for the ground cable wire were done there.The audio and the power supply cables were soldered.In the case, you want to connect the amplifier to a mono audio signal source, it is better to short the both inputs together.

STEP 8: The Joy...

It is good to find a suitable box for the amplifier and the battery. It can be plastic or metal - in the second case an insulation must be put between the internal walls of the box and the PCB, to prevent a short. A hole for the volume control must be cut.
I used a plastic box suitable for small radio, where a special place for the 9V ( 6LR61type) battery was reserved. I added an ON/OFF micro switch at the cable from the battery "+". I cut a holes on the box side wall for the volume control, for the audio jack, for the LED and for the micro switch knob using a dremel like tool. Finally I fixed the board using 3 small screws.

I connected the battery, switched the amplifier on.....
The sound was quite good...

Enjoy, you too!

73 Comments

I've got the same IC as yours: APA3541. But in the first page the datasheet says the gain for APA3541 is 0:

"The APA3541 has a fixed gain of 0dB and the APA3544 has a fixed gain of 6dB so that external gain setting is unnecessary."

So why does your 3541 amplify the sound?
Exactly in this case there is not any voltage gain. The device can be used for power amplification - that means : when you use a sound source with relatively high output impedance - such as audio DAC for example, you can not load it with low impedance headphones - it will produce very quit sound. Then you will need to use a buffer, which have to match both source and load impedances - this chip performs axactly this function - it has high input impedance to match with the source impedance and low output impedance to match with the low headphones impedance. In this way the maximum power is transferred to the load. Of course there are a lot of other headphone amplifier boards, where the output amplifiers have voltage gain, which even can be increased by change of the feedback resistors. This instructables shows in principle how a headphone amplifier can be constructed using old PC drive. The output product will have voltage gain or it will not have - depends on the chip you find there.
Thank you for the detailed explanation. I learned a lot.

Hi ChristinD,

It is difficult to say what exactly happens. I think that if at lower levels of input the signal the sound is without distortion, and it sounds strange only at higher input signal - then could be clipping, if it sounds vibrating at lower signal levels - this could be oscillations. I do not think that this could be a problem for the opamp. To make the signal distorted you could add some filters on the input of the amplifier, or clamp the output signal. You could look here and take some idea from ...:

https://www.instructables.com/id/Guitar-Effect/

for example

https://www.instructables.com/id/Overdrive-Pedal/st...

step 2 (the circuit - the part after the 0.1uF capacitor.

Hi Milen,

I didn't see your response sooner than today. I have been experimenting with things like this, so far no working mods. But I was wrong originally. The 100k resistors did add a tiny bit of distortion and no noticeable vibrato. I think the error occurred because I tested the guitar while it was hanging on the wall so it was unhindered enough to vibrate.

Now after trying to mod it so much, I'm instead liking the small distortion it has and am in favor of building that pedal you showed me, I just need to scrounge together the parts. Thanks again :)
Hey again Milen!
It worked!! I boosted the feedback resistors and it totally got louder. (Sidenote: mounting smd devices is very very tedious!).

I did however go beyond the 2x ratio you mentioned (43kOhms -> 100kOhms) as a sound experiment, as I'm using this for guitar and I wanted to test how it would be because you mentioned that it might clip and I desired a bit if distorted sound. It ended up sounding a bit vibratoish. Is that oscillation and is that dangerous for the OP amp? Any thoughts on how to get a crunchy sound?

Thank you, your so helpful!
I really want to make this, but I'm totally lost, and have never done anything like this before, will someone help me out? Here's the board I got to work with
Well after popping open a few other drives I found a super easy pcb and got it to work! it's a bit quiet tho, any way to make it louder by chance?

You could try to boost the gain of the op-amp changing the feedback resistors if possible.

Oh, thank you! But I'm a super novice at this, how exactly do I do that?

By the way, thanks for your instructable, it's the only one like it that I found and it's got me interested in all this sort of stuff.

I am glad that I could attract another guy in the world of the electronics.

You can identify the amplifier chip and find it datasheet. Some of the used chips are simply internally defined as buffers (no gain - only source-load resistance matching) - in this case nothing can be done. But is a standard power operational amplifier is used as amplifier stage, normally its gain is fixed by the feedback resistors. (these which connect the output of the amplifier with the corresponding input). If you increase their value - you also increase the gain. You should not increase them a lot because the amplifier can saturate (clip at the supply rails) or the gain increase can cause stability problems (the amplifier can start to oscillate).

Thank you! You really did get me into electronics, I've never even used a soldering gun or an ohmeter before I read your article!

Now, I couldn't originally find the datasheet for an unknown reason. (I just plugged in a 9 volt battery and it didn't work so I plugged in 2x 3 volt batteries I had lying around and it worked. Which in itself has me concerned because I just was able to find the data sheet and it's max voltage is 5.5 volts, is it ok to use 6?)

But anyways, now that I've found the datasheet (here: http://pdf1.alldatasheet.com/datasheet-pdf/view/8932/NSC/LM4808M.html ), I think it says I can do what you're saying, if I'm not mistaken. I just have to figure out what and where the feedback resisters are lol. If you'd like to help, I appreciate it, but if you're busy, I understand.

Thank you very much

Hi,

The feedback resistors should be these placed between pins 1 - 2 and 6-7.

May be they are SMD devices. Try to unsolder them and to measure their value with a ohmmeter. After that you could put new ones with higher value - but not more than 1.5-2 times.

The maximum supply allowed is 5.5V. 6 V is the absolute maximum rating - applying this voltage for a long time could damage the amp and it is not guaranteed that it can have the full functionality when supplied with 6V.

May be better solution could be 3 batteries 1.5V, or as in my case to add a voltage regulator from the type 7805. Then you could apply voltage till 30V.

Regards

Milen

Hey,
Thanks I'll have to check them then. :)

And thanks for the advice and the suggestion about the voltage. I remembered that it could be supplied by as little as 2 volts so I just use one 3v battery and it seems to work fine. Plus they're very compact and cheap if you know where to get them.

Many thanks,
Christin

congratulations you are like me in the mood of recycling all you can

Hi I am James, thanks for referring to us. If you need any help just email me at james@wilsonamplifiers.com and we can provide you with boosted cellular data

Hi,
I do not have experience with cellular amplifiers.
I think you can google about this. I have seen sometime ago circuits of GSM jammers, having as output stage a power RF amplifier. This could be useful. There are such kind of modules ( check the NXP, Freescale, TI ..etc sites for GSM RF power amplifiers ). If you find such product - in the datasheet should typical connections circuit. A simple cellular amplifiers could be done in this way...Good luck.

Great idea, I am trying to accomplish a similar thing with an old cd drive, but I am clueless where to connect the audio in. I trace all lines, but some only seem to go round.

The chip on the board I want to use is an opamp, not an audio driver, but if I would use the entire circuit, that should work too right?

Does anyone have a clue where to connect the audio in?

Datasheet: https://app.box.com/s/4mxvw923bil0g3ywwdr0

A little involved but a great way to recycle all the old computer CD drives..
thanx!
More Comments