-
5V and 3.3V Regulator Design
08/13/2025 at 04:08 • 0 commentsHello 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.
- LDO's are not very efficient when there is a large difference between Voltage In and Voltage Out
- 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%
- LDO's usually don't work when Voltage In = Voltage Out
- 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.
- 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.
- 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.
- 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!
- 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
- This means we still haven't solved our problem with the 5V Voltage In = 5V Voltage Out
- 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:
- Combined Buck-Boost Converter for 5V
- A combined Buck-Boost converter can boost the voltage as needed. This means that when we input 5V we can output 5V!
- Buck-Boost Converters are more expensive and require more components (more math!), especially for our wide voltage range
- Most Buck-Boost Converters are small surface components that must use a hot plate. I would prefer the option to hand solder if possible
- Use a Buck for 3.3V and a Boost Converter on the 3.3V for 5V
- Allows for voltage drops below 5V for Voltage In! Good for a noisy USB signal
- Possibly cheaper and there are more options for IC's in this range
- Less efficient since we are combining the efficiency of both the buck and boost converter
- Higher current draw from the buck converter. It must now supply current for both the 3.3V and 5V!
- There is a stronger current dependency on the 3.3V and 5V where drawing too much current on one voltage may cause issues in the other
Conclusion
So far this is my progress on the 3.3V and 5V regulation design. I plan to go with a Buck and Boost Converter but I'm still weighing out options 1 and 2. This is mostly a trade off between cost, IC availability, and design complexity. At this time I'm leaning towards option 2 since I think it will be easier to find IC's and it will be cheaper, even if it's not the most efficient design. I will be looking into more research for Buck-Boost Converter Combo's to see if there are options I have missed.
-
Design Objectives
08/10/2025 at 01:38 • 0 commentsHi 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
- A drop in PCB Stamp that requires no extra hardware to function (excluding USB-C Port)
Alec Probst