View Full Version: Driving a DC MOTOR using parallel port

booksbybibin >>Computer interfacing >>Driving a DC MOTOR using parallel port


yogi- 07-03-2006
Driving a DC MOTOR using parallel port
This tutorial is taken from the book MY EXPERIENCE IN PARALLEL PORT INTERFACING. you can download it free from the files section(file:-parallelport(3 files) of yahoo group-booksbybibin http://groups.yahoo.com/group/booksbybibin/ comments about this book on www.booksbybibin.blogspot.com Driving a motor Use the same circuit to drive motor. You connect collector to one end of motor and other end of motor to the Vcc(12V or 6V according to your motor). #include"bparlib.c" void main() { int a; printf("enter 1 to turn ON motor and 0 for turn OFF motor"); scanf("%d",&a); if(a==1) Set_DataPort_bit(0); if(a==0) Clear_DataPort_bit(0); getch(); }


Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.