Skip to main content
edited title
Link
dda
  • 1.6k
  • 1
  • 12
  • 17

Give zero volttovolt to specific servo motors in a certain time

deleted 305 characters in body; edited title
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 17

give Give zero volts tovoltto specific servo motors in a certain time

I have a robot that uses 4 mechanical arms. Each mechanical arm havehas 4 "READYTOSKY 30kg" servo motors on them. There is a moment that

At some point, I need to use the absolute maximum force of only two mechanical arms (while the other two will stay still). Even though I do not change the coordinates of the other two mechanical arms (which I am not using) they,they consume voltage and "takes"take away" the full potential of force from the other two. Is

Is there a way to stop the voltage consumed by the two other arms just for a brief moment using the Arduino code? shortlyShortly afterwards they will get back the voltage they need.

    if(level==25)                                                     
      { 
        pwm.setPWM(12, 0, 200);
        pwm.setPWM(13, 0, 255);
        pwm.setPWM(14, 0, 430);
        delay(100);
        pwm.setPWM(1, 0, 380);                                      
        pwm.setPWM(2, 0, 520);
        delay(500);
        pwm.setPWM(0, 0, 170);
        delay(600);


 
        stepperten.setCurrentPosition(0);                            
        while (stepperten.currentPosition() != (-3*200)) 
        {
        stepperten.setSpeed(-600); 
        stepperten.runSpeed();
        }
 
        steppertwist.setCurrentPosition(0);                        
        while (steppertwist.currentPosition() != (100)) 
        {
          steppertwist.setSpeed(200);
          steppertwist.run();
        }
 
        stepper1.setCurrentPosition(0);
        while(stepper1.currentPosition() != (30))         
        {
          stepper1.setSpeed(200);
          stepper1.run();
        }

        // stepperten.setCurrentPosition(0);                         
        // while (stepperten.currentPosition() != (-3*100)) 
        // {
        // stepperten.setSpeed(-600); 
        // stepperten.runSpeed();
        // }

        pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENTMOMENT I NEED TO STOP VOLATEVOLTAGE FOR OTHER ARMS                               
        pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
        delay(1500);                                  
        pwm.setPWM(12, 0, 125);
        // pwm.setPWM(14, 0, 395);

        array1[25][0] = 170;                           
        array1[25][1] = 295;
        array1[25][2] = 400;
        array1[25][3] = 153;
        array4[25][0] = 125;
        array4[25][1] = 255;
        array4[25][2] = 395;
      }

give zero volts to specific servo motors in a certain time

I have a robot that uses 4 mechanical arms. Each mechanical arm have 4 "READYTOSKY 30kg" servo motors on them. There is a moment that I need to use the absolute maximum force of only two mechanical arms (while the other two will stay still). Even though I do not change the coordinates of the other two mechanical arms (which I am not using) they consume voltage and "takes away" the full potential of force from the other two. Is there a way to stop the voltage consumed by the two other arms just for a brief moment using the Arduino code? shortly afterwards they will get back the voltage they need.

    if(level==25)                                                     
      { 
        pwm.setPWM(12, 0, 200);
        pwm.setPWM(13, 0, 255);
        pwm.setPWM(14, 0, 430);
        delay(100);
        pwm.setPWM(1, 0, 380);                                      
        pwm.setPWM(2, 0, 520);
        delay(500);
        pwm.setPWM(0, 0, 170);
        delay(600);


 
        stepperten.setCurrentPosition(0);                            
        while (stepperten.currentPosition() != (-3*200)) 
        {
        stepperten.setSpeed(-600); 
        stepperten.runSpeed();
        }
 
        steppertwist.setCurrentPosition(0);                        
        while (steppertwist.currentPosition() != (100)) 
        {
          steppertwist.setSpeed(200);
          steppertwist.run();
        }
 
        stepper1.setCurrentPosition(0);
        while(stepper1.currentPosition() != (30))         
        {
          stepper1.setSpeed(200);
          stepper1.run();
        }

        // stepperten.setCurrentPosition(0);                         
        // while (stepperten.currentPosition() != (-3*100)) 
        // {
        // stepperten.setSpeed(-600); 
        // stepperten.runSpeed();
        // }

        pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENT I NEED TO STOP VOLATE FOR OTHER ARMS                               
        pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
        delay(1500);                                  
        pwm.setPWM(12, 0, 125);
        // pwm.setPWM(14, 0, 395);

        array1[25][0] = 170;                           
        array1[25][1] = 295;
        array1[25][2] = 400;
        array1[25][3] = 153;
        array4[25][0] = 125;
        array4[25][1] = 255;
        array4[25][2] = 395;
      }

Give zero voltto specific servo motors in a certain time

I have a robot that uses 4 mechanical arms. Each mechanical arm has 4 "READYTOSKY 30kg" servo motors on them.

At some point, I need to use the absolute maximum force of only two mechanical arms (while the other two will stay still). Even though I do not change the coordinates of the other two mechanical arms (which I am not using),they consume voltage and "take away" the full potential of force from the other two.

Is there a way to stop the voltage consumed by the two other arms just for a brief moment using Arduino code? Shortly afterwards they will get back the voltage they need.

    if(level==25)                                                     
      { 
        pwm.setPWM(12, 0, 200);
        pwm.setPWM(13, 0, 255);
        pwm.setPWM(14, 0, 430);
        delay(100);
        pwm.setPWM(1, 0, 380);                                      
        pwm.setPWM(2, 0, 520);
        delay(500);
        pwm.setPWM(0, 0, 170);
        delay(600);
        stepperten.setCurrentPosition(0);                            
        while (stepperten.currentPosition() != (-3*200)) 
        {
        stepperten.setSpeed(-600); 
        stepperten.runSpeed();
        }
        steppertwist.setCurrentPosition(0);                        
        while (steppertwist.currentPosition() != (100)) 
        {
          steppertwist.setSpeed(200);
          steppertwist.run();
        }
        stepper1.setCurrentPosition(0);
        while(stepper1.currentPosition() != (30))         
        {
          stepper1.setSpeed(200);
          stepper1.run();
        }

        pwm.setPWM(1, 0, 295); //THIS IS THE MOMENT I NEED TO STOP VOLTAGE FOR OTHER ARMS                               
        pwm.setPWM(2, 0, 400); //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
        delay(1500);                                  
        pwm.setPWM(12, 0, 125);

        array1[25][0] = 170;                           
        array1[25][1] = 295;
        array1[25][2] = 400;
        array1[25][3] = 153;
        array4[25][0] = 125;
        array4[25][1] = 255;
        array4[25][2] = 395;
      }
if(level==25)                                                     
  { 
    pwm.setPWM(12, 0, 200);
    pwm.setPWM(13, 0, 255);
    pwm.setPWM(14, 0, 430);
    delay(100);
    pwm.setPWM(1, 0, 380);                                      
    pwm.setPWM(2, 0, 520);
    delay(500);
    pwm.setPWM(0, 0, 170);
    delay(600);



    stepperten.setCurrentPosition(0);                            
    while (stepperten.currentPosition() != (-3*200)) 
    {
    stepperten.setSpeed(-600); 
    stepperten.runSpeed();
    }

    steppertwist.setCurrentPosition(0);                        
    while (steppertwist.currentPosition() != (100)) 
    {
      steppertwist.setSpeed(200);
      steppertwist.run();
    }

    stepper1.setCurrentPosition(0);
    while(stepper1.currentPosition() != (30))         
    {
      stepper1.setSpeed(200);
      stepper1.run();
    }

    // stepperten.setCurrentPosition(0);                         
    // while (stepperten.currentPosition() != (-3*100)) 
    // {
    // stepperten.setSpeed(-600); 
    // stepperten.runSpeed();
    // }

    pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENT I NEED TO STOP VOLATE FOR OTHER ARMS                               
    pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
    delay(1500);                                  
    pwm.setPWM(12, 0, 125);
    // pwm.setPWM(14, 0, 395);

    array1[25][0] = 170;                           
    array1[25][1] = 295;
    array1[25][2] = 400;
    array1[25][3] = 153;
    array4[25][0] = 125;
    array4[25][1] = 255;
    array4[25][2] = 395;
  }
  

Thank you

    if(level==25)                                                     
      { 
        pwm.setPWM(12, 0, 200);
        pwm.setPWM(13, 0, 255);
        pwm.setPWM(14, 0, 430);
        delay(100);
        pwm.setPWM(1, 0, 380);                                      
        pwm.setPWM(2, 0, 520);
        delay(500);
        pwm.setPWM(0, 0, 170);
        delay(600);



        stepperten.setCurrentPosition(0);                            
        while (stepperten.currentPosition() != (-3*200)) 
        {
        stepperten.setSpeed(-600); 
        stepperten.runSpeed();
        }

        steppertwist.setCurrentPosition(0);                        
        while (steppertwist.currentPosition() != (100)) 
        {
          steppertwist.setSpeed(200);
          steppertwist.run();
        }

        stepper1.setCurrentPosition(0);
        while(stepper1.currentPosition() != (30))         
        {
          stepper1.setSpeed(200);
          stepper1.run();
        }

        // stepperten.setCurrentPosition(0);                         
        // while (stepperten.currentPosition() != (-3*100)) 
        // {
        // stepperten.setSpeed(-600); 
        // stepperten.runSpeed();
        // }

        pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENT I NEED TO STOP VOLATE FOR OTHER ARMS                               
        pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
        delay(1500);                                  
        pwm.setPWM(12, 0, 125);
        // pwm.setPWM(14, 0, 395);

        array1[25][0] = 170;                           
        array1[25][1] = 295;
        array1[25][2] = 400;
        array1[25][3] = 153;
        array4[25][0] = 125;
        array4[25][1] = 255;
        array4[25][2] = 395;
      }
if(level==25)                                                     
  { 
    pwm.setPWM(12, 0, 200);
    pwm.setPWM(13, 0, 255);
    pwm.setPWM(14, 0, 430);
    delay(100);
    pwm.setPWM(1, 0, 380);                                      
    pwm.setPWM(2, 0, 520);
    delay(500);
    pwm.setPWM(0, 0, 170);
    delay(600);



    stepperten.setCurrentPosition(0);                            
    while (stepperten.currentPosition() != (-3*200)) 
    {
    stepperten.setSpeed(-600); 
    stepperten.runSpeed();
    }

    steppertwist.setCurrentPosition(0);                        
    while (steppertwist.currentPosition() != (100)) 
    {
      steppertwist.setSpeed(200);
      steppertwist.run();
    }

    stepper1.setCurrentPosition(0);
    while(stepper1.currentPosition() != (30))         
    {
      stepper1.setSpeed(200);
      stepper1.run();
    }

    // stepperten.setCurrentPosition(0);                         
    // while (stepperten.currentPosition() != (-3*100)) 
    // {
    // stepperten.setSpeed(-600); 
    // stepperten.runSpeed();
    // }

    pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENT I NEED TO STOP VOLATE FOR OTHER ARMS                               
    pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
    delay(1500);                                  
    pwm.setPWM(12, 0, 125);
    // pwm.setPWM(14, 0, 395);

    array1[25][0] = 170;                           
    array1[25][1] = 295;
    array1[25][2] = 400;
    array1[25][3] = 153;
    array4[25][0] = 125;
    array4[25][1] = 255;
    array4[25][2] = 395;
  }
  

Thank you

    if(level==25)                                                     
      { 
        pwm.setPWM(12, 0, 200);
        pwm.setPWM(13, 0, 255);
        pwm.setPWM(14, 0, 430);
        delay(100);
        pwm.setPWM(1, 0, 380);                                      
        pwm.setPWM(2, 0, 520);
        delay(500);
        pwm.setPWM(0, 0, 170);
        delay(600);



        stepperten.setCurrentPosition(0);                            
        while (stepperten.currentPosition() != (-3*200)) 
        {
        stepperten.setSpeed(-600); 
        stepperten.runSpeed();
        }

        steppertwist.setCurrentPosition(0);                        
        while (steppertwist.currentPosition() != (100)) 
        {
          steppertwist.setSpeed(200);
          steppertwist.run();
        }

        stepper1.setCurrentPosition(0);
        while(stepper1.currentPosition() != (30))         
        {
          stepper1.setSpeed(200);
          stepper1.run();
        }

        // stepperten.setCurrentPosition(0);                         
        // while (stepperten.currentPosition() != (-3*100)) 
        // {
        // stepperten.setSpeed(-600); 
        // stepperten.runSpeed();
        // }

        pwm.setPWM(1, 0, 295);   //THIS IS THE MOEMENT I NEED TO STOP VOLATE FOR OTHER ARMS                               
        pwm.setPWM(2, 0, 400);   //AND GET THE MAXIMUM VOLTAGE POSSIBLE ON THESE TWO ARMS
        delay(1500);                                  
        pwm.setPWM(12, 0, 125);
        // pwm.setPWM(14, 0, 395);

        array1[25][0] = 170;                           
        array1[25][1] = 295;
        array1[25][2] = 400;
        array1[25][3] = 153;
        array4[25][0] = 125;
        array4[25][1] = 255;
        array4[25][2] = 395;
      }
deleted 788 characters in body
Source Link
Noy
  • 11
  • 1
Loading
Source Link
Noy
  • 11
  • 1
Loading