is it possible in c language?

I

Thread Starter

ismail nasar

i have make a circuit. there are two options/or buttons, one for yes and one is for no. now i have make program use switch stetment if i press that button so it should be exexuted. is it possible to join that circuit with computer in c language? if yes, what need more devices to join that circuit? is it dangerous for computer board or not???

i m waiting for ur mail.
[email protected]
 
M

Marc Le Douarain

You can use parallel port to interface with your 2 switch. And then in software read the parallel inputs via a driver. The cheapest way.

Or add an extra hardware (PCI card, I/O module in serial/ethernet) and then read it...!

Bye.
 
C

Curt Wuollet

From the question, I would say that it is indeed probably dangerous for the PC. Not to comment without actually helping, I believe the game port would let you do this without extra hardware. And I'm sure you can find examples
of reading a game port in C.

Regards

cww
 
B

B.Yugandhar Prasad

yes it is possible. But u have to place optical couplers between ur circuit and computer. U can attach ur circuit through parallel port. Refer for the parallel port details and sample programs to send data to parallel port inthe internet. All the best.

regards
B.Yugandhar Prasad
 
T

Tejas Purandare

Make sure to design the circuit properly, use optocouplers to avoid damage. You may google to get sample circuits for Parallel Port Interfacing. Write code to refer the Port address, and ot or in data from it.

I have done it for one of my projects.

[email protected]
 
Top