Notifications
Clear all

nRF24L01

7 Posts
3 Users
0 Likes
306 Views
queenidog
(@queenidog)
Eminent Member
Joined: 3 years ago
Posts: 20
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)
Famed Member
Joined: 2 years ago
Posts: 4001
 

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

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
queenidog
(@queenidog)
Eminent Member
Joined: 3 years ago
Posts: 20
Topic starter  

Search for what?   What is IIRC?

 


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 
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"

Experience is what you get when you don't get what you want.


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4001
 

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

'If I Remember/Recall Correctly'.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4001
 

@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.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
queenidog
(@queenidog)
Eminent Member
Joined: 3 years ago
Posts: 20
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