Keyestudio 4DOF Manual page 135

Robot mechanical arm kit for arduino diy
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents