Setting volume when using SD.0_FATEngine?
Dan E
Posts: 61
Do i need to set 'newVolume' in PCM2.1_DACEngine in order to hear my output when using SD.0_FATEngine?
I have tested my circuit and been able to hear my ipod when hooking it up to my MAX4411ETP amplifier circuit and speakers, and double checked the wiring from my micro SD card adapter to the propeller.
So i thought maybe the error might be something I have not defined. Are there other values that need defining in the PCM2.1_DACEngine object?
i noticed the global variables at the bottom of the object where all set to 0, as I am not familiar enough with spin yet, i wasnt sure if somewhere else in the code they are changed.
Thanks,
Dan
I have tested my circuit and been able to hear my ipod when hooking it up to my MAX4411ETP amplifier circuit and speakers, and double checked the wiring from my micro SD card adapter to the propeller.
So i thought maybe the error might be something I have not defined. Are there other values that need defining in the PCM2.1_DACEngine object?
i noticed the global variables at the bottom of the object where all set to 0, as I am not familiar enough with spin yet, i wasnt sure if somewhere else in the code they are changed.
Thanks,
Dan
Comments
Here is what I have added already:
Thanks,
Dan
When I loaded the object files I was able to hear a soft distorted noise out of the speakers, but still no WAV file. I changed the volume afterwards to see if that was it, and still same response, same amplitude.
Next I added the command 'repeat' at the top of the pub, to see if in fact anything was playing, and the response was a continuous beep. But when I compiled everything without the SD card in the adapter, I received the same continous beep response.
I'm not sure what to determine by this. Is it possible there is a mismatch in frequency or the speed the file is outputed?
Thanks,
Dan
I'm guessing that you are not hooking up the pin numbers to your hardware correctly. Seriously.... check your hardware pin numbers out. Also make sure that the name of the wav file is what you think it is.
The only problem that would be in the code is what the constants are... your wav file... and your hardware.