RF24Audio v1.0
Arduino Audio Streaming Realtime with NRF24L01 radios
Loading...
Searching...
No Matches
Macros | Variables
userConfig.h File Reference

macros for customization of RF24Audio More...

Go to the source code of this file.

Macros

#define SAMPLE_RATE   24000
 The sample rate to use for transferring audio samples.
 
#define RF_SPEED   RF24_1MBPS
 configure the RF data rate
 
#define ANALOG_PIN   A0
 The pin that analog readings will be taken from (microphone pin)
 
#define ENABLE_LED
 Indicator pin.
 
#define TX_PIN   A1
 Button pin to trigger recording & transmission.
 
#define VOL_UP_PIN   A2
 Pin for external volume control.
 
#define VOL_DN_PIN   A3
 Pin for external volume control.
 
#define REMOTE_TX_PIN   A4
 Pin for externally triggering remote recording.
 
#define REMOTE_RX_PIN   4
 Pin for externally stopping remote recording (needs timeout enabled)
 
#define buffSize   32
 The size of the memory buffer to use.
 
#define speakerPin   9
 The pin used to output audio on UNO.
 
#define speakerPin2   10
 The pin used to output audio on Nano.
 
#define ledPin   6
 

Variables

const uint64_t pipes [14]
 Radio pipe addresses for the 2 nodes to communicate.
 

Detailed Description

macros for customization of RF24Audio

Macro Definition Documentation

◆ buffSize

#define buffSize   32

The size of the memory buffer to use.

Not really configurable (set to maximum by default).

◆ ENABLE_LED

#define ENABLE_LED

Indicator pin.

Using pin 6 on Uno enables audio visualization. Pin 13 on Mega 2560 (TIMER0 COMPA)

Note
The pin number cannot be changed.

◆ RF_SPEED

#define RF_SPEED   RF24_1MBPS

configure the RF data rate

These are not limits, just a guide:

  • RF24_250KBPS will do 13-20khz+ sample rate
  • RF24_1MBPS up to 24-44khz+
  • RF24_2MBPS for higher.

◆ SAMPLE_RATE

#define SAMPLE_RATE   24000

The sample rate to use for transferring audio samples.

Maximum Range: Sample rate 16000, RF_SPEED RF24_250KBPS
Maximum Quality: Sample rate 44000, RF_SPEED RF24_2MBPS

Note
44khz+ sample rate requires 8-bits per sample

Variable Documentation

◆ pipes

const uint64_t pipes[14]
Initial value:
=
{
0xABCDABCD71LL,
0x544d52687CLL,
0x544d526832LL,
0x544d52683CLL,
0x544d526846LL,
0x544d526850LL,
0x544d52685ALL,
0x544d526820LL,
0x544d52686ELL,
0x544d52684BLL,
0x544d526841LL,
0x544d526855LL,
0x544d52685FLL,
0x544d526869LL
}

Radio pipe addresses for the 2 nodes to communicate.