PDA

View Full Version : Need to control 220V using Parallel port



enigmatic
08-09-2006, 04:24 PM
I am new to this electronics/robotics thingy.
I want to use a relay to control the 220V for different appliances say lights.

I am sure, i cannot directly connect the the relay to the parallel port because of the inductive currents due to solenoid. So, i need help in how to connect the relay to the port. What diode to use and where.

and how about using an optocoupler between relay and the port.

yogi
08-09-2006, 04:48 PM
use transistors specially power transistor. U can use ULN2003 if you want to connect more than one relay. See this link
http://booksbybibin.14.forumer.com/viewtopic.php?t=68
Any doubts refer parallel port book on yahoo group-booksbybibin

Bibin John
www.bibinjohn.tk

vikas
08-09-2006, 06:37 PM
Here is one way

http://roboticsindia.com/public/images/car/circuit.gif

optocoupler is another.

firoz
02-26-2007, 09:04 PM
for more protection go for optochip.
like.. http://img240.imageshack.us/img240/5488/untitledid0.jpg
i built it for my homemade CNC to switch on the spindle.

tpsbpl
03-09-2007, 03:27 PM
for more protection go for optochip.
like.. http://img240.imageshack.us/img240/5488/untitledid0.jpg
i built it for my homemade CNC to switch on the spindle.
i think 1k resistance should connected to pin no 2 of parallel port (D0)
and pin no 2 of MCT2E should connected to pin 18 of parallel port

firoz
03-10-2007, 09:42 AM
in parallel port from pin18-25 are ground pins,and regarding pin-2 or pin-1 of parallel port it depends upon ur software config.mine is configured for pin1