how to supply constant value of voltage with arduino

but I cant do it for long time, after 1 second it get down back to 0.

This is not what happens unless you are doing things wrong. Exactly what you are doing wrong we can't tell because you have not told us what you are actually doing.