Skip to main content
1 of 2

Code to control servo with shield

I recently bought an Arduino MEGA2560 and a shield from Sainsmart

I understand how to control a servo in the method described in https://www.arduino.cc/en/Tutorial/Sweep. However, I want to control six servos using the shield area circled in red below. Could anyone provide the code to setup and control servos from the area circled in red?

Please help me I am a beginner in robotics and I need this for a project. Thank you.

enter image description here