Power supply for an microcontroller kit - Page 1
Forum section: electronics / projects

author: romhunter
author_rank: Regular Contributor
timestamp: November 01, 2018, 10:23:46 am
content: Hello, I'm in the process of designing a microcontroller kit (for AVR, PIC, and some chinese micros). The problem I'm facing is that I need that kit to be able to get power from either USB or an external DC power supply without something blow up. Both of those thing could be attached at the same time, and I'd prefer the external supply to power my circuitry.Can someone suggest me an idea of what should I do?

author: Zero999
author_rank: Super Contributor
timestamp: November 01, 2018, 10:37:41 am
content: If both power supplies are connected, how do you determine which one is used?If you just want to take power from the source with the higher voltage, then an ideal diode circuit can be used.https://docs-emea.rs-online.com/webdocs/0a82/0900766b80a826bb.pdfIf you want to select which power supply is used, based on an external input, then some additional logic (possibly another MCU) and switching (transistors or relay) is required.Another possibility is a SPDT switch to manually select between power supplies.

author: romhunter
author_rank: Regular Contributor
timestamp: November 01, 2018, 10:41:09 am
content: Quote from: Hero999 on November 01, 2018, 10:37:41 amBasically the external one range from 9-12V, got regulated down to 5/3.3V, I'd like to use it when possible. USB should only be use when external supply is unavailable

author: Zero999
author_rank: Super Contributor
timestamp: November 01, 2018, 10:45:04 am
content: Quote from: romhunter on November 01, 2018, 10:41:09 amWhere is it regulated down? On the board? If so, it makes it easier.

author: romhunter
author_rank: Regular Contributor
timestamp: November 01, 2018, 11:11:56 am
content: Yes, it will be regulated on board.

author: spudboy488
author_rank: Regular Contributor
timestamp: November 01, 2018, 11:41:07 am
content: Low Vfwd diodes to steer the supplies. What I did on my board was to have a 3 pin header and jumper to select USB or external power sources

author: Richard Crowley
author_rank: Super Contributor
timestamp: November 01, 2018, 11:51:11 am
content: Study the schematic diagram for most of the Arduino circuits. Most of them have quite clever and elegant implementation of exactly what you are describing. Automatically selecting either the 5V from USB input, or the 7~12V input from the "barrel connector" (or the header pins, etc.)

author: technix
author_rank: Super Contributor
timestamp: November 01, 2018, 01:08:14 pm
content: A simple way is set your VIN regulator slightly above 5V (ex. 5.2V for my usual TPS563201 VIN buck converter) and put a diode in VBUS. This way the external power is always slightly higher than USB and there is no risk of backfeeding.You can read my published schematics for SushiBits ARM Classic, which included VIN to 5V regulator using TPS563201, VBUS/regulator current steering, and a subsequent 5V to 3.3V regulator using TPS562200.

author: Zero999
author_rank: Super Contributor
timestamp: November 01, 2018, 09:14:51 pm
content: Quote from: Richard Crowley on November 01, 2018, 11:51:11 amhttps://eelabs.wordpress.com/2014/04/14/schematic-and-inputoutput-pins-explain-for-arduino-uno-r3/http://www.fecegypt.com/uploads/dataSheet/1522237550_arduino%20uno%20r3.pdf

author: romhunter
author_rank: Regular Contributor
timestamp: November 02, 2018, 04:31:30 pm
content: Quote from: Richard Crowley on November 01, 2018, 11:51:11 amThanks for the tips. I've choosen this design to be implemented in my design. It's quite clever and fit my needs.