#include <OzIDManager.h> #include <OzServoController.h> OzIDManager* manager; OzServoController* servocontroller; void setup() { Serial.begin(115200); manager = new OzIDManager; manager->_sendACK = true; manager->_checksum = true; OzCommunication::setIDManager(manager); servocontroller = new OzServoController; //pin 6, MG996R servo (motor min -60, motor max +60), starting angle +5 servocontroller->AddMotorconfig(6, ServoMotors::SERVO_MG996R, 5); int x=1; manager->sendLinkSetup(); manager->PrintWelcomeLine(servocontroller, x++, "MyServoMotor"); servocontroller->showMotorDetails(); } void loop() { OzCommunication::communicate(); }
More information
- How to setup a servo motor on arduino mega
- How to setup a servo motor on arduino nano
- How to setup a servo motor on arduino uno
- How to setup a servo motor on Ozeki matrix
- Servo motor protocol for arduino
- How to control a servo motor using chat messages
- Servo Motor Desc
- Servo Arduino
- Servo Matrix Arduino
- Servo RaspPI Shield