|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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.
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |