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

PTX

Hello Nordic,

I try to establish communication between an ATmega328 based board an an Arduino Nano, so far without success. The goal is to improve a RF433 "Wire". 3 weeks ago, I started the project, but for 1 week, I do not make any progress. Please have a look to the attached pdf. Obviously I tried different settings, but probably not the right one! I spent time on internet, but didn't find how to fix.

Hope you can help, thank you anyway for your time.

JacquesNrf24L01+.pdf

  • JacquesBrunet said:
    With the simplest program you advised me, no ack, no DPL, no ART

    Maybe a misunderstanding, but my suggested minimum configuration presume that you let all other registers be default values. That means there will be ack and retransmits.

    Kenneth

  • Sorry for my misunderstanding. That time, I left all default values on the PTX side and configured Arduino PRX accordingly, hoping I do not forget something somewhere :

    100RF24/examples/GettingStarted
    Which radio is this? Enter '0' or '1'. Defaults to '0'
    radioNumber = 0
    *** PRESS 'T' to begin transmitting to the other node
    SPI Speedz = 10 Mhz
    STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
    RX_ADDR_P0-1 = 0xc2c2c2c2c2 0xe7e7e7e7e7
    RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
    TX_ADDR = 0xc2c2c2c2c2
    RX_PW_P0-6 = 0x04 0x04 0x04 0x04 0x04 0x04
    EN_AA = 0x3f
    EN_RXADDR = 0x02
    RF_CH = 0x02
    RF_SETUP = 0x0b
    CONFIG = 0x0b
    DYNPD/FEATURE = 0x00 0x00
    Data Rate = 2 MBPS
    Model = nRF24L01+
    CRC Length = 8 bits
    PA Power = PA_LOW
    ARC = 0

    I expect to send to address 0xe7e7e7e7e7,  PRX should receive datas via Pipe1.

    Fifo status says first Datas in TX FIFO (0b00000001) and then TX FIFO empty (0b00100001). RX FIFO is always empty. Nothing arrives to PRX

    Status says RX FIFO empty TX FIFO full (0b00001111).

    Observe_TX says 0b00000000 nothing lost nothing retransmitted.

    I cannot understand what's append. Any idea ? By the way, can you tell me where to buy "official" modules, just in case mine are not compatibles ?

    Another question, I cannot find the field to change my password. Just reset via email. can you help please ?

    With best regards

    Jacques

  • And you CE is set high on the PRX after configuration?

    Kenneth

  • Yes Kenneth, arduino sketch says "radio.startListening(); // put radio in RX mode" ; "RF24 radio(7, 8); // using pin 7 for the CE pin, and pin 8 for the CSN pin" drives pin D7 high( 4.29 V). "5V pin" of Arduino is only 4.26 V and NRF24L01+ Vcc is 3.14 V coming out of an external 3.3 regulator  with 1000µF capacitor (not the 3.3 Arduino pin). I also tried that 3.3 Arduino pin which finally is better than 5V pin + external reg, but sill no data received.

    I found the way to change PW, forget my request.

    Best regards

    Jacques

  • Hi,

    I don't really have any good suggestions for further debugging, other than possible to read out all registers on both PTX and PRX to check for any inconsistency.

    You can on the PTX simply flush the TX between attempts and clear the status bits by writing 1 to them. Make sure that the payload length here is 4 when using W_TX_PAYLOAD, since RX_PW_P0 = 0x04. I don't understand why you have set EN_RXADDR = 0x02, since that means you only enable pipe1 on the PRX, while on the PTX it will use the tx_addr/pipe0 address when using W_TX_PAYLOAD. I suggest to set EN_RXADDR = 1 or 3 on the PRX.

    Please also see suggestions for debugging in Appendix A in the nRF24L01+ datasheet.

    Best regards,
    Kenneth

Related