Arduino Nano DC to AC

In that case, you need to specify the frequency, and if a square wave is sufficient, or do you need a sinusoidal output. The latter will be more difficult to put together.