I’m pretty new to this.
Ive been looking for a workaround for some sort of linear/cosine interpolation for servo’s.
This is what i came up with and i am wondering if you could help me with some improvements or error analysis.
Thank you for your time
What this code does is accept a serial input for a continuous rotation servo, do some math to smoothen the speed change, and apply it to the pos/speed variable.
i remember something about a servoex library which should include this but i cant find the tutorials anymore. if anyone knows what im talking about and has a link, that would be amazing.
what it needs to eventually :
compare memory position with (serial )input position value, smoothen change of value.
again thank you !
servo_speed.ino (2.53 KB)