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.
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 http://www.cafedaderivada.hpg.com.br/vb
there is a project that send/receive data at yor parallel port.
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...
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 email@example.com 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.
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.
Moin Mr. bobbydigital,
Instead of using the parallel port you might use X10 modules. This is a much better (and cheap) platform for such apps.
Ing.-Büro Dr. Friedrich Haase
Consulting - Automatisierungstechnik
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~
oke you must have an INpout32.dll
and then type in module
public declare sub out lib "Inpout32.dll" alias "Out32" (Byval Portaddress as integer, byval Values as integer)
the command is type in the command button procedure
out 888, 255
Arizane Indonesian join Hdteam
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!