kekecjan
Newbie level 4
Hello, I am working on nRF24L01+ with ATmega328pb. I am using Atmel studio 7. I read pdf before: nrf24l01_tutorial_0.pdf.
i am trying to send data from transmitter to receiver. Well i did managed to send 1 byte of data and it worked well. Then i send 3 bytes and what happend is i got 3 bytes with the same payload. Payload consists of numbers : TX_BUF[0]=k++ (always counts just to see if it's still alive and sending), TX_BUF[1]=144; TX_BUF[2]=167; (two fixed values). On the receiver i get 3 bytes of TX_BUF[0].Plus i also get lost packages, that's probably my fault because i am not using IRQ pin (interrupts), and its not synchronized (only my guess, i am not for sure).
I didnt copy code here because it has a lot of lines soo i am just sharing main.c with you : nrf24l01_TX_RX.txt .
(i am not using ADC, i am using UART with interrupts for debugging, i wrote SPI in main.c)
Hope anyone can solve my problem cuse i am in dead end.
i am trying to send data from transmitter to receiver. Well i did managed to send 1 byte of data and it worked well. Then i send 3 bytes and what happend is i got 3 bytes with the same payload. Payload consists of numbers : TX_BUF[0]=k++ (always counts just to see if it's still alive and sending), TX_BUF[1]=144; TX_BUF[2]=167; (two fixed values). On the receiver i get 3 bytes of TX_BUF[0].Plus i also get lost packages, that's probably my fault because i am not using IRQ pin (interrupts), and its not synchronized (only my guess, i am not for sure).
I didnt copy code here because it has a lot of lines soo i am just sharing main.c with you : nrf24l01_TX_RX.txt .
(i am not using ADC, i am using UART with interrupts for debugging, i wrote SPI in main.c)
Hope anyone can solve my problem cuse i am in dead end.