We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5-servo motor control using Arduino `#include "Servo.h"
Servo servo1; Servo servo2; Servo servo3; Servo servo4; Servo servo5; int POT = 0; //int SERVO = 6; int valorPot; int valorMotor = 0;
void setup() { servo1.attach(3); servo2.attach(5); servo3.attach(6); servo4.attach(9); servo5.attach(10); Serial.begin(9600); }
void loop() { valorPot = analogRead(POT); valorMotor = map(valorPot,0,1023,0,180); servo1.write (valorMotor); servo2.write (valorMotor); servo3.write (valorMotor); servo4.write (valorMotor); servo5.write (valorMotor);
Serial.print (valorMotor); delay (20);
}`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
5-servo motor control using Arduino
![Fabulous Jaiks](https://user-images.githubusercontent.com/56202060/126028437-315ab0b4-7964-4769-9ce3-a03c335765d3.png)
`#include "Servo.h"
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
int POT = 0;
//int SERVO = 6;
int valorPot;
int valorMotor = 0;
void setup()
{
servo1.attach(3);
servo2.attach(5);
servo3.attach(6);
servo4.attach(9);
servo5.attach(10);
Serial.begin(9600);
}
void loop()
{
valorPot = analogRead(POT);
valorMotor = map(valorPot,0,1023,0,180);
servo1.write (valorMotor);
servo2.write (valorMotor);
servo3.write (valorMotor);
servo4.write (valorMotor);
servo5.write (valorMotor);
}`
The text was updated successfully, but these errors were encountered: