I'm using a combination of a D type flip flop and an astable 555 to get a 50℅ duty cycle. It's connected to a motor driver (receives an inverted and normal input to determine direction) to turn back and forth.
It's working as described, except that it isn't repeatable. For example, on the first run my motor will turn clockwise then anticlockwise for a few runs, then I'll turn it off. And when I turn it back on, it moves in the opposite direction (I.e. anticlockwise then clockwise).
I'm not that familiar with the D type flip flop and flip flops in general, so I'm wondering if there is a way I can set it to not toggle this way?