Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
iam doing a project on hardware interfacing......car inetrfacing using parallel port inetrfacing. i have designed the circuit for the project but m not geting the coding or any kind of help for the coding in C.
the circuit consists of 4 npn transistors and a resitor attached to each terminal in each transistor.
i have connected the base of the transistor to the output pin of the parallel port iam using pins 2-9; and 1 pin for the ground. since iam a beginner in c i dont know what type of coding it will be for each pin of the port that iam using. i have to move the car forward,reverse,left,right.
Posted
Updated 15-Oct-11 4:36am
v2
Comments
Richard MacCutchan 13-Oct-11 10:07am    
You will need to give a lot more details than this if you expect help in terms of coding. Such as what coding are you having problems with, what is it supposed to achieve, is it to read or write data across the parallel port, what is the format of the data, etc., etc.
Smithers-Jones 13-Oct-11 10:22am    
Since you didn't ask a question (but "can anybody help me?"), you probably won't get a satisfying answer.

It's not possible to be specific about it here - you just don't give enough information - but there is a good series of articles on parallel port interfacing starting here: I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]
 
Share this answer
 
Comments
Mehdi Gholam 13-Oct-11 11:13am    
My 5!
You can also find a lot of very low level information on parallel port programming in books such as Frank Van Gilluwe's: The Undocumented PC.
 
Share this answer
 
If you're going to do a serious job, I suggest you not to directly connect parallel port of PC to the car.

The best way is using a micro controller based interface circuit to control that car.

Just send commands via serial port and handle IO tasks in micro controller part.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900