Hi there,
I have a servo connected to a joystick such that when I move the joystick handle up the servo horn moves up and vice versa. The code for this is running though the arduino. At the moment the servo is moving far too fast, how can I do this?
Is there some code I can use as I can't seem to find any suggestions on the nets.
Here is the part of my code which controls the servo:
ServoVal = analogRead(joystick);
ServoVal = map(ServoVal, 0, 1023, 80, 0);
Myservo.write(ServoVal);
Thank you!
I have a servo connected to a joystick such that when I move the joystick handle up the servo horn moves up and vice versa. The code for this is running though the arduino. At the moment the servo is moving far too fast, how can I do this?
Is there some code I can use as I can't seem to find any suggestions on the nets.
Here is the part of my code which controls the servo:
ServoVal = analogRead(joystick);
ServoVal = map(ServoVal, 0, 1023, 80, 0);
Myservo.write(ServoVal);
Thank you!