Today is...
Tuesday, November 25, 2014
Welcome to Control.com, the global online
community of automation professionals.
Advertisement
Featured Video...
Featured Video
Wiring and programming your servos and I/O just got a lot easier...
Advertisement
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
email: jane_jamora@heald.edu

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
Adnan

you must to use a component to send data to the parallel port, take a look at http://www.cafedaderivada.hpg.com.br/vb
there is a project that send/receive data at yor parallel port.

Vits

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.

B.M.
Iran

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...

+++CoDe88+++

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 sweetschoolgirl93@yahoo.com but dont worry im a guy.

hai,

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.

regards
Friedrich Haase

Ing.-Büro Dr. Friedrich Haase
Consulting - Automatisierungstechnik
email Friedrich@61131.com
WEB http://www.61131.com

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

Add a reliable timer for backup.

Regards

cww

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~

gemini_tong@hotmail.com
gemini_tong@yahoo.com

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

www.azbee.net

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 http://www.aaroncake.net - good for parallel port interfacing with VB!

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