changing voltage

Hi guys

I'm new to arduino and i have question about changing voltage automatically

I want to make a loop , like give a 9 volt input to arduino and it changes the voltage from 1 volt to 9 volts every 10 seconds

for example when i turned on arduino , it gives 1 volt to my circuit and 10 seconds later it jumps to 9 volts and do this over and over again

Thank you

I'm curious ....... Why?

What you want to do is not very well described. When do you change back to 1 volt?

I would use a relay module to switch between two power sources. If it is all your code will do you can use delay() without problem. Look at built-in Blink example

If you have a 5V Arduino, and plan to feed it 9V, be sure to kiss it goodbye first.