Notifications
Clear all

Need help with NRF 24l01

9 Posts
3 Users
0 Reactions
1,527 Views
Cap Electronics
(@cap-electronics)
Member
Joined: 7 years ago
Posts: 17
Topic starter  

Hi I am currently trying to learn how to use the NRF 24l01 modules but simply can't get them to work. I am following the wireless joystick video/tutorial from drone bot workshop (Ā 

) and I'm using the same radio head library with the client and server example code. the module are wired up same as is shown in the tutorial and they are powered with bread board power modules with 3.3 V. if I upload the client code to the first Arduino the output of serial monitor is: sending to nr24_server

Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  no reply, is nrf24_server running?

if I upload the server code to the second Arduino the output of the serial monitor is: init failed

I have no idea why this happens andĀ  I would apreciate it if those who have more knowledge and experience with these modules would help me to figure what I doing wrong as I'm sure I'm doing something wrong.



   
Quote
codecage
(@codecage)
Member Admin
Joined: 7 years ago
Posts: 1065
 

@cap-electronics

If the client is giving the message "no reply, is nrf24_server running?" that indicates the client seems to be running OK but is not getting a reply from the server.Ā  And if the server is then giving the "init failed" message that could explain why the client is asking the question.

I may not be a lot of use to you as my setup worked.Ā  As they say you learn a lot more if it fails in the first place than if works with no issues.

A thought, and you may have already thought of this and tried it, but how about reversing the roles of the two Arduino's?Ā  Move the joystick from what is now the client to the server and try loading the client software on what was the server and visa-versa.Ā  Try to leave the nrf24L01 modules on the same Arduinos you started with and see if the client now fails to init.Ā  If it does, maybe it is theĀ  nrf24L01 at fault.

Don't know if that helps at all, but that's my first thought.Ā  Please let us know, which I'm sure you will.


SteveG, a.k.a. CodeCage


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 7 years ago
Posts: 1458
 
Posted by: @cap-electronics

Hi I am currently trying to learn how to use the NRF 24l01 modules but simply can't get them to work. I am following the wireless joystick video/tutorial from drone bot workshop (Ā 

) and I'm using the same radio head library with the client and server example code. the module are wired up same as is shown in the tutorial and they are powered with bread board power modules with 3.3 V. if I upload the client code to the first Arduino the output of serial monitor is: sending to nr24_server

Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  no reply, is nrf24_server running?

if I upload the server code to the second Arduino the output of the serial monitor is: init failed

I have no idea why this happens andĀ  I would apreciate it if those who have more knowledge and experience with these modules would help me to figure what I doing wrong as I'm sure I'm doing something wrong.

I think one of the most common problems is trying to fly before you can walk šŸ˜‰

The RF24 libraries come with some excellent examples, that you can run and test if your hardware setup is correct to begin with.

Arduino IDE: File -> Examples -> RF24*.<some example(s)>

These examples are very valuable in helping to get the configuration/setup correct first, before you try to move on to your more advanced project.

Check them out, to see if your problems still persist... then we can narrow it down!

Cheers!



   
ReplyQuote
Cap Electronics
(@cap-electronics)
Member
Joined: 7 years ago
Posts: 17
Topic starter  

@codecage

sorry for the late response as I've been a bit busy. Well you see the problem is I'm not really using a joystick with the nrf 24l01 I'm using the example sketches that come with the radio head library that shown in the video before the part where the joystick comes into play but I think you might be right it may be the nrf itself that is faulty.Ā  Ā  Ā 



   
ReplyQuote
Cap Electronics
(@cap-electronics)
Member
Joined: 7 years ago
Posts: 17
Topic starter  

@frogandtoad

thanks for the response. the only the problem is that I am using the example sketches but the nrf's are still not responding but I have an idea that the nrf themselvesĀ  are faulty.



   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 7 years ago
Posts: 1065
 

@cap-electronics

You couldn't have accidentally applied 5V to the NRF modules could you?Ā  They only use 3.3V on their Vcc input.


SteveG, a.k.a. CodeCage


   
ReplyQuote
Cap Electronics
(@cap-electronics)
Member
Joined: 7 years ago
Posts: 17
Topic starter  
Posted by: @codecage

@cap-electronics

You couldn't have accidentally applied 5V to the NRF modules could you?Ā  They only use 3.3V on their Vcc input.

well no I don't think so the highest amount I possibly could have supply is 3.68V although there is the possibility that I could have accidentally revers voltage the modules.Ā 



   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 7 years ago
Posts: 1065
 

@cap-electronics

Are the modules fairly easy to come by in you neck of the woods?Ā  I've got a good supply of them at the moment, but my arm isn't good enough to toss one over the fence/ocean to you! 🤣Ā 


SteveG, a.k.a. CodeCage


   
ReplyQuote
Cap Electronics
(@cap-electronics)
Member
Joined: 7 years ago
Posts: 17
Topic starter  
Posted by: @codecage

@cap-electronics

Are the modules fairly easy to come by in you neck of the woods?Ā  I've got a good supply of them at the moment, but my arm isn't good enough to toss one over the fence/ocean to you! 🤣Ā 

🤣 well no I'll have to stock up on them next trip to the electronic store but don't worry you won't need to toss them over the North and South Atlantic ocean because I'm considering to use 433MHZ modules for my project instead of nrf 24l01.Ā Ā 



   
ReplyQuote