10 button controls

10 button controlsgfhk.........

Hi formvell,

you seem to misunderstand how this forum works.

it is unpollite to write everything in CAPITAL letters.
It is It is perceived as SCREAMING

This has rejected the first 50% of your potential helpers.

As you already use google translation. In your native language write a much more detailed description in normal words what you want to achive.

Having to ask back to understand your question is driving away some more potential helpers from answering.

If this is too much effort for you: Try to find a ready to use device you can buy off the shelf.

To come back to your question "how can I make...."

Now the answer is: by learning programming. Nobody here will write the complete code for you. You can ask 100 questions about details and you will get 300 to 500 answers. But nobody will write the complete code for you.

best regards Stefan

What does it matter, big or small. Excuse or nonsense. The excuse of real helpful people cannot be small things. Questions are difficult to get answers

I did not understand what you want to say with that.
I think you know what google is and how to use google
https://www.google.de/search?as_q=arduino+nrf24+button+remote+control

what I would like to say..When I press the buttons, I can see which button I pressed through the serial port from the computer.I want it to perceive it as a joystick button.Can this be solved by fixing and replacing the code?thank you for the answer..

I will answer in the manner you described it:

You need a microcontroller that is able to act as a USB-host.
End of information.

Now you know every detail - right? No wrong. This short answer did not help at all.
you have to provide a much more detailed description of what functionality you want to have. It is not enough that you have a picture in YOUR mind. Can I read your mind? NO!

YOU have to provide enough and detailed information that a very similar picture will be created in the heads of your potential helpers. This requires zero informatic specific words. It need normal words and hand-drawings.

is it understood?

Hello
show your sketch for the rx-data and tx-data function.

transmitter

const byte address [ ] [6] = {“00001”, “00002”};

Hello
I can´t read this sketch.
In the IDE press cntrl +T and copy the formated sketch by using the code </> tags provided by this editor .

Transmitter

RECEİVER
#include <Joystick.h>

does it work

Your code's formatting and indention is atrocious. Type ctrl-t in the Arduino IDE and repost using code tags.

long wewq

OMG!!! How hard can it be to follow simple instructions? THIS:

#include <Joystick.h>
#include <RF24.h>
#include<SPI.h>
Joystick_ Joystick;
RF24 radio(9, 10);
const byte address[ ][6] = {“00001”, “00002”};
const int op1 = 2;
const int op2 = 3;
const int op3 = 4;
const int op4 = 5;
const int op5 = 6;
const int op6 = 7;
const int op7 = 8;
const int op8 = A0;
const int op9 = A1;
const int op10 = A2;
const char buzzer[32] = “buzz”;
char buttonstate[32] = “”;
const char button1[32] = “activate_1”;
const char button2[32] = “activate_2”;
const char button3[32] = “activate_3”;
const char button4[32] = “activate_4”;
const char button5[32] = “activate_5”;
const char button6[32] = “activate_6”;
const char button7[32] = “activate_7”;
const char button8[32] = “activate_8”;
const char button9[32] = “activate_9”;
const char button10[32] = “activate_10”;
boolean status1 = false;
boolean status2 = false;
boolean status3 = false;
boolean status4 = false;
boolean status5 = false;
boolean status6 = false;
boolean status7 = false;
boolean status8 = false;
boolean status9 = false;
boolean status10 = false;
void setup()
{
  Serial.begin(9600);
  pinMode(op1, OUTPUT);
  pinMode(op2, OUTPUT);
  pinMode(op3, OUTPUT);
  pinMode(op4, OUTPUT);
  pinMode(op5, OUTPUT);
  pinMode(op6, OUTPUT);
  pinMode(op7, OUTPUT);
  pinMode(op8, OUTPUT);
  pinMode(op9, OUTPUT);
  pinMode(op10, OUTPUT);
  radio.begin();
  radio.openReadingPipe(1, address[1]);
  radio.openWritingPipe(address[0]);
  radio.setChannel(100);
  radio.setDataRate(RF24_250KBPS);
  radio.setPALevel(RF24_PA_MAX);
  radio.startListening();
}
void loop()
{
  while (!radio.available());
  radio.read(&buttonstate, sizeof(buttonstate));
  Serial.println(buttonstate);
  if ((strcmp(buttonstate, button1) == 0) && status1 == false)
  {
    digitalWrite(op1, HIGH);
    status1 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button1) == 0) && status1 == true)
  {
    digitalWrite(op1, LOW);
    status1 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button2) == 0) && status2 == false)
  {
    digitalWrite(op2, HIGH);
    status2 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button2) == 0) && status2 == true)
  {
    digitalWrite(op2, LOW);
    status2 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button3) == 0) && status3 == false)
  {
    digitalWrite(op3, HIGH);
    status3 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button3) == 0) && status3 == true)
  {
    digitalWrite(op3, LOW);
    status3 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button4) == 0) && status4 == false)
  {
    digitalWrite(op4, HIGH);
    status4 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button4) == 0) && status4 == true)
  {
    digitalWrite(op4, LOW);
    status4 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button5) == 0) && status5 == false)
  {
    digitalWrite(op5, HIGH);
    status5 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button5) == 0) && status5 == true)
  {
    digitalWrite(op5, LOW);
    status5 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button6) == 0) && status6 == false)
  {
    digitalWrite(op6, HIGH);
    status6 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button6) == 0) && status6 == true)
  {
    digitalWrite(op6, LOW);
    status6 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button7) == 0) && status7 == false)
  {
    digitalWrite(op7, HIGH);
    status7 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button7) == 0) && status7 == true)
  {
    digitalWrite(op7, LOW);
    status7 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button8) == 0) && status8 == false)
  {
    digitalWrite(op8, HIGH);
    status8 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button8) == 0) && status8 == true)
  {
    digitalWrite(op8, LOW);
    status8 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button9) == 0) && status9 == false)
  {
    digitalWrite(op9, HIGH);
    status9 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button9) == 0) && status9 == true)
  {
    digitalWrite(op9, LOW);
    status9 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button10) == 0) && status10 == false)
  {
    digitalWrite(op10, HIGH);
    status10 = true;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
  else if ((strcmp(buttonstate, button10) == 0) && status10 == true)
  {
    digitalWrite(op10, LOW);
    status10 = false;
    radio.stopListening();
    for (int i = 0; i < 10; i++)
    {
      radio.write(&buzzer, sizeof(buzzer));
      delay(10);
    }
    radio.startListening();
  }
}

You should post code by using code-tags
There is an automatic function for doing this in the Arduino-IDE
just three steps

  1. press Ctrl-T for autoformatting your code
  2. do a rightclick with the mouse and choose "copy for forum"
  3. paste clipboard into write-window of a posting

best regards Stefan

[code]
#include <RF24.h>

[code]
#include <Joystick.h>
#include <RF24.h>