Controlling Motor With Computer
Controlling Motor With Computer
(OP)
Does anyone know if I can use visual basic to regulate the voltage that comes through pins on a serial port I just want one pin to be ground and the others to be basically funtion generators. I want them to output some voltage that I can control... Any ideas?
~Noochstyle
~Noochstyle





RE: Controlling Motor With Computer
You might be able to do what you want on the parallel port. The parallel port has at least 8 outputs that you can control.
TTFN
RE: Controlling Motor With Computer
There's also a lot of other stuff you need to do - setting Start Bits, Stop Bits, Parity etc. It's usually not worth the effort.
A quick search on Google will get you more information about using the parallel port but only try this stuff on an old computer that you can afford to break! Also, the latest computers have "enhanced" printer ports - these may not work at all and I think some (newer) operating systems try to stop you accessing the ports directly.
See the following for an example of what is available...
http://www.hut.fi/Misc/Electronics/circuits/parallel_output.html
RE: Controlling Motor With Computer
The parallel port may even be shared between the printer
and the controlled circuit.
You regulate the voltade using DAC -- Digital - Analog Converter. Some you can control with two pins/lines
or even one, with additional logic.
<nbucska@pcperipherals.com>
RE: Controlling Motor With Computer
However, if you are hoping to write a Windoze program then you will probably need to learn something like C++ and how to write DLL files because any Operating System like NT,2000 or XP will not allow an application to interact directly with hardware (9x systems may allow some kind of access).
Other options include building external hardware to process 'normal' serial data to achieve what you want, or be satisfied with programming and using plain DOS (not under Windoze).
It may be easier to use the parallel port. Decoding parallel ASCII can be done quite easily and could be controlled using a Windoze application that simply printed to a 'Generic / Text Only' printer. If the size of a parallel cable and/or cable length limitations were a problem, you could use a USB-to-Parallel adapter cable. This would effectively give you a serial connection and be relatively easy to write software (that would run under Windoze or DOS) for.
RE: Controlling Motor With Computer
to program -- and you can use two internal timers with
a few microsec. resolution.
<nbucska@pcperipherals.com>
RE: Controlling Motor With Computer