Germany
Asked

Relative Servo Error On Connect

Hello...

... I had the mistake for a long time and was looking for it:

Many of my servos moved uncontrollably when connecting! (different lengths, different random movements)

At some point I noticed that the error occurs with all servos that are connected as "relative servo"!

If I delete the relative servos and control them individually (horizontal servo, for example), the error no longer occurs!

I also started a new project for testing, the error also occurs there.

Anyone have an idea? Since I have a lot of movements for my robot where the motors have to move in opposite directions, I now have a problem.

I can program and then call each position individually but that would be a lot of extra work ...


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
PRO
Germany
#2   — Edited

Yes, thanks, I know that every servo control has a multi servo function, but unfortunately I cannot call it from a script and I need that.

If there is no long-term solution, I can write a small script for every position that contains the servo positions, and then call the small script from the main script.

But that would mean a lot of work with 10 servos and would be very confusing.

All other singel Servos works fine (no randrom movements on connect)

Author Avatar
PRO
Synthiam
#3  

I'll take a look at it - stay tuned:)

Author Avatar
PRO
Germany
#4  

No Problem... I upload a Video how it looks when i connect:

https://youtu.be/HICIsW5o9Rc

maybe it helps. Maybe the mistake is mine, but I just don't know where.

Author Avatar
PRO
Germany
#5   — Edited

ok i was able to isolate the error. I deleted all servos from my project and wrote a small script. This should simulate a relative servo.

The script works. If I connect without the script working there is no error.

When I start the script and connect all the motors go crazy like in the video.

Although I deleted all servo controls from the project as I said.

This is the script:

:start

############# Flabs Hoch Runter v1 ########################### $SERVO_V1 = GetServo(V1) Servo( D8, $SERVO_V1 ) Servo( D10, $SERVO_V1 )

############# augen rechts links v5  ########################### $SERVO_V5 = GetServo(V5) Servo( D4, $SERVO_V5 ) Servo( D14, $SERVO_V5 )

goto (start)

The error seems to occur as soon as I use viritual ports.

I was hoping to work around the error if I didn't add a "Relative Servo" but wrote my own script that do the same... Now I am at a loss...

Author Avatar
PRO
Germany
#7   — Edited

Much better! Now the problem only occurs when I use a relative servo move from a script. And only the first time. After that I can also end the connection and reconnect, the error does not occur. Only when I disconnect and reconnect the EZ-B from the power and then control a relative servo with a script - then the error occurs again.

I always start and end the connection with all servos in the same position. If I only control the relative servos by hand everything works.

As I said, only the first time a script is started after the EZ-B has no power, the error occurs once.

wouldn't be that bad either, but I could break components if the servos don't move synchronously.

Author Avatar
PRO
Synthiam
#8  

I can’t seem to reproduce the situation you’re experiencing. Can you create a basic project and post it in your response?