Control ac current

Hello Forum

I'd like to control a ac current with my arduiono uno board.
Let's say I've a ac source 9v <1mA. With a digital pot I'd like to control the voltage of the source.
Over SPI I can send a value between 0-128 to the digi pot. 0 should result an output of 0v, 128 of 9v.

I could control a dc source with a transistor an the digi pot but how can I do this with a a source?

Thanks for any suggestions!

Patrick

There are digital pots that will handle an AC signal. If the signal is truly AC (both above and below ground) you must supply it with a bipolar supply.

Thanks for the answer!
So if it is not a "true ac signal" I don't need a ac-digi-pot?

Patrick

If the signal NEVER goes below ground then it is more like pulsating DC and a "regular" pot should work.