Notifications
Clear all

nRF24L01

7 Posts
3 Users
0 Likes
761 Views
(@queenidog)
Member
Joined: 5 years ago
Posts: 24
Topic starter  

I am using the code examples in the RadioHead library:nRF_24Server and nRF_24Client as written about in the Workshop build article "nRF24L01 Wireless Joystick for Arduino".  The client nRF device on the laptop is sending out data but is not getting a reply from the server nRF on a desktop computer.  Both devices are wired exactly the same using two UNOS, with capacitor filter across power lines and are separated by only 5 feet.  I've swapped out nRf24L01+ (the ones with the big antenna and LNA), swapped out UNOs, changed computer ports, checked and rechecked all wiring, even replacing all the Dupont connectors with new ones.  I received ONE response from the Client that read "Sent a reply".  Yes, only ONE reply as the Tx is sending requests continuously.  I've changed channels on both, no difference.

So I reversed the roles, putting the client program on the desktop and the server on the laptop.  The problem moved with exactly the same issues (except NOT ONE REPLY) but on opposite computers, proving the hardware is working.

Note the original files had .pde extensions.

Out of Bluetooth, HC12, nRF24L01, PS2 (controller) and the ultimate cheap 433Mhz modules, ONLY the latter worked flawlessly.  I'm in a fairy quiet (electrically) area but I do have a computer router, and weather display close by.

Any ideas?

 

 


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7008
 

IIRC this problem has been reported before and a fix published I think, just search the forum.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@queenidog)
Member
Joined: 5 years ago
Posts: 24
Topic starter  

Search for what?   What is IIRC?

 


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2535
 
Posted by: @queenidog

Search for what?

Search the forum for entries that have a set of relevant keywords. For instance, searching for nrf24l01 and "sent a reply" yields this entry from a previous thread ...

https://forum.dronebotworkshop.com/arduino/need-help-with-nrf24l01/paged/4/#post-28687

What is IIRC?

It's a four letter acronym for "If I Recall Correctly"

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7008
 

@queenidog Search for radiohead, or nrf24 should do it. IIRC is standard internet shortcut for 

'If I Remember/Recall Correctly'.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7008
 

@will Thank you Will. I knew we covered that beast a while ago, and Eliza provided a great answer. IIRC, that thread went on to point out one other critical fact, you obviously need two arduinos, but you also need 2 copies of the IDE running. If you have the luxury of two computers great (or a virtual) but if only one it has to be 2 separate processes of the IDE, not just two windows. How that is done is OS specific. If I needed to do that I would use my virtual windows to run another copy of the IDE alongside my host MAC copy of the IDE or use a couple of Pi's for an even cheaper solution.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@queenidog)
Member
Joined: 5 years ago
Posts: 24
Topic starter  

Eliza did all the things I did but thanks for the link because it let me know I didn't miss anything.  I have two computers, 6 nrf24L01+ battery power supplies, using the latest Radiohead library and known working code from the Dronebot website.  I bought the "plus" version when I was having difficulty with the standard PCB antenna-types.  (Figured better antenna and LNA would be better)

I only searched this forum for nRF24L01 application (eg using with joystick), but viewed tens of articles and applications using Google search.  HowToMechatronics.com is one of my favourite, trustable, sites, like Dronebot workshop.

I tried two other libraries, one by Maniac Labs and TMRH20, similar results.  I was considering getting OFFICIAL Nordic parts instead of using what are PROBABLY Chinese clones.

I don't use acronyms in texts because I can type 50 words/minute on full keyboard.  My thumbs are used only for the spacebar!

I'm giving it a rest and going back to my HC12 which have fewer wires, less coding (for the device) and easy to adjust channels.  Eg, a comm test between two HC12 is only 4 lines of code.

Thanks to all for replying.


   
ReplyQuote