RF24 Library “getting started” example finally working

Hello everyone

It feels like it has been forever since my previous post. My apologies for that, but I am really a bit busy at this stage and for the foreseeable future. I have however started working on my projects again although it is going extremely slowly.

As listed previously, I want to develop an NRF24L01 network based on the RF24 library from Maniacbug. The problem for me was that I simply weren’t getting any communication between the modules. I’ve read up on multiple websites to try and resolve this problem.

The biggest concern for me was a power issue as listed in this website (Great for learning to use the NRF24L01 modules). Wiring instructions can be found on the website listed in the hyperlink above. Just some quick reference guide below:


480px-NRF24L01_pinout

This is the reason why I’ve built my own custom boards with a separate power supply on it. This also weren’t working and I just couldn’t get the units to communicate. I then decided that I will order some adapter boards from eBay for the NRF24L01 modules to eliminate the power concern once and for all.

When I received the adapter boards I’ve connected everything up and still I didn’t get communication. I kept getting a message on the serial monitor stating that my transmission had failed.

What I did different then is that I’ve opened an additional Adruino IDE with the same code on it. I then opened the two serial monitors side by side and started transmitting from the one module. The result was the same, however when I started transmitting from the other module the radios started communicating correctly yeah.

It always turns out that I need to set one of the modules into transmission mode and the switch it back to receive mode (Getting started example). Only once I’ve done this then the unit that has been set to receive will be able to receive the data packets and return it to the transmitter. Once I switch the transmitter then to receiver and the receiver to transmitter it works the other way around as well. Please see the snapshot of the two serial monitors running next to one another:

Arduino NANOs + Adaptors + High Power NRF24s without Antennas

I hope that this helps some other people resolve their problems with the getting started examples from Maniacbug. I will start working on my own custom code now that I have my “getting started” examples working.

I hope that my posts will follow a bit sooner from here.

Advertisements
Tagged with: , , ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: