Jump to content

Servo motor control


spacetoon34

Recommended Posts

Hello,

I tried to control Hs-311 servo motor for position control, but it dosen't work.

The servo is applied by 50 Hz pulses(20 ms), every pulse contain on/off duty, the on duty determine the position of the servo and our servo is deal with ( 0.9ms - 2.1 ms ) on duty to cover the rang (0-180 degree). so i want to generate a train of pulses with 50Hz and 0.1 ms resolution at minimum, and i can control the duty by a knob and output at parallel port 0x378.

|0.9-2.1ms|

________ ________

| | | |

| | | |

___________| |______________| |____________

| 20ms |

That's what i want to out

i will attached to you my try.

please help.

Link to comment

QUOTE(spacetoon34 @ Apr 5 2007, 05:08 AM)

Hello,

I tried to control Hs-311 servo motor for position control, but it dosen't work.

The servo is applied by 50 Hz pulses(20 ms), every pulse contain on/off duty, the on duty determine the position of the servo and our servo is deal with ( 0.9ms - 2.1 ms ) on duty to cover the rang (0-180 degree). so i want to generate a train of pulses with 50Hz and 0.1 ms resolution at minimum, and i can control the duty by a knob and output at parallel port 0x378.

Hi,

as Mikkel said, check that other thread for answers.

The VI you supplied won't work in any LabVIEW environment, due to that you are trying to Wait 0.1 ms.

The DBL value (generated from 1/10000), is coerced to a U32 value and is interpreted as 0 (zero), so the wait for next multiple waits for 0 ms.

/J

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.