Soy un principiante cuando se trata de electrónica. Entonces quiero reproducir sonidos usando mi controlador y estoy usando un WT020-SD-16P
Conecté el módulo a mi microcrontroller como en la imagen. y agregó un interruptor en el pin 9, 12, 13 del módulo para su reproducción/pausa, siguiente y anterior. Refiriéndose al foro , no es cierto que tenga una limitación de tarjeta de memoria de 1 gb, así que usé SandDisk genuino de 2 GB. Según el manual ([WT020-SD-16P]( http://e-gizmo.blogspot.com/2013/03/wtv-020s-voicewav-player-module-quick.html ) solo reproduce archivos de sonido AD4, pero para estar seguro, incluí tanto el archivo wav como el AD4. Después de configurarlo, probé el programa de muestra en el foro:
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
int clockPin = 3; // The pin number of the clock pin.
int dataPin = 4; // The pin number of the data pin.
int busyPin = 5; // The pin number of the busy pin.
/*
Create an instance of the Wtv020sd16p class.
1st parameter: Reset pin number.
2nd parameter: Clock pin number.
3rd parameter: Data pin number.
4th parameter: Busy pin number.
*/
Wtv020sd16p wtv020sd16p(resetPin,clockPin,dataPin,busyPin);
void setup() {
//Initializes the module.
wtv020sd16p.reset();
}
void loop() {
//Plays synchronously an audio file. Busy pin is used for this method.
wtv020sd16p.playVoice(0);
//Plays asynchronously an audio file.
wtv020sd16p.asyncPlayVoice(1);
//Plays audio file number 1 during 2 seconds.
delay(5000);
//Pauses audio file number 1 during 2 seconds.
wtv020sd16p.pauseVoice();
delay(5000);
//Resumes audio file number 1 during 2 seconds.
wtv020sd16p.pauseVoice();
delay(5000);
//Stops current audio file playing.
wtv020sd16p.stopVoice();
//Plays synchronously an audio file. Busy pin is used for this method.
wtv020sd16p.asyncPlayVoice(2);
delay(2000);
//Mutes audio file number 2 during 2 seconds.
wtv020sd16p.mute();
delay(2000);
//Unmutes audio file number 2 during 2 seconds.
wtv020sd16p.unmute();
delay(2000);
//Stops current audio file playing.
wtv020sd16p.stopVoice();
}
pero cuando lo subí sin errores, intenté presionar el interruptor de reproducción/pausa conectado al pin 9 del módulo. Cuando traté de presionar los interruptores no hay salida de audio. Estoy usando un altavoz de 8 ohmios. ¿Hice algo mal? Pero seguí todas las instrucciones en los foros. por favor ayúdame
Estoy usando un altavoz piezoeléctrico. ¿Hice algo mal?
El diagrama muestra un altavoz de 8 ohmios. Los altavoces piezoeléctricos son capacitivos y tienen una mayor impedancia.
Puede ser mejor hacer que el módulo funcione solo primero
Como dice tu enlace
usuario71613