Asked — Edited

Servo Speed Control

Having problems with speed control and couple other questions some one may have answers to.

  1. EzB_Connect1.EZB.Servo.SetServoSpeed(Servo.ServoPortEnum.D3, 90). Does 90 mean 90% of power. If so it is very slow. I notice that in the servo Speed Control it uses 0-9. The lower seems to be the faster speed. Do I use 0-9 for the VB command?

  2. How do I control the Hbridge control from VB? When I use EZ I have to adjust teh PWM on start up to get the robot moving, usually it has to be at 90 or above to get Thumper moving. But what to send to PWM to get Thumper moving under VB.

These are 2 seperate question and I cna probaably adapt if some one is using C code.

Thanks for the help.


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

PRO
Synthiam
#1  

In the EZ-SDK are 50 or so examples in C#. The only difference between C# and VB is that VB is case insensitive. That means EZ_B must be EZ_B and not ez_b, etc..

You will find the answers to your questions there :). Tutorial 43 will be of interest to you.

Also, here is a link to the manual: https://synthiam.com/SDK . You may find that link from the Downloads page.

Under the "SERVO" section, you will find this...

Quote:

Servo

Field:EZ_B.Servo.SERVO_SPEED_FASTEST

  • The slowest speed for a servo (0)

Field:EZ_B.Servo.SERVO_SPEED_SLOWEST

  • The slowest speed for a servo (10)

Field:EZ_B.Servo.SERVO_MAX

  • The maximum value for a servo (100)

Field:EZ_B.Servo.SERVO_CENTER

  • The ideal center value of a servo (50)

Field:EZ_B.Servo.SERVO_MIN

  • The minimum value of a servo (1)

Field:EZ_B.Servo.SERVO_OFF

  • The value of a servo to disable

Method:EZ_B.Servo.SetServoPosition(EZ_B.Servo.ServoPortEnum, System.Int32, System.Int32)

  • Set the speed and position of a servo

Method:EZ_B.Servo.SetServoPosition(EZ_B.Servo.ServoPortEnum, System.Int32)

  • Set the position of a servo Uses the last speed specified

Method:EZ_B.Servo.SetServoSpeed(EZ_B.Servo.ServoPortEnum, System.Int32)

  • Set the speed of a servo

Etc...