Pic powered from USB?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default Pic powered from USB?

    Hi Folks,

    Dumb question, can a PIC (18f4xxx) be self powered from the USB supply?

    What voltage is it anyway?

    Cheers
    J

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    Yes, and it's 5v.

  3. #3
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default Just in case!

    I'd also like to add something as I don't have the opportunity to do this too much. I have some projects that use USB and I don't use a regulator, it saves (very little) on the cost of the product, and it works very well. Just incase you are going to make a big project off of the USB, most computers have a 500mA limit so if you are going to have a lot of loads, be careful not to go over that limit. Does anyone know if they will make computers with more than the 500mA limit?

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    The USB specification states 500mA max for Bus powered devices. That's why the PC's only deliver that much. Anything over that and you have to power it yourself externally.

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695

    Default

    Hi,

    The following from the link below.

    Best regards,

    Luciano

    * * *

    Theory vs. Reality

    USB ports do not limit current. Although the USB spec provides details about how much current a USB port must supply, there are mile-wide limits on how much it might supply. Though the upper limit specifies that the current never exceed 5 A, a wise designer shouldn't rely on that. In any case, a USB port can never be counted on to limit its output current to 500 mA, or any amount near that. In fact, output current from a port often exceeds several amperes since multiport systems (such as PCs) frequently have only one protection device for all ports in the system. The protection device is set above the total power rating of all the ports. Therefore, a 4-port system may supply more than 2 A from one port if the other ports are not loaded. Furthermore, while some PCs use 10% to 20% accurate IC-based protection, others use less accurate polyfuses (fuses that reset themselves) that will not trip until the load is 100% or more above the rating.

    USB ports rarely, if ever, turn off power. The USB spec isn't specific about this, but it's sometimes believed that USB power may be disconnected as a result of failed enumeration, or other software or firmware problems. In actual practice, no USB host shuts off USB power for anything other than an electrical fault (such as a short). Most notebook and mother-board makers are unwilling to pay for fault protection, let alone smart power switching. So no matter what dialog takes place between a USB peripheral and host, 5 V (at either 500 mA or 100 mA, or even maybe 2 A or more) will be available. This is born out by the appearance in the market of USB-powered reading lights, coffee mug warmers, and other items that have no communication capability. They may not be “compliant,” but they function.

    From:

    http://powerelectronics.com/mag/powe...attery_faster/

    For the pdf version of the article, including diagrams:
    http://powerelectronics.com/ar/Maxim.pdf

  6. #6
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Ok Folks,

    Thanks for the info.... I'm pretty sure my pic project wont draw 0.5 Amps! But thanks for the tip.

    Jazza

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 12:00
  3. Replies: 15
    Last Post: - 30th October 2007, 19:25
  4. PIC powered by capacitor for 0,5 second
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th August 2007, 09:23
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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