Just thinking out loud here but could the issue be that I am using AC instead of DC current? And the constant flipping is due to the way AC cycles?
Is there a way I could get around this? I'm thinking possibly a relay. Needs to be something inexpensive.