im trying to use some nrf240l cards. i have a master and 3 slaves. the master sends and receives and so do the slaves. im having a real hard time writing the code so these cards dont smash the data into each other or it get lost or garbled when i try to read it. my program is kind of big and full of other mistakes so im sorry for anyone that looks at the code. can someone please help me or tell me or show me how to handle this code for the nrf cards. i try to poll updates from the slaves 1 at a time but im not getting it in sync.. i would really really appreciate some help here thank you so much if i try to just get updates from 2 of the 3 slaves it sorta works alright but when i connect that third one no matter which one it is everything start breaking
EDIT: it was a combination of delay issues and when i was opening and closing the pipes
Polling always works. How are you doing it?
Paul
Paul_KD7HB:
Polling always works. How are you doing it?
Paul
sorry i mean pull* and look at the requestRX1/2/3 in the code. i send a float value to the salve. when it arrives at the slave module the code confirms the value and responds based of the incoming value. then slave then sends it back to the master and the code continues. i dont even know what happening anymore. i think they are all sending the sdata at the wrong/same time and it get garbled. if i unplug 1 of any of the 3 slave modules the communication starts to sort of work again. i dont need them to be perfect every packet but i need to to atleast work. im not even sure what i have going on at readBothResponses(); i really need some guidance here
If you attache the file using the attachment function we can have a look at it
Have a look at this Simple nRF24L01+ Tutorial.
Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.
The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work
It includes an example for a master and 2 slaves that can easily be extended to a larger number of slaves.
...R