Go to Post Brains and hard work aren't necessarily about age or grade. - Redhead Jokes [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 17-06-2005, 08:37
Entropia Entropia is offline
Registered User
no team
 
Join Date: Jun 2005
Location: Kauhajoki, Finland
Posts: 2
Entropia is an unknown quantity at this point
Question Problem controlling a servo

Hey

I took the easy way of controlling a servo motor (currently using Hitec HS-311) with PC via its parallel port. I hooked the servo to 4.5V power source and the signal lead to parallel port's data pin 8. I wrote a Win32 application to control it, but it seems to have no control. When I turn the control on, the servo moves to the beginning of its motion range and stays there. I have tried to alternate the "refresh" rate (from 5 milliseconds to a hundred milliseconds) but this only changes the frequency of the servo when it heads to the beginning of its range. I have also tried to alternate the position pulse width from 500 microseconds (0.5 milliseconds) to 2500 microsends (2.5 milliseconds) but it has no effect. Any ideas what might be wrong?

The program is available for download here: servocontrol.zip 220kb
It is hardcoded to use 0x378 parallel port and to use datapin 8 (pin 9 in the connector).

I would be hugely grateful if someone could hook an oscilloscope to the parallel port and see if it outputs proper control pulse/signal. I'm going to take my servo to a local shop and have it checked incase it's faulty.

Regards, Entropia
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Servo Compact Design Problems!!! Dominator_Legen Electrical 22 07-04-2005 18:15
Servo Help Dominator_Legen Motors 3 11-03-2005 19:50
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
The problem with scouting... archiver 2001 10 23-06-2002 23:49
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 10:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi