[PD] LibPd on microcontroller

Peter Nyboer pnyboer at slambassador.com
Tue May 10 02:10:54 CEST 2016


It has SPI, no i2s, so that makes the traditional DAC shield impossible. But, USB is cool. You can use the cheepie Cmedia dongles if you want http://www.amazon.com/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=sr_1_1?ie=UTF8&qid=1462838915&sr=8-1&keywords=usb+audio+interface <http://www.amazon.com/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=sr_1_1?ie=UTF8&qid=1462838915&sr=8-1&keywords=usb+audio+interface> or a higher quality thing like this http://www.ebay.com/itm/231620915394?_trksid=p2060353.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT <http://www.ebay.com/itm/231620915394?_trksid=p2060353.m1438.l2649&ssPageName=STRK:MEBIDX:IT>
I2C is not really suitable for audio. 
In theory, you could bitbang i2s over GPIO, but you’d be in the weeds in not only building a driver, but probably having timing issues, too.

Peter

> On May 9, 2016, at 5:05 PM, Christof Ressi <christof.ressi at gmx.at> wrote:
> 
> :-o Wow, I'll immediately buy one of these, no matter if it's the right thing for my project. Just wanna try it out.
> 
> Let's say I use a CHIP for my project: I'd hook up an external ADC and DAC chip (CHIP has only mono input and stereo output), write some code to interface with the hardware and let libPd do the DSP stuff. Now, what would be the best way to interface with ADC/DAC chips? I noticed that CHIP doesn't have SPI. Would I2C be fast enough? I aim for 44.1 kHz/16 bit, but I can also do with less... 
> 
> Thanks!
> 
> Christof 
> 
> Gesendet: Dienstag, 10. Mai 2016 um 00:39 Uhr
> Von: "Peter Nyboer" <pnyboer at slambassador.com>
> An: pd-list at lists.iem.at
> Betreff: Re: [PD] LibPd on microcontroller
> 
>  
> 
> Content-Type: text/plain; charset=UTF-8
> 
> Hi, thanks for your answer! I'll definitely have a look at heavy and compare the results with some bits of my own DSP code.
>  How do you plan to output audio
> from it? It has SPI that could get you to connect to some DACs but
> nothing of top quality audio. One can also use PWM to simulate analog
> out.
> I actually thought of connecting ADCs and DACs via SPI, I don't need top audio quality, I'm rather looking for cheap effect/sound boxes :-). On the other hand, the ESP8266 also an I2S interface (dedicated to audio). I've seen videos of people streaming and playing mp3 files with it!
> 
> Once I've done my tests (probably not before July), I'll tell my results.
> Not sure how cheap is cheap, but the CHIP from Next Thing Co is $9 + shipping http://getchip.com and has audio, wifi, and bt built-in. I’ve been running PD on it. There’s still some issues with duplex audio in PD, but there is vast potential for audio fun on this thing.
> disclosure: I work for NTC
> P
>  _______________________________________________ Pd-list at lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160509/e76ce03d/attachment.html>


More information about the Pd-list mailing list