Instructables
Picture of Altoids Tin Speaker
ats-open-01.jpg
ats-open-03.jpg
ats-open-04.jpg
Yet another Altoids tin speaker project. The speaker, circuitry, a single AA battery and 3.5mm male-male audio cable all fit together in the tin. Power is supplied with a Maxim MAX756 chip with circuitry right from the datasheet (see also the MintyBoost! both here and at ladyada.net) and amplification with an LM386 op-amp chip with circuitry again right from the datasheet (inspired by Make Magazine's Crackerbox Amp).

Anyone undertaking this project should have access to standard tools -- pliers, diagonal cutters, wire cutters and strippers, soldering iron and solder, multimeter, electric drill and brad point bits (more on these later). Experience making PCBs is also required.

Break Out of Your Pod -- Low Fidelity Audio -- High Fidelity Cool

Pictures
Several early commenters have noted the lack of pictures. There are now pictures detailing the preparation of the Altoids tin, battery holder, speaker, switch, audio jack, audio cable, and overall installation of parts and final assembly. There are also several pictures of the board with all of the electronic components installed but there is not a step-by-step walk through of this process. The main image for step 5 (Soldering Parts to PCB) has image notes identifying each of the parts.

If there are any additional pictures that you think would help the construction process, please let me know.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts

Parts can be obtained from any of a number of electronic suppliers. Substitute as seems reasonable. The only crucial components are the speaker (because it fits so nicely into the tin) and the Maxim MAX756 and LM386 chips (because the board is designed for them). The links following the parts are to DigiKey and All Electronics.

Integrated circuits
1 x U1 -- LM386 audio amplifier DIP -- LM386N-1-ND
1 x U2 -- MAX756CPA DC/DC 3.3/5V DIP -- MAX756CPA+-ND
2 x Ux -- IC socket 8-pin DIP -- A32878-ND

Resistors
1 x R1 -- 10� 1/4W �1% metal film -- 10.0XBK-ND

Capacitors
1 x C1 -- 0.01�F -- 399-4150-ND
1 x C2 -- 0.047�F -- 399-4189-ND
2 x C7, C8 -- 0.1�F -- 399-4151-ND
3 x C3, C5, C6 -- 100�F -- P5152-ND
1 x C4 -- 220�F -- P5153-ND

Inductor
1 x L1 -- 22�H radial -- M9985-ND

Diode
1 x D1 -- 1N5818 Schottky 1A 30V -- 1N5818-E3/1GI-ND

Miscellaneous
Speaker 8�� 1/2W 57mm square (1) GF0576-ND
Battery Holder 1-AA 6" wire leads (1) 2461K-ND
Phone jack stereo 3.5mm (1) MJW-22
Audio cable 3.5mm male-male 12" (1) CB-400
Toggle switch SPDT 1/4" on-on (1) MTS-4

Image of all parts together with image notes identifying each part

Step 2: Schematic and PCB Layout

Picture of Schematic and PCB Layout
altoids-speaker-parts.tif
As noted in the introduction, the circuitry surrounding the Maxim MAX 756 and LM386 chips is directly from their respective datasheets. The schematic and the PCB were designed using the freeware version of the EAGLE Layout Editor from CadSoft.

Step 3: Making and Preparing the PCB

Picture of Making and Preparing the PCB
There are numerous resources on the Internet that describe the process of creating PCBs.

Transfer
I had (and still have) considerable difficulty getting consistent transfers onto the copper board. I currently use Press-n-Peel Blue Transfer Film from Techniks.com. I have also tried following the process detailed by riccibitti with little success (my impatience). It seems as if everyone has a preferred and flawless method, and none of them work well for me! I end up using a Sharpie to fill in the mask. This is overall the weak link in the making of PCBs.

Etching
After several frightening attempts at etching with Ferric Chloride over a pan of warm water in my kitchen, I moved into a chemistry lab and used the technique described in the Instructable Stop-using-Ferric Chloride. The materials were cheaper, more readily available (local hardware store and CVS), cleaner and safer. The initial etching was fast and aggressive, although I had some trouble with subsequent batches.

Cutting
I don't have a good method for cutting PCBs. Suggestions and recommendations would be appreciated.

Drilling
To drill the holes I used a Dremel tool with drill extension and a 1/32" bit for most holes. For the diode and holes for the speaker, battery, switch, and audio connection, I used a 3/64" bit. Bits are from Lee Valley.

Step 4: Preparing the Altoids Tin

Picture of Preparing the Altoids Tin
ats-tin-02.jpg
ats-tin-03.jpg
ats-tin-04.jpg
ats-tin-05.jpg
The tin needs two sets of holes. I use a metal punch to mark the hole locations and brad point bits (for wood) to drill the holes. The brad point bits have a center point and two cutting edges. They won't skate and the edges cut slowly through the metal. Brad point bits are available from Lee Valley (among other places).

The first is a set of 1/8" holes directly over the speaker in the pattern of your choice. I mark out the pattern on 6 x 6 graph paper and tape the paper onto the lid of the tin roughly located over the speaker. In order to prevent pushing the top of the tin in, support the inner part of the lid on a small block of wood when punching and drilling the top. With the paper and wood in place, I dimple the tin using the punch. When drilling, go slowly at first. The cutting edges of the brad points should make an even circle. Drilling with the bit anything but perpendicular to the surface may result in the bit grabbing and tearing the metal.

The second set consists of two 1/4" holes on the left side of the tin for the switch and audio jack. Space these fairly wide but so far apart that they fall on the curved part of the tin. Center them vertically on the portion of the side visible when the lid is closed. Mark with punch and drill very carefully. The caution about the bits grabbing the tin applies more strongly with the bigger bits.

Step 5: Soldering Parts to PCB

Picture of Soldering Parts to PCB
ats-board-03.jpg
altoids-speaker-parts.tif
There are numerous resources on the Internet that describe the process of soldering electronic components to PCBs. See, for example the soldering tutorial at ladyada.net. The order in which you install components doesn't really matter, although I have found working from smallest to largest them easiest. I assemble the board in the following order.

Jumpers
I use jumpers (small pieces of wire) in a few places instead of having a double sided board. There a several places in this design where I could not figure out a simple way of getting a wire from one place to another without crossing a second wire. Jumpers were my solution.

Note that the schematic calls for a second diode (D2) where power enters the LM386 chip. This was necessary when the circuit only consisted of the amplifier portion; I don't think it is necessary any more and I replace it with a jumper.

Chip holders
I put the chip holders in next. The two provide a relatively stable surface on which to balance the board upside down for future soldering. The orientation of the chip holders matters -- make sure the notched end is located as illustrated so that the chips are oriented correctly when inserted.

Small capacitors
The four small capacitors go in next.

Resistor
The resistor is positioned vertically

Diode
The holes for the diode should be 3/64. The spacing between holes is a little small so care must be taken fitting the diode in place. More important, however, is getting the orientation of the diode correct.

Large capacitors and inductor
These go in easily and form a sort of wall to support the battery holder. Care must be taken to ensure the correct orientation of the electrolytic capacitors. Note the location of the white strip on each capacitor. The orientation of the inductor does not matter.

Check your work
Be careful to orient the components properly. The orientation of the chip holders, the electrolytic capacitors and the diode matter. Check the layout diagram and the schematic or just make sure things match up with the pictures!

Step 6: Preparing the Battery Holder

Picture of Preparing the Battery Holder
ats-battery-02.jpg
ats-battery-03.jpg
To protect the leads on the battery holder, slide a small piece of 1/16" heat shrink tubing into the holes through which the leads exit the holder. The battery holder barely fits into the tin and the heat shrink tubing protects the leads from abrasion. The orientation of the battery holder in the tin is chosen to keep the long lead on the component side of the tin.

Clamp the two wires together at the upper end of the holder with a short piece of 1/8" heat shrink tubing. Cut the end of the heat shrink tubing at an angle to get a closer fit to the holder.

Use diagonal cutters to cut the two tabs that hold the battery in. This will make replacing the battery considerably easier once everything is assembled

Step 7: Preparing the Speaker

The rounded corners of the speaker do not fit nicely into the corners of the Altoids tin. Use diagonal cutters to cut away at the two left corners and increase the radius of the curve. Before assembly, check that the speaker fits snuggly under the left hand lip of the tin.

When soldering, loop the wires through the holes in the lugs for extra reinforcement. Add pieces of 1/16" heat shrink tubing to prevent abrasion. Note that the wires go to the left when the speaker is upside down and will go correctly to the right when the speaker is right side up in the tin. Note that the red wire is above the black wire.

Step 8: Preparing the Switch

Picture of Preparing the Switch
Thread the wires through the holes in the lugs and solder and reinforce the connections with 1/16" heat shring tubing. If this tubing does not fully cover the lug, slide a additional piece of 1/8" tubing on down to cover the lug and solder connection. Clamp the wires together with a short piece of 1/8" heat shrink tubing.

Cut the extra lug off the DPST switch if necessary (it may contact the bottom of the speaker and is not used in this project).

The wires need to be bent twice in order to fit around the speaker. They should follow the walls of the tin. Note that the red wire is above the black wire.

Step 9: Preparing the Audio Jack

Picture of Preparing the Audio Jack
ats-audio-01.jpg
ats-audio-02.jpg
This is the most complicated piece to make. Start by straightening the lugs with a pair of needle nose pliers. Then bend any terminals that are part of an integrated switch out of the way.

Join the left and right signal lugs with a small piece of wire. This is supposed to merge the left and right signals from the input device -- I hope it does! This one of the trickier solders. I carefully cut a piece of (green) wire to length, strip the ends and bend it fit exactly. Once I have a good fit, I flow a bit of solder onto the lugs, position the wire, and then melt the solder and push the ends in place. Usually I burn my fingers. You have to work quickly and be careful not to melt the switch.

Note the orientation of the audio jack in the tin. I have the input wire (red) coming of the top lug and the ground wire (black). Solder wires to two lugs on the switch and reinforce the connections with heat shrink tubing. Clamp the wires together with a short piece of 1/8" heat shrink tubing. Note that the red wire is above the black wire.

The wires need to be bent back and follow the walls of the tin.

It is a good idea to do a continuity check at this point. Plug in the cable and make sure that the two signal wires connect and the ground connects to ground.

Step 10: Preparing the Audio Cable

Picture of Preparing the Audio Cable
ats-cable-02.jpg
The ends of the audio cable are fragile and need to be protected with heat shrink tubing. Cover each end of the jack with 1/4" heat shrink tubing.

Step 11: Installing Additional Parts

Picture of Installing Additional Parts
ats-install-02.jpg
ats-install-03.jpg
ats-install-04.jpg
Cut the leads of the external parts to length one at a time by fitting the board into the tin and placing the part over it. Too long is better than too short. Solder them into place in the following order -- switch, audio jack, battery holder, speaker.

Step 12: Testing the Circuit

Before the final assembly, it is a good idea to check the circuit. Make sure that the two chips are in and a properly charged battery is installed in the correct orientation. Turn on the Altoids Tin Speaker and hope for the best. You should hear a faint hum from the speaker. Attach a noise-making device. Hopefully, you will hear music.

Troubleshooting? You are on your own.

Step 13: Final Assembly

Cut a piece of heavy cardboard (I use either pieces of picture framing mat board or cardboard beer coasters) to fit inside the bottom of the Altoids tin. The radius of the corners of and Altoids tin may be approximated by a quarter. This piece insulates the board from the metal tin. Note that in order for the 3.5 male-male audio cable to fit in the tin, this piece must not extend all the way to the right side of the tin. It should be sized to fit under the entire circuit board.

Insert and attach the audio jack and switch first. To do this, fold the speaker up and out of the way. Then slide the board into the tin and push the threaded portions of the audio jack and switch through their respective holes. Tighten.

Fold the speaker down into place. You will have to push the long sides of the tin out a bit to get the flange of the speaker to snap in place under the rolled edge of the tin. Slide the speaker all the way to the left. If it does not fit under the left-hand rolled edge, trim the two corners a bit more.

While the sides of the tin are still splayed out, slip the battery holder into place. Be careful not to abraid the leads. Note that the battery holder is positioned so that its red lead runs up the side next to the electronic components.

Straighten the sides of the tin and make sure that the flange of the speaker is seated underneath the rolled lip of the tin.

Add a battery, close up the tin, and enjoy!

Step 14: Controlling Gain -- Easy Way

The gain of the LM386, as the ATS is currently constructed, is set only to 20. The effect of this is that the ATS is not terribly loud. I found that to get desired volume, I had to turn up the volume of my MP3 player almost to its maximum level. This distorted the signal and sound from the ATS, and, poor speaker aside, result in very poor sound. The amplification of the system should take place in the LM386 (where it belongs) and not in the source providing the signal.

Careful examination of the PCB will reveal two pads just above pins 1 and 8 of the LM386. By joining these two pins with a piece of wire, the gain will be set to 200 and the ATS will be considerably louder. The datasheet for the LM386 indicates a 10uF capacitor should join these pins and that pin 7 needs a bypass capacitor. I have not noticed any problems with a simple wire.

This is the easy way to modify the gain. A more elegant and complicated approach is detailed on the next page.

Step 15: Controlling Gain -- Elegant Way

The gain of the LM386 amplifier chip is controlled by a resistor (and capacitor) between pins 1 and 8. I replaced the toggle switch with an ALPS RK097 10K ohm stereo audio taper potentiometer with power switch from Tangent's Parts Shop (and available nowhere else, it seems). I used one of the two potentiometers to control the resistance between pins 1 and 8 on the LM386 and the power switch to control the power.

The effect of this change is that with the gain turned all the way up (resistance as low as possible), the ATS is quite loud and with the gain turned all the way down (resistance as high as possible) the ATS is somewhat louder than with no modification at all. In any case, both the easy and elegant modifications place the burden of amplification on the LM386 and the sound is considerably better at higher volumes.
1-40 of 112Next »
dustinfathead6 months ago
Can anyone make a few of these circuit boards? I'll buy them.
mthomas458 months ago

Wow, definitly the best instructable ive seen for a homeade speaker. Great work!

dustinfathead9 months ago
Hey folks! I work for a company that takes PCBs and components, puts them together and sends them out. I have no experience making PCBs. Can anyone help me out? Maybe make a few and I'll buy them..??
Kjata10132 years ago
10k potentiometer w/ audio taper between pins 1 & 8 did the trick! I'm so happy, thanks again for a great instructable.
Kjata10132 years ago
I just got done building this. It's awesome! I'm a beginner and I found this guide easy to use. I have almost like a hisssss when I use it, but I just put a wire between pins 1 and 8 on the 386 chip, which is what you did. Tomorrow I'm gonna try to control the gain the "elegant" way and see if that works. Anyway, thanks again for posting this!
pshankar2 years ago
pls let me knw ..where r v giving connection to jack and speaker..i cant understand the notations sp,jk,sw,etc?
if possible mail me ur reply sir..
praga_deesan@yahoo.co.in
cboehm33 years ago
in earlier comments you said you could use the lilypad power supply, and it would take out some components. do you know whick compnents you dont need? (sry, im new to this stuff.)
matthewpoage (author)  cboehm33 years ago
Take a look at the schematic in step two. The entire upper part contains the components around the MAX756 chip. This chip boosts the ~1.5 volts from the AA battery to a suitable 5 volts for the amplifier chip. The LilyPad pad power supply does the same thing -- 1.5 volts in, 5 volts out. I do not remember the board layout well enough to say which components to remove, but most of the circuitry around each chip "belongs to" that chip. The power supply is at the upper end of the board and the amplifier chip at the bottom. NOTE -- I have not tried this with the LilyPad power supply but appearances suggest it should work.
thank you very much!
drabinowitz3 years ago
I love it, unfortunately I am a novice in electronics and I have no idea about anything in circuitry.
how did you put your toggle switch on, because i have one too but can't fiure out how to get it on.
matthewpoage (author)  schoonovermr4 years ago
The part of the toggle switch sticking out through the tin should be threaded. See step 8. Using the nuts and washers that come with the switch, it can be secured fairly firmly (although I find it works loose after a while).
You can use some thread locker tape (less mess than the fluid) you can get it at your local auto parts store and its used to hold bolts in place to keep them from coming loose due to vibration.
So, would this be a way of adjusting the volume? Or would I need some other sort of volume control attached somewhere?

Also, I was considering attaching a LED so that it flashes with the music. Would I be able to fit it (and the larger battery that I would need, I assume) in the tin?
Focuscar3 years ago
Really, wat a nice idea.
Kanellos3 years ago
I would like to make one of these, but I'm kind of a noob and have no idea where to find some of the parts that were marked obsolete or the sites are down. Please post new locations on where to get?
matthewpoage (author)  Kanellos3 years ago
The essential part that seems not to be made anymore is the MAX756CPA chip that is the basis of the power supply and allows the ATS to run on a single AA battery. A possible replacement (which I have not tried but expect to) is the LilyPad Power Supply (see SparkFun or other places). It provides 100mA at 5V from a single AAA battery and should fit in an Altoids tin. It will replace about half of the components. The rest of the parts are generic and can be found (maybe no longer at the exact pages referenced) at DigiKey, Jameco, Mouser and others. I have had trouble finding the 12" audio cable from AllElectronics but there must be others.
If you were to use the LilyPad Power Supply could you explain how to hook it up to this? And what else you would need?
Alright. So really I just have to google the parts or, like flyin muffin said, hit up radioshack?
RADIO SHACK
LiLGq3 years ago
This is a very clever project, bec. of the IC MAX756CPA this uses a single aa battery not the 9v battery which makes cheaper but my problem is how loud is this amp reaches??
matthewpoage (author)  LiLGq3 years ago
The ATS definitely will not deafen you. It is louder than the speakers on a modest laptop and quite a bit louder than an iPod Touch (these are my two points of comparison). It is loud enough to fill a room with sound but definitely not overwhelming. Good to travel with as long as the magnet of the speaker doesn't wipe something clean! There are several version of the LM386 which may make a difference. The high gain settings, however, lead more to distortion than volume. Also, the volume on the device being played seems to have a big effect. Early iPods had to be turned up so loud that they distorted the sound even before it reached the amplifier. Newer ones are better.
tnx..
Motts4 years ago
Would it be possible to add to and modify this into a sort of mini amp with a headphones jack?
matthewpoage (author)  Motts4 years ago
The ATS is mono which would cut down on its usefulness with headphones. I imagine that you could replace the speaker with a second jack (there would be lots of room without the speaker) for headphone output. To get stereo input and output you would have to put in a second amplifier chip or use one designed for two channels. Better to look into something like the CMoy Pocket Amplifier which is designed as a headphone amplifier, has stereo output, volume control, and is built using perfboard rather than an etched circuit board.
right, good plan. I have dozens of these tins anyway, no point in trying to conserve one. Thanks for the link!
How complicated would it be to use a 1/4 inch jack instead on an 1/8 inch? would you just switch out the jacks or would you have to upgrade the components as well?
matthewpoage (author)  monopoly_on_372124 years ago
Space considerations would probably make it difficult to fit in a larger 1/4 inch jack. There is little enough room between the speaker and the front side of the tin for the 1/8 inch jack. Other than that, there would be no need to upgrade any components. It might be easier to get a 1/8 to 1/4 adapter to plug in the outside.
could you just use a 3.5mm input jack instead of a stereo input and 3.5mm male-male input?
nomuse4 years ago
That's clever, fitting a boost power converter in there. Given the relative efficiencies of boost conversion vs. 7805, it should get the same or better battery life as a 9V (and the batteries are cheaper, too).
Delta254 years ago
is needed the 9 volt imput or you only need de AA battery?
JamesGecko4 years ago
 What is the audio quality like? Does it sound, say, tinny?

Yes. Somebody had to say it.
mdmx934 years ago
were did you find the MAX756CPA? ive been looking for it for weeks now and nobody has it in stock...could you give me an alternative to the chip?
matthewpoage (author)  mdmx934 years ago
This seems to be a problem :-( It seems like Maxim has replaced the MAX756 8 pin DIP with much smaller packages but the same low input voltage (see the MAX1674). The second version of the Minty Boost uses a different chip but it requires 2 AA batteries, not just one. Mouser has a few of the MAX756 left (as of April 4, 2010) but it seems like a redesign or breakout board so that the smaller packages can be used is in order. You might also contact Maxim directly and ask for a few samples. You never know.
is there any way i can use an LM311 chip as the amplifier. can you do a schematic for this chip please as this is the only chip i can get easily. BTW great guide!
matthewpoage (author)  chicken121754 years ago
I haven't had experience using the LM311 chip, but a quick survey suggests it's really a comparator and not an amplifier. I would recommend sticking with the LM386-3 (more powerful than the LM386-1) because I know it works :-). The online electronics supply companies will accept small orders, so the parts should be available (I suppose this depends on where in the world you live). Good luck sourcing parts.
OK
cheers for the advice and will try to get an LM386 chip
adumas4 years ago
Hi. Love this design.. Quick question...

Going over the schematic one more time, what is J2 on the lm386 diagram?
matthewpoage (author)  adumas4 years ago
J1 and J2 are "jumpers". They are just pieces of wire that go on the top of the board (small pieces of green wire visible on the top of the board). It allows me to use the top of the board in a few places without making (or having made) an actual double-sided board. The part in the schematic allows me to connect to wires in the schematic and have something to move around on the actual layout. The wires coming into the jumper on the schematic are set to the same net, so the effect is just having a single wire.
Sorry, but I seem to have directed my reply to myself and I don't know if you got the message. Here it is again - just to be on the safe side...

Oh, thanks.. I was scratching my head over that one...

 We built your circuit, etched out a board and it works great... So we are thinking of making several more...

Have you sent the Eagle layout to a company for etching? And, is the one provided the most current one?

Also, I tried to use the gain feature - I put a 10uf cap, pos to pin 1 and neg to the middle lug of an audio 10k pot; then took one of the other ends of the pot and hooked it to pin8,... I then could control the volume - but the sound quality is not clean... I'm using an ipod as the source... If I don't use the gain and just the volume from the ipod - it is clear... If I lower the sound from the ipod to mid range, and then try to use the gain and increase the volume, then there is distortion... Is that how the gain is supposed to work?
1-40 of 112Next »