hi
i want to connect two nrf24l01 with different address in one arduino uno,what can i do?
thanks
what can i do?
Get to work.
What is the problem?
mehrdad3dgs:
hi
i want to connect two nrf24l01 with different address in one arduino uno,what can i do?
thanks
I suspect if you have two nRF24s in very close proximity they will interfere with each other.
Why not just use one device and change the address under program control?
However the real question is why do you think you need more than one address. Tell us what you are trying to achieve and it will be much easier to give useful advice
Each NRF24L01+ can listen to six addresses at the same time, two of them can be arbitrary.
i have 30 client nrf24l01 , and i want to have just two nrf24l01 for receiver , please help me.
mehrdad3dgs:
i have 30 client nrf24l01 , and i want to have just two nrf24l01 for receiver , please help me.
One receiver could listen to 100 clients.
You need to explain your project fully if we are to help.
...R
Many 'clients' could send to the same address.
my project is "Find Lift Trucks in Company with GPS module" and transfer data to receiver, count of lift Trucks is "30" , and each lift truck send data to receiver at run-time(per one second),and i want lift trucks have an nrf24l01 for send data to receiver.
please help me.
and i think use two nrf24l01 on on arduino to receiver ,because i want to have any lost data at run time.
thanks a lot
mehrdad3dgs:
my project is "Find Lift Trucks in Company with GPS module"
I don't do homework.
mehrdad3dgs:
i want lift trucks have an nrf24l01 for send data to receiver.
Just do it (read GPS, build message identified by liftTruckNumber, send it to the searcher).
mehrdad3dgs:
i think use two nrf24l01 on on arduino to receiver ,because i want to have any lost data at run time.
Bad idea and a sentence that does not make any sense.
what can i do?
what's the best idea to solve this problem?
You say that you have 30 forklift trucks each sending a message once per second. If the transmissions are carefully synchronized that would mean that the Master is receiving one message every 33 millisecs which is quite feasible - a single message takes about 3 to 5 milliisecs. The problem is that the transmissions won't be synchronized and if two transmissions happen at the same time both messages will be garbled. If you use use the AutoRetry feature it will almost certainly make things worse so you need to think of a suitable arrangement for your clients to retry after a sensible interval so that the airwaves won't get clogged up.
A simple way to get around the problem of data collisions is to put the Master in charge and have it call each client (slave) in turn. Have a look at the second example in my Tutorial.
Whatever you decide to do I can see no advantage having more than one nRF24 attached to the Master.
...R
Robin2:
If you use use the AutoRetry feature it will almost certainly make things worse so you need to think of a suitable arrangement for your clients to retry after a sensible interval so that the airwaves won't get clogged up.
Do you have any proove (i.e. measurements) for this claim?
Nobody forces one to use the same timeout in all nodes.
Added: a feature that worsens a situation would not have been implemented in hardware, would it?
Whandall:
Nobody forces one to use the same timeout in all nodes.
No. But it seems very logical.
A system designed to assist communication between two devices is not automatically a good fit for several. Have you never watched a dozen small children trying to shout each other down?
I did suggest that the OP design a suitable "retry" arrangement. Perhaps that can be accomplished by choosing different AutoRetry patterns for different clients.
...R
Robin2:
No. But it seems very logical.
Not to me.
I would assume that the chip has to detect idle on the air to start transmitting, but could be wrong.
The timing between two instances of the same program will drift away in the idle period of the other,
interleaving transmissions most of the time without any collisions.
On the real behaviour of collisions I have to make more investigations,
but I doubt Nordic implemented an useless mechanism to handle collisions.
Adding a software resend with a more sophisticated algorithm could nearly guarantee delivery.
If the load of the channel is below - lets say 30% - there should be no big problem with collisions.
Above that, a controlled master/slave setup is most probably the better solution.
I prefer "discovery by reception" to "poll all known clients",
if I add a new node I don't like to have to change the master code/configuration.
mehrdad3dgs:
How many senders can communicate with the receiver?
One at a time.
mehrdad3dgs:
what can i do to Increase the transmitter's range؟
That depends on many parameters and the answers go from " you can't do anything" to module selection, antenna selection, ...
I have another questions,How many senders can communicate with the receiver?(nrf24l01+)
and what can i do to Increase the transmitter's range؟
Still the same answer:
Whandall:
One at a time.That depends on many parameters and the answers go from " you can't do anything" to module selection, antenna selection, ...
Wow, I can answer questions even before they are posted.
Whandall:
One at a time.
OK, if transmitter send to receiver one by one, How many senders can communicate with the receiver?
mehrdad3dgs:
my project is "Find Lift Trucks in Company with GPS module" and transfer data to receiver, count of lift Trucks is "30" , and each lift truck send data to receiver at run-time(per one second),and i want lift trucks have an nrf24l01 for send data to receiver.
please help me.
and i think use two nrf24l01 on on arduino to receiver ,because i want to have any lost data at run time.
thanks a lot
Are your lift trucks ALL operating out in the open so they can see the GPS satellites?
Do they EVER go under a roof?
Paul
Paul_KD7HB:
Are your lift trucks ALL operating out in the open so they can see the GPS satellites?Do they EVER go under a roof?
Paul
all lift trucks works in open area.