This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF24L01+ very simple working example code requested

Up to now I´m unable to do a reliable simple communication from a PTX to a PRX, just scatered messages arriving.

So, I´m asking a very basic working example source code, no matter the microcontroler, in any language, but specific for nRF24L01+.

This example do not need to be with auto-ack, etc. Just a plain transmission betwen PTX => PRX.

  1. list of registers that should be initialized and their respective values at PTX and PRX
  2. registers that must be written to send a packet at PTX
  3. registers that must be checked to see if a package arrived at PRX

Also, if you have a working example source code of an auto ack with payload, that would be great too.

Thanks in advance
Jose

Parents
  • From your post I am assuming that some messages are getting thru. One problem with this style of radio is you do not know which end (TX or RX) is at fault. I try to dedicate a module to just monitor the traffic. That doesn't always help when I screw up the transmitter.

    My current nrf24l01 project is based on Microchp PIC24 chips and home brew boards. No problem with sharing code other than it is dependent on a event driven RTOS that may just add confusion.

    If you want to post your solution I would be glad to review and or test if the hardware is similar.

Reply
  • From your post I am assuming that some messages are getting thru. One problem with this style of radio is you do not know which end (TX or RX) is at fault. I try to dedicate a module to just monitor the traffic. That doesn't always help when I screw up the transmitter.

    My current nrf24l01 project is based on Microchp PIC24 chips and home brew boards. No problem with sharing code other than it is dependent on a event driven RTOS that may just add confusion.

    If you want to post your solution I would be glad to review and or test if the hardware is similar.

Children
No Data
Related