Motor + switch help

Hi,

I’m new to programming and I need some help.

Can anyone help me figure out how to use an esp8266 or a d1 to control a motor?

I’d like to push a button and the motor to run for a set time THEN reverse to a set time.

Ready to rock and roll for the next button push.

Thanks in advance.

It will be much easier to help if you post the program that represents your best attempt and a photo of a simple pencil drawing showing how you have everything connected.

Also please post a link to the datasheet for your motor and tell us what motor driver you are using.

...R