How can i generate a negative potential/current and alternate the pin-input between positive and negative potential/current using an arduino uno?
You can't sen a pin negative. But setting one pin high and one pin low will make current flow in one direction, and if you swap the high and low, the current will flow in the other direction.