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

Can't set nRF24l01 + in Tx

Sorry for bothering you, but my nRf doesn't send anything at all, i check fifo_status reg, put data in TX fifo, then set CE pin four about 25 us, clear CE pin and check fifo_status again, nothing was sent, i also check status reg. Can you guys check on my code ?, i have to finish my project in 3 weeks, please help me. By the way, i am using atmega328 to communicate with nrf24 TX.c

Parents
  • Hi

    I have a couple of suggestions and follow up questions:

    Could you save and attach the serial output you get after running the application?

    Have you tried to read one of the standard registers (like CONFIG) before writing it to make sure that you get the expected default value? This will ensure that the SPI is configured correctly.

    Could you try to add a 2ms delay after setting the power up bit in the CONFIG register? This to give the 16MHz XO time to start.

    Last but not least, you should add a delay after pulsing CE before you check the FIFO_STATUS register again. Sending a single packet typically takes around 2-300us, and you won't have time to send it in 25us alone.

    Best regards
    Torbjørn

  • Here my code TX.c, RX.c after you gave me some advises, but i still can't communicate between transmitter and receiver

    image description

    • COM4 is a transmitter
    • COM6 is a receiver
Reply Children
No Data
Related