Pages: [1]   Go Down
Author Topic: using Arduino Leonardo as USB audio input device  (Read 2497 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

i've made a little modification to the USBCore to use the Leonardo as usb audio device for isochronous input streaming.
Works at 10(16)bit, 2 channels up to 16kSps with standard linux usb audio driver.

Not fast enough for me, but maybe interesting for other stuff.

It's only a quick and dirty hack, but perhaps someone can include it in the core in a clean way?


* arduino_usb_audio-2013-12-30.tar.xz (17.36 KB - downloaded 37 times.)
Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Idrino,

i found your post this morning an gave it a try on OS X. (10.9.4). I'd really like to get this working.

After patching a brand new Arduino IDE (1.0.5) with your files, your example sketch compiled and uploaded with no errors and runs fine (printing to serial console).  Unfortunately this Macbook still won't list the Leonardo as an audio device.

The OS X Console shows something like this:
Code:
12.08.14 17:45:32,000 kernel[0]: AppleUSBCDCACMData: Version number - 4.2.1b5, Input buffers 8, Output buffers 16
12.08.14 17:45:33,000 kernel[0]: USB Sound assertion in AppleUSBAudioDictionary at line 2927
12.08.14 17:45:33,000 kernel[0]: USB Sound assertion in AppleUSBAudioDictionary at line 1389
12.08.14 17:45:33,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 6049
12.08.14 17:45:33,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 364
12.08.14 17:45:33,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 286

I also gave it one try on a win 7 laptop with no better results after letting it search & install drivers for the Leonardo. Which OS are you using?
At this point, i really don't mind audio quality. Do you see a chance of getting this to work by tweaking some numbers in your files?
Do you have more information on this project out there or got it any further? It feels like you've been overseen for a while. I find this very interesting.

best, kuk




Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ha, i missed copying the first line from the OS X console.

Code:
12.08.14 17:43:29,000 kernel[0]: USBF:    2718.835    AppleUSBEHCI::DoControlTransfer sync request on workloop thread.  Use async!
12.08.14 17:43:30,000 kernel[0]: AppleUSBCDCACMData: Version number - 4.2.1b5, Input buffers 8, Output buffers 16
12.08.14 17:43:30,000 kernel[0]: AppleUSBCDC: Version number - 4.2.1b5
12.08.14 17:43:32,000 kernel[0]: USBF:    2722.276    AppleUSBEHCI::DoControlTransfer sync request on workloop thread.  Use async!
12.08.14 17:43:33,000 kernel[0]: AppleUSBCDCACMData: Version number - 4.2.1b5, Input buffers 8, Output buffers 16
12.08.14 17:43:34,000 kernel[0]: USB Sound assertion in AppleUSBAudioDictionary at line 2927
12.08.14 17:43:34,000 kernel[0]: USB Sound assertion in AppleUSBAudioDictionary at line 1389
12.08.14 17:43:34,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 6049
12.08.14 17:43:34,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 364
12.08.14 17:43:34,000 kernel[0]: USB Sound assertion in AppleUSBAudioDevice at line 286
12.08.14 17:43:34,000 kernel[0]: AppleUSBCDC: Version number - 4.2.1b5
Logged

Forum Administrator
Offline Offline
God Member
*****
Karma: 52
Posts: 646
I find plain exciting
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

can you send a pull request?

m
Logged

Pages: [1]   Go Up
Jump to: