Results 1 to 7 of 7

Thread: Help USB power

  1. #1
    Registered
    Join Date
    Dec 2010
    Location
    Australia
    Posts
    43
    Downloads
    0
    Uploads
    0

    Help USB power

    I am planning on running a 5V power source from a USB source to power my optical limit switches. Only problem is it seems that USB ports are supply and demand as I've got 5V coming off it but no current when the switch is wired in. Is there a way I can "demand" a current? or do I need to go a different route with a separate PSU?


  2. #2
    Registered
    Join Date
    Apr 2007
    Location
    USA
    Posts
    7,068
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by TheBulk View Post
    I am planning on running a 5V power source from a USB source to power my optical limit switches. Only problem is it seems that USB ports are supply and demand as I've got 5V coming off it but no current when the switch is wired in. Is there a way I can "demand" a current? or do I need to go a different route with a separate PSU?
    This link is to a Maxim article on charging batteries from the USB port but it gives the power limitations and pin connections you need.

    Any load device will draw whatever amount of current it needs from the power source unless the power source just can't deliver it. At that point the output voltage starts dropping off or, if the load current is severe enough, a fuse is blown. You could switch the load on and off but the USB port still has to be able to supply enough current when the load is connected. (Switching the load on and off makes no sense in the context of limit switches though.)

    If your limit switches are connected directly to ground, then a series current limiting resistor needs to be installed to limit the current to the 100 ma level (or lower) per load device so as to not overload the USB current output capability.

    CarveOne
    CarveOne
    http://www.carveonecncwoodcraft.com


  3. #3
    Registered
    Join Date
    Apr 2007
    Location
    America
    Posts
    585
    Downloads
    0
    Uploads
    0

    Wall Wart

    You might consider either a wall wart, or draw 5-volts directly from the power supply in the computer. Both are more robust, and avoid all the risk of drawing too much power and making charcoal. Also you avoid all that resistor stuff ...


  4. #4
    Registered
    Join Date
    May 2007
    Location
    UK
    Posts
    767
    Downloads
    1
    Uploads
    0
    1. The power on the USB socket is controlled (switched on and off) by the PC. Use the 'device manager' settings in the operating system. Make sure that the options to turn off the USB is not selected for the socket you are using to power the switches. Remember that the USB eject command can turn also off the USB power so you need to be careful if you are using your switches as well as using the eject command prior to unplugging memory devices from another USB socket on the PC or hub connected to another PC's USB socket. Select the correct one when using the eject command. The eject command should be used with memory devices to save corrupting them pulling them out mid write cycle. A lot of PC's are not set up correctly with the eject USB as a readily accessible user command.

    2. The PC's USB is over current protected. (500ma is typical for a desk top or tower - Laptops can be a different ball game with their power economising tricks.

    3. If you want to check all is well use a LED and current limiting resistor across either the switch or the USB so that the LED indicates power and or switch state.

    Hope this helps - Regards - Pat





    Hope this helps
    Last edited by wildwestpat; 06-22-2011 at 09:47 PM. Reason: clarity


  • #5
    Registered
    Join Date
    Apr 2007
    Location
    America
    Posts
    585
    Downloads
    0
    Uploads
    0
    Wow Pat, what you added is really cool [and informative]!

    Z.


  • #6
    Registered
    Join Date
    Mar 2010
    Location
    US
    Posts
    370
    Downloads
    0
    Uploads
    0
    I'd suggest you get a wall wart. They are only a couple of bucks + shipping.
    Read this:
    Universal Serial Bus - Wikipedia, the free encyclopedia
    You really don't want to use USB as a power source, although you CAN make it work.

    You can, of course, use your motor power source and a couple of resistors.


  • #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,291
    Downloads
    0
    Uploads
    0
    Just pull the 5V from a hard drive cable.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • Similar Threads

    1. controller power supply 115/230v OK for Australian power?
      By Momill in forum Australia, New Zealand Club house
      Replies: 8
      Last Post: 07-07-2011, 12:06 PM
    2. POWER ONE POWER SUPPLY F24 12 A _ F2412A
      By CNCadmin in forum EBAY ADS
      Replies: 0
      Last Post: 06-13-2011, 12:10 PM
    3. Replies: 5
      Last Post: 10-13-2010, 10:28 AM
    4. Replies: 0
      Last Post: 05-28-2008, 11:37 AM
    5. More power from switching power supply
      By R.thayer in forum General Electronics Discussion
      Replies: 4
      Last Post: 03-10-2007, 08:03 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.