New Library: RF24Audio - Realtime Audio Streaming, Multicasting and More

Hello did you use any resistors between the speakers and the digital pins. and the push buttons to transmit and volume up and down? i try to compile it from the getting started sketch and i get

C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\RF24Audio\RF24Audio.cpp: In function 'void __vector_11()':
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\RF24Audio\RF24Audio.cpp:460: error: 'class RF24' has no member named 'writeFast'

okay my arduino program was messing up it compile now and when on both arduinos i got one to tramsit button my mp3 player on it for transmitting and a second one for receiving with a speaker on it i hooked it up as in your wiring and used the get started sketch but i here nothing coming from the receiving side i see the led lights up on the receiving side blinking randomly fast when i hit the transmit button but that's all how come no music?

this is what i got from the receiving side in the serial monitor

STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1	= 0xabcdabcd71 0x544d52687c

RX_ADDR_P2-5   = 0x3c 0xc4 0xc5 0xc6

TX_ADDR	    = 0xabcdabcd71

RX_PW_P0-6    = 0x20 0x20 0x20 0x00 0x00 0x00

EN_AA	    = 0x00

EN_RXADDR  = 0x06

RF_CH	    = 0x4c

RF_SETUP    = 0x07

CONFIG    = 0x0e

DYNPD/FEATURE	= 0x00 0x00

Data Rate    = 1MBPS

Model  = nRF24L01+

CRC Length    = 16 bits

PA Power    = PA_MAX

test
test
test
test
test
test
test
test

what am i missing to make the audio work?

Well that is a good sign, if the LED is showing different activity when transmitting, then it should mean you are receiving the audio. The first thing to do is try raising the volume on the receiver using a button or via code (see the gettingStarted sketch)

Next, check connections. On Uno, the speaker should go to pin 9 and ground, or pins 9 and 10. On Mega, pins 11,12 respectively, so double check those connections. You can also connect an LED to the speaker pins to see visually if there is any activity there.

If you still have no sound from there, you can try opening up the userconfig.h in the RF24Audio library folder, in a text editor, and un-comment the line #define speakerTX. After this, re-upload the sketch to the transmitter, and try connecting the speaker directly on the transmitter. This will tell you if the transmitter is processing the audio correctly prior to sending, and where the problem is at.

hello i get some sound now i can here something but it's really bad like static but i can somewhat make out the song I'm listen to and that's all not clear at all. i even tried a amp speakers i used for testing with power amp speakers same thing.

this is how i have the transmitter setup. A0 to + on the mp3 and GND to the - on the mp3 player for transmitting and receiver haves D9 for the + on the speakers and D10 for the for the - on the speakers.

i did a audio recording form my pc mic sense my cellphone is dead i forgot to charge it i can't do a video and show it but here is what it sounds like.

http://www.codehunter.info/audiorecording.wma

It sounds like a problem with the input levels. With the mp3 player, you most likely need a pre-amp. If you follow my previous instructions, I'm willing to bet it would sound the same when you hook a speaker up directly on the transmitter.

hello i tried with a preamp i used the lm386 with a speaker i also used my computer speakers that i know that works same thing. same noise just louder now lol

I would suggest what I suggested before, in connecting the speaker to the transmitter, to see if the audio is coming in normally. If it sounds the same, it is likely a problem with your input levels and/or preamp.

I'm sorry how do i hook it to the transmitter on the D9 and D10 pins i did that all ready so I'm not sure what you mean by connecting them into the transmitter?

My previous instructions indicated how to enable the speaker on the transmitter. This allows testing without the receiver. You then connect the speaker to the transmitter instead of the receiver to test the audio directly. If you get the same result, it is most likely your preamp or input levels.

hello i did uncomment the #define speakerTX in the userconfig.h file and reupload it and made no difference. as far as the preamp i tried it without that just the speaker it's self was a whole bunch of static noise on there and when i tried the preamp it just made it louder but static noise or whatever you call it still the same no difference just only louder with the preamp.

could it be something with the sample rate or the buffer size or speed that i see in the Userconfig.h file maybe something a little to low or a little to much? i don't know anything about it but was just wonder?

letme check my wiring and see if anything is off. i'll post a update in a few.

I checked wires it looks like on the transmit side i had something off. one of the pin i think D12 and D13 was reversed is why i wasn't hearing no music come from it. so i reverse them to where they should be and i got music out of here is a video i made of it. now have to figure out how to get better sound it sounds distorted a lot so not sure how to fix that now.

http://www.codehunter.info/20141003_220102.mp4

I can't view that video file, it shows as corrupt, but there are a couple things you can do, beyond adjusting the volume of the mp3 player and receiver:

In the userconfig, if you comment out #define ENABLE_LED it will improve perfomance a bit.

You can also try to uncomment #define oversampling to see if that helps with quality.

I find the best results are between 16khz and 24khz sample rate.

hello strange i just watched the video on my pc whole thing showed i will try to re upload it and put it on a web page player but i will try the rest of what you said thank you and keep updated.

that got a little better then before but still here a strange noise like over powering somehow i keep adjusting the volume. to see

it got a little better but not much.

Same thing as before heard a little high pitch noise but the same.

Well, when using the #define speakerTX option, it is a direct feed from the analog input to the timer output, so if you have distortion etc, it is most likely an issue with your input signal. If that is the case, there is not much I can do from my end. Plz keep in mind this is never going to produce CD quality audio with just the Arduino ADC.

i understand about the Quality the problem I'm having is i can not understand what is coming out of the speaker sounds muffled you like in them old call boxes they use to use in drive throughs lol it doesn't have to be perfect all i wanted to do is at least understand what comes out of the speaker you know?

what does the #define speakerTX do in the userconfig.h file its comment out?

I think the schematics wiring for the nRF24L01 may be incorrect. Could someone verify them. The schematic shows:

1.VCC, 2.CS, 3.CE, 4.MOSI, 5.SCK, 6.MISO, 7.IRQ, 8.GND

My module shows:

1.GND, 2.VCC, 3.CE, 4.CS, 5.SCK, 6.MOSI, 7.MISO, 8.IRQ

Thanks

I was under the impression this was suitable for beginners. I have been working on this for a week with no success except to get the sound to the speaker on the transmitter using the #define SpeakerTX.

The only changes I made was to change the pins in the RF24_config.h from 16,15.14 to 12,11,13 to match my Pro Mini.

Has anyone got this thing working except for the one in the video.

Please Help.

Thanks
Ralph