Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operate Multiple Servos #5

Closed
ghost opened this issue Oct 15, 2018 · 11 comments
Closed

Operate Multiple Servos #5

ghost opened this issue Oct 15, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2018

Hi ! How are you? I'm trying use your library with multiple servos (actually are 4), but i'm getting some trouble because in sometimes it begins to jittering any suggestion ?

@KM6TCC
Copy link

KM6TCC commented Oct 15, 2018

Perhaps I can give you a hand.. I've used it and it works just great...
at what point does the jitter start and is it on all servos??
and which GPIO's are you using?

@ghost
Copy link
Author

ghost commented Oct 15, 2018

Perhaps I can give you a hand.. I've used it and it works just great...
at what point does the jitter start and is it on all servos??
and which GPIO's are you using?

Oh, Thanks !!!! I'm using GPIO 4,5,6,7 Arduino Mega, yeah its in all servos, based on the example "MoveList, i just would like move the servos smoothly based on a list of movements, maybe two list and flip the other two servos.

@KM6TCC
Copy link

KM6TCC commented Oct 15, 2018 via email

@KM6TCC
Copy link

KM6TCC commented Oct 15, 2018 via email

@ghost
Copy link
Author

ghost commented Oct 15, 2018

ok.. try 8,9,10,11 I had that issue a while back. and does it happends on all servos?

On Mon, Oct 15, 2018 at 2:26 PM KidMustard @.***> wrote: Perhaps I can give you a hand.. I've used it and it works just great... at what point does the jitter start and is it on all servos?? and which GPIO's are you using? I'm using GPIO 4,5,6,7 Arduino Mega — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnJC9Wu1y9SvtH51KobhhwSxjfioqOcks5ulP2KgaJpZM4XdJr1 .

Yeah !
Here its my Code

#include <Servo.h>
#include "ServoEaser.h"

/* Servo setup */
int servoFrameMillis = 20;

const int servo1Pin = 8;
const int servo2Pin = 9;
const int servo3Pin = 10;
const int servo4Pin = 11;

Servo ring1,ring2,ring3,ring4;

ServoEaser ring1Easer, ring2Easer, ring3Easer, ring4Easer;

ServoMove movesList1[] = {
{ 10, 15000},
{170, 15000},
{ 10, 15000},
{170, 15000},
{ 90, 15000},
{ 90, 15000}, // 90
{135, 15000},
{ 45, 15000},
{135, 15000},
};
int movesCount = 9;
ServoMove* ring1Moves = movesList1;

void setup() {

Serial.begin(19200);

ring1.attach(servo1Pin);
ring2.attach(servo2Pin);
ring3.attach(servo3Pin);
ring4.attach(servo4Pin);

ring1Easer.begin(ring1, servoFrameMillis);
ring2Easer.begin(ring2, servoFrameMillis);
ring2Easer.setFlipped(true);
//ring3Easer.begin(ring3, servoFrameMillis);
//ring4Easer.begin(ring4, servoFrameMillis);

//ring1Easer.useMicroseconds(true);
ring1Easer.play( ring1Moves, movesCount);
//ring2Easer.play( ring1Moves, movesCount);

}

void loop() {
ring1Easer.update();
ring2Easer.update();

}

@ghost
Copy link
Author

ghost commented Oct 15, 2018

also what type of power supply are you using?.. On Mon, Oct 15, 2018 at 2:30 PM Marcelo Pekermann totibross@gmail.com wrote:

ok.. try 8,9,10,11 I had that issue a while back. and does it happends on all servos? On Mon, Oct 15, 2018 at 2:26 PM KidMustard @.***> wrote: > Perhaps I can give you a hand.. I've used it and it works just great... > at what point does the jitter start and is it on all servos?? > and which GPIO's are you using? > > I'm using GPIO 4,5,6,7 Arduino Mega > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#5 (comment)>, > or mute the thread > https://github.com/notifications/unsubscribe-auth/ACnJC9Wu1y9SvtH51KobhhwSxjfioqOcks5ulP2KgaJpZM4XdJr1 > . >

Cotek GE-25-05 (5V) 5A

@KM6TCC
Copy link

KM6TCC commented Oct 15, 2018 via email

@ghost
Copy link
Author

ghost commented Oct 15, 2018

@Totibross sorry, wich code ? Hahah I don't see nothing

@KM6TCC
Copy link

KM6TCC commented Oct 15, 2018 via email

@ghost
Copy link
Author

ghost commented Oct 15, 2018

@Totibross noyd.null@gmail.com, thanks for your help and your time I appreciate that

@todbot
Copy link
Owner

todbot commented Jan 23, 2021

I believe this is solved with PR #9

@todbot todbot closed this as completed Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants