// give names to pins used. "Left" and "right" refer to joystick location on the controler const int vertical_right = A4; // Analog input pin that the potentiometer is attached to const int horz_right = A5; const int vertical_left = A0; const int horz_left = A1; int vert_right_Value = 0; // value read from the pot int horz_right_Value = 0; int vert_left_Value = 0; int horz_left_Value = 0; void setup() { // initialize serial communications at 9600 bps: Serial.begin(9600); } void loop() { // read the analog in value: vert_right_Value = analogRead(vertical_right); horz_right_Value = analogRead(horz_right); vert_left_Value = analogRead(vertical_left); horz_left_Value = analogRead(horz_left); // print as comma seperated values Serial.print(vert_right_Value); Serial.print(","); Serial.print(horz_right_Value); Serial.print(","); Serial.print(vert_left_Value); Serial.print(","); Serial.print(horz_left_Value); Serial.println(","); delay(200); }