Nrf24L01+ airsoft/Paintball/Nerf Capture Points Game help

Hello, I'm working on a capture points game project. Im trying to merge code into the game portion that controls the Led status' of 4 modules using nrf24L01+. The 4 modules each run the game on them and are to report to the master the status of each module, whether its blue team red team or neutral . The master will see the status and led's for corresponding status of each module. I've been using the

( "byte address[] [6] = {"00001", "00002", "00003"};//set addresses")

format for one module to communicate to the master, but have also seen:

(const byte numSlaves = 2;
const byte slaveAddress[numSlaves][5] = {
** // each slave needs a different address**
** {'R','x','A','A','A'},**
** {'R','x','A','A','B'}**

I'm wondering how i need to address(addresses) each module and how to transmit/recieve the status change in to the module to the master. I have only been able to change the red led to on but not off when the red button status changes to red, but when i change to neutral or blue, the red led stays on on the master module. P.S. all the local led statuses work on the master and module_A, i'm just having trouble transmitting or receiving the status changes properly. If anyone has some guidance on this, I would appreciate it. I also know that I may have too many button states for the buttons, so need some advice. The game is under the "Flag Tab" Thanks

BattleField_Shaun_Revised_V5.5.ino (5.7 KB)

Master_Button_Setup_1.1.ino (4.9 KB)

I would suggest you spend some time with the code you have and are trying to merge and fully understand how it operates in conjunction as to what it does. Programing is not a simple task of "smashing" several pieces of code together and expect it to work. You could also work out a flow chart of the existing code then make notations as to how you need to change it. What you are attempting is not a weekend project. You will also have to get rid of the delays as they stall the program.

Thanks for your response, Yes I've been working on this for quite a while. I have broken these down several times in all different ways, but its either too simple and i find examples with only half of what I need or things I don't need. I've searched tirelessly and maybe don't know what to search for. lol seems like there are many different languages. But the simplest thing I need is: basically have 4 buttons on the one node, to send to 4 led's on the other module and be able to have the states of them change when needed. Any Ideas on how to do that or where to look or what to search for would be greatly appreciated.

Start where you can send and receive a single byte. Then in that byte use a bit for each button. That should get you started. Stay with C++ on the Arduino.

Ok I’ll give that a shot thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.