hello everyone,
i bought this module nRF24L01 online, and i am learning about it now. I am using now this tutorial to learn about it.
i have some questions please :
1 - what is exactly the IRQ pin, it says it's an interrupt like the one on arduino but what is it's application here ?! why would someone use an interrupt in the case of Transceiver ?
2 - as i can see the module consumes 5(without IRQ) to 6 (with IRQ) depending on the library, so is there anyway of consuming less pin from the arduino ?!
it's not quite right to take all these pins when i must use other devices like the shift registers and others ?
3 - In the RF module (1 way) we define the baud rate, here how is the baud rate defined ?!
now i can see it's an SPI device, look at the example sketch at the end of the tutorial, i can see they included the SPI.h library but did not used any functions directly in the sketch so i would assume that these functions are used in the nRF library used, and if i need to use the SPI for other devices, i simply use SPI.--- function and that's it ?
firashelou:
1 - what is exactly the IRQ pin, it says it's an interrupt like the one on arduino but what is it's application here ?! why would someone use an interrupt in the case of Transceiver ?
There's an example showing how to use IRQ. In the example, when the transceiver receives data, it actives the interrupt pin. This gives you a signal to setup a ISR on the Arduino.
firashelou:
2 - as i can see the module consumes 5(without IRQ) to 6 (with IRQ) depending on the library, so is there anyway of consuming less pin from the arduino ?
It is a bi-direction SPI device, that's at least 4 pins. I don't know what CSN is used for, but appears to be necessary.
firashelou:
it's not quite right to take all these pins
Says who?
firashelou:
3 - In the RF module (1 way) we define the baud rate, here how is the baud rate defined ?!
This library (and prehaps the default library, I didn't check) have a setDataRate() function.
firashelou:
this is the library i am using so i guess all is good, but what is the default baud rate used is it 2000 or 9600 ?
Dig into the library more. Looks like the default datarate is in the Mbps, not kps. Also, the module seems to use "data rate" and not "baud", so that might be affecting your searches.
firashelou:
and what about to consume less pins ?
Already addressed that.
firashelou:
if i need pins directly from arduino for other applications ?
MarkT:
Well if you think you can do better, go right ahead and make your own VLSI mixed analog-digital transceiver
chip with 2Mbit/second transfer rate 8)
SPI is a bus, you'd normally share it with several peripherals anyway.
lol ! i meant if there is a chip or something that would help but seems not, so the only is the SPI yes sharing as much as possible and i think i can use a shit register alone for the SS pins if i do have more than 3 devices