nRF24 / RF24Audio

Arduino library for streaming data/audio from analog inputs via NRF24L01 modules
http://nrf24.github.io/RF24Audio
262 stars 88 forks source link

NRF24L01 Analog Output for Speaker #39

Closed AmeerHafez closed 3 years ago

AmeerHafez commented 3 years ago

Hello there. I tried to read the output of a receiver and the signal looked digitized. Is there anyway to output it in analog form?

And yes I tested it with a normal speaker and it sounds fine but the signal I receive on the oscilloscope looked like a pwm signal

Avamander commented 3 years ago

What are you trying to do? What do you mean by "tried to read"?

AmeerHafez commented 3 years ago

read as in viewing it on oscilloscope. I'm trying to output analog signal from the receiver side but it looked digitized..

TMRh20 commented 3 years ago

It is PWM. The smaller Arduino devices don’t have a DAC. The best you can do i think is filter the output to get more of an analog signal.

On Sep 1, 2021, at 4:56 AM, AmeerHafez @.***> wrote:

 read as in viewing it on oscilloscope. I'm trying to output analog signal from the receiver side but it looked digitized..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

AmeerHafez commented 3 years ago

mhmm .. if i lower the sample rate of the transmission is it going to make it more like an analog signal? I'm planning to have a similar input signal by avoiding filters or DAC .. so what i understand is that arduino nano/uno can not output analog?

Avamander commented 3 years ago

so what i understand is that arduino nano/uno can not output analog?

No, they can't.

AmeerHafez commented 3 years ago

It is PWM. The smaller Arduino devices don’t have a DAC. The best you can do i think is filter the output to get more of an analog signal.

Well what kind of filter? and how do I design the filter? Sorry I'm new to this

Avamander commented 3 years ago

A DAC would work better, but you can use a low-pass filter that lets your intended frequency range trough, but filters the rest. There are calculators out there for low-pass filters.

AmeerHafez commented 3 years ago

A DAC would work better, but you can use a low-pass filter that lets your intended frequency range trough, but filters the rest. There are calculators out there for low-pass filters.

mhmm.. is it possible to output the analog signal using arudino duo? It has embedded DAC inside it...

TMRh20 commented 3 years ago

The auto analogue audio library supports Arduino due but is a bit harder to use.

On Sep 2, 2021, at 5:40 AM, AmeerHafez @.***> wrote:

 A DAC would work better, but you can use a low-pass filter that lets your intended frequency range trough, but filters the rest. There are calculators out there for low-pass filters.

mhmm.. is it possible to output the analog signal using arudino duo? It has embedded DAC inside it...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

AmeerHafez commented 3 years ago

Ok thank you.. That is what i needed to know