Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I am not getting any sound from MP3 Player

Status
Not open for further replies.

pic.programmer

Advanced Member level 3
Joined
Aug 19, 2015
Messages
773
Helped
141
Reputation
284
Reaction score
140
Trophy points
43
Activity points
7,531
I am not getting any sound from MP3 Player

I am using EasyPIC Fusion v7 development board. It has onboard MP3 Player. I am trying the example MP3 project that comes with mikroC PRO PIC32 Compiler and it is for EasyPIC Fusion v7 development board. The TFT displays all messages properly but I am not able to hear any sound from the MP3 player. My earphones are good because they work with my mobile. Is there anything wrong in the code ?

I have set the DIP switches properly as shown in the EasyPIC Fusion v7 manual's page no. 28.

https://www.mikroe.com/easypic-fusion/
 

Attachments

  • MP3.rar
    312.8 KB · Views: 49
Last edited:

Since you are using demo project and the development board from MikroE guys,
have you consider emailing them for support?
They are quite friendly.

I am sure not many here in forum has a board like it, that is why no replies yet.

The help you are asking is very general and not related to specific issue in hardware or software which we can only guess.
 
Did you hear any clicks or buzzes or hiss or anything? That would tend to confirm an electronic connection. You'll need to do more tests to make sure that a signal is traveling from the input to the output.

In addition, mp3 audio is condensed data which requires decoding. Have you successfully built devices which play mp3 audio?
 
I have never built any MP3 device earlier. This is the first time I am trying with EasyPIC Fusion v7 dev board's onboard VS1053 MP3 Player. I am just testing the example MP3 project that comes with the mikroC PRO PIC32 Compiler for EasyPIC Fusion v7 development board. I have not modified the code in any way. I have contacted mikroE technical support but they have not yet replied. The example uses MMC and MMC_Fat_16 mikroC libraries. I am doing a Biometic Attendence System and I want to provide voice messages like "Attendence Registered", "User already enrolled", Enrolling successful", etc... For this I want to useMP3 player and hence I am testing this example project. I know that MP3 is a compressed audio file. I also know that VS1053 codec will compress and decompress the data while recording and playing respectively.

I have not read the VS1053 manual and don't know how to communicate with it. I also don't know whether the code of the example project is correct or not. My MP3 file is ok because it plays on my PC.
 

consider using a WAV file also,
VS1053 can decode both.
 

Ok. I will try wave file also. I didn't hear any buzz, click or hiss from the MP3 Player. It has two jacks, one for earphones and one for mic and I am using a stereo earphone. My earphone plug is compatible with the MP3 players stereo jack.
 

You first have to determine the issue is with SDcard or VS1053

You can put a beep into VS1053 without reading SD card
Code:
      // VS1053b: Poke in a beep into the audio buffer
      {
         __y s_int16 *p = audio_buffer;
         while (p < audio_buffer + AUDIO_BUFFER_SZ) {
            *p += 2000;
            p += 27;
         }
      }
 

MP3 player was good. The problem was with code. I increased the buffer size from 482 to 65535 and it played 4 seconds of music and then it repeats that 4 second music. It doesn't go forward. I thing file pointer is not updating. Maybe a problem with mikroC MMC_FAT16 library. I have asked mikroE to solve the problem.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top