I am a beginner (Software field) trying to do some basics in electronics.
I have got a load and a power source like this
My requirement is just to switch direction of dc current to the load in a controlled way.
I mean just switch the positive and negative to the load dynamically based on situation.
For example for few seconds current flows from left to right and for next second I need to switch it.
So in my code I am deciding how long and when to switch. I am using arduino.
And in my scenario its not actually just micro seconds sometimes, not even seconds a direction stays there.
How to achieve that?