//constnat instantiation for pins & starting speed(s) const int yright = 5; const int yleft = 4; const int button = 0; int speedRight = 75; int speedLeft = 75; //Setting up pins to be output & setting analog joystick value to neutral void setup() { pinMode(yright, OUTPUT); pinMode(yleft, OUTPUT); pinMode(button, OUTPUT); analogWrite(yright, speedRight); analogWrite(yleft, speedLeft); digitalWrite(button, LOW); } void loop() { //iterates through voltage values to vary speed, with an action performed following each iteration for(int speed = 0; speed < 200; speed++){ analogWrite(yright, speed); analogWrite(yleft, speed); delay(100); Serial.println(speed); } digitalWrite(button, HIGH); delay(100); }