pcbway




nrf24l01+ arduino, how to communicate nrf24l01 with arduino,nrf24l01 not workingHello friends, hope you all are fine and having fun with your lives. Today I am going to share a problem and also its solution with you guys. A few days ago, I bought new NRF24L01 modules as they were needed for a project. So, today when I started working on them, I encountered a very strange problem. When I interfaced my NRF24L01 with Arduino and uploaded the transmitting and receving codes in them, I couldn’t get anything on my serial terminal as I explained in my previous post Interfacing of NRF24L01 with Arduino. That was quite strange for me as I have worked on this module many times and it never troubled me before. So I keep on working on it but no luck. I even changed my RF modules as I thought may be they are faulty modules but still no luck. πŸ™

So, the next thing came to my mind is to upload the Getting Started example from the RF24 library which I have also given in my previous post Interfacing of NRF24L01 with Arduino, and now when I checked the serial terminal, I got this error:

  • Failed, response timed out.

The screenshot of this response is as follows:

nrf24l01+ arduino, how to communicate nrf24l01 with arduino,nrf24l01 not working

As you can see in the above figure, in the last lines we are getting error that “Now sending 4679…failed. Failed, response timed out.” So, that was the problem which I encountered almost for half an hour and then I finally realized what I am missing and how to solve it. Before going to the solution, let me first tell you the types of this modules.

Types of NRF24L01 Module

  • When I encountered this problem, and instead of lot of efforts and not being able to resolve it, I finally thought of using the old module, so I searched for it and luckily I found one of them.
  • So, now I plugged this new module with another Arduino and I checked the properties of both these modules (i.e. the old one and the new one) and for that I simple uploaded the below sketch in both of my Arduino boards and opened the serial terminal.

  • In this sketch, I simple print the details of NR24L01 module, so I uploaded the above sketch in both the Arduinos, one with old NRF24L01 module and the one with new NRF24L01 module, and I got the below response.

nrf24l01+ arduino, how to communicate nrf24l01 with arduino,nrf24l01 not working

  • Now I got the reason that why I am not getting the response for the same code, which worked on the old one, because the old module model was NRF24L01 while this new module is NRF24L01+ which is slightly different from NRF24L01.
  • So that’s the reson why I was constantly getting the Failed, response timed out error for this module. So, now lets have a look on how to resolve this issue.

How to resolve “Failed, response timed out” for NRF 24L01+ with Arduino

  • So, now one thing I knew that my module is NRF24L01+ and not NRF24L01 so I need to interface NRF24L01+ with Arduino. πŸ™‚
  • So, I started looking online and get its datasheet which helped a lot and finally I got the thing.
  • NRF24L01+ draws more current than NRF24L01 while starting up and Arduino couldn’t provide that required current to it. That’s the reason NRF24L01+ failed to initialize and couldn’t send or receive the response.
  • So, in order to remove this issue, I simply placed a Capacitor of 100uF between 3.3V and GND of Arduino and it did the magic. πŸ™‚
  • Detailed circuit diagram is as follows:

nrf24l01+ arduino, how to communicate nrf24l01 with arduino,nrf24l01 not working

  • So, that’s the simple solution which kept me on for around an hour and then I finally got it.
  • As you can see in above figure, its exactly the same circuit diagram and the only addition is the capacitor placed between 3.3V and the GND.
  • After that I uploaded both the codes for receiver and transmitter which I have already posted in my old post Interfacing of NRF24L01 with Arduino and it worked like charm. πŸ™‚

That’s all for today, will meet you guys in the next tutorial soon. Take care!!! πŸ™‚

4 Comments

  1. Hi, I’m trying to use NRF24L01+ with aurduino to determine the distance and relative position(if possible) of the receiver wrt the transmitter. I have two modules, which when connected the same computer are giving me values in terms of got response and round-trip delay, but when connected to different systems, it gives absolutely no data.. what am I doing wrong??

  2. Thank you so much for this contribution. I would like to report that I had success with a polarized capacitor as low as 2.2uF running on PA_MAX with a 3mm LED blinking on reception. So you don’t exactly need a 100uF capacitance, but that would also depends on other components of your circuit, of course!

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment