BBB & NRF24L01+

Hi Every body,

I’m newbie on BBB and i search sample code & schematic for use NRF24L01+ with my BBB, i try many solution from RPi orums but it doesn’t works.

thanks for your help.

Flagadajones

What do you want to do?

What did you try?

What happened?

Hi,

I want to make communication between an arduino and a bbb. Both have an nrf24l01+ module.

I have plug a nrf24 to the spi0 on my beaglebone.
and enabled SPI via http://elinux.org/BeagleBone_Black_Enable_SPIDEV

I use then node-nrf module and this script :

var NRF24 = require(‘nrf’),

spiDev = “/dev/spidev1.0”,
cePin = 16, irqPin = 19;
pipes = [0xF0F0F0F0E1, 0xF0F0F0F0D2],
role = ‘ping’;

var nrf = NRF24.connect(spiDev, cePin, irqPin);
//nrf._debug = true;
nrf.channel(0x4c).transmitPower(‘PA_MAX’).dataRate(‘1Mbps’).crcBytes(2).autoRetransmit({count:15, delay:4000}).begin(function () {
nrf.printDetails();
if (role === ‘ping’) {
console.log(“PING out”);
var tx = nrf.openPipe(‘tx’, pipes[0]),
rx = nrf.openPipe(‘rx’, pipes[1]);
rx.pipe(tx);
} else {
console.log(“PONG back”);
var rx = nrf.openPipe(‘rx’, pipes[0]),
tx = nrf.openPipe(‘tx’, pipes[1]);
rx.pipe(tx);
}
});

but nothing append on my BBB.
the call of nrf.printDetails() print ll default values and not my configuration result.(.channel(0x4c).transmitPower(‘PA_MAX’).dataRate(‘1Mbps’).crcBytes(2));

cePin is plug on P9_15 and irqPin on P9_16

thanks for your help.

Hi,
I’ve solve a part of my problems. my cePin and irq Pin was incorrect.

Now NRF24 is recognize by bbb but i haven’t any communication between arduino and BBB.

My BBB printdetails:

SPI device: /dev/spidev2.0
CE GPIO: 51
IRQ GPIO: 48
STATUS: 0xe RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0–1: 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2–5: 0xc3 0xc4 0xc5 0xc6
TX_ADDR: 0xf0f0f0f0e1
RX_PW_P0–5: 0x0 0x0 0x0 0x0 0x0 0x0
EN_AA: 0x3f
EN_RXADDR: 0x03
RF_CH: 0x4c
RF_SETUP: 0x05
CONFIG: 0x03
DYNPD/FEATURE: 0x03 0x07
Data Rate: 1Mbps
Model: nRF24L01+
CRC Length: Disabled
PA Power: PA_HIGH

My Arduino printDetails:

STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0d2 0xf0f0f0f0e1
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0d2
RX_PW_P0-6 = 0x04 0x04 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x07
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = Disabled
PA Power = PA_HIGH

can you help me to find where is the problem?

Hi,

Can you share the code that you used for this project? Thanks