Power & Source of Big Ideas

How can connect NRF24l01 module to nanopi neo AIR?

Moderators: chensy, FATechsupport

Hi dudes, somwhere know how to connect the NRF24l01 to the nanopi?
Hi, I found the solution:

nRF24L01 | NanoPi NEO Air
_________|________________
VCC -------| OUT 3.3V
GND -------| GND
CSN ------- | PC3 (SPI0-CS)
CE --------- | PA1 (UART2-RX)
MOSI ------ | PC0 (SPI-MOSI)
SCK --------| PC2 (SPI-CLK)
MISO -------| PC1 (SPI-MISO)

Changes in gettingstarted.cpp:

diff --git a/examples_linux/gettingstarted.cpp b/examples_linux/gettingstarted.cpp
index d25155e..278c3fe 100644
--- a/examples_linux/gettingstarted.cpp
+++ b/examples_linux/gettingstarted.cpp
@@ -46,7 +46,7 @@ using namespace std;
//RF24 radio(RPI_V2_GPIO_P1_15, RPI_V2_GPIO_P1_24, BCM2835_SPI_SPEED_8MHZ);

// RPi generic:
-RF24 radio(22,0);
+//RF24 radio(22,0);

/*** RPi Alternate ***/
//Note: Specify SPI BUS 0 or 1 instead of CS pin number.
@@ -66,7 +66,7 @@ RF24 radio(22,0);
// See https://www.kernel.org/doc/Documentation/spi/spidev for more information on SPIDEV

// Setup for ARM(Linux) devices like BBB using spidev (default is "/dev/spidev1.0" )
-//RF24 radio(115,0);
+RF24 radio(1,0);

//BBB Alternate, with mraa
// CE pin = (Header P9, Pin 13) = 59 = 13 + 46
NIce job, I just bought a neo and a neo air, and I also want connect to nrf24l01, I will try your method if I have time~

Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 26 guests