Hi Mitch,
The real problem you're going to have with VB or any Windows
operating system is that they're not 'real time' designed.
The operating system doesn't give any program an exact number of cycles
per second and thus controlling servos, which require an accurately
timed signal, is really an uphill battle.
The normal method is to offload the 'real time' elements to a
microcontroller. There are lots of microcontroller based servo driver
boards that run from a serial RS232 port and even some USB ones.
If you would like I can give you firmware for a servo driver that runs
on a really cheap PIC12C50x or PIC12F50x and runs 4 servos. This runs
from 2400/4800 baud serial that can come from a serial port or
USB-Serial converter unit.
Then just use MSCOMM to send serial bytes to the port and the
microcontroller takes care of all the timing critical servo signal
generation.
For parts and postage cost I could send you the chips, pre programmed.
If you want some of these, please correct the deliberate spelling error
in my email and remove the nospam.
Regards,
Brenden Ede
>>>> Hi all
>>>> this might be better asked in a vb group, but i would like to ask here
[quoted text clipped - 38 lines]
> one extreme of the output shaft's travel, a 2ms pulse is the other extreme
> and a 1.5ms pulse is halfway.
The Real Andy - 29 Mar 2007 09:38 GMT
>Hi Mitch,
> The real problem you're going to have with VB or any Windows
[quoted text clipped - 23 lines]
>Regards,
> Brenden Ede
You can get pretty damn close if you know where to look in the API. If
it is a hobby application then windows should suffice. Do a google for
performance counters, its well documented around the net. IIRC i have
also read about multimedia timers being quite accurate, but I know
nothing about them.
One point is worth mentioning, do it all by polling on a single
thread, not with events. :) ALso set thread priority to high!
>>>>> Hi all
>>>>> this might be better asked in a vb group, but i would like to ask here
[quoted text clipped - 38 lines]
>> one extreme of the output shaft's travel, a 2ms pulse is the other extreme
>> and a 1.5ms pulse is halfway.