unhappyelf
Posts: 5
Joined: Tue May 19, 2015 8:38 pm

RPi 2 and NRF24L01

Tue May 19, 2015 9:05 pm

Ok I have been scratching my head for a while over this(I think its a big hole now) but I have had a hard time getting the RF24Network library to work on both devices. I think I finally fixed the Arduino but the Pi is not working right. Any help would be appreciated.

Output from the Arduino, I believe it is working fine(disregard the 11111111 I have an GPIO chip that is reporting it status)
Arduino.PNG
Arduino_Output
Arduino.PNG (16.28 KiB) Viewed 1211 times
Output from the Pi, these values change a lot. I know this is prob a SPI issue but I am at a loss to determine the issue.
pi.PNG
Pi_Output
pi.PNG (22.47 KiB) Viewed 1211 times
I am using the RF24 library from http://tmrh20.github.io/RF24/, I am also using the RF24Network examples.
Last edited by unhappyelf on Fri May 22, 2015 8:36 pm, edited 1 time in total.

unhappyelf
Posts: 5
Joined: Tue May 19, 2015 8:38 pm

Re: RPi 2, nrf24l01+pa+lna, and Arduino

Wed May 20, 2015 9:31 pm

Ok, I completely re-flashed the OS changed the config.txt to enable SPI and ran through the instructions here http://tmrh20.github.io/RF24/RPi.html. Things still are not looking right.
pi2.PNG
pi2.PNG (31.02 KiB) Viewed 1168 times
Any thoughts?

unhappyelf
Posts: 5
Joined: Tue May 19, 2015 8:38 pm

Re: RPi 2, nrf24l01+pa+lna, and Arduino

Thu May 21, 2015 7:54 pm

Ok I looked through bcm2835.h and bcm2835.c. It is trying to use /proc/device-tree/soc/ranges to pull the address block of the device. I went to that file and it appears to be empty. Any ideas still?

unhappyelf
Posts: 5
Joined: Tue May 19, 2015 8:38 pm

Re: RPi 2 and NRF24L01

Fri May 22, 2015 8:39 pm

So I verified the wireless works on two ardunio's just fine. Still seems to be a initialization issue with the radio on the Pi. Please, any help would be appreciated.
pi4.PNG
pi4.PNG (42.82 KiB) Viewed 1117 times

RetiredProgrammer
Posts: 14
Joined: Sat Jan 10, 2015 10:42 pm

Re: RPi 2 and NRF24L01

Sat May 30, 2015 11:10 pm

Check pi4.png
It looks like you have different data rates and different CRCs. They need to match if Arduino and RPi are to communicate.

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: RPi 2 and NRF24L01

Sun May 31, 2015 1:23 am

Yes retiredProgrammer is right.

Data rate needs to b the same.
Channel needs to be the same.


Transmit device need to send the address of a received device. The 5 byte device ID don't seems to match also.

You could check my post about the nRF24L01.

viewtopic.php?p=720838#p720838

unhappyelf
Posts: 5
Joined: Tue May 19, 2015 8:38 pm

Re: RPi 2 and NRF24L01

Mon Jun 01, 2015 8:26 pm

This I understand, however when using the library and example I can never get it to set the correct channels. It was my understanding that when using the RF24Network library that the channel and data rate would set automatically like it dies on the Arduino. Do these settings need to be explicitly configured on the Pi? I had assumed it was a communication issue during setup of the radio.

Return to “Troubleshooting”