need to out put to usb

Discussion in 'C' started by cpulocksmith, Apr 28, 2009.

  1. cpulocksmith

    cpulocksmith New Member

    Joined:
    Jul 23, 2008
    Messages:
    289
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    student
    Location:
    canada
    ok well, i dont know if this is possible but i think it can be done... i want a code that will turn a motor that is hooked up to the power comming off my usb. i have no clue where to start. any ideas?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    As USB is a serial protocol there are no specific pins with specific jobs as you might get in RS232 or parallel. Plus powering a motor directly off USB is probably not advisable as you could draw too much current and blow your PC up. So I'd suggest getting a USB-capable PIC or some other microcontroller and controlling the motor with that, although again not running the motor directly off the PIC outputs but using a PIC output pin to control a transistor. See the PIC tutorials at http://www.winpicprog.co.uk/pic_tutorial_extras.htm
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    actually the Vellemann K8055 kit might do the trick if you're handy with a soldering iron.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice