Go Down

Topic: Grove speaker - takes a "signal" input? (Read 1 time) previous topic - next topic

fbonetti

Hello everyone,

I recently purchased a speaker by Grove:

http://www.seeedstudio.com/wiki/Grove_-_Speaker

This speaker is not a like a typical Piezo speaker that has two inputs (VCC and Ground). This speaker takes VCC, Ground, and Signal. The wiki explains that this speaker can be controlled by either analog or digital, but only describes the digital method. The method seems a little hacky to me and can only produce a square wave signal. It essentially writes HIGH to the speaker, delays x number of microseconds, and then writes LOW. By doing this repeatedly, a square wave is formed that oscillates at a specific rate.

This is fine to me but I would like to know how to control the speaker using an analog signal, so that I can hopefully produce a smoother waveform. Any suggestions?

larryd

Quote
how to control the speaker using an analog signal

The Arduino can only produce on/off signals to this speaker.
You can use digitalWrite(..) or tone() to send these same on/off signals to your device.
You can pass the Arduino o/p through a low pass filter to achieve better sound quality.

Obviously you can attach a microphone (i.e. an analog signal) to it's i/p to amplify voice etc.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

Go Up