Today is...
Wednesday, May 23, 2018
Welcome to, the global online
community of automation professionals.
Featured Video...
Featured Video
Wiring and programming your servos and I/O just got a lot easier...
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive
Parallel Port communication with Visual Basic 6.0
I'm trying to write a program using visual basic 6.0 to control a remote control car. Instead of using the remote I want to use the computer using a parallel port connected to the remote.
By Jane Jamora on 6 December, 2003 - 12:43 pm

I just wanted to know if any one out there could help me with a program.

Well, I'm trying to write a program using visual basic 6.0 to control a remote control car. Instead of using the remote I want to use the computer using a parallel port connected to the remote.

I just need some basic help. For instance how to make the car move left, right, up, and down.

Thanks, I would really appreciate it if someone replys back.

Jane Jamora

First of all decide what should be electromechanical actuators to move your car, i suppose the car can move froward or backward by a dc motor, u may need two digital outputs for this, one for forward one for reverse. for right or left u may use two small solenoids to move the steering wheel. so two more outputs. u may add more if u like.

now try to get the file like "win95io.dll" it gives u simple functions to call and manipulate parallel port registers. use the data port register and write the desried combinationof bits for controlling the car.

u may use a simple interface circuit using optocouplers to drive simple relays.

so u may try this.

wish u good luck

you must to use a component to send data to the parallel port, take a look at
there is a project that send/receive data at yor parallel port.


By Buster742spa on 6 March, 2005 - 10:25 pm

Hey, that page don't work. It is restringed access. Do you know anotherone??

By Bijan Manouchehri on 11 December, 2003 - 12:39 am

Dear friend,

For your decision at first you need hardware that install on the remote which it contains a microprocessor or microcontroller. This processor communicate with computer and send the command to a D/A converter or switches. These switches can energize the motor or magnet on the roll to correct the direction of motion. with four swiches and suitable feedback to processor you can control as well. The code that send by program on the computer can be a self protocol and in each command (left, right...) it is necessary to send a code to the parallel port, data remain on the port until chang it again.

I hope you can be success.


You don't really have to do it as complicated as that Bijan Manouchehri guy says, you can also control it using the pins 2,3,4,5. These have a voltage of about 7.5V and are controlable, you just hook them up with a few Transisters and them with the controls on the remote, I guess you know eletronics and you should figure out the rest...


By Anonymous on 26 March, 2004 - 1:26 am

hey how are you i did the same project in my school and i got 1st place. thanx to god. if you want to ask me something mail me at but dont worry im a guy.


I would like to know more abt parallel port interfacing and abt controlling DC motors using VB as I am also doing the same project. if possible pls sent a detailed information to my address. I would also like to know abt the circuits used and how they r made.

By bobbydigital on 14 October, 2004 - 4:07 pm

am doing a project: controlling simple things like watering the lawn using a pc, parallel port and visual basic. any help would be greatly appreciated.

By Friedrich Haase on 15 October, 2004 - 6:27 pm

Moin Mr. bobbydigital,
moin all,

Instead of using the parallel port you might use X10 modules. This is a much better (and cheap) platform for such apps.

Friedrich Haase

Ing.-Büro Dr. Friedrich Haase
Consulting - Automatisierungstechnik

By Curt Wuollet on 19 October, 2004 - 10:17 pm

Add a reliable timer for backup.



I'm doing the similar project in our school, and I'm facing the same problem during our work... Would you mind sharing your experience and information in your work for our reference? Looking for your reply, thanks~

By Anonymous on 11 July, 2005 - 6:48 pm

oke you must have an INpout32.dll
and then type in module

option explicit
public declare sub out lib "Inpout32.dll" alias "Out32" (Byval Portaddress as integer, byval Values as integer)

and then

the command is type in the command button procedure

out 888, 255

Arizane Indonesian join Hdteam

By Anonymous on 17 March, 2006 - 1:43 am

do u have any vb codes to for this purpose? I need some help controlling the motor. it needs to move clockwise in one button and counterclockwise in another button. the last button is to halt the motors movement... if homing is possible it will be an advantage. any help and guidence is greatly appreciated. thanks.

Have a look at - good for parallel port interfacing with VB!

parallel port com. is possible in c
for this use inst.
for pin 1
but i dont know for vb.
can you help me?