Code to Note:
In the previous assembly, we have set the square wave and servo angle. So we should use the servo libraries to
control the angle of each servo. The test result is the same. Before using, place the Servo folder inside the libraries
folder of Arduino IDE directory, then open the Arduino IDE, and the libraries are able to use.
You can download all the libraries for test code from the link:
https://drive.google.com/open?id=1HtyzuNT59Av5QP8nO0kv6syQsoK1fUOw
Test Code 1:
*******************************************************************************************************************************
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup()
{
Serial.begin(9600);
delay(1000);
}
void loop()
{
132
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers