Git Product home page Git Product logo

Comments (7)

TMRh20 avatar TMRh20 commented on July 22, 2024

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.

from autoanalogaudio.

TMRh20 avatar TMRh20 commented on July 22, 2024

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.

from autoanalogaudio.

shubhampaul avatar shubhampaul commented on July 22, 2024

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.

from autoanalogaudio.

harmverbeek avatar harmverbeek commented on July 22, 2024

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.

from autoanalogaudio.

TMRh20 avatar TMRh20 commented on July 22, 2024

from autoanalogaudio.

harmverbeek avatar harmverbeek commented on July 22, 2024

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

from autoanalogaudio.

TMRh20 avatar TMRh20 commented on July 22, 2024

from autoanalogaudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.