This is what I was referring to. No battery charging.
When Vdc is higher than Vbatt, the battery diode is "reverse biased" and current from the battery does not flow.
When Vbatt is higher than Vds, than the battery current flows into the Arduino.
I recommend a diode with Low Vforward, such as a 0.3V shottky diode.
