adressing nrf24

Hi,

Two groups of students are busy with the nrf24 module (a transmitter and a reciever).
They both used the code from http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

But there is a lot of error because of one group receives values from the other and vice versa.

How can they simply change the address of the module, so that both groups can work together?

Is this line of code something to change? But change in what?

const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

Gr.
Johan

...and is it possible that a Bluetooth module also allows for failure?

Change the channel. There are 126 of them.

I think it is rather unfortunate that pipe was chosen for the name of that variable. It is just a 5-byte number representing the ID of the other NRF24 that you want to talk to. Give each pair of devices different IDE numbers and the messages will be kept separate.

...R

It is very simple to use setChannel() to change the frequency, then there is no possibility of message overlap or confusion.

jremington:
It is very simple to use setChannel() to change the frequency, then there is no possibility of message overlap or confusion.

Very true.

I prefer to reserve channel changes for avoding interference from other radio noise - and there are many more than 126 address options.

But I confess to being very new to the NRF24s.

...R

Thanks so far.
I'll give it a try!

Johan