Jump to content


Photo

RF24 library for wireless comunication


  • Please log in to reply
24 replies to this topic

#21 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 08:21 AM

RF24 is pretty solid, not mess-up with old technology aka car toys remote control which running in MHz

the range is pretty solid, and cheap to buy on ebay, I always buy in 10X quantity, some  are bad which I toss out  without bothering the seller. 1 of 10 is failed, I accept that.

total I already bought 30 nRF24L+ cheesy.gif
pretty impressive, just do remote sensing with full-duplex by using  sensor/output with arduino nano/ clones+nRF24L+ module.

the issue is only 5 device can be connected one time, actually 4 remote device and 1 device as a master/central.

I just use   3 central arduino and 12 remote arduino ( 4 remote connect on each central).  3 central arduinos are running mqtt client with extra functionality.

pcduino3 is running mqtt broker, I can control all arduino by sending command  to do or request  via mqtt command to broker.

no messy coding and building infrastructure.

just my one cent



#22 juanitolol

juanitolol

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 13 May 2015 - 08:05 AM

HI, testing the RF24 lib you ported. Thank you very much for your time spent



#23 juanitolol

juanitolol

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 14 May 2015 - 07:29 AM

i find it on library nrf24l01.h at the end you got sck on pin 10 but in my case it pin 13, i change that and i work. 

Thank you for your help and for those library

 Thank you Jim.

 

Just to clarify, if you find responses like: 

 

 

STATUS = 0x00 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=0 TX_FULL=0
RX_ADDR_P0-1 = 0x0000000000 0x0000000000
RX_ADDR_P2-5 = 0x00 0x00 0x00 0x00
TX_ADDR = 0x0000000000
RX_PW_P0-6 = 0x00 0x00 0x00 0x00 0x00 0x00
EN_AA = 0x00
EN_RXADDR = 0x00
RF_CH = 0x00
RF_SETUP = 0x00
CONFIG = 0x00
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = Disabled
PA Power = PA_MIN
 
 
Check the file nrf24l01.h at the end and double check the pinouts.
 
#define SCK      13 // SCK BIT:  Digital Input     SPI Clock
#define MOSI     11 // MOSI BIT: Digital Input     SPI Slave Data Input
#define MISO     12 // MISO BIT: Digital Output    SPI Slave Data Output, with tri-state option


#24 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 14 May 2015 - 10:47 AM

Correct. All zero's usually means no communication with the nrf24.



#25 japBoi

japBoi

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 May 2017 - 12:12 PM

Can anybody please please pleaseeee post a tutorial on how they got it to work?! I cant get my pcDuino to recognise the libraries. Its driving me insane... 
 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users