Controlling a DC motor for a certain amount of time

In my opinion it's a pity you got drawn to the State Machine library. To my way of thinking that is a "black box" that just makes a simple thing seem complicated.

A state machine is just a concept in which the various states that the system can have are stored in one or more variables. It can be part of the simplest of sketches.

I wrote an extended demo of the Blink Without Delay example sketch in the first post in this Thread. It uses the state machine concept without any need for a library.

...R