Servo Feedback Calibration by dillon

Servo calibrator using position feedback
This code finds and records the limit for each servo being tested it increments up, then down, until DeltaPos (h-t) ~= 0 at each limit for accuract, it waits 200ms between each reading, and smooths the position input from a poll of 100 readings, discarding the oulying 15% readings at each extreme The outer limit pulse and position for each servo are then recorded in an array

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:358768" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>