1

I need a small package buzzer to replace the regular piezo buzzer which is too big for my design, so I tried the KLJ-5030.

I tested by applying 3V to positive pin and GND to negative pin and heard a small crackling but not really sound (beep).

The datasheet does not explain well how this works. I am wondering, does this require other components in order to work?

Update:

I tested with Arduino at 4000 Hz and got 46db on my decibel meter placed at 30cm: not good enough for my need.

Unicorn
  • 161
  • 5

3 Answers3

5

The page you linked to states "Externally Driven".

That part is a transducer (a very small loudspeaker) only, not a buzzer - it must be driven by an external oscillator to make a sound. The datasheet indicates that it should be driven by a 3 V 4000 Hz signal.

Peter Bennett
  • 57,014
  • 1
  • 48
  • 127
4

You need an external 4kHz square wave source and driver.

You may be able to generate the 4kHz with an Arduino, but it's better not to try to drive this directly with the Arduino pin- DC resistance is only 12Ω so you'd be basically short-circuiting the GPIO and the sound won't be that large.

If you have a 5V Arduino you can drive it like this:

schematic

simulate this circuit – Schematic created using CircuitLab

For 3.3V:

schematic

simulate this circuit

The diode is optional according to the transducer datasheet recommendations, but I'd put it in just for luck unless you 'scope the voltage at the collector and find it will within limits. If you leave it out, a 2N4401 would be safer.

Spehro Pefhany
  • 376,485
  • 21
  • 320
  • 842
  • 1
    Hmm, great, with this I'm able to get improvement from 46db(with Arduino only) to 55db (adding 2N222 transistor, 10 Ω and powered at 3.3V). Thanks – Unicorn May 16 '23 at 19:52
  • What do think if I remove the resistor? Because I have requirement of 3.3V only anyway this buzzer have Rated Voltage of 3V. – Unicorn May 16 '23 at 19:56
  • If your supply is 3.3V you can definitely remove the resistor, it's only there to keep it < 4V with a 5V supply. You could also drive the transistor saturated which would give a bit more volume again. Say a 300 ohm base resistor, ground emitter and transducer between collector and +3.3. You should ensure the non-sound state does not drive current through the transducer and transistor (low when off for the two drive circuits discussed by myself, the datasheet one uses a PNP so will be the opposite). – Spehro Pefhany May 16 '23 at 19:58
  • First let me rectify, I miss actually the resistor on my first so the improvement was gotten without resistor. And when adding the 10 Ω, I got no sound. Secondly I do not understand the "transistor saturated" concept. – Unicorn May 16 '23 at 20:05
  • If you have no sound your resistor might be open or much higher than 10Ω. I'll add another schematic for the second if my words don't do it. – Spehro Pefhany May 16 '23 at 20:08
  • Why the choose of SS8050? Is my 2N222 enough? And where is connected R1? – Unicorn May 16 '23 at 20:17
  • R1 to your GPIO. SS8050 is a bit beefier, that's all. – Spehro Pefhany May 16 '23 at 21:02
2

As the Arduino can supply only about 20 mA on GPIO pins, the following should work to provide 3 V P-P into 12 ohms (250 mA):

schematic

simulate this circuit – Schematic created using CircuitLab

Voltages

Speaker current

For a 3.3 V system, remove diode D1. Voltage will be about 2.35 V P-P.

Voltages for 3.3 V

Here is another possibility for generating a full 3V drive to the speaker. I have added an inductor and resistor in the supply to limit the cross-conduction current, which I have purposely increased by introducing a 10 us rise and fall time of the 4 kHz signal.

Voltages

Speaker current and supply current

schematic

simulate this circuit

PStechPaul
  • 7,195
  • 1
  • 7
  • 23
  • I'm a little confused why you'd use a push/pull driver if you are going to have a diode on the output. – penguin359 May 17 '23 at 16:44
  • It was used to lower the output voltage to the required 3 V, but I see what you mean. It would probably be better to move the diode to the supply, so that the pull-down will work properly. However,it needs 2 diodes. – PStechPaul May 17 '23 at 18:58
  • OK, that makes a little more sense now. – penguin359 May 18 '23 at 07:14