Hi, I've found a few libraries available online for NRF24l01+ using AVR. But I haven't found on Nordic GitHub or website. is there any?
Regards, Hami.
Hi, I've found a few libraries available online for NRF24l01+ using AVR. But I haven't found on Nordic GitHub or website. is there any?
Regards, Hami.
Hi
There are no official AVR libraries for the nRF24L01+, no. The only official software for the nRF24L01+ is the one you can find in application note nAN24-12.
That said, the only thing you have to do to make the nAN24-12 code work with different MCU's is to implement the SPI and GPIO functionality, everything else is standard C code that you can recompile for your MCU of choice.
I wouldn't be surprised if the AVR libraries are based on this example.
Best regards
Torbjørn
Hello,
I'm Trying to use this library with a nrf52832. I opened the different files and I'm not able to find where I have to Implement the SPI and GPIO functionnality... Can I have some help please ?
Hi Randy
I made such an example a while ago that I can share in case it proves helpful.
Please note that it was made for SDK v13, and is provided "as is", but you should be able to port it to a later SDK if needed:
l01_test_app.zip
Most of the nRF24L01 related functionality can be found in the nrf5dk_l01.c file.
Best regards
Torbjørn
Hello,
Ok thank you very much I'll try this and I will tell you if it works.
Best regards
Good luck
Just let me know when you have some results.
After porting it to SDK 14.2.0 can I use it on the transmitter part and the receiver part too ? They will comunicate together ?
Regards
Hi Randy
Yes, you can use this code both on the transmitter and receiver side.
As long as they are configured with similar RF parameters, and you set them in PTX and PRX mode respectively, you can send packets from the PTX to the PRX.
(remember to set CE high on the PRX side to enable the receiver)
Best regards
Torbjørn
Hi Randy
Yes, you can use this code both on the transmitter and receiver side.
As long as they are configured with similar RF parameters, and you set them in PTX and PRX mode respectively, you can send packets from the PTX to the PRX.
(remember to set CE high on the PRX side to enable the receiver)
Best regards
Torbjørn
Hello
I tried this code but it didn't work. I have the nrf24l01+ this code is compatible with it right ?
How can I set the PTX or PRX mode ?
There is a documentation about the different header and source files ?
Best regards
Hi Randy
This code is compatible with the nRF24L01+, yes.
To set the PTX/PRX mode simply call hal_nrf_set_operation_mode(HAL_NRF_PTX) or hal_nrf_set_operation_mode(HAL_NRF_PRX)
The only documentation for the hal_nrf library can be found in the nRFgo SDK.
After installing the SDK you should find it in the following file:
C:\Nordic Semiconductor\nRFgo SDK 2.3.0.10040\Docs\nrf_sdk.chm
Just keep in mind that this is the documentation for the original nRF24L implementation. The port I sent you is designed to be compatible but is not an official release, and is not tested or documented separately.
Are you able to probe the signal lines between the nRF52 and your module to make sure that all the signals look OK?
Best regards
Torbjørn
No I can't do this... I have nothing to probe that signal... but I will try to read this documentation
The best of luck.
If you plan to do a lot of hardware engineering I would strongly suggest you try to acquire some kind of scope or logic analyzer. It will save you a lot of time when working on things like these ;)
Yes you're right I will acquire an oscilloscope soon