Development Control Electric Motors via USB.

Discussion in 'Software' started by Modsbywoz, 9 Jan 2012.

  1. Modsbywoz

    Modsbywoz Multimodder

    Joined:
    14 Oct 2009
    Posts:
    2,772
    Likes Received:
    264
    I aim to build something over the next few years that will accurately adjust something, at the moment I can only think to use electronic motors.

    Does anyone know a way of powering electric motors via a computer? Preferably linked via USB. The power for the Motors will come from it's own power source.

    Any ideas on where to start?

    Ideal programming languages?
     
  2. faugusztin

    faugusztin I *am* the guy with two left hands

    Joined:
    11 Aug 2008
    Posts:
    6,943
    Likes Received:
    268
    What kinds of motor ? What you need to examine first is how can you control the motor itself, or it's power source. Then you find out what is the easiest digital method for achieving that control, ideally with a serial interface. And in the end, you use a USB to serial converter, like these :
    http://www.ftdichip.com/FTProducts.htm

    With FTDI, you simply use it as COM port (it shows up as one in Windows) - that means you should look around for serial port interface implementations. I am sure pretty much any language (maybe except the web oriented ones) has support for that, either internally or through some library.

    There is no easy answer for your question as you can see :).
     
  3. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Stepper motors can be moved a couple of degrees at a time and these can be controlled with an arduino. You could then link between the arduino board and the control computer if needed.
     
  4. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    Arduino for sure. Brilliant little things.
     
  5. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,578
    Likes Received:
    413
    A bit overkill for simple tasks, but a duino board will leave you with plenty of scope for future adjustment and make it fairly simple. :)
     
  6. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    14,900
    Likes Received:
    3,673
    If only someone had written a 'getting started' guide for newcomers to Arduino... Oh, wait... Like this one. Hooray!
     
  7. Wicked_Sludge

    Wicked_Sludge My eyes! The goggles do nothing!

    Joined:
    15 Aug 2010
    Posts:
    2,231
    Likes Received:
    80
    cannibalize one of these?

    [​IMG]

    i received one for x-mas a few years ago. it comes with a lightweight little program that gives you left/right, up/down, and fire controls. pretty simple and pre-built.
     

Share This Page