Dusk dawn motor driver with polarity reversal
I assume you're opening and closing some blinds or shutters or something like that. It's actually much easier to use limit switches rather than timers.

The "master switch" is a DPDT switch that controls the direction of the motor. When you flip it, the motor runs in that direction until the corresponding limit switch opens. If you really want the master switch to be SPST, then you use that switch to control a DPDT relay.







simulate this circuit &ndash; Schematic created using CircuitLab

You need to select diodes that can handle the motor current. The 1N400x series is only good up to about 1 A.