i need to send data from 3 transmitters to one reciever. iam using the tmrh20 library for nrf24l01. could somebody pls explain with new adress format of the tmrh 20 library. iam really confused with new format.
what should be the adressses of the transmitters and the reciever.
Have a look at this Simple nRF24L01+ Tutorial, especially the second example using the ackPayload feature.
I suggest you treat the Arduino that you call the receiver as Master and the other three as Slaves. Give each slave a separate address. Arrange for the Master to send a brief message to each slave in turn and receive the data from the slave in the ackPayload. (The message the master sends is probably irrelevant - maybe just send 'A').
This system avoids the need for your code to switch between sending and receiving, avoids the risk of two "slaves" sending at the same time and avoids any confusion about which slave sent the data.
...R
ABIN_RAJ:
i need to send data from 3 transmitters to one reciever. iam using the tmrh20 library for nrf24l01. could somebody pls explain with new adress format of the tmrh 20 library. iam really confused with new format.
what should be the adressses of the transmitters and the reciever.
Hard to answer.
Understand what the limitations and functions of the addresses are, by understanding the datasheet.
You question is like asking:
"I have three kids and a wife and I'm really confused what names they should have."
Robin2:
This system avoids the need for your code to switch between sending and receiving, avoids the risk of two "slaves" sending at the same time and avoids any confusion about which slave sent the data.
This system makes it very hard to run the 'slaves' in a powersaving nearly-always-sleep mode.
Whandall:
This system makes it very hard to run the 'slaves' in a powersaving nearly-always-sleep mode.
I agree. But that was not stated to be a requirement.
...R