0
\$\begingroup\$

I have made a circuit that produces a 3.3V high when its active and 0V when it is off.

Now I would like to extend it with a speaker that plays some sort of alarm (although it shouldn't be too intrusive, but clearly understandable) that I wan't to activate with said circuit. So it plays some sort of tune or alarm for as long as the signal is high.

So what would be a simple way to create a triggerable alarm/tune without the need for a computer?

Ideal would be some sort of chip with preprogrammed music or something on it that I could just hook up to a speaker and that could simply connect to the output of the circuit.

I have looked for something like that but it doesn't seam to exist, they always require a computer or a raspberry pi to set the samples.

And just connecting a speaker to the signal outright just creates an irritating tone.

\$\endgroup\$
8
  • 1
    \$\begingroup\$ If it creates a tone when you connect 3.3 volt, it's not a speaker and you can't really get it to play a tune, as such. \$\endgroup\$
    – pipe
    Jan 1, 2019 at 22:47
  • 2
    \$\begingroup\$ I have an annoying coffee mug that plays a little tune whenever you pick it up and expose its bottom to light. It runs on a lithium coin cell, so I'm sure it would run from your 3.3V output. The "guts" for such devices are readily available online. \$\endgroup\$
    – Dave Tweed
    Jan 1, 2019 at 22:56
  • \$\begingroup\$ @DaveTweed Whyyyy... \$\endgroup\$
    – pipe
    Jan 1, 2019 at 22:58
  • \$\begingroup\$ So I can just gut an old alarm clock or toy or something? Don't I need to to get the chip (which presumable is soldered directly in to the board) too? \$\endgroup\$ Jan 1, 2019 at 22:59
  • 1
    \$\begingroup\$ You would take the whole board (the chip is usually bonded directly to it anyway) and treat it as a "module", attaching wires as needed. \$\endgroup\$
    – Dave Tweed
    Jan 1, 2019 at 23:01

4 Answers 4

0
\$\begingroup\$

Sonalerts (trade name) are piezoelectric sounders that can make a wide variety of noises when power is applied, with no other components. You may hear one version as the audible signals on some pedestrian crosswalks. They should be available from most major distributors.

\$\endgroup\$
2
  • \$\begingroup\$ Sounds pretty intrusive, but I'll have a look thanks. Although I was more looking for like a "You got a call!" and less like a "GET OFF THE ROAD" kind of alarm \$\endgroup\$ Jan 1, 2019 at 23:13
  • \$\begingroup\$ Some Sonalerts are more obnoxious than others - one used on the crosswalks here makes a "cuckoo" sound. \$\endgroup\$ Jan 2, 2019 at 0:35
0
\$\begingroup\$

A relatively simple circuit that might get the job done is an oscillator based on a NOT gate (also happens to be my choice for Stack Exchange icon). Schematic for simple oscillator based on NOT gate

This will create a single frequency square wave tone where the frequency can be adjusted by the capacitance value C. The value of C will need to be relatively high to bring frequency down to audio range. Without any amplifier, you are relying only on the output current of the transistor(s) within the NOT gate to drive the speaker which may or may not be sufficient for your application.

\$\endgroup\$
2
  • \$\begingroup\$ Seams a bit overkill \$\endgroup\$ Jan 2, 2019 at 8:47
  • \$\begingroup\$ 2 components seem overkill ? \$\endgroup\$
    – R.Joshi
    Jan 2, 2019 at 9:55
0
\$\begingroup\$

In the last century I could buy a chip which produced a (rather distorted) 3-tone descending major chord chime with decay. Used for door chimes. As I still hear the sound in the bake-off section in Lidl, I guess it or similar chips are available.

\$\endgroup\$
0
\$\begingroup\$

just connecting a speaker to the signal outright just creates an irritating tone

Actually, it should only create a click, unless you have poorly filtered 3.3V power.

A mechanical device that operates at 3.3V with sonic output could be a doorbell-style mechanism. The basic principle of these is a delayed turn-off switch, where, after the clapper swings to hit the bell, an electrical contact opens which turns off the power to the electromagnet that swung the clapper over...

Another option might be a low-voltage DC motor, either with an eccentric weight (like some old phone/pager vibrators) or a moving part that (a) rotates a music-box drum mechanism, (b) drops a marble from a feed hopper every time it rotates or (c) draws a bow across a violin or (d, e, f...)

Few options are as energy efficient, though, as the resonant-plate beeper in an alarm watch. That requires modulation, not just voltage, applied, but you can tune it for sound frequencies that are very easy to hear.

\$\endgroup\$
1
  • \$\begingroup\$ I feel like all these suggestion are just kinda overkill. I thought theere was just a chip either with a speaker built in or that I could hook to one that produces a tone or a tune when set on high. Like those things they put in birthday cards, just bought of the shelves instead of hacked out of a card \$\endgroup\$ Jan 2, 2019 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.