Hello everyone, how are you? I hope you are well and healthy, I would like to hear your opinion on this matter; Currently, I feed my arduino through a 12v switching source that goes through a stepdown lm2596 giving 5 v to the arduino, so far everything fine, but the problem I have is that when I cannot connect it to the domestic power line (in this case 220v) it cannot work ..
It occurred to me to use a 20v lithium battery that I have from a drill, and I find two options:
Lower the 20v to 12v and connect it to the input of the other stepdown
or lower the 20v to 5v and connect it to the output of the other stepdown.
The problems that I see in option one would be that when it is powered at 220v, 12v would go to the output of the 2nd stepdown and if not, in the second option it would go 5 to the output of the other stepdown, and outside of that, go down from 20v to 5 I think it would demand too much because of the temperature.
How would you do it? (I clarify that the battery will not be permanent, I will place it only when I want it to work without cable, then it would always work at 220v as before)
What do you think would be the best and safest way?
Is there an element that I can or should add?
Thank you very much