Closed napikwaan closed 8 years ago
First thing that comes to mind is, have you made sure the pins you are using the correct ones? The logical pin numbering of the Raspberry Pi is different than the physical order of pins. For example, logical GPIO 22 is what would be traditionally called pin 15 of the header itself.
Thanks for the reply. When referencing pin numbers in my previous comment I was referring to the GPIO pins. My pins are wired like this:
nRF24L01 | Pi |
---|---|
VCC | 3.3v (17) |
GND | GND (9) |
CSN | GPIO 8 (24) |
CE | GPIO 22 (15) |
MOSI | GPIO 10 (19) |
SCK | GPIO 11 (23) |
MISO | GPIO 9 (21) |
IRQ | GPIO 7 (26) |
Incidentally, I have been been able to successfully test the nRF24L01 using the instructions on HomeAutomationForGeeks so I know the unit is functional. I'm sure there's something basic I'm missing here, I just haven't been able to figure it out yet.
Ah! You might be running into an issue where the C++ RF24 library disables the kernel SPI driver's select line. Could you follow the instructions at https://github.com/natevw/node-nrf#node-nrf-or-pi-spi-not-working-after-using-c-rf24-library and see if that helps?
That did the trick. When running sudo modprobe spi_bcm2708
I got an error, but rebooting the Pi got it working. Thanks a ton for your help, natevw.
Hey Nate. I've been trying to get up and running with this, but after running
radio.printDetails()
it seems like I'm not able to configure things correctly. Running node v0.12.0, CSE pin = 22, IRQ pin = 7. spidev0.0 and spidev0.1 have been enabled. The code I'm running is a modification of the example in the README:radio.printDetails()
gives me a ton of 0's:Additionally, the following message is logged to the console: