• PCB Fab Cost Comparison

    Alec Probst11/25/2025 at 16:02 0 comments

    Hi all,

    In this log I want to go through the cost estimates for a couple PCB fabs. The routing for the PCB is far enough along now that I can put in all the settings we need to get cost estimates. This helps to give me an idea of what costs to expect for the final product. 

    I am targeting 100 boards as it is an ideal target for hitting cost savings when buying components in bulk and seems like a reasonable amount of boards to make that they wouldn't sell out instantly.

    PCB Requirements

    StampPD is initially designed around JLCPCB as the PCB manufacturer. This is due to 2 reasons: I have experience with them in the past and I wanted to try JLCPCBA service. If any specs seem a bit arbitrary, it is likely that this is JLCPCB's default capabilities. For some specs like the Copper Weight, please see the last log. For all PCB Fab quotes, I will select the following specifications:

    • Size - 30mm x 30mm
    • Layers - 4
    • Quantity - 100
    • Board Type - Single PCB
      • Possible that panelizing the PCB's will reduce costs but that is for future me to find out
    • Base Material - FR-4
    • Outer Copper Weight - 2 oz/ft^2
    • Inner Copper Weight - 0.5 oz/ft^2
      • 1 oz/ft^2 would give more safety margin for the power layer
    • Castellated Holes - Yes, all 4 edges
    • Minimum Via/Plated Through Hole (PTH) Copper thickness - 18um
    • Minimum Drill Hole Size - 0.3mm (12mil)
    • Minimum Trace Spacing - 0.2mm (8mil)
    • Minimum Trace Width - 0.16mm (6.5mil)
    • Product Number - Location Specified

    Any specifications not listed above are not very important to the StampPD design at this time. That means specs such as these will be selected to be as cheap as possible: Surface Finish, Layer Stackup, Via Process/Covering, PCB Thickness, PCB Color, Silk Screen Color, and Board Outline Tolerance.

    PCB Fabrication Companies

    A website which lists PCB fabs for small batch production can be found at BuildList.org. I filtered this list to Fabs that allowed me to select the above settings. This removed some Fabs, such as OSHPark, as they did not have settings for 2 oz/ft^2 Copper Weight for 4 layer boards or Castellated Holes. I also removed any discounts given as these may not be repeatable on subsequent orders. Note that prices may fluctuate depending on the time and place of your order. This leaves us with the resulting quotes as of 11/25/2025:

    • JLCPCB - $108.60, 
    • All PCB - $133.00
    • Elecrow - $136.90
    • PCBWay - $290.60
    • SEEEDStudio - $219.47
    • Eurocircuits - $1,984.74 ( €1712.15 )

    As you can see JLC, AllPCB, and Elecrow are the cheapest. PCBWay and SEEEDStudio are more expensive but still somewhat reasonable while Eurociruits is completely unreasonable. For now, I plan to stick with JLC unless prices change drastically.

    Below are screenshots of the prices given above:

    JLC

    All PCB

    Elecrow

    PCBWay

    SEEEDStudio

    Eurocircuits

  • PCB Trace/Via Calculations and 2 vs 4 Layer PCB

    Alec Probst11/24/2025 at 22:54 0 comments

    Hi all,

    This log will go through the calculations required to size the traces and vias for the StampPD PCB as well as the decision to move from a 2 layer board to a 4 layer board.

    High Current Domains

    We need to calculate what copper weights are required for the PCB based on the max expected current through traces and vias. For StampPD, we have 4 power domains that have significant current. These are: 

    • USB PD VBUS domain: 5A
      • Determined by USB PD spec
    • 3.3V Output domain: 2A
      • Determined by buck converter max output current
    • 5.0V Output domain: 2A
      • Determined by buck converter max output current, and 
    • Input current to combined 3.3V and 5.0V buck converters: 4A 
      • See calculation below

    Buck Converter Input Current Calculation

    While the buck converters for 3.3V an 5.0V can output up to 2A of current each, they require a different amount of input current. To calculate each buck converters input current, we multiply its Max Output Voltage by the Max Output Current then divide that by the Minimum Input Voltage times the Efficiency.

    The minimum Input Voltage for both buck converters will be 5V as this is the minimum voltage defined by USB. The efficiency can be found in graphs for the AP63200 but no 5.0V input voltage line is given. For now I'm taking the 12V input voltage efficiency at 2A which is around 90% for both buck converters. The actual efficiency is likely higher than this as efficiency in a buck converter increases as the input and output voltages are closer in value. By replacing the equation values and adding both buck converters input current requirements together, we get the below solution:

    This gives us 3.7A which I round up to 4A for safety margin.

    Trace Width Calculations

    KiCAD has built-in "Track Width" and "Via Size" calculators that I'll show here. To start with, lets look at the 5A domain with default 1oz copper weight at 10C temperature rise for around 30mm conductor length ( length doesn't change track width much here so we'll default to 30mm since this is the length of the PCB ).

    This gives us a 2.81mm trace width for external layers. For a 30mm x 30mm board, this is huge! This trace alone will take 1/10th of our board space in a single axis at a minimum! Reviewing the data sheets for all IC's, we can increase the temperature rise to 20C safely for all of our components with minimal loss in efficiency to get a trace width of 1.85mm. This is still quite large and doesn't provide enough routing flexibility. This leaves one last thing to change which is the Track Thickness, also known as Copper Weight. By changing this from 1 oz/ft^2 to 2 oz/ft^2, we get a track width of 0.92mm.

    Rounding this trace width up to 1mm gives us a bit of a safety margin and is easier to keep track of. Increasing our Copper Weight to 2 oz/ft^2 will increase the price of the PCB but there isn't much choice if we want to support 5A. Note that a 1mm wide trace width for 5A is only valid for PCB layers that are external ( top and bottom layers ). Internal layers will need much thicker traces as they usually have lower Copper Weight, usually 0.5 oz/ft^2, and can't remove heat as easily.

    Since the temperature rise and copper weight are set by our 5A traces, we can calculate the trace widths needed for 4A and 2A as 0.7mm and 0.3mm as seen below:

    Via Size Calculations

    When calculating the Via Size, we can use the 20C temperature rise from the above calculations. We should be careful to not confuse the 2 oz/ft^2 copper weight with the plating thickness of the Via. Using JLCPCB's default capabilities, we can see that the "Average Hole Plating Thickness" is 18um. Keeping all other parameters default in KiCAD, including the default Via Hole Size of 0.4mm, gives us a Via that can support up to 2.4A: 

    While this will be sufficient for the buck converter 3.3V and 5.0V 2A output domains, the VBUS 5A domain will need larger Vias. Going up by 0.1mm steps, we can arrive at a 1.2mm Via Hole...

    Read more »

  • Hackaday Supercon Presentation

    Alec Probst11/05/2025 at 01:33 0 comments

    Hi all,

    I was at Hackaday Supercon 2025 and did a quick 7 minute lightning talk about this project! You can watch it here, timestamp is exactly 1 hour into the video!

    I'm continuing to finish the routing and have a couple of logs that will be forthcoming:

    • Stamp Pinout Design Methodology
    • Routing Methodology
    • PCB Fabs Cost Comparison
    • PCBA Fabs vs DIY Cost Comparison
    • Prototype Board Manufacturing Decision
    • Prototype Testing Process

    I'm planning for logs past these such as prototype feedback and software library implementation but those are further out. Once I order prototypes I plan to release the initial Gerber, Step, and BOM files for JLCPCB.

    Note that I will be busier as the year comes to a close so this project will slow down until January 2026. I hope to order the prototypes before 2026 but that is up in the air.

  • PCB Pinout Interface Methodology

    Alec Probst10/28/2025 at 03:32 0 comments

    Hi all,

    This log will describe what pins we need to define for the PCB package. Below is a list of all inputs and outputs:

    • Input
      • Power
        • USB-C Port Power Input (VBUS_TYPEC)
        • Ground (GND)
      • Logic
        • Channel Configuration 1 (CC1)
        • Channel Configuration 2 (CC2)
        • USB Data + (USB_D+)
        • USB Data - (USB_D-)
    • Output
      • Power
        • USB-C Port Power Output (VBUS)
        • 5.0V, 2A Power Output (+5V)
        • 3.3V, 2A Power Output (+3.3V)
        • Ground (GND)
      • Logic
        • Channel Configuration 1 (CC1)
        • Channel Configuration 2 (CC2)
        • USB Data + (USB_D+)
        • USB Data - (USB_D-)
        • USB PD Serial Data (SDA)
        • USB PD Serial Clock (SCL)
        • USB PD Interrupt (INT)
        • USB PD Port Flip Orientation (FLIP)

    Pin Orientation

    The logic used to determine which side of the PCB pins should be on is to go from left-to-right when looking at the PCB from top down. The logic/power input is on the left side while the logic and 5.0V/3.3V power output is on the right side. The variable USB-C Power output is on the top and bottom. You can see this in the schematic diagram below:

    Pinout Reasoning

    Input Pins (Left Side)

    As this stamp will use USB-C for power and data input, the most logical pin input routing should match the expected pinout for a USB-C Female Receptacle. Based on the image below, you can see that this leads to ground on the outside, then power (VBUS), CC Pins, and finally USB D+/- .

    Output Pins (Right Side)

    The right side output pins on the stamp do not have a likely output order like the left side Input Pins do. As such, they are organized based on ease of routing and part placement. The 5.0V and 3.3V power output pins flank the top and bottom due to the placement of the buck converters for the associated voltages. Next are the communication pins for SDA and SCL and the PD Controller INT and FLIP logic pins. The SDA/SCL pins were placed on the top due to their necessary components needed for the SDA/SCL pins being located on the top while the INT and FLIP pins were closest to the bottom side of the PD Controller. Finally, the CC and USB D pins simply route from left to right across the PCB.

    Output Pins (Top/Bottom Sides)

    The top and bottom pin placement alternates between power output and ground pins, separated by a No Connect (NC) pin in-between. The NC pin was included to make it more unlikely that the power output pins and ground pins could be accidentally shorted when soldering StampPD. Its unclear if this is an optimal power pinout setup and would love feedback on this design choice.

  • USB PD Controller Component Choice

    Alec Probst09/25/2025 at 03:08 0 comments

    Hi all,

    In this log I'll go over the specific component selection for the USB PD Controller.

    USB PD Controller Sink Selection

    A USB PD Controller Sink is an IC that communicates with the USB PD standard to set a voltage and current from a USB PD source for downstream devices. The selected USB PD Controller for StampPD is the AP33772S. This IC comes in two variants , the AP33771C and the AP33772S. The C variant is a version which uses resistors to select the desired current and voltage while the S variant uses I2C to communicate with a microcontroller to select the voltage and current. In StampPD, we will use the S variant for its ability to change and request different voltages and currents. The controller selection was inspired by controller in the PicoPD which used an older version called the AP33772. This controller is Not Recommended for New Design (NRND) by the manufacturer, Diodes, and is only compatible with the USD PD3.0 standard. The AP33772S is compatible with the newer USB PD3.1 standard. I compared a couple differences between these two controllers in the Design Objectives log if you wish to see why this version was chosen. I attempted to research USB PD3.2 controllers that were similar to the AP33772S but was not able to find any, likely due to the standard being more recently released. Some reasons I've selected the AP33772S were:

    • Evaluation Board (EVB) User Guide
      • Direct reference on how to implement the AP33772S on a PCB
      • Known components and component values to start from
    • Detailed Reference Circuit Diagram ( image below )
    • Decent Datasheet Documentation
      • Explains all pins and their functions
      • Functional Descriptions of all features
      • Missing PWR_EN pin voltage / current abilities ( more details below )
    • Small Package Size
      • While the side pins are likely hand solderable, it's unclear how one would solder the bottom exposed pad for thermal dissipation
    • Lots of built in safety features
    • Support for many types of PD (EPR, AVS, SPR, PPS)
    • Wide Voltage and Current Control up to 140W (28V, 5A)
      • No 240W support :(
    • Easy I2C control

    Recommended Components

    Below, an example circuit, called Figure 1, shows what an implementation of the AP33772S should look like with some specified component values. A table called Pin Descriptions describe the functions and voltage / current for pins of the AP333772S. Since the circuit diagram + table gives us a good idea of what to implement for this IC, I'll describe the more important/complicated components and only put component values in a list for the others.

    Input Current Sense Resistor

    This resistor sits between ISENP (Current Sense Pin) and VCC. It is used by the AP33772S to determine the amount of IR drop through VBUS for overcurrent protection. Since VBUS supports 5A and the recommended resistance is 5mOhm, this resistor needs to support at least 5A^2 * 5mOhm = 0.125W ( P = I^2 * R ). We'll want to give around a 50% power margin here so our target resistor power rating is 0.125W * 1.5 = 0.1875W. We should also limit the resistance tolerance to within 1% to reduce variability and power loss.

    IC LED

    This pin is described as outputting up to 5.33V, 2mA. If we use the suggested 1000Ohm resistance value, we should look for a LED with a Forward Voltage (Vf ) = Voltage Source - Resistor * Forward Current. Vf = 5.33V - 1000Ohms * 2mA = 3.33V. This means if we keep the suggested 1000Ohm resistor and assume 2mA of Forward Current, we should look for a LED with a Forward Voltage of 3.33V. This will likely be a blue or white colored LED.

    Over Temperature Protection (OTP)

    This resistor is used to detect the temperature around the IC. When NTC resistors heat up, their resistance decreases. This can be detected to determine overheating conditions. For this IC, it's calibrated for a NTC resistor that has a resistance of 10KOhm when the temperature is 25C.

    VBUS LED and Resistors

    For the VBUS LED and Resistors, I'm ignoring the values suggested in the circuit diagram. Instead,...

    Read more »

  • 5.0V and 3.3V Buck Converter Component Choice

    Alec Probst09/15/2025 at 03:08 0 comments

    Hello all,

    In this log I'll go over the specific component selection for the 5.0V and 3.3V Buck Converters. Since I am using the same IC for both 5.0V and 3.3V, most of the components will be duplicated between the IC's. Only the inductors will be different between the two implementations.

    Buck Converter IC Selection

    The main buck converter IC is the AP6300. This IC comes in a couple different flavors including a 3.3V ( AP63203 ) and a 5.0V ( AP63205 ) version which I've selected for StampPD. Some reasons I've selected this IC were:

    • Supports input voltage between 3.8V to 32V as StampPD will support between 5.0V and 28V input
    • Continuous Output Current of up to 2A which is likely overkill but I want to be able to use StampPD in almost any project
    • Allows for 100% Duty Cycle Operation and should allow for close to 5.0V output when there is 5.0V input, similar to an LDO!
    • Decently efficient ( >85% ) for a range of output currents in both 3.3V and 5.0V
    • Two different fixed voltage versions means I can duplicate some of the work designing the circuits since they are similar
    • Fixed voltage versions means I can remove resistors that would be used to define the output voltage and save PCB area
    • TSOT23-6 package is reasonable small yet still hand solderable
    • Relatively cheap on Digikey ( ~$0.71 ) and JLCPCB ( ~$0.36 )
    • Enough quantity on Digikey ( >12,000 ) and JLCPCB ( >30,000 ) to not worry about supply
    • Thorough documentation including efficiency curves, an example circuit, PCB layout recommendations, and recommended component values and calculations.

    Efficiency and Output Voltage

    Below are the efficiency, load, and line regulation curves for the AP6300. Figure 4 shows the efficiency at different output current for 12V, Figure 5 shows the efficiency at different output currents at 24V. The blue line is 5.0V output, the red line is 3.3V output. Figure 6 shows the expected output voltage at different currents. The blue line is input voltage of 12V, the red line is input voltage of 24V. Figure 7 shows the expected output voltage with different input voltages. The blue line is output current of 1A, the red line is output current of 2A. From these we can take away a couple things:

    • Ideal current draw is between 0.2A and 2A for >85% efficiency
      • This is true for both 12V and 24V input and 3.3V and 5.0V output
      • I expect most applications of StampPD to be within this range
    • Output voltage for 5.0V will likely be between 5.06V and 5.19V for different output currents
      • There will be lower output voltage as output current increases
      • Trend between the lines shows that likely closer to 5.19V at lower output currents and voltages
      • No data for 3.3V
    • Output voltage for 5.0V will likely be between 5.03V and 5.20V for different input voltages
      • There will be lower output voltage as input voltage increases
      • Trend between the lines shows that likely closer to 5.20V at lower input voltages
      • No data for 3.3V

    I expect that for the 5.0V AP63205 I should see around 5.20V at low input voltage and low output current. As the input voltage and output current increase, I expect the output voltage to drop to just above 5.0V. 

    Using the efficiency trends in Figure 4 and Figure 5, I will guess that voltage for the 3.3V AP63203 will likely be worse (higher voltage at lower output currents and input voltages). Using the efficiency percentage difference of around 5% in Figures 4 and 5, and the voltage difference of around 0.2V from Figures 6 and 7, assuming this IC outputs 3.3V at around 2A 32V input, I calculate an output voltage around 3.3V + 0.2V * 1.05% = 3.51V.

    I expect that for the 3.3V AP63203 I should see around 3.51V at low input voltage and low output current. As the input voltage and output current increase, I expect the output voltage to drop to just above 3.3V.

    Recommended Components

    Below, an example circuit, called Figure 1, shows what an implementation of the AP63205 should look like. Two tables, called Table 2 and Table 3, show recommended component values....

    Read more »

  • Component Choice Methodology

    Alec Probst09/12/2025 at 21:29 0 comments

    Hi all!

    In this log I'm going to go over my methodology for component selection. I will explain what subsystems I want to include on StampPD, component requirements, other influencing factors, and a summary of component restrictions. In the next couple logs I will go over each sub-system of the board component by component to explain my part choices. I hope to show how I went about component selection to give new PCB designers an idea of how I approached this this design as well as receive feedback from more experienced designers. I have minimal experience with power design so I'm sure I've made mistakes somewhere here! 

    Board Subsystems

    There are 5 main parts of StampPD:

    • PCB Stamp
    • USB PD Controller
    • USB ESD Protection
    • 5.0V Regulator
    • 3.3V Regulator

    These 5 parts are combined together to create the stamp. Only two of these sub-systems are absolutely necessary, the PCB and the USB PD Controller. The USB ESD Protection is nice to have but is optional. Being only a single component (TPD4E5U06DQAR) it would be easy to remove. The 5.0V and 3.3V Regulators are also nice to have but could be removed if needed.

    Part Requirements

    There are a couple requirements I've put on the design that influence what parts I want to select:

    • Hand Solderability
      • I want to be able hand solder the parts if possible. This means that I need to put a limit on the smallest parts can be
      • While some parts like the USB PD Controller (AP33772S) are not very hand solder friendly, I think it should still be possible
      • This needs to be balanced with the size of the PCB itself
      • The smallest size I feel comfortable hand soldering is a 0603 so that is my designated minimum component size
    • Cost
      • In my design objectives, I stated that I don't want to spend more than $20 for 5 boards. This means that parts for the boards should be less than $20/5 = $4 a board.
      • I am not including the cost of the PCB
      • I am not including any reduction in part cost when buying parts in bulk
    • Castellated Holes
      • Since this is a solderable stamp, the PCB will need to have Castellated Holes on the edges
      • Castellated Holes are through whole vias that have been cut horizontally in half through edge cuts on the sides of the PCB. This exposes the inner copper of the via, making it easier to solder to a pad
      • This will increase PCB cost. JLCPCB shows an additional cost of $39.30 for 5x 100mmx100mm for 4 edges without a gerber file. Changing the number of edges does not change the cost very much ( < $2).

    Other Influencing Factors

    I have some personal external factors that also limit my part selection:

    • JLCPCB PCB Assembly (PCBA) service
      • I've wanted to try using JLCPCB's PCBA service and thought this board would be good to try it on
      • This limits my component selection to JLCPCB's catalog of components as well as using JLCPCB PCB's
        • This may influence component cost as there will be fewer choices
      • If this service proves to be too expensive then I will assemble the PCB's myself
    • Reduction in unique components
      • I want to have the fewest number of unique components possible. This will help reduce complexity, component sourcing, and component confusion, especially if I hand assemble boards
    • Availability of components
      • I want to make sure that JLCPCB has enough components in stock to not worry about running out of components
      • This makes it easier for others to manufacture my design directly through JLCPCB like how I have without any changes
    • Power LED's
      • I want to make sure that users know when the StampPD is connected and on
      • I will be adding an LED for power from the USB PD lines directly as well as power from the USB PD Controller
        • This should help identify if power is flowing through the USB PD lines and to the USB PD Controller with just at a glance

    Summary of Component Restriction Decisions

    Here is a summary of the restrictions that I have put on component selection:

    • Minimum component size of 0603
    • Less than $4 per board in component cost
    • PCB must have Castellated Holes
    • Components must be available through JLCPCB's PCBA catalog
    • Unique components must be minimized
    • All...
    Read more »

  • 5V and 3.3V Regulator Design Pt. 2

    Alec Probst08/20/2025 at 02:57 0 comments

    Hello everyone!

    This is a quick update about my decision on the 5V and 3.3V regulators.

    Recap

    Last time I mentioned a couple methods for regulating the 5V and 3.3V which were:

    • LDO's 
      • Inefficient and doesn't work for 5V
    • Buck Converters
      • Efficient but lower than 5V for 5V
    • Buck and Boost Converters
      • Two options: Combined Buck-Boost of 5V or Boosting 3.3V after using a buck converter
      • Buck-Boost Converters are the most efficient but are expensive!
      • Boosting 3.3V to 5V is reasonable but inefficient!

    I mentioned last time that I was planning to go with one of the Buck Booster options. However, I've changed my mind! Instead I'm going to just use Buck Converters

    Reasoning

    After thinking about these solutions for a while, I realized that the drop in voltage on the 5V pin when the input voltage is 5V is ok with my design choice for now. The reasons for this are:

    • Design Simplicity
      • It is much easier to design around two bucks of the same type with different voltages
    • Cost
      • It is much much cheaper to just accept the lower voltage when you compare the cost difference
      • A combined Buck-Boost converter that has acceptable voltage range and amperage for what I want is close to $16!
        • Current Buck solution costs less than $0.50
    • Efficiency
      • The dual Buck design is the most efficient conversion solution of the ones I listed
      • Less wasted power here means more for the other voltages we want to play around with!
    • Flexibility
      • If I'm not happy with the lower than 5V Buck voltage, I will redesign it with a additional Boost converter to bring it up to a constant 5V

    Conclusion

    For now I think simplicity and cost are more important than sacrificing a little bit of voltage here. I plan to test the 5V rail to see how much voltage drop we get and am leaving the door open on adding a Boost converter later. As a little bit of a sneak peak for next time, here's where the current KiCAD design stands!

  • 5V and 3.3V Regulator Design

    Alec Probst08/13/2025 at 04:08 0 comments

    Hello all!

    In this log I'm going to go over my current progress on the regulator design for the 3.3V and 5V supplies. This design is a bit more complex than I expected for reasons that I'll get into here.

    Goals

    • Supply both 3.3V and 5V on StampPCB to allow powering of different types of microcontrollers
    • Regulated pins should always deliver around 3.3V and 5V even when other voltages are requested through USB PD
    • Amperage needs to be enough to power a microcontroller and some supporting components. Current thinking is at least 500mA

    Design Options

    All LDO's (Turns out this is kinda bad)

    Originally I had been thinking that I would just use two LDO's set to 3.3V and 5V and call it a day. LDO's are very simple to use and setup, however, I ran into some issues when looking at this design choice.

    1. LDO's are not very efficient when there is a large difference between Voltage In and Voltage Out
      1. I did not want to waste a lot of power constantly generating 3.3V and 5V, especially at 28V where the efficiency could be as low as 12%
    2. LDO's usually don't work when Voltage In = Voltage Out
      1. LDO's require more Voltage In than Voltage Out (Vin > Vout). This is called the Minimum Dropout Voltage. This can range from a couple volts to around 100mV on a nice (ie. expensive) LDO. This causes issues for the 5V regulation. I would need around 5.1V input to get 5V output. Since USB PD will have a minimum of 5V, I would expect to get less than 5V on the output pin for most LDO's. This might be ok for some microcontrollers and devices but I would like for this design to be as universal as possible so not having 5V exactly is not acceptable.
      2. Since we already have 5V on the USB, why not just switch the supply to go directly to the pin instead of through the LDO? There are 3 ways that I can think to do this: Schottky Diodes, MOSFETS, or a Automatic Load Switch. The Schottky Diode and MOSFET methods also have a voltage loss so I don't think these really solve the problem. The Automatic Load Switch can have low to no voltage drop but the logic is more complicated and most IC's that I viewed seemed rather expensive. Combine this with the already poor efficiency of the LDO and I've decided that I'd rather implement a more complicated voltage regulator

    Buck Converters

    Buck Converters are much more efficient than LDO's when the voltage difference is larger between Voltage Input and Voltage Output. That's good for our efficiency! However, using a Buck Converter has issues as well.

    1. Buck Converters are more complicated to design for. They require an inductor to function and usually an output capacitor. Some even need a diode as well. This means we have more components to add and more math for me to do.
    2. Buck Converters still can't regulate voltage when Voltage In = Voltage Out! This means we still have a voltage drop just like with an LDO!
      1. Some Buck Converters have the ability to run in what is called "100% Duty Cycle Mode" where they act like an LDO when Voltage Input = Voltage Output. This still has a voltage drop, especially at higher amperage. The IC's that have this are usually much more expensive and generally don't support the 5-28V we're looking for
      2. This means we still haven't solved our problem with the 5V Voltage In = 5V Voltage Out
      3. I want a perfect 5V. This means that Buck Converters can't be our only solution

    Buck and Boost Converter 

    While a Buck Converter can't regulate our Voltage In = Voltage Out issue for 5V, we could step up the voltage to 5V with a Boost Converter. There are two options for this with some trade-offs:

    1. Combined Buck-Boost Converter for 5V
      1. A combined Buck-Boost converter can boost the voltage as needed. This means that when we input 5V we can output 5V!
      2. Buck-Boost Converters are more expensive and require more components (more math!), especially for our wide voltage range
      3. Most Buck-Boost Converters are small surface components that must use a hot plate. I would prefer the option to hand solder if possible
    2. Use a Buck for 3.3V and a Boost Converter on the...
    Read more »

  • Design Objectives

    Alec Probst08/10/2025 at 01:38 0 comments

    Hi all!

    This log is to define the goals for this project. I want to establish what the design objectives of the StampPCB will be.

    Objectives

    • A drop in PCB Stamp that requires no extra hardware to function (excluding USB-C Port)
      • USB-C Port is excluded from the Stamp to allow for variable position of the stamp relative to USB-C Port if needed
    • Programmable voltage and current (no resistor settings)
      • Ideally as high voltage and current as reasonable (thinking 28V, 5A)
      • As many different ways to control the power as possible
    • Easy communication with stamp to change the voltage and current configuration
      • Want the widest compatibility with as many microcontrollers as reasonably possible
      • Must use a common communication standard such as I2C, SPI, UART, etc
      • Drop in library for at least RP2XXX microcontrollers
    • Constant 3.3V and 5.0V output pins allow for power-on of microcontrollers independently of selected USB power configuration
      • Allows for control of USB PD power configuration through the microcontroller without worrying about effecting the microcontroller
      • Addition of both 3.3V and 5.0V for wider compatibility with different microcontrollers
      • Pins output enough current to power most microcontrollers plus other components (thinking 1A currently)
    • Smallest reasonable board area
      • Less than 20x20mm if possible
    • Reasonable cost (Ideally less than $20 for 5 boards or more)
      • Possible reduced cost version without 3.3V and 5.0V output pins as well as any other optional components
      • Limit PCB to 2-4 layers
    • Stamp pins must be hand solderable
      • Components on stamp may not be hand solderable through will try to make as many components hand solderable as possible
    • Microprocessor Agnostic

    Inspiration

    This project was inspired by the PicoPD. This board adds USB-C Power Delivery to a RP2040. Want variability in the USB-C PD just like this board.

    The stamp design is inspired by the RP2350 Stamp. Want a drop in component just like this stamp.

    Early Part Choice

    Current part choices are influenced by the PicoPD. Want to upgrade from the AP33772 to the AP33772S for a more up to date PD spec (PD3.0 vs PD3.1). This allows for an increase from 100W (20V, 5A) to 140W (28V, 5A) as well as a couple other features. The downside is that there is less fine grain control of the voltage and amperage (20mV vs 100mV increments and 50mA vs 250mA increments)

    Current Part Choice

    • 1x AP33772S (USB PD3.1 Sink Controller)
    • 1x TPD4E5U06DQAR (ESD Protection Diodes)
    • 1x 5.0V LDO Regulator (separate constant power for 5.0V output pin)
    • 1x 3.3V LDO Regulator (separate constant power for 3.3V output pin)
    • 1x NTC Thermistor (Over Temperature Protection Detection, programmable)
    • 2x 5.1k Resistors for CC1 and CC2 USB pins to ground
    • 2x LED's to show USB-C Power and AP33772S Power
    • ?x Resistors and Capacitors

    Future Usage of StampPD

    While StampPD is designed to be as microprocessor agnostic as I can make it, I do have a board I want to build with it in mind. That board currently uses the RP2350 Stamp with StampPD and a third USB-PD High Power GPIO Stamp to allow the RP2350 to control pins at the max power of StampPD. This project will come after StampPD is finished