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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

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