Results 1 to 9 of 9

Thread: Controlling DC & Stepper motors using my PC

  1. #1

    Default Controlling DC & Stepper motors using my PC

    I need to control 4 DC motors (no speed control, only direction) and 1 stepper motor (again no speed control, only direction) for an engineering project of mine using a PC. I am not sure if I should use the serial or the parallel port. Also, I'm comfortable using VB. So it would be helpful if someone could help me with the interfacing circuits and the code or atleast point me to some resources! Please help :!:

  2. #2
    Senior Member T-1000
    Join Date
    Jun 2007
    Location
    Jamshedpur/Bhubaneswar
    Posts
    421

    Default

    Hello,

    If you go for Parallel port you can control motors directly with PC but you need 4 motor and a stepper. For this you have to go for a more decent method. You can have a MCU connected to PC over serial line (only three wire). Then we can send commands over this channel and control any no of motors (limited by the number of i/o lines of MCU, usually lot more than a parallel port). And differenet commands will control motors and steppers.

    See
    http://extremeelectronics.co.in/avr-...rocontrollers/
    For PC - MCU communicatio over RS232 serial port.

    See
    http://extremeelectronics.co.in/avr-...motor-control/
    For Motor Control with MCU

    If you are new to MCU my site www.extremeelectronics.co.in will help you.

    In the PC/MCU communication part I have used Hyper Terminal as PC end software but it can be replaced by custom VB software one all command have been tested. How to do it?
    Well I will give you futher info later.

    Avinash Gupta
    ************
    www.eXtremeElectronics.co.in

  3. #3

    Default

    Essentially, I'll be driving only 2 motors, that too, in the same-direction or the opposite-direction. Can you help me with using the parallel port? One of my friends said I need to add an opto-coupler before directly connecting the port to my driver IC. Is that so?

  4. #4
    Senior Member T-1000
    Join Date
    Jun 2007
    Location
    Jamshedpur/Bhubaneswar
    Posts
    421

    Default

    Hello,

    Opto coupler increases the safety. Thus reduces the chances of frying your PC mother board. It is a very simple project just see the page i given you for a basic knowledge of l239d motor control chip and thats it ! Just varry 4 bit digital signal to control 2 motors. But even if u need help try googling it there lots of info on net
    see www.logix4u.net for parall port tutorial
    Avinash Gupta
    ************
    www.eXtremeElectronics.co.in

  5. #5

    Default

    Okay thanks a lot Avinash!

  6. #6
    Senior Member Cyborg
    Join Date
    Jan 2006
    Location
    hyderabad
    Posts
    170

    Default

    My stepper driver can take step and direction.
    and the inputs are opto based.
    have a look here
    http://www.roboticsindia.com/modules...ewtopic&t=3782
    I am reactive.

  7. #7

    Default

    its quite easy use 8bit data out port of lpt ie printer port it is ttl compatible connect some driver ics or transistors to drive motors if ur working with c it will not work in xp n later os since it has no pure dos in it so try using vb or go for win 95 /98

  8. #8
    Senior Member T-1000
    Join Date
    Mar 2005
    Location
    Bangalore
    Posts
    728
    Blog Entries
    7

    Default

    its quite easy use 8bit data out port of lpt ie printer port it is ttl compatible connect some driver ics or transistors to drive motors if ur working with c it will not work in xp n later os since it has no pure dos in it so try using vb or go for win 95 /98

    what language was that??
    I had to read it atleast 4 times to assume what you might have probably meant. Please use proper language. If I just take one part of it ,it reads like :
    connect some driver ics or transistors to drive motors if ur working with c

    I hope you got my point.
    .... I didnt do it ! ....

  9. #9

    Default

    that was just english n i dint knew punctuation was that important !!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •