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

Regarding Fpwm Frequency for Arduino Nano using NRF24L01+ #43

Closed AmeerHafez closed 2 years ago

AmeerHafez commented 2 years ago

Hello there,

I have used the audio library on arduino nano for quite some time and it works very well. I'm doing this for my project and I'm wondering what is the default PWM frequency for audio sampling on the default output D9?. As well, how to change the PWM frequency or access it from the RF24Audio library?..

TMRh20 commented 2 years ago

The default frequency is 24khz and can be changed by editing the userConfig.h file found in the library folder.

On Feb 1, 2022, at 1:00 PM, AmeerHafez @.***> wrote:

 Hello there,

I have used the audio library on arduino nano for quite some time and it works very well. I'm doing this for my project and I'm wondering what is the default PWM frequency for audio sampling on the default output D9?. As well, how to change the PWM frequency or access it from the RF24Audio library?..

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

AmeerHafez commented 2 years ago

So the PWM frequency is the same as the audio sampling rate?

TMRh20 commented 2 years ago

Yup!

On Feb 1, 2022, at 5:16 PM, AmeerHafez @.***> wrote:

 So the PWM frequency is the same as the audio sampling rate?

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

AmeerHafez commented 2 years ago

Thank you :) !