Rules | Recent posts | topic RSS | Search | Register  | Log in

logic circuit FOr DC motors control & strobe

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design
Author Message
tannazii



Joined: 09 May 2008
Posts: 5


Post02 Jul 2008 11:06   logic circuit FOr DC motors control & strobe

I wanna to Design an interface by using LPT port for on/off DC motors & give status of them by strobe signal.
Back to top
TekUT



Joined: 17 Jun 2008
Posts: 209
Helped: 12


Post03 Jul 2008 13:04   Re: logic circuit FOr DC motors control & strobe

If you're searching some way to change the pin state of a port on PC you can also use the DTR signal over the serial port and RTS as input one. This task is easy to do also by using Visual Basic using the well know MSComm object.

Code:

With MSComm1
 .CommPort = 1                               
 .Settings = "9600,N,8,1"                   
 .InBufferSize = 1024
 .Handshaking = comNone
 .RThreshold = 1
 .SThreshold = 0
 .InputLen = 1
 .InputMode = comInputModeText
 .PortOpen = True
 .DTREnable = False
End With


then drive the line high or low with these command (take also in mind that low level was -12 V and high +12 V)

Code:

MSComm1.DTREnable = True    ' To switch on
MSComm1.DTREnable = False   ' To switch off


Using printer port especially trough latest Win32 environment like Win2k, WinXP, Vista require more effor due to the kernel restriction, you need to use specialized library able to work on Ring 0.
If you like to use the parallel port look at this thread, there is some useful information for your task:
http://www.edaboard.com/ftopic317810.html

Hope it help
Powermos
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap