Notifications
Clear all

RF-Transmission with other libraries or without libraries?

7 Posts
3 Users
0 Likes
1,489 Views
(@bruno)
Member
Joined: 3 years ago
Posts: 4
Topic starter  

Hello again.

I have Problems with the "Wireless Joystick for Arduino Robot Car with nRF24L01+" and would appreciate any help from the forum members.

As a beginner, I followed step by step Bob's tutorial and finished both the car and the joystick command, each with an Arduino UNO. But when trying to load the sketch, I could not find the ReadioHead Library (not anymore available) and I think this is causing the errors, (but I'm not sure).

I get the following messages on the serial monitor: 

"Sending to nrf24_reliable_datagram_server "      send toWait failed"   and 

"Sending Joystick data to nrf24_reliable_datagram_server       sendtoWait failed"

Is there a possibility to get this library from somewhere else or is it possible to make this work without the library or another library?

Thanks for any help!

Bruno

Bruno


   
Quote
MadMisha
(@madmisha)
Member
Joined: 4 years ago
Posts: 340
 

Even if it is no longer updatable through Arduino, if you have it installed, it should still work.

 

Here is the official RadioHead library website.

http://www.airspayce.com/mikem/arduino/RadioHead/index.html


   
ReplyQuote
 Arlo
(@arlo)
Member
Joined: 3 years ago
Posts: 24
 

Bruno,

In my Arduino IDE if I do a search of RadioHead in the Manage Libraries it will not show up , but it does show up in examples in the file section when you scroll down. I would think you would need it to be installed for it to compile in the first place.

The error you get was the same I had starting out and discovered it seemed to make a difference what was turned on first, the car or the joystick, by pressing the reset on the Arduino it then makes connection.

 Hope this helps.

Arlo


   
ReplyQuote
(@bruno)
Member
Joined: 3 years ago
Posts: 4
Topic starter  

@arlo

Thank you for your answer and the advice! I tried all of them on several trials and I don't know which one got me at least one step further: the message referring to the missing library disappeared. So I guess in some way your advice on the example file worked. 

What I could not resolve is the communication in order to make the car move. With one of the older sketches, I have sometimes an answer "got reply from : 0x2: And hello back to you", but then again many "senttoWait failed" messages.

On the Server-side it seems data are going out, but no reply comes back, the values for x and y from the joystick appear and change when moving the joystick, but sendtoWait failed (all the time)

Do you have any further advice?

Thanks and greetings

Bruno

Bruno


   
ReplyQuote
(@bruno)
Member
Joined: 3 years ago
Posts: 4
Topic starter  

@madmisha

Thanks again for your answer!. Finally, I could resolve at least one of the problems; with the help of Arlo and the example files, I got one step forwards. Now I hope to find a solution to make the communication between the server and the client work (see my answer to Arlo)

Thanks and greetings

Bruno

Bruno


   
ReplyQuote
 Arlo
(@arlo)
Member
Joined: 3 years ago
Posts: 24
 

@bruno  Are you using the adapter with the nRF24L01+ and feeding it 5v from the Arduino? If so do you have a way to check the voltage output on the Arduino? It seems there were issues of the transmitter not getting enough power from the 5 volt Arduino output or 3.3 for direct hookup without the adapter and caused it not to work.

Arlo


   
ReplyQuote
(@bruno)
Member
Joined: 3 years ago
Posts: 4
Topic starter  

@arlo

Yes, Arlo, on both sides I'm using the adapters.

After reading several posts about these transmitters today, now I am doubting if the nRF24L01, its adapter, and the antennas are really working correctly; so I just ordered a pair of new nRF24 with antenna, I still have four adapters and I will try it when they arrive. Thanks again for your help. I'll let you know if it works... (hopefully)

Best regards

Bruno

Bruno


   
ReplyQuote