the switching is going to be rather slow, with frequencies from 30 to 120 hz, and i was wondering what is the best way to aproach the coding for this purpose using an arduino.
my first thought its just to use millis() to allow for an input to be on or off for a set amount of time.
also i was wondering if using the tone() function could be plausible. it sets the square wave frequency on a pin and then i could read the state of that pin and set another pin on the negation of that state. Maybe it will be too slow to implement that.
anyhow, any suggestion on how to aproach this will be welcome
in a quick search on google i couldnt find what i was looking for btw
Back up a couple of steps. I'm guessing that you might mean an H-bridge but that still doesn't give me any clue as to how you think you are going to wire it and control it.
Usually at those kinds of frequencies, millis() is perfectly good. It would only be a problem if there is some path in your main loop (like reading a sensor once per second) which exceeds your time budget of 1/120th second for one execution of loop().