how to find battery capacity with arduino nano 3.0

i want to find
-battery dischharge volt vs time
-baterry capacity
-internal resistance (ohm)
-continuous load
-pulse load

can you give me some advice

Is Google not working today?

That circuit you have drawn has only a small chance of measuring one or two of the things you asked for. You are going to need a lot more components to measure pulsed power and internal resistance.

How big is the battery? Are you measuring watch batteries or forklift batteries? You need to start with the basic figures of maximum voltage and maximum current.

POPPOPz:
where can i find some code

Under your fingers, once you've specified your design requirements and built an appropriate circuit?

That circuit won't do what you want it to - but to help you figure out a better one, we need to know more parameters, and ballpark numbers for the sort of batteries we're working with, and what battery chemistry.

Apart from the above comments, your Bat1 is drawn with reversed polarity

this is my circuit

i want to do like this

sorry i'm a teacher student , i don't learn about this before

and i search this from google but i don't understand

can you guy give me some advice

sorry my english is bad :XD

POPPOPz:
i want to find
-internal resistance (ohm)...

can you give me some advice

http://hk-phy.org/energy/commercial/act_int_resist_e.html