slipstick:
There's code in there for reading the potentiometers. Just swap the servo.write() code for whatever you use for running your motors.
You're going to have to make some attempt to do some of this yourself. Then we can help you get it going. But we're not here to just write your program for you.
Steve
Steve,
yes I'm willing to work.
#include <Servo.h>
Servo myservo3;
Servo myservo5;
Servo myservo6;
Servo myservo8;
int potpin = 0;
int potpin2 = 1;
int potpin3 = 2;
int potpin4 = 3;
int val = 0;
int val2 = 0;
int val3 = 0;
int val4 = 0;
void setup()
{
myservo3.attach(9);
myservo5.attach(10);
myservo6.attach(11);
myservo8,attach(12);
}
void loop()
{
val = analogRead(potpin);
val = map(val, 3, 1023, 0, 176);
myservo3.write(val);
delay(25);
val2 = analogRead(potpin2);
val2 = map(val2, 3, 1023, 0, 176);
myservo5.write(val2);
delay(25);
val3 = analogRead(potpin3);
val3 = map(val3, 3, 1023, 0, 175);
myservo6.write(val3);
delay(25);
val4 = analogRead(potpin3);
val4 = analogRead(potpin3);
myservo8.write(val4);
delay(25);
}
This is the code I have so far. does it look reasonable?