noobdude:
Hi, I'm working on a project where I'm using an LM317 set to 7v to power the Pro Micro. It's working on the breadboard just fine, but I also need a 5v rail for my other devices. They are all low power devices, so I could use one or more digital pins, but it just doesn't seem efficient. The Atmega32u4 is going to end up on a custom PCB so I'm thinking ahead.
Why would it be stable and run just fine with 5v(if that)from USB, but need 7v at Vin? I understand that the onboard regulator needs a higher voltage input to output 5v. Using USB it doesn't, but it seems stable otherwise.
I'm using an external voltage reference, so I'm good there. What would you do in my situation? Thanks in advance! I'm googling different ideas, but not coming up with much.
Think of it this way: You have a bucket that you want to skim 5.0 gallons from. Some will evaporate, some will spill, etc... so the bucket needs to start out filled with MORE than 5.0 gallons in order for you to be able to scoop out a clean, uninterrupted 5.0 gallons.
Now, thinking about the voltage regulator chip on the Arduino board, it has to "skim off" 5.0 volts to power your board. But, there are small losses here and there (voltage drops across the output pass transistor, diode junction drops across various op-amp and voltage reference transistors, etc...) so in order to get 5 volts out, you need to put IN 5 volts plus all that gets lost, plus maybe 1 more volt "for good luck".
There are LDO (low drop out) regulators that are carefully designed to minimize these losses, but still even the best one has some losses and require 1/2 to 1 volt or more "extra" input above what they output.
In reality, your board probably only needs 6 volts input, but they specify 7 volts just to account for manufacturing tolerances and to keep users from complaining "I put in 6 volts like you said and it doesn't work WAH WAH WAH!!!".
When you run the board from the USB port, a switch (a FET) connects the USB 5 volt line directly to the Arduino power input. But when you use external power, it has to go through the regulator and therefore needs to be 5 volts "plus" a bit more. The power from the USB port DOES NOT go through the regulator. That's why it's OK as-is.
Make sense?