TMRh20 / TMRpcm

Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported
http://tmrh20.blogspot.com
592 stars 178 forks source link

Support for Arduino 101? #51

Closed rdpoor closed 4 years ago

rdpoor commented 7 years ago

Any plans to support the Intel-based Arduino 101?

TMRh20 commented 7 years ago

Yup, it probably will work as-is or require only a few changes.

For anybody that has one, feel free to post issues.

TMRh20 commented 7 years ago

Wait a second, I thought this was regarding the RF24 library. In this case, probably not anytime soon.

rdpoor commented 7 years ago

FWIW, I wrote a PCM-based audio DAC for the Arduino 101 using ARC_V2_TMR1 for the sample clock and one of the Quark PWM timers for PWM. Was really rather simple. We couldn't use it in our production system since the servo motors also require TMR1 and I haven't re-written it to use just Quark timers, but that appears relatively straightforward.

cebaker commented 6 years ago

Hey I am working on a similar idea but do not need the servo motors. Would you happen to still have the work around or examples of how to do it in you public repositories. Thanks

rdpoor commented 6 years ago

Let me dig through my archives -- no promises! :)

rdpoor commented 6 years ago

Hi @cebaker -- no promises, but try this:

https://github.com/rdpoor/arduino101-pwm-dac

Let me know if it works for you or if you get stuck.

If the former, consider "hardening" the code and creating a pull request for TMRpcm. If the latter, let me know and I'll dust off my Intel Curie board to see if I can reproduce the problem.

cebaker commented 6 years ago

Well after days of work on this I must admit I have given up. I was trying to record 2 seconds of audio and save it into program memory then run this wav file in our already trained neural network for voice recognition. So I also needed to figure out a way to record into program mem. This and some more libraries where needed that where on the Arduino Uno . Because of this I emailed my professor just a few hours ago and he informed me this morning that he might have an Arduino Uno with sd card shield which you may know supports the TMRpcm library and others important libraries for recording .I will meet with him today in his office but if he doesn’t have it I will put more work down this path.

P.s. Sorry for the long response , just wanted to fully explain. I will link my repository with the full project after I am done if you are interested.

Get Outlook for iOShttps://aka.ms/o0ukef


From: rdpoor notifications@github.com Sent: Tuesday, April 3, 2018 1:28:59 AM To: TMRh20/TMRpcm Cc: Cedrick Emil Baker; Mention Subject: Re: [TMRh20/TMRpcm] Support for Arduino 101? (#51)

Hi @cebakerhttps://github.com/cebaker -- no promises, but try this:

https://github.com/rdpoor/arduino101-pwm-dac

Let me know if it works for you or if you get stuck.

If the former, consider "hardening" the code and creating a pull request for TMRpcm. If the latter, let me know and I'll dust off my Intel Curie board to see if I can reproduce the problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/TMRh20/TMRpcm/issues/51#issuecomment-378142346, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEaDlr0h3wRqrACH7nOL0EVmi6nG-riaks5tkxargaJpZM4KMELF.