Note: the small geared motor on the heatsink is just there for testing.
For the software, I'm using this project as a starting point: https://github.com/KushagraK7/ESP-Motor ... on-Control
I know just enough Arduino programming that I think I can modify it to make a more suitable locomotive control. Ideally in the future I'd like to build a standalone controller that uses a dial and switches instead of a touch screen, but that's a project for another day. (Month? Year?)
Here's the wiring diagram I came up with after some trial-and-error (and a mix-up that led to it almost working, but not quite as expected!): Edited to add connection between VIN 3.3v and CH_PD on the ESP-01; CH_PD must be pulled high to operate.
This isn't necessarily a how-to, more just trying to remember what I did so I don't forget it all again for next time!
![:kermit:](./images/smilies/kermit.gif)
To be continued...