Grove - Speaker Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/Grove_-_Speaker Bazaar: http://www.seeedstudio.com/depot/Grove-Speaker-p-1445.
Document Revision History Revision Date Author Description 1.0 Sep 21, 2015 Victor.
Contents Document Revision History ···································································································2 1. Introduction ···················································································································2 2. Features··························································································································3 3.
Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality, such as operating without following manual guide, natural disasters or force majeure, we take no responsibility for that. Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
1. Introduction The Grove- Speaker is a module which consists of power amplification and voice outputs. The loudness can be adjusted by the on-board potentiometer. With different input frequency, the loud-speaker generated different tones.
2.
3. Specifications Item Min Typical Max Unit Working Voltage 4.0 5.0 5.
4. Usage The speaker can emit a variety of sounds like a car horn, doorbell and ignition. The different sounds are based on the frequency of the input signal. You can supply different frequency signal to this module with Arduino. Arduino generates these signal via PWM or even digital write and delay. Here we are going to show you how to generate these signals using delay (), the speaker sound bass 1~7.
void pinInit() { pinMode(SPEAKER,OUTPUT); digitalWrite(SPEAKER,LOW); } void sound(uint8_t note_index) { for(int i=0;i<100;i++) { digitalWrite(SPEAKER,HIGH); delayMicroseconds(BassTab[note_index]); digitalWrite(SPEAKER,LOW); delayMicroseconds(BassTab[note_index]); } } Note: Due to the influence of the capacitance, the module can only output the bass signal, and the treble is unable to emit.
5. Resource Grove - Speaker Eagle File How to generate different tone with MCU Grove_-_Speaker_v1.0_brd.pdf Grove_-_Speaker_v1.0_sch.