BBB & NRF24L01+

383 views
Skip to first unread message

flagadajones

unread,
Apr 6, 2014, 8:04:04 PM4/6/14
to beagl...@googlegroups.com
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

Tom Davies

unread,
Apr 6, 2014, 8:42:12 PM4/6/14
to beagl...@googlegroups.com
What do you want to do?

What did you try?

What happened?

Gaetan RUAULT

unread,
Apr 7, 2014, 4:34:28 AM4/7/14
to beagl...@googlegroups.com
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. 



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.






--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/pwbr2hIDeU8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

flagadajones

unread,
Apr 7, 2014, 5:21:31 PM4/7/14
to beagl...@googlegroups.com
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?

juan...@gmail.com

unread,
Nov 4, 2017, 5:14:54 PM11/4/17
to BeagleBoard
Hi, 

Can you share the code that you used for this project? Thanks
Reply all
Reply to author
Forward
0 new messages