Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

differences with rf24audio? #1

Closed
ricgyver opened this issue Nov 13, 2016 · 7 comments
Closed

differences with rf24audio? #1

ricgyver opened this issue Nov 13, 2016 · 7 comments

Comments

@ricgyver
Copy link

Hi,
I was looking at this new library. Which are the differences with rf24audio library?

I want to send audio from a nord to the master using the radios. Which library is better?

Thanks!

@TMRh20
Copy link
Owner

TMRh20 commented Nov 13, 2016

Hey, thanks for your interest.

The main idea behind this library is to provide some sort of simplified API/generic interface to the DAC, ADC, Timers and DMA functionality of Arduino Due that allows a wide range of applications like RF24Audio to be built in short order.

For example, I want to be able to use this to create other libraries or applications like my RF24Audio or TMRpcm library, or any sort of audio apps, but for the Arduino Due. Since we are talking Arduino, I also want others to be able to create cool apps without having to learn all about the SAM3X chip & internals.

One main difference is that AAAudio will not directly include any radio or device specific code, other than for the Due itself. From making this, I have a number of ideas that I might look at applying in RF24Audio now also.

I want to send audio from a nord to the master using the radios. Which library is better?

Hehe, well that depends. Technically the Due uses 12-bit ADC & DAC where Arduino is 10-bit ADC & PWM. The Due can handle higher rates as well so audio quality can be better. This library can also be made to operate with RF24Audio, acting as a relay & speaker etc. so is much more versatile.

@TMRh20
Copy link
Owner

TMRh20 commented Nov 20, 2016

Also just added AVR (Uno, Nano, etc) support.

Am now planning support for many Arduino devices, so that TMRpcm and RF24Audio libs will work on all Arduinos using this as a base.

In terms of 'better' this will be it.

@shubhampaul
Copy link

shubhampaul commented Mar 1, 2017

btw i ported rf24audio for an external 8-bit dac,didnt do much just removed ramp functions and forwarded the buffer directly to a 8-bit port on uno (atmega328) at timer interrrupt... it works great.

@harmverbeek
Copy link

harmverbeek commented Jan 21, 2018

I tried WirelessMicrophone and WirelessSpeaker on 2 Arduino Uno.
Didn't compile at first because TcChannel is not defined.
Solved that by putting this in void loop():

`
#if !defined (ARDUINO_ARCH_AVR)
TcChannel * t = &(TC0->TC_CHANNEL)[0];
TcChannel * tt= &(TC0->TC_CHANNEL)[1];

  Serial.print("Ch0:"); 
  Serial.println(t->TC_RC);      
  Serial.print("Ch1:"); 
  Serial.println(tt->TC_RC);
#else
  Serial.print("Ch0/1:");
  Serial.println(ICR1);
#endif

`

And put this line at the top:
#define ARDUINO_AVR_ARCH

When I play some music on A0 I get this on the Serial Monitor of WirelessMicrophone:
Ch0/1:996

And this on the Serial Monitor of WirelessSpeaker:
Ch0/1:1000

But no output.

By the way, RFAudio works on both Unos.

@TMRh20
Copy link
Owner

TMRh20 commented Jan 22, 2018 via email

@harmverbeek
Copy link

I understand.
The main thing that interested me is that it seems the resolution and speed can be set higher than with rf24audio.

@TMRh20
Copy link
Owner

TMRh20 commented Jan 22, 2018 via email

@TMRh20 TMRh20 closed this as completed Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants