Bluetooth Slider

How can I use multiple slider so that it all can perform different electricity at the movement?

Are the sliders going to be on a web page ?
If so, do you know how to code the HTML to draw them ?

Hello,
show your sketch to see how we can help.

This is a much too much unprecise question to give an answer.
If english is not your native language then do the following:

use google-translate. Write a detailed description of your project in your native language and let do google-translate the translation to english.

यह उत्तर देने के लिए बहुत अधिक अनिश्चित प्रश्न है।
यदि अंग्रेजी आपकी मूल भाषा नहीं है, तो निम्न कार्य करें:

गूगल अनुवाद का उपयोग करें। अपनी परियोजना का विस्तृत विवरण अपनी ** मूल ** भाषा में लिखें और ** Google-अनुवाद ** का अंग्रेज़ी अनुवाद करें।

دا د ځواب ویلو لپاره خورا ډیر بې تجربه پوښتنه ده.
که انګلیسي ژبه ستاسو مورنۍ ژبه نه وي نو لاندې کار وکړئ:

ګوګل ژباړونکی وکاروئ. په خپله ** اصلي ** ژبه کې د خپلې پروژې مفصله لیکنه وکړئ او پرېږدئ چې ** ګوګل ژباړه ** انګلیسي ته ژباړه.

ਇਹ ਉੱਤਰ ਦੇਣ ਲਈ ਬਹੁਤ ਜ਼ਿਆਦਾ ਅਵਿਵਸਥਾ ਪ੍ਰਸ਼ਨ ਹੈ.
ਜੇ ਇੰਗਲਿਸ਼ ਤੁਹਾਡੀ ਮੁ languageਲੀ ਭਾਸ਼ਾ ਨਹੀਂ ਹੈ ਤਾਂ ਹੇਠ ਲਿਖੀਆਂ ਗੱਲਾਂ ਕਰੋ:

ਗੂਗਲ-ਟਰਾਂਸਲੇਟ ਦੀ ਵਰਤੋਂ ਕਰੋ. ਆਪਣੀ ਪ੍ਰੋਜੈਕਟ ਦਾ ਵਿਸਤਾਰਪੂਰਵਕ ਵੇਰਵਾ ਆਪਣੀ ** ਮੂਲ ** ਭਾਸ਼ਾ ਵਿੱਚ ਲਿਖੋ ਅਤੇ ** ਗੂਗਲ-ਟਰਾਂਸਲੇਟ ** ਅਨੁਵਾਦ ਨੂੰ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਕਰਨ ਦਿਓ।

উত্তর দেওয়ার জন্য এটি অনেক বেশি অপ্রকাশিত প্রশ্ন।
ইংরাজী যদি আপনার মাতৃভাষা না হয় তবে নিম্নলিখিতগুলি করুন:

গুগল অনুবাদ ব্যবহার করুন. আপনার প্রকল্পের বিশদ বিবরণ আপনার ** নেটিভ ** ভাষায় লিখুন এবং ইংরেজিতে ** গুগল-অনুবাদ ** করুন let

اس کا جواب دینے کے لئے یہ بہت زیادہ غیر واضح سوال ہے۔
اگر انگریزی آپ کی مادری زبان نہیں ہے تو پھر درج ذیل کام کریں:

گوگل ترجمہ استعمال کریں. اپنے پروجیکٹ کی ایک مفصل تفصیل اپنی ** مقامی ** زبان میں لکھیں اور ** گوگل ٹرانسلیٹ ** انگریزی میں ترجمہ کرنے دیں۔

best regards Stefan

No it is a app called bluetooth electronics.

Hello
How can I control brightness of led through bluetooth. Through slider

I want to control 5 led through bluetooth and I want that I can control all different brightness. I meant to say that i want 5 leds with different brightness through bluetooth

Please fins the attached screenshot where there are 5 slider and from that I want to control 5 different led

Please help me and the code for that also please :pleading_face:

My code is and please tell me that my code is right or not as it had been suscessfully uploaded

  /*
Author: Krishna Agarwal
*/

#include <AFMotor.h>

//Objects
AF_DCMotor motorRight(1, MOTOR12_64KHZ); // create motor #1, 64KHz pwm

//Constants and variable
char dataIn = 'S';
char determinant;
char det;
int vel = 255; //Bluetooth Stuff
int god = 255;
int aod = 255;
int bod = 255;
int cod = 255;
int dod = 255;

void setup() {
  Serial.begin(9600); // set up Serial library at 9600 bps
 
 //Initalization messages
  Serial.println("SAARTHI");
  Serial.println("Mr.PhotoBox");
  Serial.println("Reday for use Lets's Click it !!");
 
  pinMode(8, OUTPUT);  //1 Led
  pinMode(9, OUTPUT);  //2 Led
   pinMode(10, OUTPUT);  //3 Led
   pinMode(11, OUTPUT);  //4 Led
   pinMode(12, OUTPUT);  //5 Led
  
  
  
  //turn off motors
  motorRight.setSpeed(0);
  motorRight.run(RELEASE);
 
}

void loop() {

  //serial code analysis
  switch (det){
    case 'F': // F, move forward
    motorRight.setSpeed(vel);
    motorRight.run(FORWARD);      
    
    break;
    
    case 'B': // B, move back
    motorRight.setSpeed(vel);
    motorRight.run(BACKWARD);      
    
    break;
    
    case 'L':// L, move wheels left
    motorRight.setSpeed(vel/4);
    motorRight.run(FORWARD);      
    
    break;
    
    case 'R': // R, move wheels right
    motorRight.setSpeed(vel/2);
    motorRight.run(FORWARD);     
    
    break;
    
    
    case 'S': 
   // S, stop
    motorRight.setSpeed(vel);
    motorRight.run(RELEASE);      
    
    break;

     case 'G': 
   // G,  1 Light On
    digitalWrite(8, HIGH);
    
    break;

     case 'A': 
   // A,  2 Light on
    digitalWrite(9, aod);
    
    break;
 
 case 'E': 
   // B,  3 Light on
    digitalWrite(10, bod);
    
    break;

     case 'C': 
   // C,  4 Light On
    digitalWrite(11, cod);
    
    break;

     case 'D': 
   // D,  5 Light On
    digitalWrite(12, dod);
    
    break;


     case 'g': 
   // g,  1 Light off
    digitalWrite(8, LOW);
    
    break;

     case 'a': 
   // a,  2 Light off
    digitalWrite(9, LOW);
    
    break;
 
 case 'e': 
   // b,  3 Light off
    digitalWrite(10, LOW);
    
    break;

     case 'c': 
   // c,  4 Light On
    digitalWrite(11, LOW);
    
    break;

     case 'd': 
   // D,  5 Light Off
    digitalWrite(12, LOW);
    
    break;

        case 'Z': 
   // Z,  All Light On
    digitalWrite(8, god);
    digitalWrite(9, aod);
    digitalWrite(10, bod);
    digitalWrite(11, cod);
    digitalWrite(12, dod);
    
    break;

case 'z': 
   // z,  All Light off
    digitalWrite(8, LOW);
    digitalWrite(9, LOW);
    digitalWrite(10, LOW);
    digitalWrite(11, LOW);
    digitalWrite(12, LOW);
    
    break;

   
//get bluetooth code received from serial port

//check the code
     if (dataIn == 'F'){//Forward
      determinant = 'F';
    }
    else if (dataIn == 'B'){//Backward
      determinant = 'B';
    }
    else if (dataIn == 'L'){//Left
      determinant = 'L';
    }
    else if (dataIn == 'R'){//Right
      determinant = 'R';
    }
    else if (dataIn == 'S'){//Stop motor
      determinant = 'S';
    }
    else if (dataIn == 'G'){//1 Light On
      determinant = 'G';
    }
    else if (dataIn == 'A'){//2 Light On
      determinant = 'A';
    }
    else if (dataIn == 'E'){//3 Light On
      determinant = 'E';
    }
    else if (dataIn == 'C'){//4 Light On
      determinant = 'C';
    }
    else if (dataIn == 'D'){//5 Light On
      determinant = 'D';
    }
    else if (dataIn == 'g'){//1 Light Off
      determinant = 'g';
    }
    else if (dataIn == 'a'){//2 Light off
      determinant = 'a';
    }
    else if (dataIn == 'e'){//3 Light Off
      determinant = 'e';
    }
    else if (dataIn == 'c'){//4 Light Off
      determinant = 'c';
    }
    else if (dataIn == 'd'){//5 Light off
      determinant = 'd';
    }else if (dataIn == 'Z'){//All Light On
      determinant = 'Z';
    }
    else if (dataIn == 'z'){//All light off
      determinant = 'z';
    }
    
    else if (dataIn == '0'){//Speed 0
      vel = 0;
    }
    else if (dataIn == '1'){//Speed 25
      vel = 25;
    }
    else if (dataIn == '2'){//Speed 50
      vel = 50;
    }
    else if (dataIn == '3'){//Speed 75
      vel = 75;
    }
    else if (dataIn == '4'){//Speed 100
      vel = 100;
    }
    else if (dataIn == '5'){//Speed 125
      vel = 125;
    }
    else if (dataIn == '6'){//Speed 150
      vel = 150;
    }
    else if (dataIn == '7'){//Speed 175
      vel = 175;
    }
    else if (dataIn == '8'){//Speed 200
      vel = 200;
    }
    else if (dataIn == '9'){//Speed 225
      vel = 225;
    }
    else if (dataIn == '11'){//Led 0
      god = 0;
    }   
     else if (dataIn == '12'){//Led 25
      god = 25;
    }   else if (dataIn == '13'){//Led 50
      god = 50;
    }   else if (dataIn == '14'){//Led 75
      god = 75;
    }   else if (dataIn == '15'){//Led 100
      god = 100;
    }   else if (dataIn == '16'){//Led 125
      god = 125;
    }   else if (dataIn == '17'){//Led 150
      god = 150;
    }   else if (dataIn == '18'){//Led 200
      god = 200;
    }
   else if (dataIn == '19'){//Led 255
      god = 255;
    }
    else if (dataIn == '21'){//Led 0
      aod = 0;
    }   
     else if (dataIn == '22'){//Led 25
      aod = 25;
    }   else if (dataIn == '23'){//Led 50
      aod = 50;
    }   else if (dataIn == '24'){//Led 75
      aod = 75;
    }   else if (dataIn == '25'){//Led 100
      aod = 100;
    }   else if (dataIn == '26'){//Led 125
      aod = 125;
    }   else if (dataIn == '27'){//Led 150
      aod = 150;
    }   else if (dataIn == '28'){//Led 200
      aod = 200;
    }
       else if (dataIn == '29'){//Led 255
      aod = 255;
    }
    else if (dataIn == '31'){//Led 0
      bod = 0;
    }   
     else if (dataIn == '32'){//Led 25
      bod = 25;
    }   else if (dataIn == '33'){//Led 50
      bod = 50;
    }   else if (dataIn == '34'){//Led 75
      bod = 75;
    }   else if (dataIn == '35'){//Led 100
      bod = 100;
    }   else if (dataIn == '36'){//Led 125
      bod = 125;
    }   else if (dataIn == '37'){//Led 150
      bod = 150;
    }   else if (dataIn == '38'){//Led 200
      bod = 200;
    }
       else if (dataIn == '39'){//Led 255
      bod = 255;
    }
    else if (dataIn == '41'){//Led 0
      cod = 0;
    }   
     else if (dataIn == '42'){//Led 25
      cod = 25;
    }   else if (dataIn == '43'){//Led 50
      cod = 50;
    }   else if (dataIn == '44'){//Led 75
      cod = 75;
    }   else if (dataIn == '45'){//Led 100
      cod = 100;
    }   else if (dataIn == '46'){//Led 125
      cod = 125;
    }   else if (dataIn == '47'){//Led 150
      cod = 150;
    }   else if (dataIn == '48'){//Led 200
      cod = 200;
    }
       else if (dataIn == '49'){//Led 255
      cod = 255;
    }
    else if (dataIn == '51'){//Led 0
      dod = 0;
    }   
     else if (dataIn == '52'){//Led 25
      dod = 25;
    }   else if (dataIn == '53'){//Led 50
      dod = 50;
    }   else if (dataIn == '54'){//Led 75
      dod = 75;
    }   else if (dataIn == '55'){//Led 100
      dod = 100;
    }   else if (dataIn == '56'){//Led 125
      dod = 125;
    }   else if (dataIn == '57'){//Led 150
      dod = 150;
    }   else if (dataIn == '58'){//Led 200
      dod = 200;
    }
       else if (dataIn == '59'){//Led 255
      dod = 255;
    }
  }
  return determinant;
}

Where in your code do you read the Bluetooth input ?

//get bluetooth code received from serial port

//check the code
     if (dataIn == 'F'){//Forward
      determinant = 'F';
    }
    else if (dataIn == 'B'){//Backward
      determinant = 'B';
    }
    else if (dataIn == 'L'){//Left
      determinant = 'L';
    }
    else if (dataIn == 'R'){//Right
      determinant = 'R';
    }
    else if (dataIn == 'S'){//Stop motor
      determinant = 'S';
    }
    else if (dataIn == 'G'){//1 Light On
      determinant = 'G';
    }
    else if (dataIn == 'A'){//2 Light On
      determinant = 'A';
    }
    else if (dataIn == 'E'){//3 Light On
      determinant = 'E';
    }
    else if (dataIn == 'C'){//4 Light On
      determinant = 'C';
    }
    else if (dataIn == 'D'){//5 Light On
      determinant = 'D';
    }
    else if (dataIn == 'g'){//1 Light Off
      determinant = 'g';
    }
    else if (dataIn == 'a'){//2 Light off
      determinant = 'a';
    }
    else if (dataIn == 'e'){//3 Light Off
      determinant = 'e';
    }
    else if (dataIn == 'c'){//4 Light Off
      determinant = 'c';
    }
    else if (dataIn == 'd'){//5 Light off
      determinant = 'd';
    }else if (dataIn == 'Z'){//All Light On
      determinant = 'Z';
    }
    else if (dataIn == 'z'){//All light off
      determinant = 'z';
    }
    
    else if (dataIn == '0'){//Speed 0
      vel = 0;
    }
    else if (dataIn == '1'){//Speed 25
      vel = 25;
    }
    else if (dataIn == '2'){//Speed 50
      vel = 50;
    }
    else if (dataIn == '3'){//Speed 75
      vel = 75;
    }
    else if (dataIn == '4'){//Speed 100
      vel = 100;
    }
    else if (dataIn == '5'){//Speed 125
      vel = 125;
    }
    else if (dataIn == '6'){//Speed 150
      vel = 150;
    }
    else if (dataIn == '7'){//Speed 175
      vel = 175;
    }
    else if (dataIn == '8'){//Speed 200
      vel = 200;
    }
    else if (dataIn == '9'){//Speed 225
      vel = 225;
    }
    else if (dataIn == '11'){//Led 0
      god = 0;
    }   
     else if (dataIn == '12'){//Led 25
      god = 25;
    }   else if (dataIn == '13'){//Led 50
      god = 50;
    }   else if (dataIn == '14'){//Led 75
      god = 75;
    }   else if (dataIn == '15'){//Led 100
      god = 100;
    }   else if (dataIn == '16'){//Led 125
      god = 125;
    }   else if (dataIn == '17'){//Led 150
      god = 150;
    }   else if (dataIn == '18'){//Led 200
      god = 200;
    }
   else if (dataIn == '19'){//Led 255
      god = 255;
    }
    else if (dataIn == '21'){//Led 0
      aod = 0;
    }   
     else if (dataIn == '22'){//Led 25
      aod = 25;
    }   else if (dataIn == '23'){//Led 50
      aod = 50;
    }   else if (dataIn == '24'){//Led 75
      aod = 75;
    }   else if (dataIn == '25'){//Led 100
      aod = 100;
    }   else if (dataIn == '26'){//Led 125
      aod = 125;
    }   else if (dataIn == '27'){//Led 150
      aod = 150;
    }   else if (dataIn == '28'){//Led 200
      aod = 200;
    }
       else if (dataIn == '29'){//Led 255
      aod = 255;
    }
    else if (dataIn == '31'){//Led 0
      bod = 0;
    }   
     else if (dataIn == '32'){//Led 25
      bod = 25;
    }   else if (dataIn == '33'){//Led 50
      bod = 50;
    }   else if (dataIn == '34'){//Led 75
      bod = 75;
    }   else if (dataIn == '35'){//Led 100
      bod = 100;
    }   else if (dataIn == '36'){//Led 125
      bod = 125;
    }   else if (dataIn == '37'){//Led 150
      bod = 150;
    }   else if (dataIn == '38'){//Led 200
      bod = 200;
    }
       else if (dataIn == '39'){//Led 255
      bod = 255;
    }
    else if (dataIn == '41'){//Led 0
      cod = 0;
    }   
     else if (dataIn == '42'){//Led 25
      cod = 25;
    }   else if (dataIn == '43'){//Led 50
      cod = 50;
    }   else if (dataIn == '44'){//Led 75
      cod = 75;
    }   else if (dataIn == '45'){//Led 100
      cod = 100;
    }   else if (dataIn == '46'){//Led 125
      cod = 125;
    }   else if (dataIn == '47'){//Led 150
      cod = 150;
    }   else if (dataIn == '48'){//Led 200
      cod = 200;
    }
       else if (dataIn == '49'){//Led 255
      cod = 255;
    }
    else if (dataIn == '51'){//Led 0
      dod = 0;
    }   
     else if (dataIn == '52'){//Led 25
      dod = 25;
    }   else if (dataIn == '53'){//Led 50
      dod = 50;
    }   else if (dataIn == '54'){//Led 75
      dod = 75;
    }   else if (dataIn == '55'){//Led 100
      dod = 100;
    }   else if (dataIn == '56'){//Led 125
      dod = 125;
    }   else if (dataIn == '57'){//Led 150
      dod = 150;
    }   else if (dataIn == '58'){//Led 200
      dod = 200;
    }
       else if (dataIn == '59'){//Led 255
      dod = 255;
    }
  }
  return determinant;
}

Here I am mention to get bluethooth code please help

You mention getting a value from Bluetooth, by which I presume you mean the value of dataIn, but where in the program is its value set apart from when it is declared ?

By the way, tests like this

if (dataIn == '43')

won't work because a char variable, such as dataIn, can only hold a single character

This thread is starting to cover the same ground as @krishna_agarwal's other topic:

@krishna_agarwal it's OK to have separate topics for distinct subjects related to the same project, but we must be careful not to allow them to converge.

This value will get it from side a bluetooth slider when I will slide it will change the value of the power

How can I control brightness of led through bluetooth. Through slider

I want to control 5 led through bluetooth and I want that I can control all different brightness. I meant to say that i want 5 leds with different brightness through bluetooth

Please tell that my code is right or not or if not so what is the mistake please tell me so that I can correct it.

I am new I apologize for that. But this is the another topic that privious topic for check and this topic is for bluetooth.

I understand that, and as I said it's OK. I'm just pointing out a potential problem.

The app has to transmit values to the Arduino and then they can be interpreted. What hardware have you got connected to the Arduino to receive a Bluetooth message and pass it to the Arduino ?

I have connected HC-05 module, And I am using a app name as bluetooth electronics

How have you connected the HC-05 to the Arduino ?

Yes I think it must be connected to arduino only.

And then I connect from my mobile

It must be connected to the Arduino and you say that you have done that, so which pins is it connected to ?

There is no issue of connection It is successfully connected to the arduino But I presume that my phone is not giving signal to arduino. As my led dose not on when I press on

a successful blue-tooth-connection is not all.
You have to successful read in the values into the arduino
This reading-in is a NON-bluetooth-issue

Smartphone--bluetooth----------HC05----------Arduino-IO-Pins-------Arduino-Program

Arduino-Program is wrong

Post Arduino-Testcode

Please humour me and describe how the HC-05 is connected to the Arduino. The HC-05 has 6 pins if I remember correctly so what are they connected to on the Arduino and which Arduino board do you have ?

I repeat. Where in your code does the Arduino read the input from the HC-05 Bluetooth module ?