NRF24L01 and ATmega256rfr2

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey Guys,

i need help or some orientation please.

i'm trying to get data from a commercial end device that uses an ATmega256rfr2 with an nRF24L01 module.

firstly i decided to use the nrf24 module with an arduino and see if i can get any data to see if it really works, normally it should work because they both operate on the same band frequency (2.4 Ghz), i tried some SPI commands and i could see that there is a carrier in the channel. then i found a library ( the RF24 library).

but when i try to get data they doesn't seem to communicate. i'm the setting the same Channel and transmitter adress.

i tried two nrf24 modules and they seem to communicate perfectly.

could someone please give me an advice? and im wondering if the communication is possible ?

thanks in advance

Last Edited: Sat. Apr 4, 2020 - 01:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

neferupito wrote:
it should work because they both operate on the same band frequency (2.4 Ghz),

No, that does not follow at all!

 

WiFi and Bluetooth both work in the same frequency band (2.4GHz),  but a Wifi device cannot talk directly to a Bluetooth device - because the protocols are different

 

neferupito wrote:
two nrf24 modules and they seem to communicate perfectly
.

Of course they do - they will be using the same protocols!

 

neferupito wrote:
someone please give me an advice?

You're going to have to look carefully at the datasheets of both the nRF24 and the  ATmega256rfr2  to see if there's a common protocol that they can both be set to.

 

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you sir for your response, you are right about the wifi / Bluetooth  example.

i'm going to dig deepper in the datasheet of both modules.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey again, i just want to let other people know.

exchanging packets between nrf24l01 and ATmega256rfr2 is impossible they can't listen to each other even if they use the same frequency band because they use different communication protocole.

for nrf24 it use the ShockBurst protocole.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey again, i just want to let other people know.

exchanging packets between nrf24l01 and ATmega256rfr2 is impossible they can't listen to each other even if they use the same frequency band because they use different communication protocole.

for nrf24 it use the ShockBurst protocole.

 

thank you awneil.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

neferupito wrote:
exchanging packets between nrf24l01 and ATmega256rfr2 is impossible they can't listen to each other even if they use the same frequency band because they use different communication protocole.

 

This is incorrect. The ATmega256rfr2 supports SPI and this is how you communicate with the NRF24L01. You need to read the NRF24L01 datasheet and see how it expects to send & receive the data.

 

 

"When all else fails, read the directions"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A but late, but ...

 

PhillyNJ wrote:
The ATmega256rfr2 supports SPI and this is how you communicate with the NRF24L01.

That'd be a wired connection between the ATmega256rfr2 and the NRF24L01.

 

OP is talking about the radio link!

 

I'm not sure that it's true to say that they cannot communicate over the radio link, but it would require careful study of the features & facilities of both radios - and to choose or devise some scheme which is compatible with both.

 

EDIT

 

This looks like a cross-post of the same question:  https://forum.arduino.cc/index.php?topic=674432.0

 

And, unsurprisingly, comes to much the same conclusion.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Apr 23, 2020 - 06:34 PM