HOPE Lab 1: Component Selection and Schematic Creation (USB Charger)

The Big Picture

Your charger acts as a USB upstream device that supplies power to a
downstream device being charged. In order for it to be functional and
reliable, your charger needs to:

Specifications

The following is a summary of the general specs and design requirements.

Choosing Parts

With the general specs in mind, it is time to "build" a circuit. Luckily, a high-level schematic diagram following the general specs has been already created for you, but the parts needed to implement it have yet to be chosen. Your job is to:

The "Value" mentioned above for datasheets usually refers to passive values, such as the resistance value of a resistor or the capacitance of a capacitor. Feel free to leave it blank for other kinds of components, or use it however you'd like.

our circuit
sample BOM (Bill of Materials)

Understanding USB

A USB Type-A female receptacle has 4 pins:

Pin Name What it's for
1 VBUS Put ~5V here
2 D- Charger detection
3 D+ Charger detection
4 GND Put ground here
example of a USB Type-A female receptacle (VCC = VBUS)

How to search on DigiKey

  1. Let's take a look at the steps required to narrow down your search when starting from scratch. First go to the DigiKey website.

  2. What component are we looking for? A USB-A receptacle, which is a type of connector. This means we need to head to the 'Connectors, Interconnects' section and look for the correct category. Click on the category and it should take you to a list of all of the parts in that category.

  3. Now we are at the results page. There should be approximately 3,000 products to choose from and 19 categories to filter the selection by (that's a lot). So before it becomes too overwhelming, let's break it down and see what we really care about. It turns out we really only care about two categories, connector type and gender.

  4. Select the correct connector type and gender filter (Hint: if you're unsure look above again to see what type of part we are looking for). Also remember to check the 'In Stock' option under Stock Status. Now click 'Apply Filters.'

  5. Now we should have narrowed down our search to around 275 results, but how do we select the final component? Keep in mind that one of our specifications is minimum cost. So from here we can find the 'Unit Price USD' column and if you click the up-arrow underneath, it will sort all of the results by cost.

  6. You should now have your final USB-A receptacle chosen. Click on it's Digi-Key part number for more information on the component and fill out the appropriate columns in your BOM.

USB Charging Passives

Read Section 4.4 "Dedicated Charging Port" in the USB Battery Charging
Specification, Revision 1.2
. Make sure to pay attention to the third paragraph in part 4.4.1 "Required Operating Ranges."
Answer the following questions:

  1. What is the allowable range of output (VBUS) voltages from your charger?

  2. In the third paragraph of part 4.4.1, which current line must the load curve cross?

  3. What is the value of I_DEVCHG?

    • Therefore, how much current must your charger be able to supply without shutting down if your charger must support more than 2V? 1.5A
  4. How should your charger connect the D+ and D- pins to indicate that it is a charging port? 200 Ohms.

Switching Regulator

The switching regulator had been decided as the voltage conversion method.

Reverse Polarity Protection

There are many [^rpp] ways to protect a circuit from being connected in
reverse. You have been recommended to use a Schottky diode. Remember that more complex designs will most likely cost more, and that your time isn't free!

To be automotive-rated under ISO 16750-2 [^iso1] standards, the reverse protection needs to withstand 14V of reverse voltage for at least 60 seconds. According to ISO 7637-2 standard [^iso2] automotive devices also have to be able to withstand short ~150ns pulses of approximately -100V. This second case is unimportant as diodes can recover from short pulses beyond their reverse breakdown voltage.

When choosing a protection diode, it is important to look at the diode's
type, output current, and DC reverse voltage.


New:

There are many ways to protect a circuit from being connected in
reverse. You have been recommended to use a PMOS since we are in a battery constrained environment and the power loss in a diode (since diodes have a voltage drop) can be very detrimental to battery life.

How it works: https://hackaday.com/2011/12/06/reverse-voltage-protection-with-a-p-fet/

When choosing a PMOS, it needs to have a Vgs rated for the battery voltage, and similarly for the Vds.

Fuse

To protect the switching regulator from large transient voltage spikes, we recommend using a polyfuse, that is, a self-resetting fuse.

Passives

Like we talked about in lecture, many ICs will have accompanying passives
associated with that component. This will generally be in the "Application Circuit" section of the IC datasheet. Some datasheets may even include recommended passives (including part numbers) to use. To answer the below questions, skim and look through the entire datasheet for the regulator you chose.

Depending on your answers to the above (mainly the regulator you chose and the
USB connection between D+ and D-), you'll need some passive components
like resistors, capacitors, and inductors. For each component:

Once all of these questions have been answered for each passive needed, please
add the passives to your BOM.


Schematic Drawing

Now that you've blocked out your system and picked your parts, you're ready to start drawing the schematic. Open KiCad and draw a schematic for your USB charger, keeping in mind the schematic best practices we talked about in lecture.

Here are some common symbols and their symbol names in KiCad:

Component Type Reference Designator
Resistor R
Capacitor C
Inductor L
Integrated Circuit (ICs) U
Jumper/Connector J
Switch S
Diode D

Many parts, including R, C, and L, come in the _Small varieties, which simply are smaller, more compact symbols.

Feel free to use these resources for standard component designators and common component symbols

For any schematic design, it is a good idea to start with the core components/submodule in the circuit. In the case of our phone charger, what is
the core submodule/component?

Schematic Symbols

You might notice that KiCad's symbol libraries may not have all the parts you
want to use. For each symbol that is missing, you can do one of three options described below.
For today's lab, please use option A for your regulator IC and option B for the USB-A receptacle.

A. Create a symbol yourself from the datasheet (it will help to have the component datasheet open and ready to go before starting). You've already learned how to do this last lab, so this should be a breeze!

On libraries...
PCB ECAD libraries are collections of component representations, essentially. In KiCAD, there are two kinds of libraries: symbol and footprint. Symbol libraries are for the representations of the components that would go into a schematic, while footprint libraries contain the physical pad representations of the components that would go on the board itself. Simple reasons for this separation: many components, standard component packaging, and same component, avaliable in different packaging.

B. Download, import, and check a symbol from an online service

  1. Go to the DigiKey website and download the DigiKey library.

  2. In KiCad go to the 'Symbol library editor' application and click Preferences → Manage Symbol Libraries → the Global Libraries tab → Browse Libraries... and go to the location where the DigiKey library was downloaded. Go into the digikey-symbols folder and select all of the .lib folders.

  3. Once the library has been added find the correct library that contains the USB-A connector.

  4. It is EXTREMELY important that you verify that the USB-A connector symbol matches the datasheet

    • Oftentimes, component libraries downloaded from the internet are
      incorrect and it is your job as the designer to verify that the symbol
      is what you want.

Schematic Conventions

Your fellow engineers use your schematic to try to understand not only how your design works, but also your design intent. Follow the schematic conventions discussed in lecture.

Ask yourself: If a stranger were to read your schematic, would they be able to follow what's going on? Follow the guidelines discussed in lecture to turn your circuit diagrams from last lab into a KiCAD schematic.

Schematic Checking

Run ERC and make sure there are no ERC errors. Electrical Rules Checker, or ERC, is a handy tool in most PCB EDA programs that sanity checks your circuit for electrical errors. Things like not connected pins, pins flagged as power not getting power, and multiple output pins driving one wire are caught and flagged by the ERC. One common issue is getting power errors, where you have a wire connected to a power input pin but there is no power source pin on the same wire. To fix this, you need to add power flags to the wire, and they can be found like a normal schematic symbol.

Final Touches

Fill out the fields in the title block, if you'd like.

Checkoff

Submit a lab checkoff on the bCourses site. You will need to submit a pdf printout of your schematic and your BOM.

For the actual checkoff: