Most +5V non LDO regulators require at least 7.5VDC minimum input to maintain a regulated +5V output.
I couldn't find a datasheet for the LM2940CT5, but, some LDO types require specific capacitor values on
the output or they will oscillate, and that causes major problems.
Edit: I found a data sheet on the LM2940, and it looks like you need at least 22uF on the output, and
drop-out will be around 0.5V, so you don't have much overhead.




Bookmarks