Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

57%
+2 −1
Q&A How to use USB-B to power 5 V microcontroller and peripherals

I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a...

2 answers  ·  posted 9mo ago by Carl‭  ·  last activity 9mo ago by Pete W‭

Question microcontroller USB LDO-regulator resettable-fuse
#4: Post edited by user avatar Carl‭ · 2025-12-22T11:23:26Z (9 months ago)
  • I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a USB-B receptacle to provide power, and for communication purposes. Both the microcontroller and the bridge run on 5 V.
  • The simplified schematic without other peripherals looks like this.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/b0epcx1zerfucst52ai0u6vws8nq)
  • I have learned that my AMS1117 5 V regulator is a bad idea, because the dropout voltage is around 1 V, leaving at best 4 V for my microcontroller and bridge.
  • What is the correct approach to use here? I need 5 V for the bridge and micro. Should I just feed the unregulated USB Vbus into both ICs? Should there be a mechanism to limit inrush current? I have heard about polyfuses - are they useful here?
  • I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a USB-B receptacle to provide power, and for communication purposes. Both the microcontroller and the bridge run on 5 V.
  • The simplified schematic without other peripherals looks like this.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/b0epcx1zerfucst52ai0u6vws8nq)
  • I have learned that my AMS1117 5 V regulator is a bad idea, because the dropout voltage is around 1 V, leaving at best 4 V for my microcontroller and bridge.
  • What is the correct approach to use here? I need 5 V for the bridge and micro. Should I just feed the unregulated USB Vbus into both ICs? Should there be a mechanism to limit inrush current? I have heard about polyfuses / resettable fuses - are they useful here?
#3: Post edited by user avatar Carl‭ · 2025-12-22T11:20:27Z (9 months ago)
  • I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a USB-B receptacle to provide power from my PC and to provide communication. Both the microcontroller and the bridge run on 5 V.
  • The simplified schematic without other peripherals looks like this.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/b0epcx1zerfucst52ai0u6vws8nq)
  • I have learned that my AMS1117 5 V regulator is a bad idea, because the dropout voltage is around 1 V, leaving at best 4 V for my microcontroller and bridge.
  • What is the correct approach to use here? I need 5 V for the bridge and micro. Should I just feed the unregulated USB Vbus into both ICs? Should there be a mechanism to limit inrush current? I have heard about polyfuses - are they useful here?
  • I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a USB-B receptacle to provide power, and for communication purposes. Both the microcontroller and the bridge run on 5 V.
  • The simplified schematic without other peripherals looks like this.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/b0epcx1zerfucst52ai0u6vws8nq)
  • I have learned that my AMS1117 5 V regulator is a bad idea, because the dropout voltage is around 1 V, leaving at best 4 V for my microcontroller and bridge.
  • What is the correct approach to use here? I need 5 V for the bridge and micro. Should I just feed the unregulated USB Vbus into both ICs? Should there be a mechanism to limit inrush current? I have heard about polyfuses - are they useful here?
#2: Post edited by user avatar Carl‭ · 2025-12-22T11:19:10Z (9 months ago)
  • Using USB-B to power 5 V microcontroller and peripherals
  • How to use USB-B to power 5 V microcontroller and peripherals
#1: Initial revision by user avatar Carl‭ · 2025-12-22T11:18:22Z (9 months ago)
Using USB-B to power 5 V microcontroller and peripherals
I built a small breakout board of for an ATmega328p microcontroller. It included an AMS1117 5 V regulator and a CP2102 USB-UART bridge for programming and serial communication. On the board I use a USB-B receptacle to provide power from my PC and to provide communication. Both the microcontroller and the bridge run on 5 V.

The simplified schematic without other peripherals looks like this.

![Image_alt_text](https://electrical.codidact.com/uploads/b0epcx1zerfucst52ai0u6vws8nq)

I have learned that my AMS1117 5 V regulator is a bad idea, because the dropout voltage is around 1 V, leaving at best 4 V for my microcontroller and bridge.

What is the correct approach to use here? I need 5 V for the bridge and micro. Should I just feed the unregulated USB Vbus into both ICs? Should there be a mechanism to limit inrush current? I have heard about polyfuses - are they useful here?