# Nrf24L01+ airsoft/Paintball/Nerf Capture Points Game help

**URL:** <https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715>\
**Category:** Networking, Protocols, and Devices\
**Created:** [February 5, 2022, 9:08pm UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715 "2022-02-05T21:08:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxspectre](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@foxspectre](https://forum.arduino.cc/u/foxspectre)\
**Post date:** [February 5, 2022, 9:08pm UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/1 "2022-02-05T21:08:14Z")

</div>

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

 ![Capture Points Diagram](https://europe1.discourse-cdn.com/arduino/original/4X/1/f/4/1f4cf278b1bcd83f3ce5dabe58ed40e22ec1b1ba.jpeg)

 ![Capture Points functions](https://europe1.discourse-cdn.com/arduino/original/4X/1/4/2/142db35b51fed336231ab0de20fcc280f7d4a17d.jpeg)

[BattleField\_Shaun\_Revised\_V5.5.ino](https://forum.arduino.cc/uploads/short-url/y4tsaHZ5I36WPJNWu96e1TgsTtF.ino) (5.7 KB)

[Master\_Button\_Setup\_1.1.ino](https://forum.arduino.cc/uploads/short-url/zgpDTq1Xo8MH791jf3CQnPC6ZHh.ino) (4.9 KB)

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [February 6, 2022, 11:03pm UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/2 "2022-02-06T23:03:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![foxspectre](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@foxspectre](https://forum.arduino.cc/u/foxspectre)\
**Post date:** [February 6, 2022, 11:12pm UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/3 "2022-02-06T23:12:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [February 7, 2022, 1:44am UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/4 "2022-02-07T01:44:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![foxspectre](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@foxspectre](https://forum.arduino.cc/u/foxspectre)\
**Post date:** [February 7, 2022, 3:53am UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/5 "2022-02-07T03:53:56Z")

</div>

Ok I’ll give that a shot thanks

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 6, 2022, 3:54am UTC](https://forum.arduino.cc/t/nrf24l01-airsoft-paintball-nerf-capture-points-game-help/955715/6 "2022-08-06T03:54:25Z")

</div>

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