+ Post New Thread
Results 1 to 11 of 11
  1. #1
    Member level 2
    Points: 254, Level: 3

    Join Date
    Dec 2016
    Posts
    43
    Helped
    0 / 0
    Points
    254
    Level
    3

    microcontroller USB or FT232

    Hi,

    I want to connect PC to microcontroller using USB for audio/music transfer. There are PIC microcontroller with USB like pic18F4450 and another option is to use AVR with FT232 chip. Would these work for my application? Is 8-bit micro sufficient? Also what bit size DAC should be used if I want to play the audio/music with speaker from the microcontroller.

    •   Alt21st April 2017, 11:18

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 7,315, Level: 20
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,307
    Helped
    306 / 306
    Points
    7,315
    Level
    20

    Re: microcontroller USB or FT232

    44kHz x 16 bit x 2 channels = 1 408 000 bod (bit per second)
    I suppose not
    Love me or hate me. All infractions will be ignored.



  3. #3
    Member level 2
    Points: 254, Level: 3

    Join Date
    Dec 2016
    Posts
    43
    Helped
    0 / 0
    Points
    254
    Level
    3

    Re: microcontroller USB or FT232

    Quote Originally Posted by Easyrider83 View Post
    44kHz x 16 bit x 2 channels = 1 408 000 bod (bit per second)
    I suppose not
    which microcontroller do you suggest for my application



  4. #4
    Super Moderator
    Points: 41,798, Level: 49
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    8,549
    Helped
    2061 / 2061
    Points
    41,798
    Level
    49

    Re: microcontroller USB or FT232

    Hi,

    why no simple USB - audio device? Cheap and ready to buy. Plug and play.
    Or a blouetooth - audio device? Cheap and ready to buy. Plug and play.

    Why do you need a microcontroller?
    If you want to process the digital audio data somehow, then I recommend a DSP.
    If you don´t want to process the data, then I don´t recommend a controller at all.

    klaus



    •   Alt21st April 2017, 13:05

      advertising

        
       

  5. #5
    Member level 2
    Points: 254, Level: 3

    Join Date
    Dec 2016
    Posts
    43
    Helped
    0 / 0
    Points
    254
    Level
    3

    Re: microcontroller USB or FT232

    I need to control the switching of audio/music from different type of source to headset, so using a microcontroller for that. Also I have to play the audio/music on a loudspeaker so a DAC is also required. What DAC is suitable for playing music MP3,MP4? or can i use just anyone?



    •   Alt22nd April 2017, 02:06

      advertising

        
       

  6. #6
    Super Moderator
    Points: 41,798, Level: 49
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    8,549
    Helped
    2061 / 2061
    Points
    41,798
    Level
    49

    Re: microcontroller USB or FT232

    Hi,

    Switching audio sources: a little drawing could clarify what exactely you want to do.
    (Usually this is done in the PC)

    MP3, MP4: I assume there is no DAC that can process this data format directely. I need an MP3/MP4 decoder for this.
    (Usually this is done in the PC, too)

    Klaus



  7. #7
    Member level 2
    Points: 254, Level: 3

    Join Date
    Dec 2016
    Posts
    43
    Helped
    0 / 0
    Points
    254
    Level
    3

    Re: microcontroller USB or FT232

    i have attached picture to illustrate what i want to do? I want to listen to music from PC on the headset/headphone or record from headphone mic input in PC. how can I do this, which microcontroller can be used and any other things(IC,DAC etc) I need to add/know about. I am thinking of pic18F4550 for microcontroller. will it work?

    thanks

    Click image for larger version. 

Name:	illustrate.jpg 
Views:	3 
Size:	21.8 KB 
ID:	138109
    Last edited by jimkess; 22nd April 2017 at 12:24.



  8. #8
    Super Moderator
    Points: 22,487, Level: 36
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    6,861
    Helped
    835 / 835
    Points
    22,487
    Level
    36
    Blog Entries
    5

    Re: microcontroller USB or FT232

    There are better and worse options. The ideal choice in my opinion would obviously be a microcontroller with enough capacity of RAM in order to buffer the data received in a FIFO array, such as the ARM or any other which has abundant external volatile memory, since your system must to be previously loaded before playing the music, in case the PC data upload rate is not synchronized with the sampling rate - which is the expected scenario.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  9. #9
    Super Moderator
    Points: 41,798, Level: 49
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    8,549
    Helped
    2061 / 2061
    Points
    41,798
    Level
    49

    Re: microcontroller USB or FT232

    Hi,

    the picture doesn´t say what/how you want to switch audio sources...

    Klaus



    •   Alt22nd April 2017, 13:59

      advertising

        
       

  10. #10
    Member level 2
    Points: 254, Level: 3

    Join Date
    Dec 2016
    Posts
    43
    Helped
    0 / 0
    Points
    254
    Level
    3

    Re: microcontroller USB or FT232

    Let's forget about the switching the audio sources for the moment, i would be happy to receive any good advice for the simple diagram above first. what microcontroller, ARM is high end, i think there are other easier microcontrollers that can do the job. i will attach the picture with audio sources later. but i think it is not hard to imagine different audio/music sources that is connected to micro which switches them. For example audio sources from cell phones connected to system via another usb or bluetooth



  11. #11
    Super Moderator
    Points: 41,798, Level: 49
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    8,549
    Helped
    2061 / 2061
    Points
    41,798
    Level
    49

    Re: microcontroller USB or FT232

    Hi,

    Still unclear what you want to achieve.
    Why a microcontroller at all? Why not simple USB - audio?

    The same questions like in post#4..

    Klaus



--[[ ]]--