You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
And @Gordon: Congratulations for adding Java to Espruino. I missed that. Is it running in parallel to JavaScript or alternatively? :-).
Congratulations on hitting Hackaday!
Yes, the non-calibration of servos is a pain - but I'd be tempted to not even bother trying to get an angle in degrees (what if you're using 2 different types of servos?). Maybe use a percentage instead (and just 1ms-2ms pulse widths, which everything handles). Or maybe -1 to +1, so you can feed the value of
sin
straight into it for nice movements.I imagine that for most things it'd actually be more educational and fun just using trial and error to find the right numbers?