Pages: [1]   Go Down
Author Topic: Arduino and LM386  (Read 2456 times)
0 Members and 1 Guest are viewing this topic.
Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have  sketch witch generate some sound using tone() function.  I need louder sound so I plan to use LM386
http://www.national.com/ds/LM/LM386.pdf. I want to use first circuit from page 5
So questions are :
It will work with tone() function ?
Can I have separate voltage supply for arduino and amplifier (each powered from 9V battery ) ?
This circuit will handle 3W  4ohm speaker ?
Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

Montreal
Offline Offline
Faraday Member
**
Karma: 31
Posts: 2611
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It will work with tone() function ?
Yes. It will work with whatever you supply to its input.
Quote
Can I have separate voltage supply for arduino and amplifier (each powered from 9V battery ) ?
Yes, no problem.
Quote
This circuit will handle 3W  4ohm speaker ?
I think so, but word "handle" has to be cleared.

LM386N-1, LM386M-1, LM386MM-1 VS = 6V, RL = 8Ω, THD = 10% 250 325
                                      LM386N-3 VS = 9V, RL = 8Ω, THD = 10% 500 700 mW
                                    LM386N-4 VS = 16V, RL = 32Ω, THD = 10% 700 1000 mW

As you can see, LM386N-3 satisfy your requirements for Voltage, but not for R load and Power. Probably, it will works with 4 ohm load, the same time distortion level would be higher.
And power, of course, less than 25% of what speaker can accept.
 


I
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 42
Posts: 5612
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Something else to keep in mind (and this is only anecdotal here) is that I have heard that the LM386 is very picky to develop with, on a breadboard especially. You can build your circuit exactly like the schematic in the datasheet, and it will fail to work. Best advice I have heard (but never tried) was to keep your leads and components as close to the LM386 on the breadboard as possible, keep the leads to the parts as short as possible, and don't take any shortcuts (and use the components specified in the reference design, unless you know -exactly- what you are doing). Apparently, a lot of these issues go away when using a proper PCB layout (but you still need to take into account routing of lines, length, etc). Likely it's a capacitance issue, from what I have gathered...

smiley
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Distortion don't bother me too much because I need simple and moderately loud  "beep" smiley-razz 
I plan to build it on universal board, it could solve some connection problems.
I noticed now that I bought N1 version...
« Last Edit: July 22, 2011, 04:43:24 pm by Max89 » Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

Montreal
Offline Offline
Faraday Member
**
Karma: 31
Posts: 2611
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you need only beep, why LM386?
One transistor thats all you need.


* amplifier2.png (16.88 KB, 800x600 - viewed 77 times.)

* amplifier3.png (13.04 KB, 800x600 - viewed 54 times.)
« Last Edit: July 23, 2011, 05:04:58 am by Magician » Logged

Poland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Newbie
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok I see two NPN/PNP transistors connected together and  connected to arduino pin using some potentiometer (10 kohm will be good ? ) Or one Darlington transistor
Abut second scheme , what capacitor I should use ?
Hmm this look way simple than using LM386.
« Last Edit: July 23, 2011, 03:34:42 am by Max89 » Logged

I have solution !
But it involves spherical chickens in frictionless vacuum...

Montreal
Offline Offline
Faraday Member
**
Karma: 31
Posts: 2611
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Transistor shown is Darlington, TIP120 or similar.
10 k pot is O'K.
Schematic with two resistors and capacitor (10 uF) could be used also to amplify sound from any headphone jack, like laptop, mp3 player etc.


* amplifier2.png (16.88 KB, 800x600 - viewed 53 times.)
« Last Edit: July 23, 2011, 05:06:07 am by Magician » Logged

Pages: [1]   Go Up
Jump to: