It is very simple device, 2 continuous servos FS5113R, rotates continuously in one direction. Here is device original content, which is this servo shield it looks like russian, and here is library, I have added to Arduino IDE, also I have original code, which runs this device, given below.
I'm trying to figure out, what can I do with speed, to run it slower, I've tried change delay(15); number to 1000, but it moves with same speed. I've tried increment variable in while (z < 2) loop and pass it with interval, but speed is same:
#include <Wire.h>
#include <Multiservo.h>
#define SERVO_COUNT 2
Multiservo servo[SERVO_COUNT];
int pos1 = 0;
int pos2 = 0;
int z = 1;
void setup(void)
{
Wire.begin();
for (int i = 0; i < SERVO_COUNT; ++i)
{
servo[i].attach(i);
servo[i].write(0);
}
}
void loop(void)
{
while (z < 2){
pos1 + 1;
pos2 + 1;
servo[1].write(pos1);
servo[2].write(pos2);
delay(15);
}
}
Any advice, guide or example would be useful
pos1orpos2, thus the speed doesn't change. Try doingpos1++;instead ofpos1 + 1pos1andpos2overflow. This would take 136h. Is this, what you are seeing? Since the servo cannot change direction very fast, that movement wouldn't be very strong, maybe just a long twitch at the start of the program