Hi, I need to apply a DC voltage to a pair of electrodes, that will switch (+ turns to - and viceversa) every x seconds, the current design I have uses a 555 timer, but I would like to use an Arduino UNO instead. Any ideas? Would I still need relays for switching the output, or is there a built in function that can do this inversion? The time x needs to be variable, though usually in the order of 10-60 seconds. Thanks!
You haven't told us enough information to properly answer the questions.
ilancio:
Would I still need relays for switching the output, or is there a built in function that can do this inversion?
That depends how much voltage and current you need to put out. If it's below 5V and 20mA then you can use the digital output pins directly. If you need more voltage or current than that then you would need a driver circuit to amplify the small output from the Arduino up to a level you can use. An H-bridge motor driver shield would be overkill but would give you a very easy solution.
Yes, the max voltage would be 5V (variable) and I wouldnt need more than 20mA,
Thanks
Ilan