For my project I use NRF24L01 module and Arduino UNO or Nano to send data and audio,I use RF24Audio library and i can send audio data,but i want to read analog data from (for example A5) and check it, If the A5 value is greater than X i want to transmit audio,but The problem is that in receive mode of NRF module in nrf24Audio library I cant read the analog data! so how can I read the analog data in this mode?
and also some time I want to transmit only data(for example temperature data) how can i transmit data when I use RF24Audio library?
Thanks in advance
blh64:
You could try setting up a timer on an interrupt that reads A5 and reacts to it.
Hello blh64
thank you for hint.
Can you explain more about it?
actually i want to transmit some data (not audio) all time and sometime i want to send audio based on some calculation on A5 input,it means some time i need to active RF24Audio to transmit audio and at other times transmit normal data
If you are in the middle of transmitting audio inside some library function, the only way you can regain control is by setting an interrupt timer that periodically calls your code. Do a google search and you will find all kinds of examples. Try them. Play with them. Change them to try to do what you want. When you get stuck, post your code and your problem and people will help.
guzu: @ag0stin0 Did you manage to find a way to transmit both data and audio with the nrf24l01? I am working on a project and i need it to do the same.
Please understand the nrf2401 will ONLY transmit or receive data. It is up to you to convert audio to digital using an a/d converter and then send the resulting value. On the receive end, the data must be converted back to audio using a d/a converter.
Paul_KD7HB:
Please understand the nrf2401 will ONLY transmit or receive data. It is up to you to convert audio to digital using an a/d converter and then send the resulting value. On the receive end, the data must be converted back to audio using a d/a converter.
Paul
Thank you for the information. I was thinking of using the RFAudio library.
As to your knowledge, will this work or I have to buy the ADC and the DAC?
guzu:
Thank you for the information. I was thinking of using the RFAudio library.
As to your knowledge, will this work or I have to buy the ADC and the DAC?
Thank you.
A cursory glance at the documentation shows it should work for you. You will have to study the doc to see what is required electronically.