Go Down

Topic: using Arduino Leonardo as USB audio input device (Read 2 times) previous topic - next topic

idrino

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?


kuuk

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: [Select]

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





kuuk

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

Code: [Select]

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

Massimo Banzi


Go Up