Go to Post I shouldn't be doing a happy dance or anything, should I? - Qbranch [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 18-06-2005, 14:54
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Re: Problem controlling a servo

The pulse going to the servo should be between 1mS (far one side) and 2 mS (Far other side). When you get outside of that, you get un-predictable results.
__________________
2005 Philly #1 seeded team, highest average points, and semi-finalists
Thanks to 103 and 484 for being alliance mates.
  #3   Spotlight this post!  
Unread 18-06-2005, 18:36
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
Re: Problem controlling a servo

Problem found; faulty parallel port. It gives out a nice 5V when not loaded but even a single LED attached to it drops the voltage down to 2V. And that's not enough to even signal the servo. Next up: building a buffer circuit. Recommendations appreciated.
Closed Thread


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 21:57.

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