🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics
Article #6198

How can I send a bit to an optocoupler connected tp PC

#6198
From: NAVEED IQBAL
Date: Thu, 13 Aug 1992 23:51
13 lines
831 bytes
I want to write a program in C to turn on a relay controlled by an 
optocoupler. I want to connect the coupler to a Pcs serial/parellel 
port.
- What would be the pinout?
- How can I do that in C?
  - or another language?
- I don't want to use those interface boards as I can't afford to.



Thanx
Naveed Iqbal
NIqbal@uh.edu
Technical Details
Message-ID: <13AUG199218514852@judy.uh.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!judy.uh.edu!cscc13

Show Full Headers
Complete Article Headers
Newsgroups: sci.electronics
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!judy.uh.edu!cscc13
From: cscc13@judy.uh.edu (NAVEED IQBAL)
Subject: How can I send a bit to an optocoupler connected tp PC
Message-ID: <13AUG199218514852@judy.uh.edu>
News-Software: VAX/VMS VNEWS 1.41    
Sender: usenet@menudo.uh.edu (USENET News System)
Nntp-Posting-Host: judy.uh.edu
Organization: University of Houston
Date: Thu, 13 Aug 1992 23:51:00 GMT
Lines: 15