A small update.
There is interesting module on the market. This is RF-Nano where nRF24 is integrated with Arduino Nano in the one small board. So making connection and 3V3 power supply is not needed.
With them you can have multilink or simple radiolink very fast.
One thing is that they dont use IRQ signal from nRF radio.
So I must modify library and make some improvements by the way.
First is that IRQ is not used. Instead Status register is readed where bit 6 meaning of new data received. So this is pulling.
Next improvement is adding pullup on MISO by setting Portb.4 = 1 after Hardware SPI is configured. This improve stability.
Then a bound is given for reading from radio into buffer. Because radio can receive some trash, number of bytes to read can exeed the buffer len (33 bytes here).
Then it could happen that some variables after buffer may have been overwritten. So I add checking and read only 33 bytes max.
In the example (and my project actually) Im using only 5 byes payload but you can use more. Simply if data arrived then data is in the buffer Rx_bytes(1-33)
If you want to send something then like in the attached sub simply call Tx_mode() and put data bytes into FiFo buffer.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum