Notifications
Clear all

nrf24L01

29 Posts
4 Users
0 Likes
2,655 Views
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@robotbuilder will give it a try...thanks

 

Regards,
Geoff


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@arlo

Hi...will give that a try later this afternoon...thanks

Regards,
Geoff


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage

Thanks for looking at this.

Thinking there is an issue with server code yet why did example in Bill's video run right from the get go and mine and yours produced these error messages.  Going to read all replys and report back...though wont be until later that afternoon...i am in Pacific timezone.

Regards,
Geoff


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@geoff666

The only reason I got the same error that you did, was that I did NOT even have an nRF24L01 hooked up to the server UNO.  Just an UNO without any external connections.

SteveG


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage

Wondering if there is a sketch available to test hardware for determine if it is working?

Regards,
Geoff


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@geoff666

I don't see anything wrong with the code!  So to me that is a sketch to see if the hardware is working.  There has to be something not quite right in how you have your hardware set up.  As mine works just fine if setup as in Bill's video.  It did the first time I tried this many moons ago as well.

I have found that trying to read between the lines in these back and forth posts can also be problematic as well.  Case in point, your comment below in the post just 3 posts before this one:

"example in Bill's video run right from the get go and mine and yours produced these error messages"

You thought I had the same issue as you did, but seem to have missed that I said it only happened because no nRF23L01 was attached to the server.  What is being printed on the client is as it should be.  So I must ask, is your nRF24L01 correctly connected and powered up on the server?

And did you also say that if you took your two Arduinos and their respective nRD24L01s and just reversed the client/server sketches between the two setups, that the error was on the server no matter which Arduino?  And did the client in both instances print the same repeating messages?

I know you are probably frustrated and at your wits end, but hang in there.  When we figure it out, it'll probably be something so simple we'll end up laughing about it.

SteveG


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage

Hi Steve

Sorry about the back and forth.  I believe my uno and nRF24L01 are wired as per Bill's example.  Correct me if I am wrong, but aren't both the server and the client wired identically?  The reason I ask is the client sketch will work on either board...servo sketch will not. (at least that's what the serial monitor says...not sure if the module is produci g a signal...that is why I asked if there was some soet of test sketch to determi e if these boards are actually working correctly).

For power, I am powering both unos with a usb cable...both NRF24L01 are powered by my external variable voltage power supply set to 5vdc.  As per Bill's example I am using the breakout board adapter on the nRF24L01.

I am trying to hang in there, but it appears I am fast flogging a dead horse so to speak and wo dering if it is worth pursuing this?  Ive invested a fair bit of time, I'm prepared to invest a little more.  Thanks for working with me.

Geoff

Regards,
Geoff


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@geoff666

Keep flogging that dead horse!  That's how we learn.  Especially discovering our mistakes; we tend not to really learn something if it works perfectly the first time.  Later I may admit to a problem I worked on for nearly 12 hours overnight back in 1969 in a comm center for the USAF.  When it finally became clear what the problem was, it was me and should have taken no more than a few minutes to resolve.  I overlooked something at the beginning and went off on the wrong tangent.

And yes you are correct that the the two are wired identically and the only difference in the two is the sketch that is loaded.

I'm beginning to wonder if you got a bad download of the radiohead zip file if the error moves to whichever is the server side of things.  I find mine works just fine when I swap sketches between the Arduinos.

I find myself wanting to solve this as much as you do!

SteveG


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@geoff666

Forgot to ask!

Since you are providing the 5V from an external supply is the ground of the external supply and the grounds of the Arduinos connected together (we are grasping at straws here!).

I am powering my nRF24 adapters with 5V from the Arduinos themselves.

SteveG


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage

Hi its possible...i have 2 computers and loaded the radiohead library seperately.  One laptop is windows...the other is linux

Geoff

Regards,
Geoff


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage

No thetwo grounds are not connected.  I will try that this afternoon and also try powering from arduinos.  I noticed in Bill's example he used a battery for power.

Regards,
Geoff


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@geoff666

One of my computers is a WIN10 machine and it has the libraries from some time ago.  The other machine is a Linux machine and had the libraries loaded just this morning.

I used the 5V and ground from the Arduinos to power the nRF24 adapters.  Both Arduinos were powered at first by the USB cable to the computer.  I later removed my client from the USB cable and powered the Arduino with a 9V battery.  Obviously I lost the serial monitor on the client, but it did send messages to the server just fine.

Did you download the ZIP file from RadioHead to each machine individually, or did you use the same ZIP file to install the library on both machines?  If you downloaded on both machines and installed the libraries from each of the two downloads, I really doesn't make sense that swapping the server and client would produce the same exact error.   ?????  😩

If you installed both libraries from the same ZIP then that could make sense!

I'm really puzzled! 

SteveG


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@arlo

I tried that but no change.  Thanks for helping me with this...there is something else going on...I just don't know what.

Geoff

Regards,
Geoff


   
ReplyQuote
Geoff666
(@geoff666)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

@codecage did you receive my pm?

Regards,
Geoff


   
ReplyQuote
Page 2 / 2