basic code to centre and move individual legs
This table has the appropriate values for each leg, from the calibration routine
L1
int highPulse[numServos] = {2162, 2252, 2166}; //pulse set for 180dg
int lowPulse[numServos] = {550, 540, 550}; //0 deg pulse
int cenPulse[numServos] = {1356, 1396, 1358}; //90 deg pulse
//int angleRange [numServos] = {199, 191, 192}; //actual movement range
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:361980" 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>